Skip to content

[Merged by Bors] - chore: remove @[expose] from def-free public sections - #39388

Closed
marcelolynch wants to merge 1 commit into
leanprover-community:masterfrom
marcelolynch:experiment/strip-expose-def-free-sections-20260513-1925
Closed

marcelolynch wants to merge 1 commit into
leanprover-community:masterfrom
marcelolynch:experiment/strip-expose-def-free-sections-20260513-1925

Conversation

@marcelolynch

@marcelolynch marcelolynch commented May 14, 2026 •

Copy link
Copy Markdown
Contributor

Strip @[expose] from public section headers in 136 modules where no declaration needs its body visible downstream. A new sweep in the style of #38480

Found using the linter-in-progress: #39387

Relevant Zulip thread: https://leanprover.zulipchat.com/#narrow/channel/287929-mathlib4/topic/Removing.20unnecessary.20.60.40.5Bexpose.5D.60/with/595180230

@github-actions

github-actions Bot commented May 14, 2026 •

Copy link
Copy Markdown

✅ PR Title Formatted Correctly

The title of this PR has been updated to match our commit style conventions.
Thank you!

@github-actions

github-actions Bot commented May 14, 2026 •

Copy link
Copy Markdown

PR summary 5cf3e68342

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

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 5cf3e68).

  • +0 new declarations
  • −0 removed declarations

No declaration differences.


No changes to strong technical debt.

Decrease in weak tech debt: (relative, absolute) = (136.00, 0.03)
Current number Change Type (weak)
4887 -136 exposed public sections

Current commit 5cf3e68342
Reference commit b595917dfb

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 relative value is the weighted sum of the differences with weight given by the inverse of the current value of the statistic.
  • The absolute value is the relative value divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).

@marcelolynch marcelolynch changed the title chode: remove @[expose] from def-free public sections chore: remove @[expose] from def-free public sections May 14, 2026
@eric-wieser

Copy link
Copy Markdown
Member

I'm a little hesitant, see #39387 (comment).

@marcelolynch

Copy link
Copy Markdown
Contributor Author

@eric-wieser But what about #38480? We're already doing this

@urkud

urkud commented May 16, 2026

Copy link
Copy Markdown
Member

Unfortunately, #38480 didn't come with a proper commit message. @grunweg and @kim-em , did that PR un-@[expose] any definition, or did it remove @[expose] in case there were no definitions inside?

I think that PRs removing @[expose] from public section should come with the list of definitions that are no longer exposed (obtained via metaprogramming).

@grunweg

grunweg commented May 16, 2026

Copy link
Copy Markdown
Contributor

The commit message for #38480 is contained in #38477: it only removed @[expose] on files without any definitions.

Agreed to mentioning the list of definitions that are no longer exposed in any such PR.

@mathlib-merge-conflicts mathlib-merge-conflicts Bot added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label May 30, 2026
@mathlib-merge-conflicts

Copy link
Copy Markdown

This pull request has conflicts, please merge master and resolve them.

Strip `@[expose]` from 136 public section headers where no declaration
needs its body visible downstream. Regenerated on current master with
the per-section linter from leanprover-community#39387: the linter now classifies each
declaration at the command that creates it and gives one verdict per
section, which also catches sections in files whose defs sit outside
the section, and sections that contain scoped or local instances.

Each edited module builds on the master toolchain. Files whose content
differs between the linting tree and master were skipped.

Co-Authored-By: Claude Fable 5 <[email protected]>
@marcelolynch
marcelolynch force-pushed the experiment/strip-expose-def-free-sections-20260513-1925 branch from 8f7a648 to 5cf3e68 Compare July 28, 2026 17:32
@github-actions github-actions Bot added tech debt Fixes cross-cutting technical debt, see the "technical debt counters" stream on zulip and removed merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) labels Jul 28, 2026
@marcelolynch

Copy link
Copy Markdown
Contributor Author

@urkud After a new sweep, I just computed the delta by comparing the set of constants with Environment.hasExposedBody, seen from a downstream module that publicly imports it, before and after the edit.

The sets are identical: 563 constants have exposed bodies before my change and the same 563 after. So the list of definitions that lose exposure is empty. The definitons in question are the auto-generated structure machinery and instances (whose exposure does not come from the section attribute).

