Documentation

LeanPool.ApollonianSuperharmonic.FordFareyParameter

FordFareyParameter #

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.

A reduced Ford--Farey parameter consists of integers $p,p_1,p_2$ and natural numbers $q,q_1,q_2$ such that $q>0$, $\gcd(q,|p|)=1$, $$ (p,q)=(p_1,q_1)+(p_2,q_2),\qquad p_1q-q_1p=1,\qquad p_2q-q_2p=-1, $$ with $0\leq q_1<q$ and $0<q_2$. When $q=1$ the data are required to be $(p_1,q_1)=(1,0)$ and $(p_2,q_2)=(p-1,1)$; the first of these denotes the oriented line parent, not a curvature-zero Ford circle.

  • p : ℤ

    The numerator of the reduced Ford fraction.

  • q : ℕ

    The positive denominator of the reduced Ford fraction.

  • q_pos : 0 < self.q
  • reduced : self.q.Coprime self.p.natAbs
  • p₁ : ℤ

    The numerator of the first Farey parent, with the line-parent convention at q = 1.

  • q₁ : ℕ

    The first parent denominator, strictly smaller than q.

  • p₂ : ℤ

    The numerator of the second Farey parent.

  • q₂ : ℕ

    The positive second parent denominator.

  • sum_p : self.p = self.p₁ + self.p₂
  • sum_q : self.q = self.q₁ + self.q₂
  • det₁ : self.p₁ * ↑self.q - ↑self.q₁ * self.p = 1
  • det₂ : self.p₂ * ↑self.q - ↑self.q₂ * self.p = -1
  • q₁_lt : self.q₁ < self.q
  • q₂_pos : 0 < self.q₂
  • unit_case : self.q = 1 → self.p₁ = 1 ∧ self.q₁ = 0 ∧ self.p₂ = self.p - 1 ∧ self.q₂ = 1
Instances For