TilingLatticeBasis #
Adapted from Wesley Pegden’s Apache-2.0 Trellis formalization of Levine–Pegden–Smart. Changes: pool module paths, public exports, project namespace and current Mathlib compatibility.
theorem
ApollonianSuperharmonic.TilingLatticeBasis
(C : BandCircle)
(q : Fin 4 → CircleCoordinates)
(hq : ProperBandQuadruple q)
(hC : q 0 = ↑↑C)
:
have a := BandVectors.1 (q 1) (q 0);
have b := BandVectors.1 (q 2) (q 0);
have u := BandVectors.1 (q 0) (q 1);
have v := BandVectors.1 (q 0) (q 2);
have L := AddSubgroup.closure {u, v};
a ∈ TilingLattice C ∧ b ∈ TilingLattice C ∧ (∀ (w : ↥(TilingLattice C)), ∃! mn : ℤ × ℤ, ↑mn.1 * a + ↑mn.2 * b = ↑w) ∧ u ∈ L ∧ v ∈ L ∧ (∀ (z : GaussianInt), z ∈ L ↔ ∃ w ∈ TilingLattice C, z = { re := 0, im := 1 } * w) ∧ (∀ (w : ↥L), ∃! mn : ℤ × ℤ, ↑mn.1 * u + ↑mn.2 * v = ↑w) ∧ ∃ (R : Finset GaussianInt), LatticeFundamentalSet L R ∧ R.card = (↑↑C).1.natAbs