Alphabeta Math
LemmaStatement: AI-adaptedProof: AI-generatedSession-authored (Fable 5 assisted)precheck passaudited 2026-07-31
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.

Shortest-path distance is a metric on every connected component

Statement

Let CC be the vertex set of a connected component of a graph GG. The function dG:C×CNd_G:C\times C\to\mathbb N satisfies, for all u,v,wCu,v,w\in C,

  1. dG(u,v)0d_G(u,v)\ge0, with dG(u,v)=0d_G(u,v)=0 if and only if u=vu=v;
  2. dG(u,v)=dG(v,u)d_G(u,v)=d_G(v,u);
  3. dG(u,w)dG(u,v)+dG(v,w)d_G(u,w)\le d_G(u,v)+d_G(v,w).

These are the metric axioms, so shortest-path distance is a metric on CC.

Facts & Assumptions

Given: Vertices u,v,wu,v,w in one connected component CC of GG.

[F1]

dG(x,y)d_G(x,y) is the least length of an xx to yy path, and the length is a natural number (Graph distance within a component, eccentricity, diameter and girth, including the acyclic convention).

[L1]

Every walk contains a path between the same endpoints whose length is no greater (Every walk between two vertices contains a path between the same endpoints).

[F2]

Reversing a path preserves its length, and concatenating an xx to yy path of length aa with a yy to zz path of length bb gives an xx to zz walk of length a+ba+b.

Proof

technique · direct
1.1

Every path length is a natural number, hence dG(u,v)0d_G(u,v)\ge0. The length-00 path (u)(u) gives dG(u,u)=0d_G(u,u)=0. Conversely a path of length 00 has one vertex, so dG(u,v)=0d_G(u,v)=0 forces u=vu=v.

F1
1.2

Reversing a shortest uu to vv path gives a vv to uu path of the same length, so dG(v,u)dG(u,v)d_G(v,u)\le d_G(u,v); reversing the roles gives the opposite inequality, hence equality.

F1F2
1.3

Concatenate shortest paths from uu to vv and from vv to ww. This is a uu to ww walk of length dG(u,v)+dG(v,w)d_G(u,v)+d_G(v,w), and [L1] supplies a uu to ww path of no greater length. Minimality in [F1] gives dG(u,w)dG(u,v)+dG(v,w)d_G(u,w)\le d_G(u,v)+d_G(v,w).

F1F2L1
2.1

Steps 1.1, 1.2 and 1.3 establish separation, symmetry and the triangle inequality directly on CC, so dGd_G is a metric there.

step 1.1step 1.2step 1.3

Depends on

Used by

Nothing in the library uses this result yet.

Dependency tree · next 3 levels

Direct dependencies and their dependencies through the next three levels: 16 results over 12 levels. An arrow runs from a result to what uses it, and this result sits at the bottom with a heavier outline. Click the chart to enlarge it.

Sources