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.
Metric space: iff , symmetry, and the triangle inequality; pseudometric and ultrametric
Definition
Throughout, is the complete ordered field (Complete ordered field (least-upper-bound property), Ordered field) constructed in this library (The real numbers) and carrying its order (Order on the reals).
Let be a set. A metric on is a function such that for all :
- (M1) Separation. if and only if .
- (M2) Symmetry. .
- (M3) Triangle inequality. .
A metric space is a pair consisting of a set and a metric on it. The elements of are its points and is the distance from to . When only one metric is in play we write for ; when several are, the metric is always named.
The values of a metric are real numbers. The codomain is , so is an honest element of the complete ordered field and every inequality above is an inequality there. No infinite value is permitted; Which metric axiom list this library uses, the live naming fork between semimetric and pseudometric, and why extended metrics are not treated here records why extended metrics are not treated in this library.
Nonnegativity is deliberately absent from the axiom list. Many texts add a fourth axiom . It is redundant: (M1), (M2) and (M3) already force it, as Nonnegativity of a metric is a consequence of the other axioms, not an axiom proves. Nothing below assumes it before that lemma is available.
Pseudometric. A pseudometric on is a function satisfying (M2), (M3) and the weakening
- (M1') Reflexivity. for every
of (M1). A pseudometric may therefore assign distance to two distinct points. Every metric is a pseudometric, and a pseudometric is a metric exactly when forces .
Ultrametric. An ultrametric on is a metric that in addition satisfies
- (M3') Strong triangle inequality.
for all , where the maximum is that of a two-element subset of , which exists and is one of the two elements (Maximum and minimum of a set, Every nonempty finite set of reals has a maximum and a minimum). An ultrametric space is a pair with an ultrametric.
Definition references
Remarks
-
(M3') is a genuine strengthening of (M3), not an independent axiom on top of it. A function satisfying (M1), (M2) and (M3') automatically satisfies (M3): by Nonnegativity of a metric is a consequence of the other axioms, not an axiom such a function is nonnegative, and for nonnegative reals one has , since the maximum is one of and the other summand is . So "a metric satisfying (M3')" and "a function satisfying (M1), (M2), (M3')" describe the same objects, and the definition above may be read either way.
-
Why the biconditional form of (M1). Splitting (M1) into "" and "" gives the same notion; the split form is what makes the pseudometric weakening above a matter of deleting one clause. The naming fork between pseudometric and semimetric, which is live in the literature, is settled for this library in Which metric axiom list this library uses, the live naming fork between semimetric and pseudometric, and why extended metrics are not treated here.
-
The metric is part of the data. Two different metrics on the same set are two different metric spaces, even when they have the same open sets. That is why Topologically, uniformly and Lipschitz equivalent metrics on a set compares metrics at three separate strengths rather than one, and why a property can be invariant under one of them and not under another (FALSE: boundedness of a metric space is determined by its topology).