refactor: golf CStarAlgebra/Unitization, Complex/Trigonometric, Asymptotics/SpecificAsymptotics#38075
refactor: golf CStarAlgebra/Unitization, Complex/Trigonometric, Asymptotics/SpecificAsymptotics#38075yuanyi-350 wants to merge 5 commits intoleanprover-community:masterfrom
CStarAlgebra/Unitization, Complex/Trigonometric, Asymptotics/SpecificAsymptotics#38075Conversation
CStarAlgebra/Unitization, Complex/Trigonometric, Asymptotics/SpecificAsymptotics
PR summary 14ec76b5f0Import 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/pr_summary/declarations_diff.sh <optional_commit>
## more verbose report:
./scripts/pr_summary/declarations_diff.sh long <optional_commit>The doc-module for No changes to technical debt.You can run this locally as
|
|
!radar |
|
Benchmark results for 2850e01 against 14ec76b are in. There are significant results. @themathqueen
Large changes (1🟥)
Small changes (1✅, 1🟥)
|
|
I ran a profiler comparison for the changed declarations in this PR. Results (seconds):
Overall:
Caveat:
|
Refactor sin_three_mul theorem to use sin_add and simplify expressions.
|
I have updated the PR. I removed |
|
I wouldn't revert yet. Let's see what others say about it? |
|
Can you add a comment in |
Done. |
themathqueen
left a comment
There was a problem hiding this comment.
This seems fine. I'm not too familiar with the Asymptotic files, so I'm not entirely sure for that (but it looks fine?).
If you want you can move it to a different PR along with other similar files?
| rw [h₂, h₃] | ||
| /- use the definition of the norm, and split into cases based on whether the norm in the first | ||
| coordinate is bigger or smaller than the norm in the second coordinate. -/ | ||
| -- `grind` works here but is much slower |
There was a problem hiding this comment.
No need to add this comment.
There was a problem hiding this comment.
I don't know, might be okay. Maybe it'll be faster in the future, and then we can use it? I'll leave this for other reviewers:
| -- `grind` works here but is much slower |
This PR extracts three file-level refactors from #37968 into a standalone branch:
Mathlib/Analysis/CStarAlgebra/Unitization.leanMathlib/Analysis/Complex/Trigonometric.leanMathlib/Analysis/Asymptotics/SpecificAsymptotics.leanThe goal is to make these simplifications reviewable independently of the larger batch PR.