NLA-lib Explorer

exists_strictMono_eq_zero_of_mul_neg

Library · theorem

Ordered zeros between sign changes: if \mathbf{v}_0 < \mathbf{v}_1 < \dots < \mathbf{v}_k and f is continuous on [\mathbf{v}_0, \mathbf{v}_k] with f(\mathbf{v}_i)f(\mathbf{v}_{i+1}) < 0 for every i < k, then f has zeros c_0 < c_1 < \dots < c_{k-1} with \mathbf{v}_i < c_i < \mathbf{v}_{i+1}.

exists_strictMono_eq_zero_of_mul_neg {k : ℕ} {f : ℝ → ℝ} {v : Fin (k + 1) → ℝ} (hv : StrictMono v)
  (hf : ContinuousOn f (Set.Icc (v 0) (v (Fin.last k))))
  (hsign : ∀ (i : Fin k), f (v i.castSucc) * f (v i.succ) < 0) :
  ∃ c, StrictMono c ∧ ∀ (i : Fin k), c i ∈ Set.Ioo (v i.castSucc) (v i.succ) ∧ f (c i) = 0

Full source on GitHub

Import NLAlib.ForMathlib.Topology.Order.IntermediateValue.