Preimages of definable sets are definable
ProvedMonotonicity_Theorem.definable_preimageLet be an o-minimal structure over a dense linear order without endpoints , and let be a definable function of one variable.
Claim. For every definable subset of the line, the preimage
is a definable subset of the line.
Specialising gives the sets that carry the one-dimensional analysis of a definable function: taking produces the fibre , and taking to be a half-line produces the superlevel set or the sublevel set . Since o-minimality constrains definable subsets of the line to be finite unions of points and intervals, these preimages are exactly the sets to which the axiom can be applied when one studies where a definable function is constant, increasing, or decreasing.
Formalization Note. The preimage is expressed as the set of for which there is a proof that lies in the domain and the value of at lies in ; membership of is part of the statement because the function is formalized on the subtype of its domain.
import Definitions.Def_Monotonicity_Theorem_Framework
theorem Monotonicity_Theorem.definable_preimage {R : Type} (D : DenseLinearOrderNoEndpoints R)
(M : OMinimalStructure D) {I B : Set (Power R 1)} (f : DefinableFunction M I B)
{T : Set (Power R 1)} (hT : M.S 1 T) :
M.S 1 (fun y : Power R 1 => exists hy : I y, T (f.toFun (Subtype.mk y hy)).1) := by sorry