Lemma 2, injective implies locally monotone
ProvedMonotonicity_Theorem.lemma_twoAn injective definable map has a nonempty open subwindow on which it is strictly increasing or strictly decreasing. Second step of the monotonicity argument.
import Definitions.Def_Monotonicity_Theorem_Framework2
theorem Monotonicity_Theorem.lemma_two {R : Type} [LinearOrder R] [DenselyOrdered R] [NoMaxOrder R] [NoMinOrder R] (M : OMinimalStructure R)
{I B : Set (Power R 1)} (f : DefinableFunction M I B) (hI : Set.Infinite I)
(hinj : ∀ x y (hx : I x) (hy : I y),
f.toFun (Subtype.mk x hx) = f.toFun (Subtype.mk y hy) → x = y) :
∃ a b : Endpoint R, Endpoint.lt a b ∧
(∀ x, openInterval a b x → I x) ∧
((∀ x (hxI : I x) y (hyI : I y), openInterval a b x → openInterval a b y ->
Lt1 x y → Lt1 (f.toFun (Subtype.mk x hxI)).1 (f.toFun (Subtype.mk y hyI)).1) ∨
(∀ x (hxI : I x) y (hyI : I y), openInterval a b x → openInterval a b y ->
Lt1 x y → Lt1 (f.toFun (Subtype.mk y hyI)).1 (f.toFun (Subtype.mk x hxI)).1)) := by sorryRead-back
What the Lean code literally says, in plain math · muse-spark
Let be a type equipped with a linear order that is dense and has neither a maximum nor a minimum, let be an o-minimal structure on , let and be sets of unary tuples over , let be a function definable in from to , suppose is infinite as a set, and suppose is injective in the sense that for any tuples together with proofs that belongs to and belongs to , equality of the values of the underlying function of at the corresponding elements of implies ; then there exist endpoints and over such that is strictly less than , every tuple belonging to the open interval bounded by and belongs to , and either the first alternative holds or the second alternative holds, where the first alternative is that for all in and all in , if lies in the open interval and lies in the open interval and is strictly less than in the strict order on unary tuples, then the unary-tuple value of at is strictly less than the unary-tuple value of at , and the second alternative is that for all in and all in , if lies in and lies in and is strictly less than in the strict order on unary tuples, then the value of at is strictly less than the value of at .
Confirmed by the mission captain (proposal self-audit).