This matches the design of the linter (#39387): it fires only on sections where no declaration's body exposure has an impact downstream.

For completion, here is the full list

563 definitions with exposed bodies in the 84 affected modules that have any (identical before and after this PR; the other 52 modules expose nothing)
  • Mathlib.Algebra.Category.ModuleCat.Monoidal.Adjunction
    • ModuleCat.instLaxMonoidalRestrictScalars
    • ModuleCat.instMonoidalExtendScalars
  • Mathlib.Algebra.EuclideanDomain.Basic
    • RingEquiv.euclideanDomain
    • _private.Mathlib.Algebra.EuclideanDomain.Basic.0.EuclideanDomain.P
    • _private.Mathlib.Algebra.EuclideanDomain.Basic.0.EuclideanDomain.P.match_1
  • Mathlib.Algebra.Field.Basic
    • DivisionRing.ofIsUnitOrEqZero
    • Field.ofIsUnitOrEqZero
    • Field.toGrindField
    • Function.Injective.divisionRing
    • Function.Injective.divisionSemiring
    • Function.Injective.field
    • Function.Injective.semifield
    • Lex.instDivisionRing
    • Lex.instDivisionRing._aux_13
    • Lex.instDivisionRing._aux_9
    • Lex.instDivisionSemiring
    • Lex.instDivisionSemiring._aux_11
    • Lex.instDivisionSemiring._aux_8
    • Lex.instField
    • Lex.instRatCast
    • Lex.instRatCast._aux_1
    • Lex.instSemifield
    • OrderDual.instDivisionRing
    • OrderDual.instDivisionRing._aux_13
    • OrderDual.instDivisionRing._aux_9
    • OrderDual.instDivisionSemiring
    • OrderDual.instDivisionSemiring._aux_9
    • OrderDual.instField
    • OrderDual.instNNRatCast
    • OrderDual.instNNRatCast._aux_1
    • OrderDual.instRatCast
    • OrderDual.instRatCast._aux_1
    • OrderDual.instSemifield
  • Mathlib.Algebra.Field.MinimalAxioms
    • Field.ofMinimalAxioms
  • Mathlib.Algebra.Field.Opposite
    • AddOpposite.instDivisionRing
    • AddOpposite.instDivisionSemiring
    • AddOpposite.instField
    • AddOpposite.instNNRatCast
    • AddOpposite.instRatCast
    • AddOpposite.instSemifield
    • MulOpposite.instDivisionRing
    • MulOpposite.instDivisionSemiring
    • MulOpposite.instField
    • MulOpposite.instNNRatCast
    • MulOpposite.instRatCast
    • MulOpposite.instSemifield
  • Mathlib.Algebra.Field.ULift
    • ULift.divisionRing
    • ULift.divisionSemiring
    • ULift.field
    • ULift.instNNRatCast
    • ULift.instRatCast
    • ULift.semifield
  • Mathlib.Algebra.Field.ZMod
    • ZMod.instField
  • Mathlib.Algebra.Group.Action.Option
    • Option.VAdd
    • Option.instMulAction
    • Option.instSMul_mathlib
  • Mathlib.Algebra.Group.Action.Sigma
    • Sigma.VAdd
    • Sigma.instAddAction
    • Sigma.instMulAction
    • Sigma.instSMul_mathlib
  • Mathlib.Algebra.Group.Action.Sum
    • Sum.instAddAction
    • Sum.instMulAction
    • Sum.instSMul
    • Sum.instVAdd
  • Mathlib.Algebra.Group.Action.Units
    • AddUnits.addAction'
    • AddUnits.instAddAction
    • AddUnits.instVAdd
    • Units.instMulAction
    • Units.instSMul
    • Units.mulAction'
    • Units.mulDistribMulActionRight
  • Mathlib.Algebra.Group.Subgroup.Actions
    • AddSubgroup.instAddAction
    • Subgroup.instDistribMulActionSubtypeMem
    • Subgroup.instMulAction
    • Subgroup.instMulDistribMulActionSubtypeMem
  • Mathlib.Algebra.Group.Submonoid.MulAction
    • AddSubmonoid.addAction
    • AddSubmonoid.instAddActionSubtypeMem
    • AddSubmonoid.instVAddSubtypeMem
    • AddSubmonoid.vadd
    • Submonoid.instMulActionSubtypeMem
    • Submonoid.instSMulSubtypeMem
    • Submonoid.mulAction
    • Submonoid.smul
  • Mathlib.Algebra.Homology.ModelCategory.Injective
    • CochainComplex.Plus.modelCategoryQuillen.instCategoryWithCofibrations
    • CochainComplex.Plus.modelCategoryQuillen.instCategoryWithFibrations
    • CochainComplex.Plus.modelCategoryQuillen.instCategoryWithWeakEquivalences
    • CochainComplex.Plus.modelCategoryQuillen.instModelCategory
  • Mathlib.Algebra.Module.Projective
    • Module.Projective.casesOn
    • Module.Projective.mk._flat_ctor
    • Module.Projective.recOn
  • Mathlib.Algebra.Module.Submodule.Basic
    • Submodule.instVAddSubtypeMem
    • Subspace
  • Mathlib.Algebra.MonoidAlgebra.PointwiseSMul
    • AddMonoidAlgebra.instVAddForallOfIsLeftCancelVAddOfVAddWithZero
    • MonoidAlgebra.instSMulForallOfIsLeftCancelSMulOfSMulWithZero
  • Mathlib.Algebra.NonAssoc.LieAdmissible.Defs
    • Algebra.instLieAdmissibleAlgebra
    • LeftPreLieAlgebra.instLieAdmissibleAlgebra
    • LeftPreLieRing.instLieAdmissibleRing
    • LieAdmissibleAlgebra.casesOn
    • LieAdmissibleAlgebra.ctorIdx
    • LieAdmissibleAlgebra.instLieAlgebra
    • LieAdmissibleAlgebra.mk._flat_ctor
    • LieAdmissibleAlgebra.mk.noConfusion
    • LieAdmissibleAlgebra.noConfusion
    • LieAdmissibleAlgebra.noConfusionType
    • LieAdmissibleAlgebra.recOn
    • LieAdmissibleAlgebra.toModule
    • LieAdmissibleRing.casesOn
    • LieAdmissibleRing.ctorIdx
    • LieAdmissibleRing.instLieRing
    • LieAdmissibleRing.mk._flat_ctor
    • LieAdmissibleRing.mk.noConfusion
    • LieAdmissibleRing.noConfusion
    • LieAdmissibleRing.noConfusionType
    • LieAdmissibleRing.recOn
    • LieAdmissibleRing.sub._inherited_default
    • LieAdmissibleRing.toNonUnitalNonAssocRing
    • RightPreLieAlgebra.instLieAdmissibleAlgebra
    • RightPreLieRing.instLieAdmissibleRing
    • Ring.instLieAdmissibleRing
  • Mathlib.Algebra.Notation.Prod
    • Prod.instAdd
    • Prod.instDiv
    • Prod.instInv
    • Prod.instMul
    • Prod.instNeg
    • Prod.instOne
    • Prod.instPow
    • Prod.instSMul
    • Prod.instStar
    • Prod.instSub
    • Prod.instVAdd
    • Prod.instZero
  • Mathlib.Algebra.Order.Floor.Div
    • CeilDiv.casesOn
    • CeilDiv.ceilDiv
    • CeilDiv.ctorIdx
    • CeilDiv.mk._flat_ctor
    • CeilDiv.mk.noConfusion
    • CeilDiv.noConfusion
    • CeilDiv.noConfusionType
    • CeilDiv.recOn
    • Finsupp.instCeilDiv
    • Finsupp.instFloorDiv
    • FloorDiv.casesOn
    • FloorDiv.ctorIdx
    • FloorDiv.floorDiv
    • FloorDiv.mk._flat_ctor
    • FloorDiv.mk.noConfusion
    • FloorDiv.noConfusion
    • FloorDiv.noConfusionType
    • FloorDiv.recOn
    • Nat.instCeilDiv
    • Nat.instFloorDiv
    • Pi.instCeilDiv
    • Pi.instFloorDiv
  • Mathlib.Algebra.Order.Group.Action.End
    • RelEmbedding.applyMulAction
    • RelHom.applyMulAction
    • RelIso.applyMulAction
  • Mathlib.Algebra.Order.Group.End
    • OrderHom.instMonoid
    • OrderHom.instMul
    • OrderHom.instOne
    • RelEmbedding.instMonoid
    • RelHom.instMonoid
    • RelIso.instGroup
  • Mathlib.Algebra.Order.Group.PosPart
    • instLeOnePart
    • instNegPart
    • instOneLePart
    • instPosPart
  • Mathlib.Algebra.Order.Kleene
    • Function.Injective.idemCommSemiring
    • Function.Injective.idemSemiring
    • Function.Injective.kleeneAlgebra
    • IdemCommSemiring.casesOn
    • IdemCommSemiring.ctorIdx
    • IdemCommSemiring.lt._inherited_default
    • IdemCommSemiring.mk._flat_ctor
    • IdemCommSemiring.mk.noConfusion
    • IdemCommSemiring.natCast._inherited_default
    • IdemCommSemiring.noConfusion
    • IdemCommSemiring.noConfusionType
    • IdemCommSemiring.npow._inherited_default
    • IdemCommSemiring.recOn
    • IdemCommSemiring.toCommSemiring
    • IdemCommSemiring.toIdemSemiring
    • IdemCommSemiring.toOrderBot
    • IdemCommSemiring.toSemilatticeSup
    • IdemSemiring.add_eq_sup._autoParam
    • IdemSemiring.casesOn
    • IdemSemiring.ctorIdx
    • IdemSemiring.lt._inherited_default
    • IdemSemiring.mk._flat_ctor
    • IdemSemiring.mk.noConfusion
    • IdemSemiring.natCast._inherited_default
    • IdemSemiring.noConfusion
    • IdemSemiring.noConfusionType
    • IdemSemiring.npow._inherited_default
    • IdemSemiring.ofSemiring
    • IdemSemiring.recOn
    • IdemSemiring.toOrderBot
    • IdemSemiring.toSemilatticeSup
    • IdemSemiring.toSemiring
    • KStar.casesOn
    • KStar.ctorIdx
    • KStar.kstar
    • KStar.mk._flat_ctor
    • KStar.mk.noConfusion
    • KStar.noConfusion
    • KStar.noConfusionType
    • KStar.recOn
    • KleeneAlgebra.casesOn
    • KleeneAlgebra.ctorIdx
    • KleeneAlgebra.lt._inherited_default
    • KleeneAlgebra.mk._flat_ctor
    • KleeneAlgebra.mk.noConfusion
    • KleeneAlgebra.natCast._inherited_default
    • KleeneAlgebra.noConfusion
    • KleeneAlgebra.noConfusionType
    • KleeneAlgebra.npow._inherited_default
    • KleeneAlgebra.recOn
    • KleeneAlgebra.toIdemSemiring
    • KleeneAlgebra.toKStar
    • Pi.instIdemCommSemiringForall
    • Pi.instIdemSemiring
    • Pi.instKleeneAlgebraForall
    • Prod.instIdemCommSemiring
    • Prod.instIdemSemiring
    • Prod.instKleeneAlgebra
  • Mathlib.Algebra.Ring.Commute
    • Ring.instBracket
  • Mathlib.Algebra.Star.TransferInstance
    • Equiv.involutiveStar
    • Equiv.star
    • Equiv.starAddMonoid
    • Equiv.starMul
    • Equiv.starRing
  • Mathlib.AlgebraicGeometry.Birational.Dominant
    • AlgebraicGeometry.Scheme.RationalMap.IsDominant.casesOn
    • AlgebraicGeometry.Scheme.RationalMap.IsDominant.mk._flat_ctor
    • AlgebraicGeometry.Scheme.RationalMap.IsDominant.recOn
  • Mathlib.AlgebraicTopology.ModelCategory.Over
    • HomotopicalAlgebra.ModelCategory.over
    • HomotopicalAlgebra.instCategoryWithCofibrationsOver
    • HomotopicalAlgebra.instCategoryWithFibrationsOver
    • HomotopicalAlgebra.instCategoryWithWeakEquivalencesOver
  • Mathlib.Analysis.Normed.Algebra.TrivSqZeroExt
    • TrivSqZeroExt.instL1NormedAddCommGroup
    • TrivSqZeroExt.instL1NormedAlgebra
    • TrivSqZeroExt.instL1NormedCommRing
    • TrivSqZeroExt.instL1NormedRing
    • TrivSqZeroExt.instL1NormedSpace
    • TrivSqZeroExt.instL1SeminormedAddCommGroup
    • TrivSqZeroExt.instL1SeminormedCommRing
    • TrivSqZeroExt.instL1SeminormedRing
    • TrivSqZeroExt.instL1SeminormedRing.match_1
  • Mathlib.Analysis.Normed.Group.Constructions
    • Additive.normedAddCommGroup
    • Additive.normedAddGroup
    • Additive.seminormedAddGroup
    • Additive.seminormedCommGroup
    • Additive.toNNNorm
    • Additive.toNorm
    • MulOpposite.instNormedAddCommGroup
    • MulOpposite.instNormedAddGroup
    • MulOpposite.instSeminormedAddCommGroup
    • MulOpposite.instSeminormedAddGroup
    • Multiplicative.normedCommGroup
    • Multiplicative.normedGroup
    • Multiplicative.seminormedAddCommGroup
    • Multiplicative.seminormedGroup
    • Multiplicative.toNNNorm
    • Multiplicative.toNorm
    • OrderDual.normedAddCommGroup
    • OrderDual.normedAddGroup
    • OrderDual.normedCommGroup
    • OrderDual.normedGroup
    • OrderDual.seminormedAddCommGroup
    • OrderDual.seminormedAddGroup
    • OrderDual.seminormedCommGroup
    • OrderDual.seminormedGroup
    • OrderDual.toNNNorm
    • OrderDual.toNorm
    • PUnit.normedAddCommGroup
    • Pi.normedAddCommGroup
    • Pi.normedAddGroup
    • Pi.normedCommGroup
    • Pi.normedGroup
    • Pi.seminormedAddCommGroup
    • Pi.seminormedAddGroup
    • Pi.seminormedCommGroup
    • Pi.seminormedGroup
    • Prod.normedAddCommGroup
    • Prod.normedAddGroup
    • Prod.normedCommGroup
    • Prod.normedGroup
    • Prod.seminormedAddCommGroup
    • Prod.seminormedAddGroup
    • Prod.seminormedCommGroup
    • Prod.seminormedGroup
    • Prod.toNorm
    • ULift.nnnorm
    • ULift.norm
    • ULift.normedAddCommGroup
    • ULift.normedAddGroup
    • ULift.normedCommGroup
    • ULift.normedGroup
    • ULift.seminormedAddCommGroup
    • ULift.seminormedAddGroup
    • ULift.seminormedCommGroup
    • ULift.seminormedGroup
  • Mathlib.Analysis.Normed.Module.MStructure
    • IsLprojection.Subtype.BooleanAlgebra
    • IsLprojection.Subtype.boundedOrder
    • IsLprojection.Subtype.distribLattice
    • IsLprojection.Subtype.inf
    • IsLprojection.Subtype.instCompl
    • IsLprojection.Subtype.one
    • IsLprojection.Subtype.partialOrder
    • IsLprojection.Subtype.sdiff
    • IsLprojection.Subtype.sup
    • IsLprojection.Subtype.zero
    • IsLprojection.casesOn
    • IsLprojection.instLatticeSubtypeOfFaithfulSMul
    • IsLprojection.mk._flat_ctor
    • IsLprojection.recOn
    • IsMprojection.casesOn
    • IsMprojection.mk._flat_ctor
    • IsMprojection.recOn
  • Mathlib.Analysis.Polynomial.Norm
    • Polynomial.supNorm
  • Mathlib.CategoryTheory.Comma.CatCommSq
    • CategoryTheory.Arrow.catCommSq
  • Mathlib.CategoryTheory.MarkovCategory.Positive
    • CategoryTheory.PositiveCategory.casesOn
    • CategoryTheory.PositiveCategory.ctorIdx
    • CategoryTheory.PositiveCategory.mk._flat_ctor
    • CategoryTheory.PositiveCategory.mk.noConfusion
    • CategoryTheory.PositiveCategory.noConfusion
    • CategoryTheory.PositiveCategory.noConfusionType
    • CategoryTheory.PositiveCategory.recOn
    • CategoryTheory.PositiveCategory.toMarkovCategory
  • Mathlib.CategoryTheory.Monoidal.Cartesian.Normal
    • CategoryTheory.IsAddMonHom.Normal.casesOn
    • CategoryTheory.IsAddMonHom.Normal.isAddMonHom._autoParam
    • CategoryTheory.IsAddMonHom.Normal.mk._flat_ctor
    • CategoryTheory.IsAddMonHom.Normal.mono._autoParam
    • CategoryTheory.IsAddMonHom.Normal.recOn
    • CategoryTheory.IsMonHom.Normal.casesOn
    • CategoryTheory.IsMonHom.Normal.isMonHom._autoParam
    • CategoryTheory.IsMonHom.Normal.mk._flat_ctor
    • CategoryTheory.IsMonHom.Normal.mono._autoParam
    • CategoryTheory.IsMonHom.Normal.recOn
  • Mathlib.CategoryTheory.Monoidal.Functor.Types
    • CategoryTheory.instLaxMonoidalOfTypeFunctor
  • Mathlib.CategoryTheory.Monoidal.Types.Coyoneda
    • CategoryTheory.instLaxMonoidalObjOppositeFunctorTypeCoyonedaOpTensorUnit
  • Mathlib.CategoryTheory.Preadditive.Comma
    • CategoryTheory.CommaMorphism.instAddHomComma
    • CategoryTheory.CommaMorphism.instNegHomComma
    • CategoryTheory.CommaMorphism.instSubHomComma
    • CategoryTheory.CommaMorphism.instZeroHomComma
    • CategoryTheory.instAddCommGroupHomComma
    • CategoryTheory.instPreadditiveArrow
    • CategoryTheory.instPreadditiveArrow._aux_1
    • CategoryTheory.instPreadditiveComma
  • Mathlib.CategoryTheory.Preadditive.Injective.InjectiveObject
    • CategoryTheory.InjectiveObject
    • CategoryTheory.InjectiveObject.ι
  • Mathlib.CategoryTheory.Sites.Precoverage.Generates
    • CategoryTheory.Precoverage.Generates.casesOn
    • CategoryTheory.Precoverage.Generates.mk._flat_ctor
    • CategoryTheory.Precoverage.Generates.recOn
  • Mathlib.Combinatorics.Additive.FreimanHom
    • IsAddFreimanHom.casesOn
    • IsAddFreimanHom.mk._flat_ctor
    • IsAddFreimanHom.recOn
    • IsAddFreimanIso.casesOn
    • IsAddFreimanIso.mk._flat_ctor
    • IsAddFreimanIso.recOn
    • IsMulFreimanHom.casesOn
    • IsMulFreimanHom.mk._flat_ctor
    • IsMulFreimanHom.recOn
    • IsMulFreimanIso.casesOn
    • IsMulFreimanIso.mk._flat_ctor
    • IsMulFreimanIso.recOn
  • Mathlib.Data.ENNReal.Action
    • ENNReal.instAlgebraNNReal
    • ENNReal.instDistribMulActionNNReal
    • ENNReal.instModuleNNReal
    • ENNReal.instMulActionNNReal
    • ENNReal.instSMulNNRealOfMulAction
  • Mathlib.Data.Finsupp.Pointwise
    • Finsupp.instMul
    • Finsupp.instMulZeroClass
    • Finsupp.instNonUnitalCommRing
    • Finsupp.instNonUnitalCommSemiring
    • Finsupp.instNonUnitalNonAssocRing
    • Finsupp.instNonUnitalNonAssocSemiring
    • Finsupp.instNonUnitalRing
    • Finsupp.instNonUnitalSemiring
    • Finsupp.instSemigroupWithZero
    • Finsupp.pointwiseModule
    • Finsupp.pointwiseScalar
    • Finsupp.pointwiseScalarSemiring
  • Mathlib.Data.FunLike.Basic
    • DFunLike.casesOn
    • DFunLike.coe
    • DFunLike.ctorIdx
    • DFunLike.mk._flat_ctor
    • DFunLike.mk.noConfusion
    • DFunLike.noConfusion
    • DFunLike.noConfusionType
    • DFunLike.recOn
    • DFunLike.toCoeFun
    • FunLike
  • Mathlib.Data.FunLike.Embedding
    • EmbeddingLike.casesOn
    • EmbeddingLike.mk._flat_ctor
    • EmbeddingLike.recOn
  • Mathlib.Data.FunLike.Equiv
    • EquivLike.casesOn
    • EquivLike.coe
    • EquivLike.ctorIdx
    • EquivLike.inv
    • EquivLike.mk._flat_ctor
    • EquivLike.mk.noConfusion
    • EquivLike.noConfusion
    • EquivLike.noConfusionType
    • EquivLike.recOn
    • EquivLike.toFunLike
  • Mathlib.Data.FunLike.Ring
    • FunLike.monoidWithZero
    • FunLike.ring
    • FunLike.semiring
  • Mathlib.Data.Int.Cast.Pi
    • Pi.instIntCast
  • Mathlib.Data.LawfulXor.Basic
    • LawfulXor.casesOn
    • LawfulXor.mk._flat_ctor
    • LawfulXor.recOn
  • Mathlib.Data.List.Monad
    • List.instAlternativeMonad_mathlib
    • List.instMonad
  • Mathlib.Data.Prod.Lex
    • Prod.Lex.boundedOrder
    • Prod.Lex.instLE
    • Prod.Lex.instLT
    • Prod.Lex.instLinearOrder
    • Prod.Lex.instOrdLexProd
    • Prod.Lex.instPartialOrder
    • Prod.Lex.instPreorder
    • Prod.Lex.instWellFoundedRelationLexOfWellFoundedLT
    • Prod.Lex.orderBot
    • Prod.Lex.orderTop
  • Mathlib.Data.ZMod.IntUnitsPower
    • Int.instUnitsPow
    • instModuleZModOfNatNatAdditiveUnitsInt
    • instSMulZModOfNatNatAdditiveUnitsInt
  • Mathlib.GroupTheory.GroupAction.Embedding
    • Function.Embedding.instAddAction
    • Function.Embedding.instMulAction
    • Function.Embedding.smul
    • Function.Embedding.vadd
  • Mathlib.GroupTheory.IsPerfect
    • Group.IsPerfect.casesOn
    • Group.IsPerfect.mk._flat_ctor
    • Group.IsPerfect.recOn
  • Mathlib.GroupTheory.ResiduallyFinite
    • AddGroup.ResiduallyFinite.casesOn
    • AddGroup.ResiduallyFinite.mk._flat_ctor
    • AddGroup.ResiduallyFinite.recOn
    • Group.ResiduallyFinite.casesOn
    • Group.ResiduallyFinite.mk._flat_ctor
    • Group.ResiduallyFinite.recOn
  • Mathlib.LinearAlgebra.CliffordAlgebra.Star
    • CliffordAlgebra.instStarRing
  • Mathlib.LinearAlgebra.InvariantBasisNumber
    • InvariantBasisNumber.casesOn
    • InvariantBasisNumber.mk._flat_ctor
    • InvariantBasisNumber.recOn
    • RankCondition.casesOn
    • RankCondition.mk._flat_ctor
    • RankCondition.recOn
    • StrongRankCondition.casesOn
    • StrongRankCondition.mk._flat_ctor
    • StrongRankCondition.recOn
  • Mathlib.LinearAlgebra.Matrix.HadamardMatrix
    • Matrix.IsHadamard.casesOn
    • Matrix.IsHadamard.mk._flat_ctor
    • Matrix.IsHadamard.recOn
  • Mathlib.LinearAlgebra.Projectivization.PSL.PSL2
    • PSL2.Iwasawa
  • Mathlib.LinearAlgebra.Transvection.Generation
    • LinearEquiv.IsExceptional
  • Mathlib.MeasureTheory.Function.L2Space
    • MeasureTheory.L2.innerProductSpace
    • MeasureTheory.L2.inner_indicatorConstLp_indicatorConstLp._auto_1
    • MeasureTheory.L2.inner_indicatorConstLp_indicatorConstLp._auto_3
    • MeasureTheory.L2.inner_indicatorConstLp_one_indicatorConstLp_one._auto_1
    • MeasureTheory.L2.inner_indicatorConstLp_one_indicatorConstLp_one._auto_3
    • MeasureTheory.L2.instInnerSubtypeAEEqFunMemAddSubgroupLpOfNatENNReal
    • MeasureTheory.L2.real_inner_indicatorConstLp_one_indicatorConstLp_one._auto_1
    • MeasureTheory.L2.real_inner_indicatorConstLp_one_indicatorConstLp_one._auto_3
    • MeasureTheory.posSemidef_matrix_measure_inter._auto_1
  • Mathlib.MeasureTheory.Integral.IntegralEqImproper
    • MeasureTheory.AECover.casesOn
    • MeasureTheory.AECover.mk._flat_ctor
    • MeasureTheory.AECover.recOn
  • Mathlib.MeasureTheory.Measure.Sub
    • MeasureTheory.Measure.instSub
  • Mathlib.MeasureTheory.Measure.Typeclasses.ZeroOne
    • MeasureTheory.IsZeroOneMeasure.casesOn
    • MeasureTheory.IsZeroOneMeasure.mk._flat_ctor
    • MeasureTheory.IsZeroOneMeasure.recOn
  • Mathlib.Order.CompleteLattice.PiLex
    • Pi.Colex.completeLattice
    • Pi.Colex.instCompleteLinearOrderColexForall
    • Pi.Lex.completeLattice
    • Pi.Lex.instCompleteLinearOrderLexForall
  • Mathlib.Order.Filter.FilterProduct
    • Filter.Germ.instDivisionRing
    • Filter.Germ.instDivisionSemiring
    • Filter.Germ.instField
    • Filter.Germ.instGroupWithZero
    • Filter.Germ.instLinearOrder
    • Filter.Germ.instSemifield
  • Mathlib.Order.Northcott
    • Northcott.casesOn
    • Northcott.mk._flat_ctor
    • Northcott.recOn
  • Mathlib.Order.Quotient
    • Quotient.instLE_mathlib
    • Quotient.instLinearOrder
    • Quotient.instPreorder
  • Mathlib.Probability.BrownianMotion.Basic
    • ProbabilityTheory.IsBrownianReal._auto_1
    • ProbabilityTheory.IsBrownianReal.casesOn
    • ProbabilityTheory.IsBrownianReal.mk._flat_ctor
    • ProbabilityTheory.IsBrownianReal.recOn
    • ProbabilityTheory.IsPreBrownianReal._auto_1
    • ProbabilityTheory.IsPreBrownianReal.casesOn
    • ProbabilityTheory.IsPreBrownianReal.mk'._flat_ctor
    • ProbabilityTheory.IsPreBrownianReal.recOn
  • Mathlib.Probability.Kernel.Deterministic
    • ProbabilityTheory.IsDeterministic.casesOn
    • ProbabilityTheory.IsDeterministic.mk._flat_ctor
    • ProbabilityTheory.IsDeterministic.recOn
  • Mathlib.RingTheory.Coalgebra.Convolution
    • LinearMap.convAlgebra
    • LinearMap.convCommRing
    • LinearMap.convCommSemiring
    • LinearMap.convMul
    • LinearMap.convNonUnitalNonAssocRing
    • LinearMap.convNonUnitalNonAssocSemiring
    • LinearMap.convNonUnitalRing
    • LinearMap.convNonUnitalSemiring
    • LinearMap.convOne
    • LinearMap.convRing
    • LinearMap.convSemiring
  • Mathlib.RingTheory.HopfAlgebra.TensorProduct
    • TensorProduct.instHopfAlgebra
  • Mathlib.RingTheory.Ideal.GoingDown
    • Algebra.HasGoingDown.casesOn
    • Algebra.HasGoingDown.mk._flat_ctor
    • Algebra.HasGoingDown.recOn
  • Mathlib.RingTheory.Ideal.HasGoingUp
    • Algebra.HasGoingUp.casesOn
    • Algebra.HasGoingUp.mk._flat_ctor
    • Algebra.HasGoingUp.recOn
  • Mathlib.RingTheory.Ideal.Maximal
    • Ideal.IsMaximal.casesOn
    • Ideal.IsMaximal.mk._flat_ctor
    • Ideal.IsMaximal.recOn
  • Mathlib.RingTheory.LocalRing.Pullback
    • AlgHom.pullback
    • AlgHom.pullbackFst
    • AlgHom.pullbackSnd
    • RingHom.pullback
    • RingHom.pullbackFst
    • RingHom.pullbackSnd
  • Mathlib.RingTheory.Noetherian.Defs
    • IsNoetherian.casesOn
    • IsNoetherian.mk._flat_ctor
    • IsNoetherian.recOn
    • IsNoetherianRing
  • Mathlib.RingTheory.Valuation.Extension
    • Valuation.HasExtension.casesOn
    • Valuation.HasExtension.instAlgebraInteger
    • Valuation.HasExtension.instAlgebra_valuationSubring
    • Valuation.HasExtension.instAlgebra_valuationSubring._aux_1
    • Valuation.HasExtension.instAlgebra_valuationSubring._aux_3
    • Valuation.HasExtension.mk._flat_ctor
    • Valuation.HasExtension.recOn
  • Mathlib.SetTheory.Cardinal.Regular
    • Cardinal.IsInaccessible.casesOn
    • Cardinal.IsInaccessible.mk._flat_ctor
    • Cardinal.IsInaccessible.recOn
    • Cardinal.IsRegular.casesOn
    • Cardinal.IsRegular.mk._flat_ctor
    • Cardinal.IsRegular.recOn
    • Cardinal.IsSingular.casesOn
    • Cardinal.IsSingular.mk._flat_ctor
    • Cardinal.IsSingular.recOn
  • Mathlib.Topology.Algebra.UniformMulAction
    • UniformContinuousConstSMul.casesOn
    • UniformContinuousConstSMul.mk._flat_ctor
    • UniformContinuousConstSMul.recOn
    • UniformContinuousConstVAdd.casesOn
    • UniformContinuousConstVAdd.mk._flat_ctor
    • UniformContinuousConstVAdd.recOn
    • UniformSpace.Completion.instAddActionOfUniformContinuousConstVAdd
    • UniformSpace.Completion.instMulActionOfUniformContinuousConstSMul
    • UniformSpace.Completion.instSMul
    • UniformSpace.Completion.instVAdd
  • Mathlib.Topology.CWComplex.Classical.Subcomplex
    • Topology.CWComplex.Subcomplex.instCWComplex
    • Topology.RelCWComplex.Subcomplex.instRelCWComplex
  • Mathlib.Topology.EMetricSpace.Pi
    • emetricSpacePi
    • instEDistForall
    • pseudoEMetricSpacePi
  • Mathlib.Topology.MetricSpace.Pseudo.Pi
    • pseudoMetricSpacePi
  • Mathlib.Topology.UniformSpace.Ultra.Basic
    • IsUltraUniformity.casesOn
    • IsUltraUniformity.mk._flat_ctor
    • IsUltraUniformity.recOn

@jcommelin

Copy link
Copy Markdown
Member

!radar

@leanprover-radar

leanprover-radar commented Aug 11, 2026 •

Copy link
Copy Markdown

Benchmark results for 5cf3e68 against b595917 are in. No significant results found. @jcommelin

  • ✅ build//instructions: -66.6G (-0.05%)

No significant changes detected.

@jcommelin jcommelin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 🎉

bors merge

@mathlib-bors mathlib-bors Bot added the ready-to-merge This PR has been sent to bors. label Aug 12, 2026
mathlib-bors Bot pushed a commit that referenced this pull request Aug 12, 2026
Strip `@[expose]` from `public section` headers in 136 modules where no declaration needs its body visible downstream. A new sweep in the style of #38480

Found using the linter-in-progress: #39387

Relevant Zulip thread: https://leanprover.zulipchat.com/#narrow/channel/287929-mathlib4/topic/Removing.20unnecessary.20.60.40.5Bexpose.5D.60/with/595180230
@mathlib-bors mathlib-bors Bot added the bors-staging This PR is currently being built by bors on the staging branch. label Aug 12, 2026
@mathlib-bors

mathlib-bors Bot commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

@mathlib-bors mathlib-bors Bot changed the title chore: remove @[expose] from def-free public sections [Merged by Bors] - chore: remove @[expose] from def-free public sections Aug 12, 2026
@mathlib-bors mathlib-bors Bot closed this Aug 12, 2026
rosborn added a commit to rosborn/mathlib4 that referenced this pull request Aug 12, 2026
* origin/master: (417 commits)
  feat(CategoryTheory/Presentable): more basic API for κ-filtered categories (leanprover-community#41184)
  feat(Tactic/Linter/UnusedTactic): mark `isIgnoreTacticKind` and `addIgnoreTacticKind` as public (leanprover-community#41993)
  doc: sync area READMEs with the directory tree (leanprover-community#42224)
  feat(CategoryTheory/Presentable): new constructor for `IsCardinalFilteredGenerator` (leanprover-community#41183)
  feat(Data/Finset): `insert a (s.erase a) = insert a s` (leanprover-community#40775)
  feat(CategoryTheory/Limits): morphisms between filtered limits are initially level-wise (leanprover-community#41009)
  chore: fix more linter warnings encountered by `scripts/rm_set_option.py` (leanprover-community#42659)
  chore(Algebra/Module/Submodule/Pointwise): remove `@[simp]` (leanprover-community#42643)
  feat(Algebra/QuadraticAlgebra): change of generator (leanprover-community#42209)
  chore(Condensed): reduce imports (leanprover-community#42022)
  chore: remove @[expose] from def-free public sections (leanprover-community#39388)
  feat: make `TFAE.out` 1-indexed (leanprover-community#42663)
  feat(Topology/Order): convergence of suprema and infima (leanprover-community#40578)
  feat: composition of Fredholm operators (leanprover-community#41601)
  chore: remove unused open declarations (leanprover-community#42235)
  chore(Algebra/Order/GroupWithZero/Canonical): remove unnecessary typeclass assumptions (leanprover-community#42539)
  chore(Algebra/Homology): make `HomologicalComplex.eval` `implicit_reducible` (leanprover-community#42648)
  chore: update Mathlib dependencies 2026-08-11 (leanprover-community#42651)
  chore: improve `Set` / `Finset` congruence API (leanprover-community#42640)
  feat(Geometry/Convex): a topology on StdSimplex (leanprover-community#42131)
  ...

# Conflicts:
#	Mathlib/Tactic/Linter/DirectoryDependency.lean
attilavjda pushed a commit to attilavjda/mathlib4 that referenced this pull request Sep 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bors-staging This PR is currently being built by bors on the staging branch. ready-to-merge This PR has been sent to bors. tech debt Fixes cross-cutting technical debt, see the "technical debt counters" stream on zulip

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants