Repository navigation
[Merged by Bors] - refactor: Quaternion as abbrev - #43078
Parcly-Taxel wants to merge 14 commits into
Conversation
PR summary 7157d57284Import changes for modified filesNo significant changes to the import graph Import changes for all files
|
| Current number | Change | Type (strong) |
|---|---|---|
| backward.isDefEq.respectTransparency | 4814 | -3 |
| backward.isDefEq.respectTransparency.types | 2481 | -2 |
Current commit 7157d57284
Reference commit 738f2ab17a
This script lives in the mathlib-ci repository. To run it locally, from your mathlib4 directory:
git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci
../mathlib-ci/scripts/reporting/technical-debt-metrics.py pr_summary
- The
relativevalue is the weighted sum of the differences with weight given by the inverse of the current value of the statistic. - The
absolutevalue is therelativevalue divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).
|
!radar |
|
Benchmark results for c3975c8 against cf65d43 are in. No significant results found. @Whysoserioushah
Medium changes (4🟥)
Small changes (1✅)
|
|
I think |
|
Yeah maybe change it to abbrev is a better idea |
QuaternionQuaternion as abbrev
Done. |
|
!radar |
|
Benchmark results for da5a560 against cf65d43 are in. There are significant results. @Parcly-Taxel
No significant changes detected. |
|
maybe the instances could be removed as well? |
|
!radar |
|
Benchmark results for 600cbcf against cf65d43 are in. No significant results found. @Parcly-Taxel
Medium changes (2🟥)
Small changes (1✅, 1🟥)
|
|
!radar |
|
Benchmark results for 15721d2 against cf65d43 are in. There are significant results. @Parcly-Taxel @Whysoserioushah
Large changes (1🟥)
Medium changes (3🟥)
Small changes (1✅)
|
15721d2 to
600cbcf
Compare
|
!radar |
|
Benchmark results for c642bb4 against be7cb66 are in. There are significant results. @Parcly-Taxel
Large changes (1🟥)
Medium changes (1🟥)
Small changes (1🟥)
|
I got rid of tech debt, so the significance is overrated. |
|
What if we keep all the instances for |
c642bb4 to
d5fff03
Compare
|
!radar |
|
Benchmark results for d5fff03 against f1c2273 are in. There are significant results. @Parcly-Taxel
Large changes (1🟥)
Medium changes (2🟥)
Small changes (1🟥)
|
Quaternion as abbrevQuaternion as abbrev
|
@plp127 ⬆️ |
|
!radar |
|
Benchmark results for a9dc117 against b87b4e8 are in. There are significant results. @Parcly-Taxel
Large changes (1🟥)
Small changes (2🟥)
|
|
I can see that |
|
!radar |
|
Benchmark results for 85eeaed against 852d20a are in. There are significant results. @Parcly-Taxel
No significant changes detected. |
|
!radar |
|
Benchmark results for 7157d57 against 738f2ab are in. No significant results found. @Parcly-Taxel
Small changes (1✅, 3🟥)
|
|
|
Thanks 🎉 bors merge |
* Mark `Quaternion` as an `abbrev`. Cf. [#mathlib4 > Transparency problem with quaternions @ 💬](https://leanprover.zulipchat.com/#narrow/channel/287929-mathlib4/topic/Transparency.20problem.20with.20quaternions/near/618254305) and [this comment](#43078 (comment)). * The instances for `Quaternion` that used to be proved by `inferInstanceAs` are removed. * Remove five `set_option`s as a consequence. * Move `normSq_ratCast` so that it loses the assumptions `[LinearOrder R] [IsStrictOrderedRing R]`. Co-authored-by: Parcly Taxel <[email protected]>
|
Pull request successfully merged into master. Build succeeded: |
Quaternion as abbrevQuaternion as abbrev
* Mark `Quaternion` as an `abbrev`. Cf. [#mathlib4 > Transparency problem with quaternions @ 💬](https://leanprover.zulipchat.com/#narrow/channel/287929-mathlib4/topic/Transparency.20problem.20with.20quaternions/near/618254305) and [this comment](leanprover-community#43078 (comment)). * The instances for `Quaternion` that used to be proved by `inferInstanceAs` are removed. * Remove five `set_option`s as a consequence. * Move `normSq_ratCast` so that it loses the assumptions `[LinearOrder R] [IsStrictOrderedRing R]`. Co-authored-by: Parcly Taxel <[email protected]>
|
The instance diamond linter noticed a problem introduced by this PR, namely that Do you think |
|
Ok, I have made #46446 which does this, and also makes |
This PR is a follow up to #43078 which made `Quaternion` an `abbrev` for `QuaternionAlgebra`. To match this, we want that the operations on `Quaternion` are also `abbrev`s for those on `QuaternionAlgebra` where possible. As a result we can remove most `@[simp]` and `@[norm_cast]` tags on `Quaternion` lemmas. This PR removes an instance diamond and some `simpNF` technical debt. It also removes some unnecessary `scoped simp`.
…community#46446) This PR is a follow up to leanprover-community#43078 which made `Quaternion` an `abbrev` for `QuaternionAlgebra`. To match this, we want that the operations on `Quaternion` are also `abbrev`s for those on `QuaternionAlgebra` where possible. As a result we can remove most `@[simp]` and `@[norm_cast]` tags on `Quaternion` lemmas. This PR removes an instance diamond and some `simpNF` technical debt. It also removes some unnecessary `scoped simp`.
Quaternionas anabbrev. Cf. #mathlib4 > Transparency problem with quaternions @ 💬 and this comment.Quaternionthat used to be proved byinferInstanceAsare removed.set_options as a consequence.normSq_ratCastso that it loses the assumptions[LinearOrder R] [IsStrictOrderedRing R].