Skip to content

refactor(Order/Cofinal): deprecate file - #46347

Open
vihdzp wants to merge 6 commits into
leanprover-community:masterfrom
vihdzp:cofinal9
Open

vihdzp wants to merge 6 commits into
leanprover-community:masterfrom
vihdzp:cofinal9

Conversation

@vihdzp

@vihdzp vihdzp commented Nov 22, 2026 •

Copy link
Copy Markdown
Collaborator

We scatter the theorems about cofinal sets throughout the library, instead of having them all on a single place. This matches what is done for similar order predicates about bounded sets -- IsCofinal is basically a predicate about a lack of bounds.


@vihdzp vihdzp added the t-order Order theory label Nov 22, 2026
@github-actions

github-actions Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

PR summary 41ff0ec8dc

Import changes for modified files

Dependency changes

File Base Count Head Count Change
Mathlib.SetTheory.Cardinal.Cofinality 903 0 -903 (-100.00%)
Mathlib.Order.Cofinal 359 363 +4 (+1.11%)
Mathlib.Order.Ideal 672 671 -1 (-0.15%)
Mathlib.SetTheory.Cardinal.Cofinality.Basic 846 845 -1 (-0.12%)
Mathlib.SetTheory.Cardinal.Cofinality.Enum 863 862 -1 (-0.12%)
Mathlib.SetTheory.Ordinal.FundamentalSequence 904 905 +1 (+0.11%)
Import changes for all files
Files Import difference
Mathlib.SetTheory.Cardinal.Cofinality -903
151 files Mathlib.Algebra.FreeAlgebra.Cardinality Mathlib.Algebra.MonoidAlgebra.Cardinal Mathlib.Algebra.MvPolynomial.Cardinal Mathlib.Algebra.Polynomial.Cardinal Mathlib.Analysis.Complex.Cardinality Mathlib.Analysis.Convex.SimplicialComplex.AffineIndependentUnion Mathlib.Analysis.Real.Cardinality Mathlib.Combinatorics.Additive.Corner.Roth Mathlib.Combinatorics.Digraph.Orientation Mathlib.Combinatorics.Graph.Simple Mathlib.Combinatorics.Matroid.Rank.Cardinal Mathlib.Combinatorics.SimpleGraph.Acyclic Mathlib.Combinatorics.SimpleGraph.AdjMatrix Mathlib.Combinatorics.SimpleGraph.Basic Mathlib.Combinatorics.SimpleGraph.Bipartite Mathlib.Combinatorics.SimpleGraph.Cayley Mathlib.Combinatorics.SimpleGraph.Circulant Mathlib.Combinatorics.SimpleGraph.Clique Mathlib.Combinatorics.SimpleGraph.Coloring.Constructions Mathlib.Combinatorics.SimpleGraph.Coloring.EdgeLabeling Mathlib.Combinatorics.SimpleGraph.Coloring.VertexColoring Mathlib.Combinatorics.SimpleGraph.Coloring.Vertex Mathlib.Combinatorics.SimpleGraph.CompleteMultipartite Mathlib.Combinatorics.SimpleGraph.Connectivity.Connected Mathlib.Combinatorics.SimpleGraph.Connectivity.EdgeConnectivity Mathlib.Combinatorics.SimpleGraph.Connectivity.Finite Mathlib.Combinatorics.SimpleGraph.Connectivity.Represents Mathlib.Combinatorics.SimpleGraph.Connectivity.Subgraph Mathlib.Combinatorics.SimpleGraph.Copy Mathlib.Combinatorics.SimpleGraph.CycleGraph Mathlib.Combinatorics.SimpleGraph.Dart Mathlib.Combinatorics.SimpleGraph.DegreeSum Mathlib.Combinatorics.SimpleGraph.DeleteEdges Mathlib.Combinatorics.SimpleGraph.Density Mathlib.Combinatorics.SimpleGraph.Diam Mathlib.Combinatorics.SimpleGraph.Ends.Defs Mathlib.Combinatorics.SimpleGraph.Ends.Properties Mathlib.Combinatorics.SimpleGraph.Extremal.Basic Mathlib.Combinatorics.SimpleGraph.Extremal.ErdosStoneSimonovits Mathlib.Combinatorics.SimpleGraph.Extremal.TuranDensity Mathlib.Combinatorics.SimpleGraph.Extremal.Turan Mathlib.Combinatorics.SimpleGraph.Extremal.Zarankiewicz Mathlib.Combinatorics.SimpleGraph.Finite Mathlib.Combinatorics.SimpleGraph.Finsubgraph Mathlib.Combinatorics.SimpleGraph.FiveWheelLike Mathlib.Combinatorics.SimpleGraph.Girth Mathlib.Combinatorics.SimpleGraph.Hall Mathlib.Combinatorics.SimpleGraph.Hamiltonian.Perm Mathlib.Combinatorics.SimpleGraph.Hamiltonian Mathlib.Combinatorics.SimpleGraph.Hasse Mathlib.Combinatorics.SimpleGraph.IncMatrix Mathlib.Combinatorics.SimpleGraph.LineGraph Mathlib.Combinatorics.SimpleGraph.Maps Mathlib.Combinatorics.SimpleGraph.Matching Mathlib.Combinatorics.SimpleGraph.Metric Mathlib.Combinatorics.SimpleGraph.Operations Mathlib.Combinatorics.SimpleGraph.Partition Mathlib.Combinatorics.SimpleGraph.Paths Mathlib.Combinatorics.SimpleGraph.Prod Mathlib.Combinatorics.SimpleGraph.Regularity.Chunk Mathlib.Combinatorics.SimpleGraph.Regularity.Energy Mathlib.Combinatorics.SimpleGraph.Regularity.Increment Mathlib.Combinatorics.SimpleGraph.Regularity.Lemma Mathlib.Combinatorics.SimpleGraph.Regularity.Uniform Mathlib.Combinatorics.SimpleGraph.Star Mathlib.Combinatorics.SimpleGraph.StronglyRegular Mathlib.Combinatorics.SimpleGraph.Subgraph Mathlib.Combinatorics.SimpleGraph.Sum Mathlib.Combinatorics.SimpleGraph.Trails Mathlib.Combinatorics.SimpleGraph.Triangle.Basic Mathlib.Combinatorics.SimpleGraph.Triangle.Counting Mathlib.Combinatorics.SimpleGraph.Triangle.Removal Mathlib.Combinatorics.SimpleGraph.Triangle.Tripartite Mathlib.Combinatorics.SimpleGraph.Tutte Mathlib.Combinatorics.SimpleGraph.UnitDistance.Basic Mathlib.Combinatorics.SimpleGraph.UniversalVerts Mathlib.Combinatorics.SimpleGraph.VertexCover Mathlib.Combinatorics.SimpleGraph.Walk.Basic Mathlib.Combinatorics.SimpleGraph.Walk.Chord Mathlib.Combinatorics.SimpleGraph.Walk.Counting Mathlib.Combinatorics.SimpleGraph.Walk.Decomp Mathlib.Combinatorics.SimpleGraph.Walk.Maps Mathlib.Combinatorics.SimpleGraph.Walk.Operations Mathlib.Combinatorics.SimpleGraph.Walk.Subwalks Mathlib.Combinatorics.SimpleGraph.Walk.Traversal Mathlib.Data.Set.Card.Arithmetic Mathlib.Data.Sym.Sym2.Card Mathlib.Data.W.Cardinal Mathlib.GroupTheory.MonoidLocalization.Cardinality Mathlib.GroupTheory.OreLocalization.Cardinality Mathlib.MeasureTheory.Constructions.Polish.EmbeddingReal Mathlib.MeasureTheory.Constructions.SimpleGraph Mathlib.ModelTheory.Bundled Mathlib.ModelTheory.Complexity Mathlib.ModelTheory.DirectLimit Mathlib.ModelTheory.ElementaryMaps Mathlib.ModelTheory.ElementarySubstructures Mathlib.ModelTheory.Encoding Mathlib.ModelTheory.Equivalence Mathlib.ModelTheory.FinitelyGenerated Mathlib.ModelTheory.Fraisse Mathlib.ModelTheory.Graph Mathlib.ModelTheory.Order Mathlib.ModelTheory.PartialEquiv Mathlib.ModelTheory.Satisfiability Mathlib.ModelTheory.Skolem Mathlib.ModelTheory.Substructures Mathlib.ModelTheory.Topology.Types Mathlib.ModelTheory.Types Mathlib.Order.CountableDenseLinearOrder Mathlib.Order.Filter.Ultrafilter.Cardinality Mathlib.Order.Ideal Mathlib.Order.PFilter Mathlib.Order.PrimeIdeal Mathlib.Order.PrimeSeparator Mathlib.RingTheory.Algebraic.Cardinality Mathlib.RingTheory.HahnSeries.Cardinal Mathlib.RingTheory.IdealFilter.Basic Mathlib.RingTheory.IdealFilter.Topology Mathlib.RingTheory.Localization.Cardinality Mathlib.RingTheory.OreLocalization.Cardinality Mathlib.SetTheory.Cardinal.Aleph Mathlib.SetTheory.Cardinal.Arithmetic Mathlib.SetTheory.Cardinal.Cofinality.Basic Mathlib.SetTheory.Cardinal.Cofinality.Club Mathlib.SetTheory.Cardinal.Cofinality.Enum Mathlib.SetTheory.Cardinal.Continuum Mathlib.SetTheory.Cardinal.CountableCover Mathlib.SetTheory.Cardinal.DirectLimit Mathlib.SetTheory.Cardinal.Divisibility Mathlib.SetTheory.Cardinal.EventuallyConst Mathlib.SetTheory.Cardinal.Finsupp Mathlib.SetTheory.Cardinal.Free Mathlib.SetTheory.Cardinal.Ordinal Mathlib.SetTheory.Cardinal.Subfield Mathlib.SetTheory.Ordinal.Topology Mathlib.SetTheory.Ordinal.Veblen Mathlib.SetTheory.ZFC.VonNeumann Mathlib.Topology.Algebra.Module.Cardinality Mathlib.Topology.Connected.CardComponents Mathlib.Topology.Constructible Mathlib.Topology.LocallyFinsupp.Pushforward Mathlib.Topology.MetricSpace.Snowflaking Mathlib.Topology.Separation.CompletelyRegular Mathlib.Topology.Separation.Lemmas Mathlib.Topology.Separation.NotNormal Mathlib.Topology.Sets.CompactOpenCovered Mathlib.Topology.Spectral.Basic Mathlib.Topology.Spectral.ConstructibleTopology Mathlib.Topology.Spectral.Prespectral Mathlib.Topology.UniformSpace.Uniformizable
-1
465 files Mathlib.Algebra.AffineMonoid.Embedding Mathlib.Algebra.AffineMonoid.UniqueSums Mathlib.Algebra.Algebra.Subalgebra.IsSimpleOrder Mathlib.Algebra.Algebra.Subalgebra.Rank Mathlib.Algebra.AlgebraicCard Mathlib.Algebra.Azumaya.Basic Mathlib.Algebra.Azumaya.Matrix Mathlib.Algebra.BrauerGroup.Defs Mathlib.Algebra.Category.CommAlgCat.FiniteType Mathlib.Algebra.Category.FGModuleCat.Abelian Mathlib.Algebra.Category.FGModuleCat.Basic Mathlib.Algebra.Category.FGModuleCat.Colimits Mathlib.Algebra.Category.FGModuleCat.EssentiallySmall Mathlib.Algebra.Category.FGModuleCat.Limits Mathlib.Algebra.Category.ModuleCat.ExteriorPower Mathlib.Algebra.Category.ModuleCat.Free Mathlib.Algebra.Category.ModuleCat.Simple Mathlib.Algebra.Category.ModuleCat.Topology.Basic Mathlib.Algebra.Category.ModuleCat.Topology.Homology Mathlib.Algebra.Category.Ring.FilteredColimitsLocal Mathlib.Algebra.Category.Ring.FinitePresentation Mathlib.Algebra.Category.Ring.LinearAlgebra Mathlib.Algebra.Category.Ring.Small Mathlib.Algebra.Central.TensorProduct Mathlib.Algebra.DirectSum.LinearMap Mathlib.Algebra.DualQuaternion Mathlib.Algebra.Exact.Sequence Mathlib.Algebra.Jordan.Basic Mathlib.Algebra.Lie.Abelian Mathlib.Algebra.Lie.AdjointAction.Derivation Mathlib.Algebra.Lie.BaseChange Mathlib.Algebra.Lie.Character Mathlib.Algebra.Lie.Classical Mathlib.Algebra.Lie.Cochain Mathlib.Algebra.Lie.Derivation.BaseChange Mathlib.Algebra.Lie.Derivation.Basic Mathlib.Algebra.Lie.DirectSum Mathlib.Algebra.Lie.Extension Mathlib.Algebra.Lie.Free Mathlib.Algebra.Lie.Graded Mathlib.Algebra.Lie.IdealOperations Mathlib.Algebra.Lie.Ideal Mathlib.Algebra.Lie.InvariantForm Mathlib.Algebra.Lie.Loop Mathlib.Algebra.Lie.Matrix Mathlib.Algebra.Lie.Normalizer Mathlib.Algebra.Lie.OfAssociative Mathlib.Algebra.Lie.Prod Mathlib.Algebra.Lie.Quotient Mathlib.Algebra.Lie.SemiDirect Mathlib.Algebra.Lie.Semisimple.Basic Mathlib.Algebra.Lie.Semisimple.Defs Mathlib.Algebra.Lie.SkewAdjoint Mathlib.Algebra.Lie.Solvable Mathlib.Algebra.Lie.Subalgebra Mathlib.Algebra.Lie.Submodule Mathlib.Algebra.Lie.TensorProduct Mathlib.Algebra.Lie.UniversalEnveloping Mathlib.Algebra.LieRinehartAlgebra.Defs Mathlib.Algebra.LieRinehartAlgebra.Quotient Mathlib.Algebra.LieRinehartAlgebra.StrictIdeal Mathlib.Algebra.LieRinehartAlgebra.Subalgebra Mathlib.Algebra.LinearRecurrence Mathlib.Algebra.Module.FinitePresentation Mathlib.Algebra.Module.Lattice.Basic Mathlib.Algebra.Module.Lattice.Full Mathlib.Algebra.Module.Lattice Mathlib.Algebra.Module.LinearMap.FiniteRange Mathlib.Algebra.Module.LinearMap.Index Mathlib.Algebra.Module.Presentation.Finite Mathlib.Algebra.Module.SpanRank Mathlib.Algebra.Module.StablyFree.Basic Mathlib.Algebra.Module.Submodule.Union Mathlib.Algebra.MvPolynomial.Expand Mathlib.Algebra.MvPolynomial.Nilpotent Mathlib.Algebra.MvPolynomial.NoZeroDivisors Mathlib.Algebra.Polynomial.Expand Mathlib.Algebra.Polynomial.Homogenize Mathlib.Algebra.Polynomial.Sequence Mathlib.Algebra.QuadraticAlgebra.AlgHom Mathlib.Algebra.QuadraticAlgebra.BaseChange Mathlib.Algebra.QuadraticAlgebra.Basic Mathlib.Algebra.QuadraticAlgebra.Defs Mathlib.Algebra.QuadraticAlgebra.Discr Mathlib.Algebra.QuadraticAlgebra.Discriminant Mathlib.Algebra.QuadraticAlgebra.NormDeterminant Mathlib.Algebra.QuadraticAlgebra.Rat Mathlib.Algebra.QuaternionBasis Mathlib.Algebra.Quaternion Mathlib.Algebra.Star.LinearMap Mathlib.Algebra.Symmetrized Mathlib.AlgebraicGeometry.ProjectiveSpectrum.StructureSheaf Mathlib.AlgebraicTopology.SimplicialSet.AnodyneExtensions.Basic Mathlib.AlgebraicTopology.SimplicialSet.AnodyneExtensions.Inner.Basic Mathlib.AlgebraicTopology.SimplicialSet.AnodyneExtensions.Inner.PushoutProduct Mathlib.AlgebraicTopology.SimplicialSet.AnodyneExtensions.PushoutProduct Mathlib.AlgebraicTopology.SimplicialSet.Presentable Mathlib.CategoryTheory.Abelian.FreydMitchell Mathlib.CategoryTheory.Abelian.GrothendieckCategory.ColimCoyoneda Mathlib.CategoryTheory.Abelian.GrothendieckCategory.Coseparator Mathlib.CategoryTheory.Abelian.GrothendieckCategory.EnoughInjectives Mathlib.CategoryTheory.Abelian.GrothendieckCategory.HasExt Mathlib.CategoryTheory.Abelian.GrothendieckCategory.HomologyFunctorAccessible Mathlib.CategoryTheory.Abelian.GrothendieckCategory.ModuleEmbedding.GabrielPopescu Mathlib.CategoryTheory.Abelian.GrothendieckCategory.ModuleEmbedding.Opposite Mathlib.CategoryTheory.Abelian.GrothendieckCategory.Subobject Mathlib.CategoryTheory.Comma.CardinalArrow Mathlib.CategoryTheory.Limits.ConstructLimitMap Mathlib.CategoryTheory.Limits.Types.CardinalFiltered Mathlib.CategoryTheory.MorphismProperty.HasCardinalLT Mathlib.CategoryTheory.MorphismProperty.Ind Mathlib.CategoryTheory.ObjectProperty.BinaryProductsClosure Mathlib.CategoryTheory.ObjectProperty.ClosureShift Mathlib.CategoryTheory.ObjectProperty.ColimitsCardinalClosure Mathlib.CategoryTheory.ObjectProperty.ColimitsClosure Mathlib.CategoryTheory.ObjectProperty.HasCardinalLT Mathlib.CategoryTheory.ObjectProperty.Ind Mathlib.CategoryTheory.ObjectProperty.IsClosedUnderCardinalFilteredColimits Mathlib.CategoryTheory.ObjectProperty.LimitsClosure Mathlib.CategoryTheory.Preadditive.HomOrthogonal Mathlib.CategoryTheory.Presentable.Adjunction Mathlib.CategoryTheory.Presentable.Basic Mathlib.CategoryTheory.Presentable.CardinalDirectedPoset Mathlib.CategoryTheory.Presentable.CardinalFilteredPresentation Mathlib.CategoryTheory.Presentable.CardinalPure Mathlib.CategoryTheory.Presentable.ColimitPresentation Mathlib.CategoryTheory.Presentable.Comma Mathlib.CategoryTheory.Presentable.Dense Mathlib.CategoryTheory.Presentable.Directed Mathlib.CategoryTheory.Presentable.EssentiallyLarge Mathlib.CategoryTheory.Presentable.Finite Mathlib.CategoryTheory.Presentable.IsCardinalFiltered Mathlib.CategoryTheory.Presentable.IsDiscrete Mathlib.CategoryTheory.Presentable.Limits Mathlib.CategoryTheory.Presentable.LocallyPresentable Mathlib.CategoryTheory.Presentable.OrthogonalReflection Mathlib.CategoryTheory.Presentable.PreservesCardinalPresentable Mathlib.CategoryTheory.Presentable.Presheaf Mathlib.CategoryTheory.Presentable.Retracts Mathlib.CategoryTheory.Presentable.SharplyLT.Basic Mathlib.CategoryTheory.Presentable.SharplyLT.Lemmas Mathlib.CategoryTheory.Presentable.SolutionSetCondition Mathlib.CategoryTheory.Presentable.StrongGenerator Mathlib.CategoryTheory.Presentable.Type Mathlib.CategoryTheory.Presentable.Uniformization Mathlib.CategoryTheory.SmallObject.Basic Mathlib.CategoryTheory.SmallObject.IsCardinalForSmallObjectArgument Mathlib.CategoryTheory.SmallRepresentatives Mathlib.CategoryTheory.Subobject.HasCardinalLT Mathlib.CategoryTheory.Triangulated.Generators Mathlib.Combinatorics.Configuration Mathlib.Combinatorics.Nullstellensatz Mathlib.Data.Nat.Choose.Lucas Mathlib.FieldTheory.Finiteness Mathlib.FieldTheory.Minpoly.Basic Mathlib.FieldTheory.Minpoly.Finite Mathlib.FieldTheory.MvRatFunc.Rank Mathlib.FieldTheory.Tower Mathlib.Geometry.RingedSpace.LocallyRingedSpace.ResidueField Mathlib.GroupTheory.FreeGroup.GeneratorEquiv Mathlib.GroupTheory.IndexNSmul Mathlib.LinearAlgebra.Basis.Cardinality Mathlib.LinearAlgebra.Basis.MulOpposite Mathlib.LinearAlgebra.BilinearForm.DualLattice Mathlib.LinearAlgebra.BilinearForm.Orthogonal Mathlib.LinearAlgebra.BilinearForm.Properties Mathlib.LinearAlgebra.BilinearForm.TensorProduct Mathlib.LinearAlgebra.CliffordAlgebra.BaseChange Mathlib.LinearAlgebra.CliffordAlgebra.Basic Mathlib.LinearAlgebra.CliffordAlgebra.CategoryTheory Mathlib.LinearAlgebra.CliffordAlgebra.Conjugation Mathlib.LinearAlgebra.CliffordAlgebra.Contraction Mathlib.LinearAlgebra.CliffordAlgebra.EvenEquiv Mathlib.LinearAlgebra.CliffordAlgebra.Even Mathlib.LinearAlgebra.CliffordAlgebra.Fold Mathlib.LinearAlgebra.CliffordAlgebra.Grading Mathlib.LinearAlgebra.CliffordAlgebra.Inversion Mathlib.LinearAlgebra.CliffordAlgebra.Prod Mathlib.LinearAlgebra.CliffordAlgebra.SpinGroup Mathlib.LinearAlgebra.CliffordAlgebra.Star Mathlib.LinearAlgebra.Coevaluation Mathlib.LinearAlgebra.Contraction Mathlib.LinearAlgebra.Determinant Mathlib.LinearAlgebra.Dimension.Constructions Mathlib.LinearAlgebra.Dimension.DivisionRing Mathlib.LinearAlgebra.Dimension.ErdosKaplansky Mathlib.LinearAlgebra.Dimension.Finite Mathlib.LinearAlgebra.Dimension.FreeAndStrongRankCondition Mathlib.LinearAlgebra.Dimension.Free Mathlib.LinearAlgebra.Dimension.LinearMap Mathlib.LinearAlgebra.Dimension.Localization Mathlib.LinearAlgebra.Dimension.OrzechProperty Mathlib.LinearAlgebra.Dimension.RankNullity Mathlib.LinearAlgebra.Dimension.StrongRankCondition Mathlib.LinearAlgebra.Dual.BaseChange Mathlib.LinearAlgebra.Dual.Lemmas Mathlib.LinearAlgebra.Eigenspace.Basic Mathlib.LinearAlgebra.Eigenspace.ContinuousLinearMap Mathlib.LinearAlgebra.Eigenspace.Matrix Mathlib.LinearAlgebra.Eigenspace.Minpoly Mathlib.LinearAlgebra.ExteriorAlgebra.BaseChange Mathlib.LinearAlgebra.ExteriorAlgebra.Basic Mathlib.LinearAlgebra.ExteriorAlgebra.Basis Mathlib.LinearAlgebra.ExteriorAlgebra.Grading Mathlib.LinearAlgebra.ExteriorAlgebra.OfAlternating Mathlib.LinearAlgebra.ExteriorAlgebra.Product Mathlib.LinearAlgebra.ExteriorPower.BaseChange Mathlib.LinearAlgebra.ExteriorPower.Basic Mathlib.LinearAlgebra.ExteriorPower.Basis Mathlib.LinearAlgebra.ExteriorPower.BilinForm Mathlib.LinearAlgebra.ExteriorPower.HodgeStar Mathlib.LinearAlgebra.ExteriorPower.Orientation Mathlib.LinearAlgebra.ExteriorPower.Pairing Mathlib.LinearAlgebra.ExteriorPower.WedgePairing Mathlib.LinearAlgebra.FiniteDimensional.Basic Mathlib.LinearAlgebra.FiniteDimensional.Defs Mathlib.LinearAlgebra.FiniteDimensional.Lemmas Mathlib.LinearAlgebra.FreeAlgebra Mathlib.LinearAlgebra.FreeModule.Determinant Mathlib.LinearAlgebra.FreeModule.Finite.Basic Mathlib.LinearAlgebra.FreeModule.Finite.CardQuotient Mathlib.LinearAlgebra.FreeModule.Finite.Matrix Mathlib.LinearAlgebra.FreeModule.Finite.Quotient Mathlib.LinearAlgebra.FreeModule.IdealQuotient Mathlib.LinearAlgebra.FreeModule.Int Mathlib.LinearAlgebra.FreeModule.PID Mathlib.LinearAlgebra.FreeModule.StrongRankCondition Mathlib.LinearAlgebra.GeneralLinearGroup.AlgEquiv Mathlib.LinearAlgebra.InvariantBasisNumber Mathlib.LinearAlgebra.Lagrange Mathlib.LinearAlgebra.LinearDisjoint Mathlib.LinearAlgebra.Matrix.BaseChange Mathlib.LinearAlgebra.Matrix.BilinearForm Mathlib.LinearAlgebra.Matrix.Block Mathlib.LinearAlgebra.Matrix.Charpoly.Basic Mathlib.LinearAlgebra.Matrix.Charpoly.Coeff Mathlib.LinearAlgebra.Matrix.Charpoly.LinearMap Mathlib.LinearAlgebra.Matrix.Charpoly.Univ Mathlib.LinearAlgebra.Matrix.Diagonal Mathlib.LinearAlgebra.Matrix.Echelon.Basic Mathlib.LinearAlgebra.Matrix.Echelon.Decomposition Mathlib.LinearAlgebra.Matrix.Echelon.Pivot Mathlib.LinearAlgebra.Matrix.FiniteDimensional Mathlib.LinearAlgebra.Matrix.GeneralLinearGroup.Basic Mathlib.LinearAlgebra.Matrix.GeneralLinearGroup.Card Mathlib.LinearAlgebra.Matrix.GeneralLinearGroup.Defs Mathlib.LinearAlgebra.Matrix.GeneralLinearGroup.MvPolynomial Mathlib.LinearAlgebra.Matrix.Hermitian Mathlib.LinearAlgebra.Matrix.Hessenberg.Defs Mathlib.LinearAlgebra.Matrix.Hessenberg.Similarity Mathlib.LinearAlgebra.Matrix.InvariantBasisNumber Mathlib.LinearAlgebra.Matrix.NonsingularInverse Mathlib.LinearAlgebra.Matrix.Nonsingular Mathlib.LinearAlgebra.Matrix.Rank Mathlib.LinearAlgebra.Matrix.SchurComplement Mathlib.LinearAlgebra.Matrix.SesquilinearForm Mathlib.LinearAlgebra.Matrix.Symmetrizable Mathlib.LinearAlgebra.Matrix.ToLinearEquiv Mathlib.LinearAlgebra.Matrix.WithConv Mathlib.LinearAlgebra.Matrix.ZPow Mathlib.LinearAlgebra.Multilinear.FiniteDimensional Mathlib.LinearAlgebra.Orientation Mathlib.LinearAlgebra.PID Mathlib.LinearAlgebra.PerfectPairing.Basic Mathlib.LinearAlgebra.PerfectPairing.Restrict Mathlib.LinearAlgebra.PiTensorProduct.Dual Mathlib.LinearAlgebra.Projectivization.Basic Mathlib.LinearAlgebra.Projectivization.Cardinality Mathlib.LinearAlgebra.Projectivization.Collinear Mathlib.LinearAlgebra.Projectivization.Constructions Mathlib.LinearAlgebra.Projectivization.Independence Mathlib.LinearAlgebra.Projectivization.Subspace Mathlib.LinearAlgebra.QuadraticForm.Basic Mathlib.LinearAlgebra.QuadraticForm.Basis Mathlib.LinearAlgebra.QuadraticForm.Dual Mathlib.LinearAlgebra.QuadraticForm.IsometryEquiv Mathlib.LinearAlgebra.QuadraticForm.Isometry Mathlib.LinearAlgebra.QuadraticForm.Prod Mathlib.LinearAlgebra.QuadraticForm.QuadraticModuleCat.Monoidal Mathlib.LinearAlgebra.QuadraticForm.QuadraticModuleCat.Symmetric Mathlib.LinearAlgebra.QuadraticForm.QuadraticModuleCat Mathlib.LinearAlgebra.QuadraticForm.Radical Mathlib.LinearAlgebra.QuadraticForm.Signature Mathlib.LinearAlgebra.QuadraticForm.TensorProduct.Isometries Mathlib.LinearAlgebra.QuadraticForm.TensorProduct Mathlib.LinearAlgebra.SymmetricAlgebra.Basis Mathlib.LinearAlgebra.SymplecticGroup Mathlib.LinearAlgebra.TensorAlgebra.Basis Mathlib.LinearAlgebra.Trace Mathlib.LinearAlgebra.Unimodular Mathlib.LinearAlgebra.UnitaryGroup Mathlib.LinearAlgebra.Vandermonde Mathlib.MeasureTheory.MeasurableSpace.Card Mathlib.NumberTheory.FrobeniusNumber Mathlib.Order.Filter.CardinalInter Mathlib.Order.Filter.Cocardinal Mathlib.RepresentationTheory.Action Mathlib.RepresentationTheory.Basic Mathlib.RepresentationTheory.Coinduced Mathlib.RepresentationTheory.Coinvariants Mathlib.RepresentationTheory.Continuous.Basic Mathlib.RepresentationTheory.Continuous.TopRep Mathlib.RepresentationTheory.Equiv Mathlib.RepresentationTheory.FiniteIndex Mathlib.RepresentationTheory.Homological.ContCohomology.Basic Mathlib.RepresentationTheory.Homological.ContCohomology.Functoriality Mathlib.RepresentationTheory.Homological.ContCohomology.LowDegree Mathlib.RepresentationTheory.Homological.FiniteCyclic Mathlib.RepresentationTheory.Homological.GroupCohomology.Basic Mathlib.RepresentationTheory.Homological.GroupCohomology.Shapiro Mathlib.RepresentationTheory.Homological.GroupHomology.Basic Mathlib.RepresentationTheory.Homological.GroupHomology.Shapiro Mathlib.RepresentationTheory.Homological.Resolution Mathlib.RepresentationTheory.Induced Mathlib.RepresentationTheory.Intertwining Mathlib.RepresentationTheory.Rep.Basic Mathlib.RepresentationTheory.Rep.Iso Mathlib.RepresentationTheory.Rep.Res Mathlib.RepresentationTheory.Stabilizer Mathlib.RepresentationTheory.Submodule Mathlib.RepresentationTheory.Subrepresentation Mathlib.RingTheory.Adjoin.Dimension Mathlib.RingTheory.Adjoin.FGBaseChange Mathlib.RingTheory.Adjoin.FG Mathlib.RingTheory.Adjoin.Polynomial.Transcendental Mathlib.RingTheory.Adjoin.Tower Mathlib.RingTheory.Algebraic.Basic Mathlib.RingTheory.Algebraic.MvPolynomial Mathlib.RingTheory.AlgebraicIndependent.Basic Mathlib.RingTheory.AlgebraicIndependent.Transcendental Mathlib.RingTheory.Artinian.Algebra Mathlib.RingTheory.Artinian.Instances Mathlib.RingTheory.Artinian.Module Mathlib.RingTheory.Artinian.Ring Mathlib.RingTheory.Bialgebra.GroupLike Mathlib.RingTheory.Bialgebra.MonoidAlgebra Mathlib.RingTheory.Coalgebra.GroupLike Mathlib.RingTheory.Derivation.Lie Mathlib.RingTheory.DiscreteValuationRing.Basic Mathlib.RingTheory.EssentialFiniteness Mathlib.RingTheory.Filtration Mathlib.RingTheory.FiniteLength Mathlib.RingTheory.FinitePresentation Mathlib.RingTheory.FiniteStability Mathlib.RingTheory.FiniteType Mathlib.RingTheory.Finiteness.Cardinality Mathlib.RingTheory.Finiteness.Cofinite Mathlib.RingTheory.Finiteness.FiniteTypeLocal Mathlib.RingTheory.Finiteness.Projective Mathlib.RingTheory.Finiteness.Quotient Mathlib.RingTheory.Finiteness.Small Mathlib.RingTheory.Flat.Basic Mathlib.RingTheory.Flat.CategoryTheory Mathlib.RingTheory.Flat.Domain Mathlib.RingTheory.Flat.Equalizer Mathlib.RingTheory.Flat.FaithfullyFlat.Basic Mathlib.RingTheory.Flat.IsBaseChange Mathlib.RingTheory.Flat.Localization Mathlib.RingTheory.Flat.Stability Mathlib.RingTheory.FractionalIdeal.Basic Mathlib.RingTheory.FractionalIdeal.Inverse Mathlib.RingTheory.FractionalIdeal.Operations Mathlib.RingTheory.GradedAlgebra.FiniteType Mathlib.RingTheory.GradedAlgebra.HomogeneousLocalization Mathlib.RingTheory.GradedAlgebra.Noetherian Mathlib.RingTheory.HopfAlgebra.GroupLike Mathlib.RingTheory.HopfAlgebra.MonoidAlgebra Mathlib.RingTheory.Ideal.AssociatedPrime.Basic Mathlib.RingTheory.Ideal.AssociatedPrime.Finiteness Mathlib.RingTheory.Ideal.AssociatedPrime.Localization Mathlib.RingTheory.Ideal.MinimalPrime.Colon Mathlib.RingTheory.Ideal.MonicSpan Mathlib.RingTheory.Ideal.NatInt Mathlib.RingTheory.Ideal.Quotient.Index Mathlib.RingTheory.Ideal.Quotient.Noetherian Mathlib.RingTheory.IntegralClosure.Algebra.Basic Mathlib.RingTheory.IntegralClosure.Algebra.Ideal Mathlib.RingTheory.IntegralClosure.IsIntegral.AlmostIntegral Mathlib.RingTheory.IntegralClosure.IsIntegral.Basic Mathlib.RingTheory.Jacobson.Polynomial Mathlib.RingTheory.KrullDimension.Basic Mathlib.RingTheory.KrullDimension.Field Mathlib.RingTheory.KrullDimension.NonZeroDivisors Mathlib.RingTheory.Lasker Mathlib.RingTheory.Length Mathlib.RingTheory.LinearDisjoint Mathlib.RingTheory.LocalProperties.Basic Mathlib.RingTheory.LocalProperties.FinitePresentation Mathlib.RingTheory.LocalProperties.Injective Mathlib.RingTheory.LocalProperties.ProjectiveDimension Mathlib.RingTheory.LocalProperties.Projective Mathlib.RingTheory.LocalProperties.Reduced Mathlib.RingTheory.LocalRing.MaximalIdeal.Square Mathlib.RingTheory.LocalRing.Quotient Mathlib.RingTheory.LocalRing.ResidueField.Basic Mathlib.RingTheory.LocalRing.ResidueField.Ideal Mathlib.RingTheory.Localization.Away.Lemmas Mathlib.RingTheory.Localization.Free Mathlib.RingTheory.Localization.InvSubmonoid Mathlib.RingTheory.Localization.Submodule Mathlib.RingTheory.MvPolynomial.Basic Mathlib.RingTheory.MvPolynomial.EulerIdentity Mathlib.RingTheory.MvPolynomial.Groebner Mathlib.RingTheory.MvPolynomial.Homogeneous Mathlib.RingTheory.MvPolynomial.IrreducibleQuadratic Mathlib.RingTheory.MvPolynomial.MonomialOrder.DegLex Mathlib.RingTheory.MvPolynomial.MonomialOrder Mathlib.RingTheory.MvPolynomial.WeightedHomogeneous Mathlib.RingTheory.MvPolynomial Mathlib.RingTheory.Noetherian.Basic Mathlib.RingTheory.Noetherian.Orzech Mathlib.RingTheory.Norm.Defs Mathlib.RingTheory.NormTrace Mathlib.RingTheory.OrzechProperty Mathlib.RingTheory.Polynomial.Basic Mathlib.RingTheory.Polynomial.Chebyshev Mathlib.RingTheory.Polynomial.Dickson Mathlib.RingTheory.Polynomial.Quotient Mathlib.RingTheory.Polynomial.UniqueFactorization Mathlib.RingTheory.PolynomialLaw.Basic Mathlib.RingTheory.PowerSeries.Exp Mathlib.RingTheory.PowerSeries.Ideal Mathlib.RingTheory.PowerSeries.Inverse Mathlib.RingTheory.PowerSeries.Log Mathlib.RingTheory.ReesAlgebra Mathlib.RingTheory.RingHom.Bijective Mathlib.RingTheory.RingHom.EssFiniteType Mathlib.RingTheory.RingHom.FiniteType Mathlib.RingTheory.RingHom.Finite Mathlib.RingTheory.RingHom.Locally Mathlib.RingTheory.RingHom.OpenImmersion Mathlib.RingTheory.RingHom.Surjective Mathlib.RingTheory.SimpleModule.Rank Mathlib.RingTheory.SimpleModule.WedderburnArtin Mathlib.RingTheory.SimpleRing.DivisionRing Mathlib.RingTheory.Spectrum.Maximal.Localization Mathlib.RingTheory.Spectrum.Prime.Basic Mathlib.RingTheory.Spectrum.Prime.RingHom Mathlib.RingTheory.Support Mathlib.RingTheory.TensorProduct.DirectLimitFG Mathlib.RingTheory.TensorProduct.IsBaseChangeHom Mathlib.RingTheory.TensorProduct.Nontrivial Mathlib.RingTheory.Trace.Defs Mathlib.RingTheory.Valuation.IsTrivialOn Mathlib.RingTheory.WittVector.WittPolynomial Mathlib.SetTheory.Cardinal.HasCardinalLT Mathlib.SetTheory.Cardinal.Pigeonhole Mathlib.SetTheory.Cardinal.Regular Mathlib.SetTheory.Ordinal.FundamentalSequence Mathlib.Tactic.Determinant.Echelon.Cert Mathlib.Tactic.Determinant.Echelon.Reflection Mathlib.Tactic.Echelon.Bareiss Mathlib.Tactic.Echelon.Cert Mathlib.Tactic.Echelon.Reflection Mathlib.Tactic.Hessenberg.Charpoly Mathlib.Tactic.Hessenberg.CoeffList Mathlib.Tactic.Hessenberg.Similarity Mathlib.Tactic.NormCharpoly Mathlib.Tactic.NormDet Mathlib.Tactic.NormRank Mathlib.Tactic.Simproc.IsIndecomposable Mathlib.Topology.Algebra.Module.Determinant Mathlib.Topology.Algebra.Module.ModuleTopology Mathlib.Topology.Algebra.Projectivization Mathlib.Topology.Algebra.Star.LinearMap
1
Mathlib.Order.Cofinal 4

