Skip to content

feat(Order/SuccPred/CompleteLinearOrder): sSup s = ⊤ iff theorems for WithTop - #40620

Open
SnirBroshi wants to merge 15 commits into
leanprover-community:masterfrom
SnirBroshi:feature/order/with-top-sup-eq-top-iff
Open

SnirBroshi wants to merge 15 commits into
leanprover-community:masterfrom
SnirBroshi:feature/order/with-top-sup-eq-top-iff

Conversation

@SnirBroshi

@SnirBroshi SnirBroshi commented Jun 15, 2026 •

Copy link
Copy Markdown
Collaborator

For a [ConditionallyCompleteLinearOrderBot α] with (s : Set (WithTop α)):

  • sSup s = ⊤ ↔ ∀ a : α, ∃ b ∈ s, a < b
  • [NoMaxOrder α] → sSup s = ⊤ ↔ ∀ a : α, ∃ b ∈ s, a ≤ b

and the matching iSup theorems.

These can't be dualized because ConditionallyCompleteLinearOrderBot has no dual.


Open in Gitpod

@github-actions

github-actions Bot commented Jun 15, 2026 •

Copy link
Copy Markdown

PR summary 817c564e61

Import changes for modified files

Dependency changes

File Base Count Head Count Change
Mathlib.Order.SuccPred.CompleteLinearOrder 541 542 +1 (+0.18%)
Import changes for all files
Files Import difference
569 files Mathlib.Algebra.Algebra.Epi Mathlib.Algebra.Algebra.ZMod Mathlib.Algebra.Azumaya.Matrix Mathlib.Algebra.BigOperators.ModEq Mathlib.Algebra.BigOperators.Ring.Nat Mathlib.Algebra.Category.Grp.AB Mathlib.Algebra.Category.Grp.Abelian Mathlib.Algebra.Category.Grp.Images Mathlib.Algebra.Category.Grp.IsFinite Mathlib.Algebra.Category.Grp.Subobject Mathlib.Algebra.Category.ModuleCat.AB Mathlib.Algebra.Category.ModuleCat.Abelian Mathlib.Algebra.Category.ModuleCat.Biproducts Mathlib.Algebra.Category.ModuleCat.ChangeOfRingsExact Mathlib.Algebra.Category.ModuleCat.Ext.DimensionShifting Mathlib.Algebra.Category.ModuleCat.Ext.HasExt Mathlib.Algebra.Category.ModuleCat.Images Mathlib.Algebra.Category.ModuleCat.Kernels Mathlib.Algebra.Category.ModuleCat.Localization Mathlib.Algebra.Category.ModuleCat.Presheaf.Abelian Mathlib.Algebra.Category.ModuleCat.Presheaf.Generator Mathlib.Algebra.Category.ModuleCat.Presheaf.Monoidal Mathlib.Algebra.Category.ModuleCat.Presheaf.OfCommRing Mathlib.Algebra.Category.ModuleCat.Presheaf.Pullback Mathlib.Algebra.Category.ModuleCat.Presheaf.PushforwardZeroMonoidal Mathlib.Algebra.Category.ModuleCat.Presheaf.Sheafification Mathlib.Algebra.Category.ModuleCat.Sheaf.Abelian Mathlib.Algebra.Category.ModuleCat.Sheaf.Colimits Mathlib.Algebra.Category.ModuleCat.Sheaf.Free Mathlib.Algebra.Category.ModuleCat.Sheaf.Generators Mathlib.Algebra.Category.ModuleCat.Sheaf.Localization Mathlib.Algebra.Category.ModuleCat.Sheaf.LocallyFree Mathlib.Algebra.Category.ModuleCat.Sheaf.PullbackContinuous Mathlib.Algebra.Category.ModuleCat.Sheaf.PullbackFree Mathlib.Algebra.Category.ModuleCat.Sheaf.Quasicoherent Mathlib.Algebra.Category.ModuleCat.Subobject Mathlib.Algebra.Category.ModuleCat.Topology.Basic Mathlib.Algebra.Category.ModuleCat.Topology.Homology Mathlib.Algebra.Category.ModuleCat.Ulift Mathlib.Algebra.Category.Ring.Epi Mathlib.Algebra.CharP.CharAndCard Mathlib.Algebra.Field.NegOnePow Mathlib.Algebra.Field.Periodic Mathlib.Algebra.Field.ZMod Mathlib.Algebra.FreeAlgebra.Cardinality Mathlib.Algebra.Group.ConjFinite Mathlib.Algebra.Group.Pointwise.Set.Card Mathlib.Algebra.Group.Subgroup.Finite Mathlib.Algebra.GroupWithZero.Pointwise.Set.Card Mathlib.Algebra.GroupWithZero.Units.Fintype Mathlib.Algebra.Homology.BifunctorAssociator Mathlib.Algebra.Homology.BifunctorFlip Mathlib.Algebra.Homology.BifunctorHomotopy Mathlib.Algebra.Homology.BifunctorShift Mathlib.Algebra.Homology.Bifunctor Mathlib.Algebra.Homology.CochainComplexMinus Mathlib.Algebra.Homology.CochainComplexPlus Mathlib.Algebra.Homology.ComplexShapeSigns Mathlib.Algebra.Homology.ConcreteCategory Mathlib.Algebra.Homology.DerivedCategory.Basic Mathlib.Algebra.Homology.DerivedCategory.DerivabilityStructureInjectives Mathlib.Algebra.Homology.DerivedCategory.ExactFunctor Mathlib.Algebra.Homology.DerivedCategory.Ext.Basic Mathlib.Algebra.Homology.DerivedCategory.Ext.EnoughInjectives Mathlib.Algebra.Homology.DerivedCategory.Ext.EnoughProjectives Mathlib.Algebra.Homology.DerivedCategory.Ext.ExactSequences Mathlib.Algebra.Homology.DerivedCategory.Ext.ExtClass Mathlib.Algebra.Homology.DerivedCategory.Ext.Linear Mathlib.Algebra.Homology.DerivedCategory.Ext.MapAdjunction Mathlib.Algebra.Homology.DerivedCategory.Ext.MapBijective Mathlib.Algebra.Homology.DerivedCategory.Ext.Map Mathlib.Algebra.Homology.DerivedCategory.Ext.TStructure Mathlib.Algebra.Homology.DerivedCategory.Fractions Mathlib.Algebra.Homology.DerivedCategory.FullyFaithful Mathlib.Algebra.Homology.DerivedCategory.HomologySequence Mathlib.Algebra.Homology.DerivedCategory.KInjective Mathlib.Algebra.Homology.DerivedCategory.KProjective Mathlib.Algebra.Homology.DerivedCategory.Linear Mathlib.Algebra.Homology.DerivedCategory.Plus Mathlib.Algebra.Homology.DerivedCategory.RightDerivedFunctorPlus Mathlib.Algebra.Homology.DerivedCategory.ShortExact Mathlib.Algebra.Homology.DerivedCategory.SingleTriangle Mathlib.Algebra.Homology.DerivedCategory.SmallShiftedHom Mathlib.Algebra.Homology.DerivedCategory.TStructure Mathlib.Algebra.Homology.Embedding.CochainComplex Mathlib.Algebra.Homology.EulerCharacteristic Mathlib.Algebra.Homology.Factorizations.CM5a Mathlib.Algebra.Homology.Factorizations.CM5b Mathlib.Algebra.Homology.HomotopyCategory.Acyclic Mathlib.Algebra.Homology.HomotopyCategory.ChainComplex Mathlib.Algebra.Homology.HomotopyCategory.DegreewiseSplit Mathlib.Algebra.Homology.HomotopyCategory.HomComplexCohomology Mathlib.Algebra.Homology.HomotopyCategory.HomComplexInduction Mathlib.Algebra.Homology.HomotopyCategory.HomComplexShift Mathlib.Algebra.Homology.HomotopyCategory.HomComplexSingle Mathlib.Algebra.Homology.HomotopyCategory.HomComplex Mathlib.Algebra.Homology.HomotopyCategory.HomologicalFunctor Mathlib.Algebra.Homology.HomotopyCategory.KInjective Mathlib.Algebra.Homology.HomotopyCategory.KProjective Mathlib.Algebra.Homology.HomotopyCategory.MappingCocone Mathlib.Algebra.Homology.HomotopyCategory.MappingCone Mathlib.Algebra.Homology.HomotopyCategory.Plus Mathlib.Algebra.Homology.HomotopyCategory.Pretriangulated Mathlib.Algebra.Homology.HomotopyCategory.ShiftSequence Mathlib.Algebra.Homology.HomotopyCategory.Shift Mathlib.Algebra.Homology.HomotopyCategory.ShortExact Mathlib.Algebra.Homology.HomotopyCategory.SingleFunctors Mathlib.Algebra.Homology.HomotopyCategory.SpectralObject Mathlib.Algebra.Homology.HomotopyCategory.Triangulated Mathlib.Algebra.Homology.ModelCategory.Injective Mathlib.Algebra.Homology.ModelCategory.Lifting Mathlib.Algebra.Homology.Monoidal Mathlib.Algebra.Homology.ShortComplex.Ab Mathlib.Algebra.Homology.ShortComplex.ConcreteCategory Mathlib.Algebra.Homology.ShortComplex.ModuleCat Mathlib.Algebra.Homology.TotalComplexShift Mathlib.Algebra.Homology.TotalComplexSymmetry Mathlib.Algebra.Homology.TotalComplex Mathlib.Algebra.Module.Card Mathlib.Algebra.MonoidAlgebra.Cardinal Mathlib.Algebra.MvPolynomial.Cardinal Mathlib.Algebra.MvPolynomial.Funext Mathlib.Algebra.MvPolynomial.SchwartzZippel Mathlib.Algebra.Order.Archimedean.IndicatorCard Mathlib.Algebra.Order.Chebyshev Mathlib.Algebra.Order.Ring.Units Mathlib.Algebra.Order.ToIntervalMod Mathlib.Algebra.Polynomial.Cardinal Mathlib.Algebra.Polynomial.GroupRingAction Mathlib.Algebra.Polynomial.Roots Mathlib.Algebra.Polynomial.RuleOfSigns Mathlib.Algebra.Ring.NegOnePow Mathlib.Algebra.Ring.Periodic 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.Analysis.Convex.SimplicialComplex.AffineIndependentUnion Mathlib.CategoryTheory.Abelian.Ext Mathlib.CategoryTheory.Abelian.FreydMitchell Mathlib.CategoryTheory.Abelian.GrothendieckAxioms.PresheafOfModules Mathlib.CategoryTheory.Abelian.GrothendieckAxioms.SheafOfModules 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.Abelian.Injective.Basic Mathlib.CategoryTheory.Abelian.Injective.Ext Mathlib.CategoryTheory.Abelian.Injective.Extend Mathlib.CategoryTheory.Abelian.Projective.Basic Mathlib.CategoryTheory.Abelian.Projective.Ext Mathlib.CategoryTheory.Abelian.Projective.Extend Mathlib.CategoryTheory.Abelian.Yoneda Mathlib.CategoryTheory.Action Mathlib.CategoryTheory.Center.NegOnePow Mathlib.CategoryTheory.Comma.CardinalArrow Mathlib.CategoryTheory.Functor.Derived.LeftDerivedTriangulated Mathlib.CategoryTheory.Functor.Derived.RightDerivedTriangulated Mathlib.CategoryTheory.Galois.Action Mathlib.CategoryTheory.Galois.Basic Mathlib.CategoryTheory.Galois.ContAction Mathlib.CategoryTheory.Galois.Decomposition Mathlib.CategoryTheory.Galois.Equivalence Mathlib.CategoryTheory.Galois.EssSurj Mathlib.CategoryTheory.Galois.Examples Mathlib.CategoryTheory.Galois.FullSubcategory Mathlib.CategoryTheory.Galois.Full Mathlib.CategoryTheory.Galois.GaloisObjects Mathlib.CategoryTheory.Galois.IsFundamentalgroup Mathlib.CategoryTheory.Galois.Prorepresentability Mathlib.CategoryTheory.Galois.Topology Mathlib.CategoryTheory.Limits.ConstructLimitMap Mathlib.CategoryTheory.Limits.SmallComplete Mathlib.CategoryTheory.Limits.Types.CardinalFiltered Mathlib.CategoryTheory.Localization.DerivabilityStructure.DerivesTriangulated Mathlib.CategoryTheory.Localization.Triangulated 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.Yoneda.Limits 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.Shift.CommShiftTwo Mathlib.CategoryTheory.Sites.MayerVietorisSquare Mathlib.CategoryTheory.Sites.SheafCohomology.Basic Mathlib.CategoryTheory.Sites.SheafCohomology.ExactSequences Mathlib.CategoryTheory.Sites.SheafCohomology.MayerVietoris Mathlib.CategoryTheory.SmallObject.Basic Mathlib.CategoryTheory.SmallObject.IsCardinalForSmallObjectArgument Mathlib.CategoryTheory.SmallRepresentatives Mathlib.CategoryTheory.Subobject.HasCardinalLT Mathlib.CategoryTheory.Triangulated.Adjunction Mathlib.CategoryTheory.Triangulated.Functor Mathlib.CategoryTheory.Triangulated.Generators Mathlib.CategoryTheory.Triangulated.HomologicalFunctor Mathlib.CategoryTheory.Triangulated.LocalizingSubcategory Mathlib.CategoryTheory.Triangulated.Opposite.Functor Mathlib.CategoryTheory.Triangulated.Opposite.OpOp Mathlib.CategoryTheory.Triangulated.Opposite.Pretriangulated Mathlib.CategoryTheory.Triangulated.Opposite.Subcategory Mathlib.CategoryTheory.Triangulated.Opposite.Triangulated Mathlib.CategoryTheory.Triangulated.Orthogonal Mathlib.CategoryTheory.Triangulated.Pretriangulated Mathlib.CategoryTheory.Triangulated.SpectralObject Mathlib.CategoryTheory.Triangulated.Subcategory Mathlib.CategoryTheory.Triangulated.TStructure.AbelianSubcategory Mathlib.CategoryTheory.Triangulated.TStructure.Basic Mathlib.CategoryTheory.Triangulated.TStructure.ETrunc Mathlib.CategoryTheory.Triangulated.TStructure.Heart Mathlib.CategoryTheory.Triangulated.TStructure.Induced Mathlib.CategoryTheory.Triangulated.TStructure.SpectralObject Mathlib.CategoryTheory.Triangulated.TStructure.TExact Mathlib.CategoryTheory.Triangulated.TStructure.TruncLEGT Mathlib.CategoryTheory.Triangulated.TStructure.TruncLTGE Mathlib.CategoryTheory.Triangulated.TriangleShift Mathlib.CategoryTheory.Triangulated.Triangulated Mathlib.CategoryTheory.Triangulated.WeakKernels Mathlib.CategoryTheory.Triangulated.Yoneda Mathlib.Combinatorics.Additive.ApproximateSubgroup Mathlib.Combinatorics.Additive.RuzsaCovering Mathlib.Combinatorics.Design.Defs Mathlib.Combinatorics.Digraph.Orientation Mathlib.Combinatorics.Enumerative.Partition.GenFun Mathlib.Combinatorics.Enumerative.Pentagonal.PowerSeries Mathlib.Combinatorics.Enumerative.Pentagonal.Ring Mathlib.Combinatorics.Graph.Simple Mathlib.Combinatorics.Hypergraph.Basic Mathlib.Combinatorics.Matroid.Basic Mathlib.Combinatorics.Matroid.Circuit Mathlib.Combinatorics.Matroid.Closure Mathlib.Combinatorics.Matroid.Constructions Mathlib.Combinatorics.Matroid.Dual Mathlib.Combinatorics.Matroid.IndepAxioms Mathlib.Combinatorics.Matroid.Loop Mathlib.Combinatorics.Matroid.Map Mathlib.Combinatorics.Matroid.Minor.Contract Mathlib.Combinatorics.Matroid.Minor.Delete Mathlib.Combinatorics.Matroid.Minor.Order Mathlib.Combinatorics.Matroid.Minor.Restrict Mathlib.Combinatorics.Matroid.Rank.Finite Mathlib.Combinatorics.Matroid.Sum Mathlib.Combinatorics.SimpleGraph.AdjMatrix Mathlib.Combinatorics.SimpleGraph.Basic Mathlib.Combinatorics.SimpleGraph.Cayley Mathlib.Combinatorics.SimpleGraph.Circulant Mathlib.Combinatorics.SimpleGraph.Clique Mathlib.Combinatorics.SimpleGraph.Coloring.EdgeLabeling 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.Ends.Defs Mathlib.Combinatorics.SimpleGraph.Ends.Properties Mathlib.Combinatorics.SimpleGraph.Extremal.Basic Mathlib.Combinatorics.SimpleGraph.Extremal.Turan Mathlib.Combinatorics.SimpleGraph.Finite Mathlib.Combinatorics.SimpleGraph.Finsubgraph Mathlib.Combinatorics.SimpleGraph.Hamiltonian.Perm Mathlib.Combinatorics.SimpleGraph.Hamiltonian Mathlib.Combinatorics.SimpleGraph.IncMatrix Mathlib.Combinatorics.SimpleGraph.LineGraph Mathlib.Combinatorics.SimpleGraph.Maps Mathlib.Combinatorics.SimpleGraph.Matching Mathlib.Combinatorics.SimpleGraph.Operations Mathlib.Combinatorics.SimpleGraph.Paths Mathlib.Combinatorics.SimpleGraph.Regularity.Energy Mathlib.Combinatorics.SimpleGraph.Regularity.Uniform Mathlib.Combinatorics.SimpleGraph.Subgraph Mathlib.Combinatorics.SimpleGraph.Trails Mathlib.Combinatorics.SimpleGraph.Triangle.Basic Mathlib.Combinatorics.SimpleGraph.Triangle.Counting Mathlib.Combinatorics.SimpleGraph.Triangle.Tripartite Mathlib.Combinatorics.SimpleGraph.UniversalVerts 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.Computability.Encoding Mathlib.Computability.TuringMachine.Computable Mathlib.Data.DFinsupp.WellFounded Mathlib.Data.Finite.Card Mathlib.Data.Finsupp.MonomialOrder.DegLex Mathlib.Data.Finsupp.MonomialOrder Mathlib.Data.Finsupp.WellFounded Mathlib.Data.Fintype.Units Mathlib.Data.Nat.Periodic Mathlib.Data.Nat.Totient Mathlib.Data.Rat.Cardinal Mathlib.Data.Set.Card.Arithmetic Mathlib.Data.Set.Card Mathlib.Data.Setoid.Partition.Card Mathlib.Data.Sym.NatCard Mathlib.Data.Sym.Sym2.Card Mathlib.Data.W.Cardinal Mathlib.Data.ZMod.Aut Mathlib.Data.ZMod.Basic Mathlib.Data.ZMod.Factorial Mathlib.Data.ZMod.IntUnitsPower Mathlib.Data.ZMod.Units Mathlib.Data.ZMod.ValMinAbs Mathlib.FieldTheory.PrimeField Mathlib.Geometry.Convex.ConvexSpace.ModuleTopology Mathlib.Geometry.Convex.ConvexSpace.Topology Mathlib.GroupTheory.Abelianization.Finite Mathlib.GroupTheory.ClassEquation Mathlib.GroupTheory.Commensurable Mathlib.GroupTheory.Commutator.Finite Mathlib.GroupTheory.Complement Mathlib.GroupTheory.CoprodI Mathlib.GroupTheory.Coset.Card Mathlib.GroupTheory.CosetCover Mathlib.GroupTheory.Coxeter.Inversion Mathlib.GroupTheory.Coxeter.Length Mathlib.GroupTheory.Exponent Mathlib.GroupTheory.FiniteIndexNormalSubgroup Mathlib.GroupTheory.FixedPointFree Mathlib.GroupTheory.FreeGroup.Center Mathlib.GroupTheory.FreeGroup.NielsenSchreier Mathlib.GroupTheory.GroupAction.Blocks Mathlib.GroupTheory.GroupAction.CardCommute Mathlib.GroupTheory.GroupAction.Iwasawa Mathlib.GroupTheory.GroupAction.Period Mathlib.GroupTheory.GroupAction.Primitive Mathlib.GroupTheory.GroupAction.SubMulAction.OfFixingSubgroup Mathlib.GroupTheory.GroupAction.SubMulAction.OfStabilizer Mathlib.GroupTheory.GroupExtension.Basic Mathlib.GroupTheory.GroupExtension.Defs Mathlib.GroupTheory.HNNExtension Mathlib.GroupTheory.Index Mathlib.GroupTheory.MonoidLocalization.Cardinality Mathlib.GroupTheory.Nilpotent.LowerCentralSeries Mathlib.GroupTheory.NoncommPiCoprod Mathlib.GroupTheory.OrderOfElement Mathlib.GroupTheory.OreLocalization.Cardinality Mathlib.GroupTheory.Perm.Centralizer Mathlib.GroupTheory.Perm.Closure Mathlib.GroupTheory.Perm.ConjAct Mathlib.GroupTheory.Perm.Cycle.Basic Mathlib.GroupTheory.Perm.Cycle.Concrete Mathlib.GroupTheory.Perm.Cycle.Factors Mathlib.GroupTheory.Perm.Cycle.PossibleTypes Mathlib.GroupTheory.Perm.Cycle.Type Mathlib.GroupTheory.Perm.DomMulAct Mathlib.GroupTheory.Perm.Finite Mathlib.GroupTheory.Perm.Subgroup Mathlib.GroupTheory.PushoutI Mathlib.GroupTheory.QuotientGroup.Finite Mathlib.GroupTheory.Rank Mathlib.GroupTheory.ResiduallyFinite Mathlib.GroupTheory.SemidirectProduct Mathlib.GroupTheory.Solvable Mathlib.LinearAlgebra.Alternating.DomCoprod Mathlib.LinearAlgebra.Basis.Cardinality Mathlib.LinearAlgebra.Dimension.Basic Mathlib.LinearAlgebra.Dimension.Finrank Mathlib.LinearAlgebra.Dimension.Subsingleton Mathlib.LinearAlgebra.FiniteSpan Mathlib.LinearAlgebra.FreeModule.Finite.Basic Mathlib.LinearAlgebra.Isomorphisms Mathlib.LinearAlgebra.PiTensorProduct.Dual Mathlib.LinearAlgebra.PiTensorProduct.Finite Mathlib.LinearAlgebra.PiTensorProduct.Generators Mathlib.LinearAlgebra.Quotient.Card Mathlib.LinearAlgebra.TensorProduct.Graded.External Mathlib.LinearAlgebra.TensorProduct.Graded.Internal Mathlib.MeasureTheory.Constructions.SimpleGraph Mathlib.MeasureTheory.MeasurableSpace.Card Mathlib.MeasureTheory.MeasurableSpace.NCard Mathlib.ModelTheory.Algebra.Field.Basic Mathlib.ModelTheory.Algebra.Field.CharP Mathlib.ModelTheory.Algebra.Ring.Basic Mathlib.ModelTheory.Algebra.Ring.FreeCommRing Mathlib.ModelTheory.Arithmetic.Presburger.Basic Mathlib.ModelTheory.Arithmetic.Presburger.Definability Mathlib.ModelTheory.Arithmetic.Presburger.Semilinear.Basic Mathlib.ModelTheory.Arithmetic.Presburger.Semilinear.Defs Mathlib.ModelTheory.Basic Mathlib.ModelTheory.Bundled Mathlib.ModelTheory.Complexity Mathlib.ModelTheory.Definability 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.LanguageMap Mathlib.ModelTheory.Order Mathlib.ModelTheory.PartialEquiv Mathlib.ModelTheory.Quotients Mathlib.ModelTheory.Satisfiability Mathlib.ModelTheory.Semantics Mathlib.ModelTheory.Skolem Mathlib.ModelTheory.Substructures Mathlib.ModelTheory.Syntax Mathlib.ModelTheory.Topology.Types Mathlib.ModelTheory.Types Mathlib.ModelTheory.Ultraproducts Mathlib.NumberTheory.DirichletCharacter.Basic Mathlib.NumberTheory.HeckeRing.Defs Mathlib.NumberTheory.LegendreSymbol.ZModChar Mathlib.NumberTheory.MulChar.Basic Mathlib.NumberTheory.PrimeCounting Mathlib.NumberTheory.Primorial Mathlib.NumberTheory.SmoothNumbers Mathlib.Order.Extension.Well Mathlib.Order.Filter.CardinalInter Mathlib.Order.Filter.Cocardinal Mathlib.Order.Filter.Ultrafilter.Cardinality Mathlib.Order.Interval.Set.Card Mathlib.Order.Interval.Set.Nat Mathlib.Order.IsNormal Mathlib.Order.Monotone.MonovaryOrder Mathlib.Order.Setoid.Partition.Card Mathlib.Order.SuccPred.CompleteLinearOrder Mathlib.Order.Types.Arithmetic Mathlib.RingTheory.Algebraic.Cardinality Mathlib.RingTheory.Binomial Mathlib.RingTheory.Finiteness.Cardinality Mathlib.RingTheory.Finiteness.Projective Mathlib.RingTheory.Fintype Mathlib.RingTheory.HahnSeries.Binomial Mathlib.RingTheory.HahnSeries.Cardinal Mathlib.RingTheory.HahnSeries.PowerSeries Mathlib.RingTheory.Ideal.IsPrincipalPowQuotient Mathlib.RingTheory.Ideal.Quotient.Basic Mathlib.RingTheory.Localization.Cardinality Mathlib.RingTheory.MvPolynomial.Basic Mathlib.RingTheory.MvPolynomial.Symmetric.FundamentalTheorem Mathlib.RingTheory.MvPowerSeries.Derivative Mathlib.RingTheory.MvPowerSeries.Evaluation Mathlib.RingTheory.MvPowerSeries.Inverse Mathlib.RingTheory.MvPowerSeries.LexOrder Mathlib.RingTheory.MvPowerSeries.LinearTopology Mathlib.RingTheory.MvPowerSeries.NoZeroDivisors Mathlib.RingTheory.MvPowerSeries.PiTopology Mathlib.RingTheory.OreLocalization.Cardinality Mathlib.RingTheory.OrzechProperty Mathlib.RingTheory.Polynomial.HilbertPoly Mathlib.RingTheory.PowerSeries.Binomial Mathlib.RingTheory.PowerSeries.Evaluation Mathlib.RingTheory.PowerSeries.PiTopology Mathlib.RingTheory.Regular.Category Mathlib.RingTheory.TensorProduct.Finite Mathlib.SetTheory.Cardinal.Aleph Mathlib.SetTheory.Cardinal.Arithmetic Mathlib.SetTheory.Cardinal.Basic Mathlib.SetTheory.Cardinal.Cofinality.Basic Mathlib.SetTheory.Cardinal.Cofinality.Club Mathlib.SetTheory.Cardinal.Cofinality.Enum Mathlib.SetTheory.Cardinal.Cofinality.Ordinal Mathlib.SetTheory.Cardinal.Cofinality Mathlib.SetTheory.Cardinal.Continuum Mathlib.SetTheory.Cardinal.CountableCover Mathlib.SetTheory.Cardinal.DirectLimit Mathlib.SetTheory.Cardinal.Divisibility Mathlib.SetTheory.Cardinal.ENat Mathlib.SetTheory.Cardinal.Embedding Mathlib.SetTheory.Cardinal.EventuallyConst Mathlib.SetTheory.Cardinal.Finite Mathlib.SetTheory.Cardinal.Finsupp Mathlib.SetTheory.Cardinal.Free Mathlib.SetTheory.Cardinal.HasCardinalLT Mathlib.SetTheory.Cardinal.NatCard Mathlib.SetTheory.Cardinal.NatCount Mathlib.SetTheory.Cardinal.Order Mathlib.SetTheory.Cardinal.Ordinal Mathlib.SetTheory.Cardinal.Pigeonhole Mathlib.SetTheory.Cardinal.Rat Mathlib.SetTheory.Cardinal.Regular Mathlib.SetTheory.Cardinal.Subfield Mathlib.SetTheory.Cardinal.ToNat Mathlib.SetTheory.Cardinal.UnivLE Mathlib.SetTheory.Ordinal.Arithmetic Mathlib.SetTheory.Ordinal.Basic Mathlib.SetTheory.Ordinal.CantorNormalForm Mathlib.SetTheory.Ordinal.Commute Mathlib.SetTheory.Ordinal.Enum Mathlib.SetTheory.Ordinal.Exponential Mathlib.SetTheory.Ordinal.Family Mathlib.SetTheory.Ordinal.FixedPointApproximants Mathlib.SetTheory.Ordinal.FixedPoint Mathlib.SetTheory.Ordinal.FundamentalSequence Mathlib.SetTheory.Ordinal.Notation Mathlib.SetTheory.Ordinal.Principal Mathlib.SetTheory.Ordinal.Rank Mathlib.SetTheory.Ordinal.Topology Mathlib.SetTheory.Ordinal.Univ Mathlib.SetTheory.Ordinal.Veblen Mathlib.SetTheory.ZFC.Cardinal Mathlib.SetTheory.ZFC.Ordinal Mathlib.SetTheory.ZFC.Rank Mathlib.SetTheory.ZFC.VonNeumann Mathlib.Tactic.NormNum.Ordinal Mathlib.Tactic.ReduceModChar Mathlib.Topology.Algebra.ClopenNhdofOne Mathlib.Topology.Algebra.Group.ClosedSubgroup Mathlib.Topology.Algebra.Group.DiscontinuousSubgroup Mathlib.Topology.Algebra.InfiniteSum.Constructions Mathlib.Topology.Algebra.InfiniteSum.DiscreteConvolution Mathlib.Topology.Algebra.InfiniteSum.GroupCompletion Mathlib.Topology.Algebra.InfiniteSum.Group Mathlib.Topology.Algebra.InfiniteSum.Module Mathlib.Topology.Algebra.InfiniteSum.NatInt Mathlib.Topology.Algebra.InfiniteSum.Nonarchimedean Mathlib.Topology.Algebra.InfiniteSum.Order Mathlib.Topology.Algebra.InfiniteSum.Ring Mathlib.Topology.Algebra.IsUniformGroup.DiscreteSubgroup Mathlib.Topology.Algebra.Module.ModuleTopology Mathlib.Topology.CantorBendixson Mathlib.Topology.Connected.CardComponents Mathlib.Topology.ContinuousMap.Periodic Mathlib.Topology.Covering.AddCircle Mathlib.Topology.Instances.AddCircle.Defs Mathlib.Topology.Maps.Strict.Module Mathlib.Topology.Order.IsNormal Mathlib.Topology.Separation.NotNormal Mathlib.Topology.Sheaves.Abelian Mathlib.Topology.Sheaves.AddCommGrpCat Mathlib.Topology.Sheaves.Flasque Mathlib.Topology.Sheaves.MayerVietoris
1

