GridRayCrossingIndexZeroOfEdgeLifts #
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.GridRayCrossingIndexZeroOfEdgeLifts
(q : LatticeCell)
(p : List GaussianInt)
(x y : GaussianInt)
(F : GaussianInt → ℂ)
(hhead : p.head? = some x)
(hlast : p.getLast? = some y)
(hadj : ∀ (a b : GaussianInt) (l₁ l₂ : List GaussianInt), p = l₁ ++ a :: b :: l₂ → FourNeighborAdjacent a b)
(hclose : FourNeighborAdjacent y x)
(hlift :
∀ (a b : GaussianInt),
(∃ (l₁ : List GaussianInt) (l₂ : List GaussianInt), p = l₁ ++ a :: b :: l₂) ∨ a = y ∧ b = x →
∃ (L : ↑(Set.Icc 0 1) → ℂ),
Continuous L ∧ L ⟨0, GridRayCrossingIndexZeroOfEdgeLifts._proof_1⟩ = F a ∧ L ⟨1, GridRayCrossingIndexZeroOfEdgeLifts._proof_2⟩ = F b ∧ ∀ (t : ↑(Set.Icc 0 1)),
Complex.exp (L t) = (1 - ↑↑t) * (GaussianInt.toComplex a - GridCellCenter q) + ↑↑t * (GaussianInt.toComplex b - GridCellCenter q))
: