intermediate_value
Provedanalysiscalculusproved
Intermediate value theorem: A continuous function on [a,b] takes every value between f(a) and f(b).
Preamble
import Mathlib
Formal statement
import Mathlib
theorem intermediate_value (f : ℝ → ℝ) (a b : ℝ) (hab : a < b)
(hcont : ContinuousOn f (Set.Icc a b))
(y : ℝ) (hy : min (f a) (f b) ≤ y ∧ y ≤ max (f a) (f b)) :
∃ c ∈ Set.Icc a b, f c = y := by
sorrySource