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.
Nonnegativity of a metric is a consequence of the other axioms, not an axiom
Statement
Let be a set and let satisfy the reflexivity axiom (M1') and the symmetry axiom (M2) of Metric space: iff , symmetry, and the triangle inequality; pseudometric and ultrametric. Then:
- If satisfies the triangle inequality (M3), then for all .
- If satisfies the strong triangle inequality (M3'), then for all .
In particular every metric, every pseudometric and every ultrametric (Metric space: iff , symmetry, and the triangle inequality; pseudometric and ultrametric) takes only nonnegative values. Nonnegativity is therefore a theorem about the axiom list this library uses, not a fourth axiom, and no statement on this page needs to assume it separately.
Statement references
Facts & Assumptions
Given: A set , points , and a function satisfying (M1') for every and (M2) for all (Metric space: iff , symmetry, and the triangle inequality; pseudometric and ultrametric).
(M3) The triangle inequality holds for all (Metric space: iff , symmetry, and the triangle inequality; pseudometric and ultrametric).
(M3') The strong triangle inequality holds for all (Metric space: iff , symmetry, and the triangle inequality; pseudometric and ultrametric).
Trichotomy of the order of : for reals exactly one of , , holds, so fails exactly when (Order on the reals, Complete ordered field (least-upper-bound property), Ordered field).
Adding two strict inequalities: if and then (Order is preserved by adding a constant and by adding inequalities).
A two-element subset of has a maximum, and that maximum is or ; if it is (Every nonempty finite set of reals has a maximum and a minimum, Maximum and minimum of a set).
Proof
Instantiate [A1] at , , : .
Instantiate [A2] at , , : .
Suppose, towards ruling it out, that .
By (M1') the left side of step 1.1 is and by (M2) the right side is , so .
By (M2) the two entries of the maximum in step 1.2 are the same real number, so that maximum equals by [L3], and (M1') turns step 1.2 into , which is claim 2.
Adding the supposed inequality of step 1.3 to itself gives .
Steps 2.1 and 2.3 assert and , which trichotomy forbids; so the supposition of step 1.3 is untenable and , which is claim 1.
Remarks
- What each claim uses. Claim 1 is the familiar two-line argument followed by the observation that a negative real added to itself stays negative. Claim 2 does not need that second half at all: the strong triangle inequality delivers in one step, because the maximum of a real number with itself is that number.
- Symmetry is used in both claims and cannot be dropped. Without (M2) the instantiation of step 1.1 only gives , which leaves the possibility that one of the two values is negative and the other larger and positive. Dropping (M2) instead of weakening (M1) gives the notion usually called a quasimetric, which this library does not treat; for it the argument above is unavailable, so nonnegativity is not redundant there and is imposed as part of the definition (Which metric axiom list this library uses, the live naming fork between semimetric and pseudometric, and why extended metrics are not treated here).
Depends on
Metric space: iff , symmetry, and the triangle inequality; pseudometric and ultrametric
Order is preserved by adding a constant and by adding inequalities
Order on the reals
Complete ordered field (least-upper-bound property)
Ordered field
Maximum and minimum of a set
Every nonempty finite set of reals has a maximum and a minimum