Repository navigation
[Merged by Bors] - chore: reduce import all - #41389
felixpernegger wants to merge 4 commits into
Conversation
PR summary 5bba9d8a3a
|
| File | Base Count | Head Count | Change |
|---|---|---|---|
| Mathlib.Lean.Meta.RefinedDiscrTree.Encode | 62 | 61 | -1 (-1.61%) |
| Mathlib.Tactic.GCongr.Core | 82 | 81 | -1 (-1.22%) |
| Mathlib.Data.Int.Bitwise | 402 | 399 | -3 (-0.75%) |
| Mathlib.Control.Monad.Cont | 138 | 137 | -1 (-0.72%) |
| Mathlib.Data.Fintype.Parity | 463 | 460 | -3 (-0.65%) |
| Mathlib.Tactic.PNatToNat | 488 | 485 | -3 (-0.61%) |
| Mathlib.Tactic.FieldSimp.Discharger | 513 | 511 | -2 (-0.39%) |
Import changes for all files
| Files | Import difference |
|---|---|
| ../mathlib-ci/scripts/pr_summary/import_trans_difference.sh all | |
| There are 7714 files with changed transitive imports taking up over 342301 characters: this is too many to display! | |
You can run this locally from your mathlib4 directory: |
git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci
Declarations diff (regex)
No declarations were harmed in the making of this PR! 🐙
You can run this locally as follows
## from your `mathlib4` directory:
git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci
## summary with just the declaration names:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh <optional_commit>
## more verbose report:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh long <optional_commit>The doc-module for scripts/pr_summary/declarations_diff.sh in the mathlib-ci repository contains some details about this script.
Declarations diff (Lean)
✅ Lean-aware diff — post-build, computed from the Lean environment (commit
5bba9d8).
- +0 new declarations
- −0 removed declarations
No declaration differences.
No changes to strong technical debt.
No changes to weak technical debt.
Current commit 5bba9d8a3a
Reference commit e90415aad1
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.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).
|
!bench |
|
Benchmark results for 65dd51a against 2051676 are in. No significant results found. @felixpernegger
Small changes (1✅)
|
|
!bench |
|
Benchmark results for 65dd51a against 2051676 are in. (These commits have already been benchmarked in a previous command.) No significant results found. @grunweg
Small changes (1✅)
|
|
Hm, I'm not sure what to make of the instruction increases. They are not large, but so is the benefit of this PR. |
The way I see it, we definitely wouldn't accept a PR improving instruction increases by adding redundant hypothesis (especially when it is so little). So decreasing these imports is kind of "one and done" thing while the underlying reasons of the instruction increases (probably typeclass inference?) can always be dealt with at a later point. I can investigate the increase though, probably from Mathlib/Tactic/PNatToNat.lean since this is the only removal which is not at last position. |
|
!bench |
|
Benchmark results for 1e1cad5 against e90415a are in. No significant results found. @felixpernegger
Small changes (1✅)
|
|
If you'd like to grab the three |
|
(I'm not sure if the |
Thanks; :) (sorry I overlooked your message in the other PR) |
Until recently, the |
|
-awaiting-author |
|
Thanks! I'll delegate in case there's a CI issue. |
|
bors d+ |
|
✌️ felixpernegger can now approve this pull request until 2026-08-22 16:47 UTC (in 2 weeks). To approve and merge, reply with
|
Removes `import all` whenever possible. I also tried to "downgrade" by changing to `import` from `import all`, but that never made a difference. Excludes MathlibTest. For a related PR, see #41222. Co-authored-by: Batixx <[email protected]>
|
Pull request successfully merged into master. Build succeeded: |
import allimport all
Removes `import all` whenever possible. I also tried to "downgrade" by changing to `import` from `import all`, but that never made a difference. Excludes MathlibTest. For a related PR, see leanprover-community#41222. Co-authored-by: Batixx <[email protected]>
Removes
import allwhenever possible. I also tried to "downgrade" by changing toimportfromimport all, but that never made a difference. Excludes MathlibTest.For a related PR, see #41222.