Module docstring
{"# Intermediate Value Theorem
In this file we prove the Intermediate Value Theorem: if f : α → β is a function defined on a
connected set s that takes both values ≤ a and values ≥ a on s, then it is equal to a at
some point of s. We also prove that intervals in a dense conditionally complete order are
preconnected and any preconnected set is an interval. Then we specialize IVT to functions continuous
on intervals.
Main results
IsPreconnected_I??: all intervalsI??are preconnected,IsPreconnected.intermediate_value,intermediate_value_univ: Intermediate Value Theorem for connected sets and connected spaces, respectively;intermediate_value_Icc,intermediate_value_Icc': Intermediate Value Theorem for functions on closed intervals.
Miscellaneous facts
IsClosed.Icc_subset_of_forall_mem_nhdsWithin: “Continuous induction” principle; ifs ∩ [a, b]is closed,a ∈ s, and for eachx ∈ [a, b) ∩ ssome of its right neighborhoods is includeds, then[a, b] ⊆ s.IsClosed.Icc_subset_of_forall_exists_gt,IsClosed.mem_of_ge_of_forall_exists_gt: two other versions of the “continuous induction” principle.ContinuousOn.StrictMonoOn_of_InjOn_Ioo: Every continuous injectivef : (a, b) → δis strictly monotone or antitone (increasing or decreasing).
Tags
intermediate value theorem, connected space, connected set ","### Intermediate value theorem on a (pre)connected space
In this section we prove the following theorem (see IsPreconnected.intermediate_value₂): if f
and g are two functions continuous on a preconnected set s, f a ≤ g a at some a ∈ s and
g b ≤ f b at some b ∈ s, then f c = g c at some c ∈ s. We prove several versions of this
statement, including the classical IVT that corresponds to a constant function g.
","### (Pre)connected sets in a linear order
In this section we prove the following results:
IsPreconnected.ordConnected: any preconnected setsin a linear order isOrdConnected, i.e.a ∈ sandb ∈ simplyIcc a b ⊆ s;IsPreconnected.mem_intervals: any preconnected setsin a conditionally complete linear order is one of the intervalsSet.Icc,set.Ico,set.Ioc,set.Ioo, ``Set.Ici,Set.Iic,Set.Ioi,Set.Iio; note that this is false for non-complete orders: e.g., inℝ \\ {0}, the set of positive numbers cannot be represented asSet.Ioi _.
","### Intervals are connected
In this section we prove that a closed interval (hence, any OrdConnected set) in a dense
conditionally complete linear order is preconnected.
","### Intermediate Value Theorem on an interval
In this section we prove several versions of the Intermediate Value Theorem for a function continuous on an interval. "}