P4458T1RestrictionFamily #
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.
For a boundary frame $F$, a restriction family consists of tiles $T_j^s$
and partial functions $h_j^s$, for $j\in\mathbb Z/3$ and $s\in\{-,+\}$.
Each is a tile odometer for $q_{j+1}$ and an actual signed
BandSubtileOccurrence of $F.T_0$ in the presentation $F.q$.
For every positive parent it records
$\operatorname{AncestorOdometer}(q_{j+1},F.C_0,T_j^s,F.T_0,h_j^s,F.h_0)$.
Put $P_j=F.q_{j+1}$ for $j\in\mathbb Z/3$,
$w_j=a(P_{j+2},P_{j+1})$, and let $\sigma_+=1$, $\sigma_-=-1$.
For each $j,s$ it records either zero parent curvature, or defined slopes
$p,p_j^s$ of $F.h_0,h_j^s$ with
$p_j^s-p=\sigma_s\tfrac12(w_j+\mathrm i w_j)$ in real coordinates.
The functions are literal restrictions, not independently affinely
normalized copies.
The six signed supports in the outer tile decomposition.
- functions : Fin 3 → Bool → PartialOdometer
The literal restriction odometers on those six supports.
- slopes (j : Fin 3) (s : Bool) : (F.q j.succ).1 = 0 ∨ ∃ (p : ℝ × ℝ) (pj : ℝ × ℝ), PartialOdometerSlope F.odometer = some p ∧ PartialOdometerSlope (self.functions j s) = some pj ∧ pj.1 - p.1 = (if s = true then 1 else -1) * (1 / 2) * (↑(BandVectors.2 (F.q (j + 2).succ) (F.q (j + 1).succ)).re - ↑(BandVectors.2 (F.q (j + 2).succ) (F.q (j + 1).succ)).im) ∧ pj.2 - p.2 = (if s = true then 1 else -1) * (1 / 2) * (↑(BandVectors.2 (F.q (j + 2).succ) (F.q (j + 1).succ)).im + ↑(BandVectors.2 (F.q (j + 2).succ) (F.q (j + 1).succ)).re)