Parent: #1
Objective
Formalize the metric identity for the square graph and derive the radius formula needed for Written on the Wall II Conjecture 146.
The verified human proof uses
d_{G²}(a,b) = ceil(d_G(a,b)/2), represented on naturals as (G.dist a b + 1) / 2;
graphSquareRadius G = ceil(rad(G)/2).
Target environment
- Lean 4.27.0
- Mathlib v4.27.0
- Upstream Formal Conjectures pinned in this repository's
lakefile.toml
- Definitions:
SimpleGraph.graphSquare, SimpleGraph.dist, SimpleGraph.radius, and WrittenOnTheWallII.GraphConjecture146.graphSquareRadius
Deliverables
- A sorry-free lemma equivalent to:
lemma graphSquare_dist (h : G.Connected) (a b : α) :
(graphSquare G).dist a b = (G.dist a b + 1) / 2
- A sorry-free radius consequence in the exact repository types; note that
SimpleGraph.radius is ℕ∞, while graphSquareRadius is radius.toNat.
- Unit/regression examples on paths of lengths 1–5.
#print axioms audit showing only standard Lean axioms.
- CI command passing with
-DwarningAsError=true.
Proof guidance
- Upper bound: take a
G-geodesic and pair consecutive edges to build a walk in graphSquare G.
- Lower bound: map each square-graph edge to a
G walk of length at most 2, concatenate, and compare with G.dist.
- Keep disconnected-graph
dist = 0 conventions out of the main statement by retaining connectedness.
Commit work to branch wowii-146-proof or provide a cherry-pickable commit.
Parent: #1
Objective
Formalize the metric identity for the square graph and derive the radius formula needed for Written on the Wall II Conjecture 146.
The verified human proof uses
d_{G²}(a,b) = ceil(d_G(a,b)/2), represented on naturals as(G.dist a b + 1) / 2;graphSquareRadius G = ceil(rad(G)/2).Target environment
lakefile.tomlSimpleGraph.graphSquare,SimpleGraph.dist,SimpleGraph.radius, andWrittenOnTheWallII.GraphConjecture146.graphSquareRadiusDeliverables
SimpleGraph.radiusisℕ∞, whilegraphSquareRadiusisradius.toNat.#print axiomsaudit showing only standard Lean axioms.-DwarningAsError=true.Proof guidance
G-geodesic and pair consecutive edges to build a walk ingraphSquare G.Gwalk of length at most 2, concatenate, and compare withG.dist.dist = 0conventions out of the main statement by retaining connectedness.Commit work to branch
wowii-146-proofor provide a cherry-pickable commit.