[Merged by Bors] - feat: use a constructor for NNReal#37609
[Merged by Bors] - feat: use a constructor for NNReal#37609sgouezel wants to merge 20 commits intoleanprover-community:masterfrom
Conversation
PR summary cd8272a9d5Import changes for modified filesNo significant changes to the import graph Import changes for all files
|
| Current number | Change | Type |
|---|---|---|
| 6893 | -8 | backward.isDefEq.respectTransparency |
Current commit 5954d3878f
Reference commit cd8272a9d5
You can run this locally as
./scripts/reporting/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).
|
!radar |
|
Benchmark results for 23488c7 against cd8272a are in. There are no significant changes. @sgouezel
Medium changes (2🟥)
|
|
!radar |
|
Benchmark results for 21b9539 against cd8272a are in. Significant changes detected! @riccardobrasca
Medium changes (8🟥)
Small changes (8🟥)
|
|
The bad radar comes from the fact that I add an instance instance {M : Type*} [SMul ℝ M] : SMul ℝ≥0 M :=
⟨fun c m ↦ (c : ℝ) • m⟩while before we only had it for a MulAction, expressed in terms of |
|
I agree it is worth. Let's just see how is now. !redar |
|
!radar |
|
Benchmark results for 5954d38 against cd8272a are in. Significant changes detected! @riccardobrasca
Medium changes (8🟥)
Small changes (8🟥)
|
|
I think we can live with this slow down. Thanks! bors merge |
Currently, many elements of NNReal are constructed as pair (x, hx), i.e., as elements of the subtype of nonnegative real numbers. The two types are defeq, but not reducibly, so this creates many defeq abuses. This PR introduces a constructor `NNReal.mk` and uses it instead of the bare constructor, to avoid these defeq abuses. Co-authored-by: sgouezel <[email protected]>
|
Pull request successfully merged into master. Build succeeded: |
|
I see a lot of |
Currently, many elements of NNReal are constructed as pair (x, hx), i.e., as elements of the subtype of nonnegative real numbers. The two types are defeq, but not reducibly, so this creates many defeq abuses. This PR introduces a constructor `NNReal.mk` and uses it instead of the bare constructor, to avoid these defeq abuses. Co-authored-by: sgouezel <[email protected]>
Currently, many elements of NNReal are constructed as pair (x, hx), i.e., as elements of the subtype of nonnegative real numbers. The two types are defeq, but not reducibly, so this creates many defeq abuses. This PR introduces a constructor `NNReal.mk` and uses it instead of the bare constructor, to avoid these defeq abuses. Co-authored-by: sgouezel <[email protected]>
Currently, many elements of NNReal are constructed as pair (x, hx), i.e., as elements of the subtype of nonnegative real numbers. The two types are defeq, but not reducibly, so this creates many defeq abuses. This PR introduces a constructor
NNReal.mkand uses it instead of the bare constructor, to avoid these defeq abuses.