Theorem: Let (f: [a, b] \to \mathbb{R}) be continuous on the closed interval ([a, b]). Let (k) be any real number such that (f(a) < k < f(b)) (or (f(b) < k < f(a)); the proof is symmetric). Then there exists at least one (c \in (a, b)) such that (f(c) = k).
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
(More generally, if (k) lies between (f(a)) and (f(b)), inclusive, then (c \in [a, b]); the endpoints are trivial if (k = f(a)) or (k = f(b)).)
Proof:
Without loss of generality, assume (f(a) < k < f(b)). (The case (f(b) < k < f(a)) follows by considering (-f).)
Define the set
[
S = { x \in [a, b] \mid f(x) \leq k }.
]
(S) is nonempty because (f(a) < k), so (a \in S).
(S) is bounded above by (b).
By the completeness axiom of (\mathbb{R}) (every nonempty subset of (\mathbb{R}) bounded above has a least upper bound), let
[
c = \sup S \in [a, b].
]
We claim (f(c) = k). Proceed by contradiction in two parts.
Part 1: (f(c) \not> k), i.e., (f(c) \leq k)
Suppose, for contradiction, that (f(c) > k). By continuity of (f) at (c), there exists (\delta > 0) such that for all (x \in [a, b]) with (|x - c| < \delta),
[
f(x) > k.
]
Since (c = \sup S), there exists a sequence ((x_n)_{n=1}^\infty \subset S) with (x_n \to c) and (x_n < c) for all (n). For sufficiently large (n), (|x_n - c| < \delta), so (x_n \in (c - \delta, c)) and (f(x_n) > k). But (x_n \in S) implies (f(x_n) \leq k), a contradiction.
Thus, (f(c) \leq k).
Part 2: (f(c) \not< k), i.e., (f(c) \geq k)
Suppose, for contradiction, that (f(c) < k). By continuity at (c), there exists (\delta > 0) such that for all (x \in [a, b]) with (|x - c| < \delta),
[
f(x) < k.
]
Choose any (x \in (c, \min{c + \delta, b})). Such an (x > c) exists unless (c = b). But then (f(x) < k \leq k), so (x \in S). This contradicts (c = \sup S), as (x > c) would be in (S).
(If (c = b), then (f(b) \leq k) by Part 1, but (f(b) > k) by assumption, another contradiction. Thus (c < b).)
Therefore, (f(c) = k). Since (f(a) < k < f(b)), we have (a < c < b).
Q.E.D.
Elementary as a bisection method, yet profound—continuity bridges the gap between endpoints, as inevitable as dawn after dusk.