Repository navigation
Conversation
PR summary b6b9a45c85Import changes exceeding 2%
|
| File | Base Count | Head Count | Change |
|---|---|---|---|
| Mathlib.Tactic.Linter.GlobalAttributeIn | 10 | 93 | +83 (+830.00%) |
| Mathlib.Init | 93 | 92 | -1 (-1.08%) |
Import changes for all files
| Files | Import difference |
|---|---|
| ../mathlib-ci/scripts/pr_summary/import_trans_difference.sh all | |
| There are 8552 files with changed transitive imports taking up over 373307 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)
- Dummy
- bar
- dummyInst
- foo
- getGlobalAttributesIn?
- getLinterGlobalAttributeIn
- globalAttributeIn
------- instance : Inhabited Int
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 -- stale; merge master and push to refresh)
✅ Lean-aware diff — post-build, computed from the Lean environment (commit
2355a9e).
- +0 new declarations
- −1 removed declarations
-Mathlib.Linter.linter.globalAttributeInNo changes to strong technical debt.
No changes to weak technical debt.
Current commit b6b9a45c85
Reference commit 17e9f587d8
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).
note: file MathlibTest/Linter/GlobalAttributeIn.lean was removed.
Please create a follow-up pull request adding a module deprecation. Thanks!
|
Good catch, thanks for doing this! I see a few things in the test file that core's linter could pick up; I'll follow up with core separately. I think removing it here is fine. I have one optional wording tweak, otherwise this LGTM, thanks! |
|
✌️ JovanGerb can now approve this pull request until 2026-10-19 09:57 UTC (in 2 weeks). To approve and merge, reply with
|
Co-authored-by: Michael Rothgang <[email protected]>
|
bors r+ |
The globalAttributeIn linter was upstreamed to Lean core in leanprover/lean4#13223, so this PR removes it from Mathlib, to remove the duplication.
|
Pull request successfully merged into master. Build succeeded: |
globalAttributeInglobalAttributeIn
Carry this PR's meta qualifiers into master's public/private import grouping (#44512), and drop the GlobalAttributeIn import that #44499 removed from Mathlib.Init. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The globalAttributeIn linter was upstreamed to Lean core in leanprover/lean4#13223, so this PR removes it from Mathlib, to remove the duplication.
I also removed the test file in this PR, since the linter is now core's responsibility. Is that fine or is it better to keep the test file?