Declarations diff (regex)

+ map_isCofinal
+ map_isCofinal_iff
- OrderIso.map_isCofinal
- OrderIso.map_isCofinal_iff

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 41ff0ec).

  • +0 new declarations
  • −0 removed declarations

No declaration differences.


No changes to strong technical debt.
No changes to weak technical debt.

Current commit 41ff0ec8dc
Reference commit 6ebcce3733

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

⚠️ warning: removed file Mathlib/SetTheory/Cardinal/Cofinality.lean contains a module deprecation: please add this in a follow-up PR instead

pre-commit-ci-lite Bot and others added 3 commits November 22, 2026 15:29
These commands made the changes in this commit.
To make the same fixes yourself, run them in your mathlib4 checkout.
@vihdzp
vihdzp requested a review from YaelDillies November 22, 2026 18:57

@YaelDillies YaelDillies left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why? According to what criteria?

@YaelDillies YaelDillies added the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Nov 25, 2026
@YaelDillies YaelDillies self-assigned this Nov 25, 2026
@vihdzp

vihdzp commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator Author

Well, the motivation here is to make IsCofinal as accessible as possible, instead of having to import a separate, somewhat heavy file to have access to its API. In particular I want IsCofinal.not_bddAbove to be low on the import chain.

@vihdzp vihdzp removed the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Nov 27, 2026
YaelDillies

This comment was marked as duplicate.

@YaelDillies YaelDillies left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Okay, I see the pattern now: you consider IsCofinal as a sort of (lack of) bound property. Can you clarify this in the PR description?

maintainer delegate

@YaelDillies YaelDillies removed their assignment Nov 28, 2026
@github-actions

Copy link
Copy Markdown

🚀 Pull request has been placed on the maintainer queue by YaelDillies.

@mathlib-triage mathlib-triage Bot added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Nov 28, 2026
@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 Dec 2, 2026
@mathlib-merge-conflicts

Copy link
Copy Markdown

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

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) t-order Order theory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants