Finite good partition
ProvedMonotonicity_Theorem.finite_partition_core2The 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.
import Definitions.Def_Monotonicity_Theorem_Framework2
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 sorryRead-back
What the Lean code literally says, in plain math · muse-spark
Fix a type equipped with a linear order that is dense and has no maximum and no minimum, let be an o-minimal structure on , let and be sets of unary tuples over , let be a function from to definable in , let and be unary tuples, assume is strictly less than in the unary-tuple order, and assume the open interval of unary tuples with finite endpoints at the sole coordinates of and is contained in ; then there exist a natural number and a sequence of unary tuples over such that and and is strictly less than for every , and such that for every , letting be the open interval of unary tuples with finite endpoints at the sole coordinates of and , one of the following holds: either is constant on in the sense that for all in lying in and all in lying in the values of at and are equal, and is contained in the set of points at which the graph of with source and target in dimensions and is continuous relative to ; or both is contained in that same set of continuity points and is strictly monotone on in one of two directions, namely either strictly increasing in the sense that for all in lying in with strictly less than the underlying unary tuple of is strictly less than that of , or strictly decreasing in the sense that for all such with strictly less than the underlying unary tuple of is strictly less than that of . In particular if there are no and the conditions on subintervals hold vacuously but and then force , which is incompatible with strictly less than , and for any if is empty or has no comparable distinct points then the constancy and strict monotonicity universal conditions on that hold vacuously.
Confirmed by the mission captain (proposal self-audit).