GridStepLogLiftDelta #
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.GridStepLogLiftDelta
(q a b : GaussianInt)
(hab : FourNeighborAdjacent a b)
(L : ↑(Set.Icc 0 1) → ℂ)
(hL : Continuous L)
(hexp :
∀ (t : ↑(Set.Icc 0 1)),
Complex.exp (L t) = (1 - ↑↑t) * (GaussianInt.toComplex a - GridCellCenter q) + ↑↑t * (GaussianInt.toComplex b - GridCellCenter q))
:
L ⟨1, GridStepLogLiftDelta._proof_1⟩ - L ⟨0, GridStepLogLiftDelta._proof_2⟩ = Complex.log (GaussianInt.toComplex b - GridCellCenter q) - Complex.log (GaussianInt.toComplex a - GridCellCenter q) - 2 * ↑Real.pi * Complex.I * ↑(if b = a + { re := 0, im := 1 } ∧ a.im = q.im ∧ a.re ≤ q.re then 1
else if b = a - { re := 0, im := 1 } ∧ b.im = q.im ∧ a.re ≤ q.re then -1 else 0)