BandPrototile #
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.
The relation “$T$ is a band prototile for $C$” is generated recursively as follows. A line $(0,\pm1)$ has the empty prototile with any chosen singleton anchor. A curvature-one root $(1,1+2z)$ has any singleton cell $\{s_x\}$; as for every nonempty prototile, its stored anchor is auxiliary and unrestricted. For a proper quadruple $(C_0,C_1,C_2,C_3)$, choose two prototiles $T_i^\pm$ for every parent. Their union is a prototile $T_0$ when every parent footprint is contained in the child footprint and, for every cyclic ordering $(i,j,k)$ of $(1,2,3)$, $$ \operatorname{cent}(T_i^\pm)-\operatorname{cent}(T_0) =\pm\tfrac12\bigl([v_{kj}]-[iv_{kj}]\bigr). $$ No disk, symmetry, touching, or tiling conclusion is part of this recursive definition.
- line (w x : GaussianInt) (hw : w = 1 ∨ w = -1) : BandPrototile (0, w) { cells := ∅, anchor := x }
- unit (z x anchor : GaussianInt) : BandPrototile (1, 1 + 2 * z) { cells := {x}, anchor := anchor }
- decompose {q : Fin 4 → CircleCoordinates} (hq : ProperBandQuadruple q) {S : Fin 3 → Bool → ProtoTile} {T : ProtoTile} (hS : ∀ (i : Fin 3) (s : Bool), BandPrototile (q i.succ) (S i s)) (hcells : ∀ (x : LatticeCell), x ∈ T.cells ↔ ∃ (i : Fin 3) (s : Bool), x ∈ (S i s).cells) (hfoot : ∀ (i : Fin 3) (s : Bool), FootprintVertices (S i s) ⊆ FootprintVertices T) (hcentroid : ∀ (i : Fin 3) (s : Bool), TileCentroid (S i s) - TileCentroid T = (if s = true then 1 else -1) • (1 / 2) • (GaussianRealPoint (BandVectors.1 (q (i + 2).succ) (q (i + 1).succ)) - (-(GaussianRealPoint (BandVectors.1 (q (i + 2).succ) (q (i + 1).succ))).2, (GaussianRealPoint (BandVectors.1 (q (i + 2).succ) (q (i + 1).succ))).1))) : BandPrototile (q 0) T