P4062T1RemainderPaths #
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 Ford parameter write $r=q_1,s=q_2,q=r+s$. The following two rooted lattice sets $(W_0,a_0),(W_1,a_1)$ are subsets of $D_q$. If $r>s$, set $$ \begin{array}{ll} W_0=\{(r,y):1\leq y\leq s\}\cup\{(x,s):r\leq x<q\},&a_0=(r,s),\cr W_1=\{(x,r):1\leq x\leq s\}\cup\{(s,y):r\leq y<q\},&a_1=(s,r). \end{array} $$ If $r\leq s$, set $$ \begin{array}{ll} W_0=\{(r,y):1\leq y\leq r\}\cup\{(x,r):1\leq x\leq r\},&a_0=(r,r),\cr W_1=\{(s,y):s\leq y<q\}\cup\{(x,s):s\leq x<q\},&a_1=(s,s). \end{array} $$ In all four displayed sets the defining ranges are additionally intersected with $D_q$, so the definition also makes sense in the unit-denominator case.
Equations
- One or more equations did not get rendered due to their size.