Declarations diff (regex)

+ forall_bot_lt
+ iSup_eq_top_iff_le
+ iSup_eq_top_iff_lt
+ sSup_eq_top_iff_le
+ sSup_eq_top_iff_lt

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

  • +6 new declarations
  • −0 removed declarations
+WithBot.forall_bot_lt
+WithTop.forall_lt_top
+WithTop.iSup_eq_top_iff_le
+WithTop.iSup_eq_top_iff_lt
+WithTop.sSup_eq_top_iff_le
+WithTop.sSup_eq_top_iff_lt

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

Current commit 817c564e61
Reference commit 58187470c1

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

@github-actions github-actions Bot added the t-order Order theory label Jun 15, 2026
@mathlib-dependent-issues mathlib-dependent-issues Bot added the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Jun 15, 2026
@SnirBroshi SnirBroshi changed the title feat(Order/SuccPred/CompleteLinearOrder): sSup s = ⊤ iff theorems for WithTop feat(Order/SuccPred/CompleteLinearOrder): sSup s = ⊤ iff theorems for WithTop Jul 2, 2026
@mathlib-dependent-issues mathlib-dependent-issues Bot removed the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Aug 25, 2026
@mathlib-dependent-issues

Copy link
Copy Markdown

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

Can you state these using IsCofinal/\not IsBddAbove?

@YaelDillies YaelDillies added the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Nov 18, 2026
@SnirBroshi

Copy link
Copy Markdown
Collaborator Author

I don't think that's possible; can you demonstrate one?

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

Copy link
Copy Markdown
Contributor

I mean something like IsCofinal (WithTop.some \-1' s)

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

@vihdzp vihdzp left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This all looks good to me. I should point out that after #35674 you can rewrite the assumptions as ConditionallyCompleteLinearOrder + OrderBot and dualize 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

awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. t-order Order theory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants