Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Finite good partition

Proved
Monotonicity_Theorem.finite_partition_core2

by Tamas Fulop · Sep 14, 2026 · Mathlib 0df444a (Lean v4.33.1)

geometry-topologyo-minimality

The partition assembly behind the monotonicity theorem: from the constant, increasing, and decreasing window classes with finite bad locus, cut points giving the same piecewise conclusion, under an explicit domain-inclusion hypothesis.

Preamble
import Definitions.Def_Monotonicity_Theorem_Framework2
Formal statement
theorem Monotonicity_Theorem.finite_partition_core2 {R : Type} [LinearOrder R] [DenselyOrdered R] [NoMaxOrder R] [NoMinOrder R]
    (M : OMinimalStructure R) {I B : Set (Power R 1)}
    (f : DefinableFunction M I B)
    {a b : Power R 1} (hab : Lt1 a b)
    (hsubIJ : (openInterval (Endpoint.finite (Power.coord1 a)) (Endpoint.finite (Power.coord1 b))).Subset I) :
    ∃ k : Nat, ∃ p : Fin (k + 1) → Power R 1,
      p 0 = a ∧ p (Fin.last k) = b ∧
      (∀ i : Fin k, Lt1 (p i.castSucc) (p i.succ)) ∧
      (∀ i : Fin k,
        let J : Set (Power R 1) := openInterval (Endpoint.finite ((p i.castSucc) 0)) (Endpoint.finite ((p i.succ) 0))
        (((∀ x (hxI : I x), J x → ∀ y (hyI : I y), J y ->
          f.toFun (Subtype.mk x hxI) = f.toFun (Subtype.mk y hyI)) ∧
          J.Subset (ContinuousPoints I (FunctionGraph (R := R) (m := 1) (n := 1) (A := I) (B := B) f.toFun))) ∨
         (((∀ x (hxI : I x), J x → ∀ y (hyI : I y), J y → Lt1 x y ->
            Lt1 (f.toFun (Subtype.mk x hxI)).1 (f.toFun (Subtype.mk y hyI)).1) ∨
           (∀ x (hxI : I x), J x → ∀ y (hyI : I y), J y → Lt1 x y ->
            Lt1 (f.toFun (Subtype.mk y hyI)).1 (f.toFun (Subtype.mk x hxI)).1)) ∧
          J.Subset (ContinuousPoints I (FunctionGraph (R := R) (m := 1) (n := 1) (A := I) (B := B) f.toFun))))) := by sorry
Source
van den Dries, Tame Topology and O-Minimal Structures, Ch. 3
Read-back

What the Lean code literally says, in plain math · muse-spark

Fix a type RRR equipped with a linear order that is dense and has no maximum and no minimum, let MMM be an o-minimal structure on RRR, let III and BBB be sets of unary tuples over RRR, let fff be a function from III to BBB definable in MMM, let aaa and bbb be unary tuples, assume aaa is strictly less than bbb in the unary-tuple order, and assume the open interval of unary tuples with finite endpoints at the sole coordinates of aaa and bbb is contained in III; then there exist a natural number kkk and a sequence p0,…,pkp_{0},\dots,p_{k}p0​,…,pk​ of unary tuples over RRR such that p0=ap_{0}=ap0​=a and pk=bp_{k}=bpk​=b and pip_{i}pi​ is strictly less than pi+1p_{i+1}pi+1​ for every i<ki<ki<k, and such that for every i<ki<ki<k, letting JiJ_{i}Ji​ be the open interval of unary tuples with finite endpoints at the sole coordinates of pip_{i}pi​ and pi+1p_{i+1}pi+1​, one of the following holds: either fff is constant on I∩JiI\cap J_{i}I∩Ji​ in the sense that for all xxx in III lying in JiJ_{i}Ji​ and all yyy in III lying in JiJ_{i}Ji​ the values of fff at xxx and yyy are equal, and JiJ_{i}Ji​ is contained in the set of points at which the graph of fff with source III and target BBB in dimensions 111 and 111 is continuous relative to III; or both JiJ_{i}Ji​ is contained in that same set of continuity points and fff is strictly monotone on I∩JiI\cap J_{i}I∩Ji​ in one of two directions, namely either strictly increasing in the sense that for all x,yx,yx,y in III lying in JiJ_{i}Ji​ with xxx strictly less than yyy the underlying unary tuple of f(x)f(x)f(x) is strictly less than that of f(y)f(y)f(y), or strictly decreasing in the sense that for all such x,yx,yx,y with xxx strictly less than yyy the underlying unary tuple of f(y)f(y)f(y) is strictly less than that of f(x)f(x)f(x). In particular if k=0k=0k=0 there are no iii and the conditions on subintervals hold vacuously but p0=ap_{0}=ap0​=a and pk=bp_{k}=bpk​=b then force a=ba=ba=b, which is incompatible with aaa strictly less than bbb, and for any iii if I∩JiI\cap J_{i}I∩Ji​ is empty or has no comparable distinct points then the constancy and strict monotonicity universal conditions on that JiJ_{i}Ji​ hold vacuously.

Human review
  • Endorsed by Shuze Chen · Sep 15, 2026

  • Endorsed by Tamas Fulop · Sep 15, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, licensed under Apache 2.0.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTermsJoin SlackJoin Zulip© 2026 Prove2Me