Repository navigation
chore: unexpose public sections with no defs - #41564
felixpernegger wants to merge 5 commits into
Conversation
PR summary a17b215f84Import changes for modified filesNo significant changes to the import graph Import changes for all files
|
| Current number | Change | Type (weak) |
|---|---|---|
| 5138 | -20 | exposed public sections |
Current commit a17b215f84
Reference commit 02a839bc62
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).
|
I don't think there's consensus on whether we should make things |
I thought its discouraged since its tracked as weak tech debt? |
For files with definitions, I agree it's author's choice. I'm not so convinced for files without definitions... |
|
To be fair, most files with So, I guess removing them is just as fair play? Maybe? |
|
I guess the larger issue at hand why we have so many exposed public sections, is because in 95% of definitions in math you want to know whats underneath. |
|
Thanks, I think this is a good change. Though it's a bit hard to verify that the PR does indeed not cause anything to be no_exposed |
|
This pull request has conflicts, please merge |
|
This pull request has conflicts, please merge |
|
This pull request has conflicts, please merge |
# Conflicts: # Mathlib/Data/Sigma/Order.lean
This PR remove
@[expose]from public sections when there are no(irredcible_)def's inside the section anyways, so there is no reason to expose the section (does not make a difference).