[Merged by Bors] - feat: Field, FiniteDimensional and Algebra.IsSeparable instances for WithAbs#27974
Conversation
PR summary 25b3be17c7Import changes exceeding 2%
|
| File | Base Count | Head Count | Change |
|---|---|---|---|
| Mathlib.Analysis.Normed.Field.WithAbs | 1608 | 1914 | +306 (+19.03%) |
Import changes for all files
| Files | Import difference |
|---|---|
Mathlib.Analysis.Normed.Field.WithAbs |
306 |
Declarations diff
+ instField
+ instance [Algebra R R'] [Algebra.IsSeparable R R'] (v : AbsoluteValue R S) :
+ instance [Module R R'] [FiniteDimensional R R'] (v : AbsoluteValue R S) :
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 script/declarations_diff.sh contains some details about this script.
No changes to technical debt.
You can run this locally as
./scripts/technical-debt-metrics.sh 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).
|
Can you justify the big import increase? I have a potential justification, but I'd like to hear yours first. |
I think it makes sense to have these instances on |
|
That's a reasonable stance. My argument was: this file is small anyway, and so it maybe is reasonable to think that it didn't have all the necessary imports to do basic things. Moreover, and perhaps most importantly: this has zero impact on downstream files, as all files which import this file already import the new one transitively. |
|
bors merge |
|
Pull request successfully merged into master. Build succeeded: |
Field, FiniteDimensional and Algebra.IsSeparable instances for WithAbsField, FiniteDimensional and Algebra.IsSeparable instances for WithAbs
…s for `WithAbs` (leanprover-community#27974) This PR continues the work from leanprover-community#24870. Original PR: leanprover-community#24870
…s for `WithAbs` (leanprover-community#27974) This PR continues the work from leanprover-community#24870. Original PR: leanprover-community#24870
This PR continues the work from #24870.
Original PR: #24870