chore: unexpose public sections with no defs#41564
Conversation
PR summary 676f0a2078Import changes for modified filesNo significant changes to the import graph Import changes for all files
|
| Current number | Change | Type (weak) |
|---|---|---|
| 4860 | -147 | exposed public sections |
Current commit 676f0a2078
Reference commit a33a5ccd63
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).
|
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. |
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).