OdometerWeb #
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.OdometerWeb :
(∀ (C : BandCircle) (T₁ T₂ : ProtoTile) (h₁ h₂ : PartialOdometer) (g : IntegerLatticeFunction) (x : GaussianInt),
OdometerCompatibility h₁ h₂ →
GlobalOdometerExtends g h₁ →
GlobalOdometerExtends g h₂ →
x ∈ h₁.domain →
x ∈ h₂.domain →
(∀ (y : GaussianInt),
y = x ∨ y = x + 1 ∨ y = x - 1 ∨ y = x + { re := 0, im := 1 } ∨ y = x - { re := 0, im := 1 } →
y ∈ h₁.domain ∨ y ∈ h₂.domain) →
(LeftLatticeAdjacent C T₁ T₂ h₁ h₂ → FourNeighborLaplacian g x = 1) ∧ (RightLatticeAdjacent C T₁ T₂ h₁ h₂ →
((∀ (s : GaussianInt),
s = x ∨ s = x - 1 ∨ s = x - { re := 0, im := 1 } ∨ s = x - 1 - { re := 0, im := 1 } →
s ∈ T₁.cells ∨ s ∈ T₂.cells) →
FourNeighborLaplacian g x = 1) ∧ ((¬∀ (s : GaussianInt),
s = x ∨ s = x - 1 ∨ s = x - { re := 0, im := 1 } ∨ s = x - 1 - { re := 0, im := 1 } →
s ∈ T₁.cells ∨ s ∈ T₂.cells) →
FourNeighborLaplacian g x = 0))) ∧ ∀ (C₀ Cᵢ : BandCircle) (q : Fin 4 → CircleCoordinates) (i : Fin 3) (s : Fin 4) (T₀ Tᵢ : ProtoTile)
(h₀ hᵢ : PartialOdometer) (g : IntegerLatticeFunction) (x : GaussianInt) (p₀ pᵢ : ℝ × ℝ),
ProperBandQuadruple q →
q 0 = ↑↑C₀ →
q i.succ = ↑↑Cᵢ →
PartialOdometerSlope h₀ = some p₀ →
PartialOdometerSlope hᵢ = some pᵢ →
TileCentroid Tᵢ - TileCentroid T₀ = (1 / 2) • GaussianRealPoint
({ re := 0, im := 1 } ^ ↑s * (BandVectors.1 (q i.succ) (q 0) + BandVectors.1 (q 0) (q i.succ))) →
pᵢ.1 - p₀.1 = ((1 / 2) • GaussianRealPoint
((-{ re := 0, im := 1 }) ^ ↑s * (BandVectors.2 (q i.succ) (q 0) + BandVectors.2 (q 0) (q i.succ)))).1 →
pᵢ.2 - p₀.2 = ((1 / 2) • GaussianRealPoint
((-{ re := 0, im := 1 }) ^ ↑s * (BandVectors.2 (q i.succ) (q 0) + BandVectors.2 (q 0) (q i.succ)))).2 →
SubtileLatticeAdjacent C₀ Cᵢ T₀ Tᵢ h₀ hᵢ →
OdometerCompatibility h₀ hᵢ →
GlobalOdometerExtends g h₀ →
GlobalOdometerExtends g hᵢ →
x ∈ h₀.domain →
x ∈ hᵢ.domain →
(∀ (y : GaussianInt),
y = x ∨ y = x + 1 ∨ y = x - 1 ∨ y = x + { re := 0, im := 1 } ∨ y = x - { re := 0, im := 1 } →
y ∈ h₀.domain ∨ y ∈ hᵢ.domain) →
have uR :=
{ re := 0, im := 1 } ^ ↑s * if Even ↑s then BandVectors.1 (q 0) (q i.succ)
else BandVectors.1 (q i.succ) (q 0);
have UR := TileTranslation T₀ uR;
(x ∈ FootprintVertices UR → FourNeighborLaplacian g x = 0) ∧ (x ∉ FootprintVertices UR → FourNeighborLaplacian g x = 1)