-
Notifications
You must be signed in to change notification settings - Fork 386
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
[Merged by Bors] - chore(Data): go through remaining porting notes #22907
Conversation
This PR goes through all porting notes in `Mathlib/Data` and reviews them. Most of the notes can simply be applied or dropped.
PR summary d566427954Import changes for modified filesNo significant changes to the import graph Import changes for all files
|
Current number | Change | Type |
---|---|---|
2078 | -166 | porting notes |
1186 | -3 | erw |
Current commit d566427954
Reference commit eaf100acc5
You can run this locally as
./scripts/technical-debt-metrics.sh pr_summary
- The
relative
value is the weighted sum of the differences with weight given by the inverse of the current value of the statistic. - The
absolute
value is therelative
value divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).
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! 🎉 🧹 🐙
bors merge
-- Porting note: added | ||
inl.injEq, inr.injEq, reduceCtorEq] | ||
) | ||
rintro (a | a) (b | b) (c | c) <;> 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.
Nice!
This PR goes through all porting notes in `Mathlib/Data` and reviews them. Most of the notes can simply be applied or dropped.
Pull request successfully merged into master. Build succeeded: |
This fixes two major performance regressions I accidentally introduced in #22907: * in `Data.PFun`, `aesop` was very slow to prove a goal, restore manual proof * in `Data.Sign`, I turned a `CoeTC SignType ɑ` instance into `Coe SignType ɑ` (since `CoeTC` is an implementation detail), but this would mean that for any coercion to `ɑ` we'd try `SignType` as an intermediate step. Instead make it a `CoeTail` so it would only be applied as a fallback.
This fixes two major performance regressions I accidentally introduced in #22907: * in `Data.PFun`, `aesop` was very slow to prove a goal, restore manual proof * in `Data.Sign`, I turned a `CoeTC SignType ɑ` instance into `Coe SignType ɑ` (since `CoeTC` is an implementation detail), but this would mean that for any coercion to `ɑ` we'd try `SignType` as an intermediate step. Instead make it a `CoeTail` so it would only be applied as a fallback.
This PR goes through all porting notes in
Mathlib/Data
and reviews them. Most of the notes can simply be applied or dropped.