Mathlib theorem · Existing formal mathematics

Existing in Mathlib · Topology and analysis

Intermediate Value Theorem

If f is continuous from a to b and f(a) is below f(b), then no value between those endpoint outputs can be skipped: each one equals f(x) for some x between a and b.

Exact theorem

Exact Mathlib statement

theorem intermediate_value_Icc {α : Type*} [ConditionallyCompleteLinearOrder α] [TopologicalSpace α] [OrderTopology α] [DenselyOrdered α] {δ : Type*} [LinearOrder δ] [TopologicalSpace δ] [OrderClosedTopology δ] {a b : α} (hab : a ≤ b) {f : α → δ} (hf : ContinuousOn f (Set.Icc a b)) : Set.Icc (f a) (f b) ⊆ f '' Set.Icc a b

The theorem at a glance

Intermediate Value Theorem — exact interval-image form

A visual guide to the theorem's hypotheses, structure, and conclusion; the exact statement gives the formal detail.

The selected Mathlib declaration states the increasing endpoint-value orientation as an interval-image inclusion. Explanatory diagram.
Detailed visual description

The retained poster presents the domain order, continuity hypothesis, image inclusion, pointwise reading, and boundary separating the reversed and unordered forms.

Statement structure

Statement and scope

Statement map for Intermediate Value TheoremA continuous function on a closed interval attains every value between its endpoint values in the selected increasing endpoint orientation. Claim boundary: This target indexes Mathlib's ordered interval-image inclusion for a continuous function on [a,b]: every value between f(a) and f(b) occurs when a is at most b. The selected orientation uses Icc(f a)(f b), so it does not separately state the reversed-endpoint form. The pinned upstream declaration is intermediate_value_Icc. The complete formal statement is available in the Exact Mathlib statement section.Mathematical readingA continuous function ona closed intervalattains every valuebetween its endpointvalues in the selectedincreasing endpointorientation.Claim boundaryThis target indexesMathlib's orderedinterval-image inclusionfor a continuousfunction on [a,b]: everyvalue between f(a) andf(b) occurs when a is atmost b. The selectedorientation uses Icc(fa)(f b), so it does notseparately state thereversed-endpoint form.Pinned declarationmathlib ·intermediate_value_IccStatement map for Intermediate Value TheoremA continuous function on a closed interval attains every value between its endpoint values in the selected increasing endpoint orientation. Claim boundary: This target indexes Mathlib's ordered interval-image inclusion for a continuous function on [a,b]: every value between f(a) and f(b) occurs when a is at most b. The selected orientation uses Icc(f a)(f b), so it does not separately state the reversed-endpoint form. The pinned upstream declaration is intermediate_value_Icc. The complete formal statement is available in the Exact Mathlib statement section.Mathematical readingA continuous function ona closed intervalattains every valuebetween its endpointvalues in the selectedincreasing endpointorientation.Claim boundaryThis target indexesMathlib's orderedinterval-image inclusionfor a continuousfunction on [a,b]: everyvalue between f(a) andf(b) occurs when a is atmost b. The selectedorientation uses Icc(fa)(f b), so it does notseparately state thereversed-endpoint form.Pinned declarationmathlib ·intermediate_value_Icc

Read the exact Mathlib declaration

This map summarizes the statement's structure; the exact Mathlib declaration remains authoritative.

Continuity forces each value between f(a) and f(b) to occur at some point of the closed interval. Explanatory scientific diagram.
Detailed visual description

The theorem turns continuity on Icc a b and the endpoint order into an inclusion of the entire output interval inside the image of the input interval.

Why it matters

A mathematical landmark

The Intermediate Value Theorem captures the no-jumps consequence of continuity. It is central to real analysis, root existence, connectedness, and numerical bracketing arguments.

ProofAtlas record

What has been checked

Upstream indexedPinned source bytes verified locally
Locally reproducedExact upstream declaration replayed
Reviewed pageCurrent public presentation reviewed
Accepted Atlas resultNot recorded for the preferred artifact

Mathlib is the source of the theorem; the local Lean replay and page review are separate.

Claim boundary

No new theorem is claimed

This target indexes Mathlib's ordered interval-image inclusion for a continuous function on [a,b]: every value between f(a) and f(b) occurs when a is at most b. The selected orientation uses Icc(f a)(f b), so it does not separately state the reversed-endpoint form.

Source and local evidence

Where the theorem comes from

Existing declaration
intermediate_value_Icc in mathlib
Relationship
The checked artifact is the upstream declaration itself
Local Lean evidence
artifact.library.mathlib.intermediate-value-theorem.v001
Source
Open the pinned upstream reference