-
Notifications
You must be signed in to change notification settings - Fork 380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: review of porting notes in Analysis/ #22773
base: master
Are you sure you want to change the base?
Conversation
kim-em
commented
Mar 10, 2025
PR summary bae025ab45Import changes for modified filesNo significant changes to the import graph Import changes for all files
Declarations diffNo declarations were harmed in the making of this PR! 🐙 You can run this locally as follows## summary with just the declaration names:
./scripts/declarations_diff.sh <optional_commit>
## more verbose report:
./scripts/declarations_diff.sh long <optional_commit> The doc-module for Decrease in tech debt: (relative, absolute) = (7.86, 0.09)
Current commit bae025ab45 You can run this locally as
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
@@ -73,7 +73,6 @@ scoped[MultiplierAlgebra] notation "𝓜(" 𝕜 ", " A ")" => DoubleCentralizer | |||
|
|||
open MultiplierAlgebra | |||
|
|||
-- Porting note: `ext` was generating the wrong extensionality lemma; it deconstructed the `×`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ext
doesn't happen to have gotten smarter yet?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. I think we long ago decided that the new ext
behaviour is better. Library authors need to add additional @[ext]
lemmas if there are situations where the new ext
will not break open definitions that the old ext
was willing to. (The old ext
just blindly calls apply
with every ext
lemma. The new ext
uses a discrimination tree.)
AffineMap.mk' f (↑((AddMonoidHom.ofMapMidpoint ℝ ℝ | ||
((AffineEquiv.vaddConst ℝ (f <| c)).symm ∘ f ∘ AffineEquiv.vaddConst ℝ c) (by simp) | ||
fun x y => by -- Porting note: was `by simp [h]` | ||
simp only [c, Function.comp_apply, AffineEquiv.vaddConst_apply, | ||
AffineEquiv.vaddConst_symm_apply] | ||
conv_lhs => rw [(midpoint_self ℝ (Classical.arbitrary P)).symm, midpoint_vadd_midpoint, h, h, | ||
midpoint_vsub_midpoint]).toRealLinearMap <| by | ||
fun x y => by simp [h]).toRealLinearMap <| by | ||
apply_rules [Continuous.vadd, Continuous.vsub, continuous_const, hfc.comp, continuous_id])) | ||
c fun p => by simp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Wow, this is unreadable)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't looked at all the files, but the ones I looked at (about a third of them) seemed completely reasonable to me.
Co-authored-by: Ruben Van de Velde <[email protected]>
…ity/mathlib4 into porting_notes_analysis