Plane unit-distance graph and triangular lattice #
This module defines the Euclidean plane graph and the lattice geometry used by the seven-color construction.
The plane R² as a 2-dimensional Euclidean space.
Equations
Instances For
The unit-distance graph on R²: vertices are points of the plane, with
an edge between p and q iff dist p q = 1. Built via
SimpleGraph.fromRel, which automatically symmetrizes the relation
and removes self-loops (dist p p = 0 ≠ 1, so this is harmless).
Equations
- HadwigerNelsonBounds.unitDistanceGraph = SimpleGraph.fromRel fun (p q : HadwigerNelsonBounds.R2) => dist p q = 1
Instances For
Isbell hexagonal-tiling 7-coloring #
Lattice basis spacing. Any value in the interval
(1/(√7 − 2/√3), √3/2) ≈ (0.671, 0.866) is geometrically valid;
we pick the clean rational 3/4.
Equations
Instances For
The triangular-lattice point at integer coords (i, j):
i · (a, 0) + j · (a/2, a·√3/2).
Equations
- One or more equations did not get rendered due to their size.
Instances For
Squared Euclidean distance between two lattice points.
Squared Euclidean distance from a point p : R² to a lattice point.
Helper formula expressed directly in terms of p 0, p 1, i, j.