First return to a level exists
ProvedMovingSofa.ForMathlib.exists_first_returncalculusreal-analysis
A continuous function starting below a level and reaching it has a first hitting time via sInf of the superlevel set.
Preamble
import Mathlib.Analysis.Calculus.Deriv.Slope import Mathlib.Topology.Order.Compact import Mathlib.Topology.Order.IntermediateValue
Formal statement
namespace MovingSofa.ForMathlib
theorem exists_first_return {g : ℝ → ℝ} {a b c : ℝ} (hab : a < b)
(hcont : ContinuousOn g (Set.Icc a b)) (hga : g a < c) (hgb : c ≤ g b) :
∃ t ∈ Set.Ioc a b, g t = c ∧ ∀ u ∈ Set.Ico a t, g u < c := by sorry
end MovingSofa.ForMathlibSource