Alphabeta Math
TheoremStatement: AI-adaptedProof: AI-generatedprecheck passjudge pass (z-ai/glm-5.2)audited 2026-07-27
How statement and proof provenance work

The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.

  • Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
  • AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
  • AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.

These labels describe origin, not correctness: citations and verification chips remain separate evidence.

A continuous real-valued function on a nonempty compact metric space is bounded and attains a greatest and a least value

Statement

Let (X,d) be a nonempty compact metric space (Open cover, subcover, compact metric space, and compact subset of a metric space, Metric space: d(x,y)=0 iff x=y, symmetry, and the triangle inequality; pseudometric and ultrametric) and let f:X→R be continuous (Continuity of a map between metric spaces, at a point and globally, in the ε-δ form), R carrying its usual metric dR(s,t)=∣s−t∣ (The absolute value makes R a metric space: d(x,y)=∣x−y∣ is a metric, its open balls are the intervals (x−r,x+r), and it is unbounded). Then the image f[X] is bounded above and below (Lower bound, bounded below, bounded set), and it has a maximum and a minimum (Maximum and minimum of a set): there are points xmax⁡,xmin⁡∈X with

f(xmin⁡)  ≤  f(x)  ≤  f(xmax⁡)for every x∈X,

and then f(xmax⁡)=sup⁡f[X] and f(xmin⁡)=inf⁡f[X] (Complete ordered field (least-upper-bound property), Greatest lower bound (infimum)).

Nonemptiness of X is a hypothesis and not an oversight: for X=∅ the image is empty and has neither a supremum nor a maximum. No choice principle is used.

Facts & Assumptions

Given: A nonempty compact metric space (X,d) and a continuous f:X→R.

[L1]

The image of a compact metric space under a continuous map is a compact subset of the codomain (The image of a compact metric space under a continuous map is compact, and so is the image of any compact subset).

[L4]

A nonempty subset of R that is bounded above has a supremum, and one bounded below has an infimum (Complete ordered field (least-upper-bound property), Greatest lower bound (infimum), Lower bound, bounded below, bounded set).

[L5]

For S nonempty and bounded above with supremum u: for every real ε>0 there is s∈S with u−ε<s≤u; dually for the infimum (Epsilon characterisation of the supremum, Epsilon characterisation of the infimum).

[L7]

A subset of a metric space is compact exactly when the corresponding metric subspace is compact, the subspace metric being the restriction (Open cover, subcover, compact metric space, and compact subset of a metric space, Isometry, isometric embedding, and the subspace metric on a subset).

Proof

technique · direct
1.1

f[X] is a compact subset of (R,dR), and it is nonempty because X is.

L1L7
2.1

So f[X] is closed in R and bounded as a subset of the metric space (R,dR): there are x0∈R and a real ρ>0 with f[X]⊆B(x0,ρ)=(x0−ρ, x0+ρ).

L2L3step 1.1
3.1

Hence x0+ρ is an upper bound and x0−ρ a lower bound of f[X], so f[X] is bounded above and below, and being nonempty it has a supremum u and an infimum ℓ.

L4step 2.1
4.1

For every real ε>0 there is t∈f[X] with u−ε<t≤u, so ∣t−u∣<ε and t∈B(u,ε)∩f[X]; therefore every ball around u meets f[X] and u lies in the closure of f[X].

L3L5L6step 3.1
5.1

Since f[X] is closed, u∈f[X]; so u is a member of f[X] bounding it above, that is u=max⁡f[X], and u=f(xmax⁡) for some xmax⁡∈X.

L6step 2.1step 4.1
6.1

The same argument with ℓ in place of u, using the infimum form of step 4.1, gives ℓ∈f[X], so ℓ=min⁡f[X] and ℓ=f(xmin⁡) for some xmin⁡∈X.

L5L6step 3.1step 5.1
7.1

For every x∈X the value f(x) lies in f[X], hence f(xmin⁡)=ℓ≤f(x)≤u=f(xmax⁡), which is the assertion, with f(xmax⁡)=sup⁡f[X] and f(xmin⁡)=inf⁡f[X].

L4step 3.1step 5.1step 6.1∎

Remarks

Compactness is what is used, not boundedness of the domain. A bounded non-compact domain is not enough: on the interval (0,1) the identity map is continuous and bounded with no greatest value, and x↦1/x is continuous and unbounded (On (0,1) the identity is bounded with no greatest value and x↦1/x is continuous and unbounded, so the extreme value theorem needs compactness and not merely boundedness of the domain ↗).

Why the supremum has to be shown to be attained at all. sup⁡f[X] exists as soon as f[X] is nonempty and bounded above, which needs only boundedness; what compactness adds is that f[X] is closed, and a closed set contains the supremum it approaches. Steps 4.1 and 5.1 are exactly that passage, and they are where the theorem is more than the least-upper-bound property.

Depends on

Used by

…and 15 more results.

Dependency tree · two levels

45 results within two dependency steps of this one, each drawn at its shortest distance from it. An arrow runs from a result to what uses it, so the chart reads left to right and ends at this result, which carries a heavier outline. Every node is a link to that result. Click elsewhere on the chart to enlarge it.

Sources