Skip to content

The certificate and its semantics

This section fixes the constants of the multiplication certificate and translates each of its templates into a mathematical predicate. All statements here are exact equivalences for the constructed templates, proved from the semantics of the expression language; the arithmetic happens in the soundness and completeness sections.

12 fully proved

Constants

The certificate uses the prescribed constants \(c_*=4M_0\), \(\ell_0=12P_s^{2916}H_{\rm cat}^{732}\), \(R\), \(A_{\rm ht}\) and \(T\) of the specification. The sound direction works outside \(S_{\rm mul}=S_{\rm ht}\cup\mathcal H\cup\operatorname{supp}(c_*)\); the complete direction clears denominators at the old primes \(S_b=S_{\rm ht}\cup\mathcal H\) with the exponents \(B_p\), \(C_p=14B_p\), \(D_p=51C_p\), \(E_p=52C_p+v_p(12)+4\). No constant is evaluated; the only numerical facts are a handful of small identities.

DefinitionPrime sets and clearing exponents of the multiplication certificate#✓

The constants \(M_0\), \(c_*=4M_0\), \(\ell_0\) (the constant \(\ell=12P_s^{2916}H_{\rm cat}^{732}\)), \(R=\max(D,H_{\max},c_*,10^{12})\), \(A_{\rm ht}=2\cdot10^{13}\max(1,C_{\rm cm},Q^{17})\) with \(Q=R^{RE_0}\), and \(T=(48A_{\rm ht})^{13}\) are the prescribed fixed constants. In terms of them define:

  • \(S_{\rm ht}=\{p\text{ prime}:p\le324\}\); \(\mathcal H\) the fixed prime catalogue (the first twenty-two primes greater than \(324\) in each unit class modulo \(W=4P_s\)); \(S_b=S_{\rm ht}\cup\mathcal H\); and $\(S_{\rm mul}=S_{\rm ht}\cup\mathcal H\cup\{p\text{ prime}:p\mid c_*\};\)$
  • for \(p\in S_b\): \(B_p=4\) if \(p\in S_{\rm ht}\) and \(B_p=1\) if \(p\in\mathcal H\); \(C_p=14B_p\), \(D_p=51C_p\) and \(E_p=52C_p+v_p(12)+4\);
  • the contact set \(\mathcal C=\{0,-15,-20,-24,-30,-60\}\) and \(F(t)=t(t+15)(t+20)(t+24)(t+30)(t+60)=\prod_{c\in\mathcal C}(t-c)\);
  • for \(t\in\mathbb Q\), a prime \(p\) is an odd contact prime of \(t\) if \(v_p(t-c)\) is positive and odd for some \(c\in\mathcal C\); for a finite set \(S\) of primes, \(M_S(t)\) is the product of the odd contact primes of \(t\) outside \(S\), as in the six-contact estimate;
  • the test precisions \(k_j=1\) for \(1\le j\le8\) and \(k_j=25\) for \(9\le j\le12\).

These are definitions; none of the constants is evaluated. The manuscript writes \(S_{\rm mul}=S_{\rm ht}\cup\mathcal H\cup\operatorname{supp}(c_*)\) and uses \(S_b\) for the old primes at which the fixed normalization \(\ell_0\) clears denominators.

def S_ht : Finset ℕ := Compiler.Precision.heightPrimes
noncomputable def catalogue : Finset ℕ := Syntax.catalogueFinset catalogueModulus 22 324
noncomputable def S_b : Finset ℕ := S_ht ∪ catalogue
Uses 3 · Used by 19

LemmaThe clearing inequalities#✓

For every \(B\in\{1,4\}\) and every \(v\in\{0,1,2\}\), with \(C=14B\), \(D=51C\) and \(E=52C+v+4\), $\(2E-C-2D>v\qquad\text{and}\qquad 2E-C-2v=103C+8\ge4 .\)$ Moreover \(52\cdot56+4=2916\), \(52\cdot14+4=732\), \(v_2(12)=2\), \(v_3(12)=1\) and \(v_p(12)=0\) for every prime \(p\ge5\).

This is a finite computation (six cases of linear integer arithmetic). With \(B=B_p\) and \(v=v_p(12)\) it gives, for every \(p\in S_b\), \(2E_p-C_p-2D_p>v_p(12)\) and \(2E_p-C_p-2v_p(12)=103C_p+8\ge4\), and identifies \(E_p\) with the exponent of \(p\) in \(\ell_0\).

Proof sketch. \(2E-C-2D=104C+2v+8-C-102C=C+2v+8>v\), and \(2E-C-2v=103C+8\ge111\). The remaining items are evaluations.

theorem clearing_arithmetic :
    (∀ B ∈ ({1, 4} : Finset ℕ), ∀ v ∈ ({0, 1, 2} : Finset ℕ),
      v < 2 * (52 * (14 * B) + v + 4) - 14 * B - 2 * (51 * (14 * B)) ∧
        2 * (52 * (14 * B) + v + 4) - 14 * B - 2 * v = 103 * (14 * B) + 8 ∧
        4 ≤ 103 * (14 * B) + 8) ∧
      52 * 56 + 4 = 2916 ∧ 52 * 14 + 4 = 732 ∧
      padicValNat 2 12 = 2 ∧ padicValNat 3 12 = 1 ∧
      ∀ p : ℕ, p.Prime → 5 ≤ p → padicValNat p 12 = 0
theorem clearing_identities (B v : ℕ) :
    2 * (52 * (14 * B) + v + 4) - 14 * B - 2 * (51 * (14 * B)) = 14 * B + 2 * v + 8 ∧
      2 * (52 * (14 * B) + v + 4) - 14 * B - 2 * v = 103 * (14 * B) + 8
Used by 2

LemmaProperties of the multiplication constants#✓

  1. \(M_0\ge1\), so \(c_*=4M_0\ge4\), and \(\ell_0\ge1\).
  2. \(S_{\rm mul}\) is a finite set of primes containing every prime \(p\le324\); every \(p\in S_{\rm mul}\) satisfies \(p\le R\); and \(R\ge D\), \(R\ge10^{12}\). Hence the six-contact estimate applies with \(S=S_{\rm mul}\) and this \(R\), and its constant is \(H_6(S_{\rm mul};R)=A_{\rm ht}\) (as real numbers, \(Q=R^{RE_0}\) being an integer power). Under the minimal height hypothesis, \(h(u)\le A_{\rm ht}M_{S_{\rm mul}}(u)^{24}\) for every \(u\in\mathbb Q\setminus\mathcal C\), since \(H_6(D)\le H_6(S_{\rm mul};R)\).
  3. \(A_{\rm ht}\ge2\cdot10^{13}\); in particular \(48A_{\rm ht}\ge1\) and \(T=(48A_{\rm ht})^{13}>4\).
  4. The catalogue primes exceed \(324\) and are pairwise distinct, so \(H_{\rm cat}\) is squarefree with set of prime factors \(\mathcal H\). Consequently \(v_p(\ell_0)=E_p\) for \(p\in S_b\) and \(v_p(\ell_0)=0\) for every prime \(p\notin S_b\).
  5. Every prime \(p\notin S_{\rm mul}\) satisfies \(p>324\), \(p\nmid c_*\), \(p\nmid\ell_0\) and \(p\notin S_0=\{2,3,5,7,13\}\).

No constant is evaluated: every item follows from the defining expressions.

Proof sketch. (1) The search defining \(M_0\) succeeds at an index at most \(N_s^{10}\) (the successful formal multiple of the size chapter, with \(N_s\ge1\)), so \(M_0\ge1\). (2) Primes of \(S_{\rm ht}\) are at most \(324\le10^{12}\le R\); catalogue primes are at most \(H_{\max}\le R\) by the definition of the catalogue maximum; a prime dividing \(c_*\ge1\) is at most \(c_*\le R\). \(S_{\rm mul}\) is finite because the catalogue is finite and \(c_*\ne0\). The six-contact constant at \(R\) is \(2\cdot10^{13}\max(1,C_{\rm cm},Q_R^{17})\) with \(Q_R=R^{RE_0}\), literally \(A_{\rm ht}\); it is increasing in \(R\ge1\), and \(R\ge D\). (3) is immediate from the maximum with \(1\). (4) Distinct residue classes, or distinct positions in one class, give distinct primes. Then \(v_p(\ell_0)=v_p(12)+2916\) for \(p\le324\) and \(v_p(\ell_0)=732\) for \(p\in\mathcal H\), which equal \(E_p\) by the clearing arithmetic (\(C_p=56\), resp. \(C_p=14\) and \(v_p(12)=0\)). (5) \(S_{\rm mul}\) contains all primes at most \(324\) and all prime divisors of \(c_*\) and of \(\ell_0\).

theorem one_le_M0 (h : ∃ m, 1 ≤ m ∧ Syntax.FormalCondition Syntax.Ns m) : 1 ≤ Syntax.M0
theorem one_le_M0_spec : 1 ≤ Syntax.M0
theorem four_le_cstar : 4 ≤ Syntax.cstar
Uses 6 · Used by 13

The local templates and the twelve tests

The templates \(\mathtt{raw\_z}\), \(\mathtt{raw\_inverse\_x}\) and \(\mathtt{log25}\) compute \(z=-x/y\), \(1/x\) and the truncated logarithm \(L\) on codes of \(2E(K_0)\).

TheoremSemantics of the local-parameter, inverse-abscissa and logarithm templates#✓

Let \(Q\in E(K_0)\) with code \(p=\operatorname{code}(Q)\), and let \(\zeta,v,\lambda\) be rational pairs, \([u]=u_0+u_1s\).

  1. If \(Q=O\) or \(y(Q)\ne0\), then \(\mathrm{Rel}_{\mathtt{raw\_z}}(p,\zeta)\iff[\zeta]=z(Q)\), where \(z(O)=0\) and \(z(Q)=-x(Q)/y(Q)\). If \(Q\) is affine with \(y(Q)=0\), the relation fails for every \(\zeta\).
  2. If \(Q=O\) or \(x(Q)\ne0\), then \(\mathrm{Rel}_{\mathtt{raw\_inverse\_x}}(p,v)\iff[v]=1/x(Q)\), with value \(0\) at \(O\). If \(Q\) is affine with \(x(Q)=0\), the relation fails for every \(v\).
  3. For all pairs \(\zeta,\lambda\): \(\mathrm{Rel}_{\mathtt{log25}}(\zeta,\lambda)\iff[\lambda]=L([\zeta])\).

In particular, for \(Q\in\mathbb ZP_0\) (assuming the generator certificate, so that a nonidentity multiple of \(P_0\) has \(x,y\ne0\)) the three templates compute \(z(Q)\), \(1/x(Q)\) and \(L(z(Q))\).

Proof sketch. Each template polynomial is the square of the compilation of its formula (\(Z(p,\zeta)\) with one fresh variable, \(I\!X(p,v)\), and the pair equation \(L(\zeta)\doteq\lambda\)), so it vanishes exactly when the formula holds. The pair-arithmetic theorem describes \(Z(p,\zeta)\) and \(I\!X(p,v)\) exactly: the identity branch applies iff \(p=O\), and the affine branch requires \([y(p)]\ne0\), resp. \([x(p)][v]=1\). For (3), pair arithmetic represents the field operations, so the two components of \(L(\zeta)-\lambda\) vanish iff \([\lambda]=L([\zeta])\).

theorem rawZ_rel_iff_of (Q : genCurve.toAffine.Point)
    (hQ : ∀ x y h, Q = Point.some x y h → y ≠ 0) (ζ : Fin 2 → ℚ) :
    rawZTemplate.Rel (Fin.append (pointCode Q) ζ) ↔ pairK ζ = zOf Q
theorem rawZ_not_rel {x y : K0} (h : genCurve.toAffine.Nonsingular x y) (hy : y = 0)
    (ζ : Fin 2 → ℚ) : ¬ rawZTemplate.Rel (Fin.append (pointCode (Point.some x y h)) ζ)
theorem rawInverseX_rel_iff_of (Q : genCurve.toAffine.Point)
    (hQ : ∀ x y h, Q = Point.some x y h → x ≠ 0) (v : Fin 2 → ℚ) :
    rawInverseXTemplate.Rel (Fin.append (pointCode Q) v) ↔ pairK v = invX Q
Uses 8 · Used by 1

For indices \(n_1,n_2,n_3\), a test group chooses \(H=[h]P_0\) and \(U_i=[z_i]P_0\) and sets \(V_0=H-[c_*]P_0\), \(V_i=U_i-[c_*n_i]P_0\). Its twelve tests are the four inverse abscissas at \(H,U_i\), their conjugate counterparts at \(V_0,V_i\), three differences of \(L\)-ratios and one product test. Identity inverse abscissas are zero, and the two guarded denominators are nonzero once \(H\) and \(V_0\) are not the identity.

DefinitionThe twelve local tests#✓

Let \(h,z_1,z_2,z_3,c_0,c_1,c_2,c_3\in\mathbb Z\) with \(h\ne0\) and \(h\ne c_0\). Put $\(H=[h]P_0,\quad U_i=[z_i]P_0,\quad V_0=[h-c_0]P_0,\quad V_i=[z_i-c_i]P_0\qquad(i=1,2,3),\)$ so that \(V_0=H-[c_0]P_0\) and \(V_i=U_i-[c_i]P_0\). For \(Q\in\mathbb ZP_0\) let \(\rho(Q)=1/x(Q)\) with \(\rho(O)=0\), and \(\Lambda(Q)=L(z(Q))\) with \(\Lambda(O)=L(0)=0\), where \(L\) is the truncated logarithm. Put $\(A_i=\frac{\Lambda(U_i)}{\Lambda(H)},\qquad B_i=\frac{\Lambda(V_i)}{\Lambda(V_0)}\qquad(i=1,2,3).\)$ With \(\sigma\) the conjugation of \(K_0\), the twelve test values \(\tau(h,z;c)=(\tau_1,\dots,\tau_{12})\in K_0^{12}\) are $\(\begin{aligned} &\tau_1=\rho(H),\quad \tau_{1+i}=\rho(U_i),\quad \tau_5=\sigma\rho(V_0),\quad \tau_{5+i}=\sigma\rho(V_i),\\ &\tau_{8+i}=A_i-\sigma B_i\quad(i=1,2,3),\qquad \tau_{12}=A_1A_2-A_3 . \end{aligned}\)$ That is: four inverse abscissas at \(H,U_i\), their four conjugate counterparts at \(V_0,V_i\), three differences of the corresponding \(L\)-ratios, and the product of the first two unprimed ratios minus the third. Identity inverse abscissas are zero.

In the multiplication certificate \(c_0=c_*\) and \(c_i=c_*n_i\), where \(n_1,n_2,n_3\) are the indices of the three inputs; then \(V_0=H-[c_*]P_0\) and \(V_i=U_i-[c_*n_i]P_0\).

This is a definition. The quantities \(\rho(Q)\) and \(\Lambda(Q)\) are well defined because a nonidentity multiple of \(P_0\) has \(x,y\ne0\), and the denominators \(\Lambda(H),\Lambda(V_0)\) are nonzero because \(H,V_0\ne O\) (the nonvanishing lemma); as a formal definition any convention for a zero denominator may be used.

noncomputable def invX : genCurve.toAffine.Point → K0
  | .zero => 0
  | .some x _ _ => x⁻¹
noncomputable def zOf : genCurve.toAffine.Point → K0
  | .zero => 0
  | .some x y _ => -x / y
noncomputable def Lam (Q : genCurve.toAffine.Point) : K0 := truncLog (genD ^ 2) (zOf Q)
Uses 2 · Used by 5

TheoremSemantics of the test-group template#✓

For all \(c_0,c_1,c_2,c_3\in\mathbb Z\) and all rational pairs \(D_1,\dots,D_{12}\), $\(\mathrm{Rel}_{\mathtt{test\_group}}\bigl(\iota(c_0),\iota(c_1),\iota(c_2),\iota(c_3),D_1,\dots,D_{12}\bigr) \iff\exists\,h,z_1,z_2,z_3\in\mathbb Z:\ h\ne0,\ h\ne c_0,\ [D_j]=\tau_j(h,z;c)\ (1\le j\le12).\)$ (The template's output pairs \(D_0,\dots,D_{11}\) are \(D_1,\dots,D_{12}\) here.) The four inputs must be canonical codes, as they are in every use: the raw addition contract is only valid on canonical codes.

Proof sketch. By the evaluation of calls and the lifting of private blocks, the relation holds iff there are values of the \(162\) witnesses satisfying every conjunct. (\(\Rightarrow\)) The membership calls make each \(F_i\) a code \(\iota(f_i)\) (accepted inputs have unique indices). Since \(\operatorname{neg}(\iota(c_i))=\iota(-c_i)\) is canonical, raw addition gives \(V_i=\iota(f_i-c_i)\). The atoms \(\operatorname{fin}(F_0)\) and \(\operatorname{fin}(V_0)\) say \(f_0\ne0\) and \(f_0\ne c_0\). By the local-template semantics the three calls on each of the eight points give \(\zeta_i=z(\Pi_i)\), \(\lambda_i=L(\zeta_i)\) and \(\rho_i=1/x(\Pi_i)\); the inverse atoms give \(\lambda_0,\lambda_4\ne0\); the ratio equations give \(q_{\sigma,i}=\lambda_{4\sigma+i}/\lambda_{4\sigma}\); and the final pair equations say \([D_j]=\tau_j\). Take \(h=f_0\), \(z_i=f_i\). (\(\Leftarrow\)) Put \(F_0=\iota(h)\), \(F_i=\iota(z_i)\), \(V_0=\iota(h-c_0)\), \(V_i=\iota(z_i-c_i)\), choose the member and raw-addition blocks by completeness of those templates, \(\zeta,\lambda,\rho\) as computed, the inverse witnesses \(1/N(\lambda_0)\) and \(1/N(\lambda_4)\), which exist by the nonvanishing lemma, and the ratios.

theorem testGroup_rel_iff (c : Fin 4 → ℤ) (a : Fin 44 → ℚ)
    (ha : ∀ (i : Fin 4) (k : Fin 5), a ⟨5 * i + k, by omega⟩ = iota (c i) k) :
    testGroupTemplate.Rel a ↔ ∃ (h : ℤ) (z : Fin 3 → ℤ), h ≠ 0 ∧ h ≠ c 0 ∧
      ∀ j : Fin 12, (⟨a ⟨20 + 2 * j, by omega⟩, a ⟨21 + 2 * j, by omega⟩⟩ : K0) =
        testValues h z c j
theorem testGroup_rel_iff_codes (c : Fin 4 → ℤ) (D : Fin 12 → Fin 2 → ℚ) :
    testGroupTemplate.Rel (testGroupVec c D) ↔
      ∃ (h : ℤ) (z : Fin 3 → ℤ), h ≠ 0 ∧ h ≠ c 0 ∧
        ∀ j : Fin 12, pairK (D j) = testValues h z c j
Uses 14 · Used by 1

The slope predicate

For a slope \(t\notin\mathcal C\cup\{1\}\) the certificate normalizes the twelve tests of each of six groups by powers of \(R_0=\eta F(t)/(t-1)^8\) and \(t-1\), forms \(W_g=\prod_j(1+RC_{gj}^2)\) with \(R=\ell_0^2a^2R_0\), \(a=1-R_0q^2\ne0\), takes the trace \(\Theta=\operatorname{Tr}\sum_gW_g^{-1}\), and imposes the pole predicate \(\Phi(R/\Theta^2)\) on a nonzero input.

DefinitionThe slope predicate#✓

For \(t,\ell\in\mathbb Q\) and \(c=(c_0,c_1,c_2,c_3)\in\mathbb Z^4\), the slope predicate \(\mathrm{Slope}(t,\ell;c)\) holds when all of the following hold:

  1. \(t\notin\mathcal C\cup\{1\}\) and \(\ell\ne0\);
  2. there are \(\eta\in\{1,-1\}\) and \(q\in\mathbb Q\) such that, with $\(R_0=\frac{\eta F(t)}{(t-1)^8},\qquad a=1-R_0q^2,\qquad R=\ell^2a^2R_0,\)$ one has \(a\ne0\);
  3. there are, for \(g=1,\dots,6\), integers \(h_g,z_{g,1},z_{g,2},z_{g,3}\) with \(h_g\ne0\) and \(h_g\ne c_0\) such that, with the test values \(D_{gj}=\tau_j(h_g,z_g;c)\in K_0\) and the normalized values $\(C_{gj}=\frac{D_{gj}}{R_0^{k_j}(t-1)^{k_j+1}}\qquad(k_j=1\text{ for }j\le8,\ k_j=25\text{ for }j\ge9),\)$ the elements \(W_g=\prod_{j=1}^{12}\bigl(1+RC_{gj}^2\bigr)\) of \(K_0\) and \(\Theta=\operatorname{Tr}\sum_{g=1}^6W_g^{-1}\in\mathbb Q\) satisfy \(W_g\ne0\) for every \(g\), \(\Theta\ne0\), and $\(\Phi\bigl(R/\Theta^2\bigr).\)$

Here \(F(t)=t(t+15)(t+20)(t+24)(t+30)(t+60)\), \(\Phi\) is the rational solubility of the pole polynomial, and \(\operatorname{Tr}(u+vs)=2u\). Since \(F(t)\ne0\), \(\ell\ne0\) and \(a\ne0\), the pole input \(R/\Theta^2\) is nonzero, so the prefactor \(B\) of \(Q_{\rm pole}\) cannot make the pole constraint vacuous. In the certificate \(\ell=\ell_0\) and \(c=(c_*,c_*n_1,c_*n_2,c_*n_3)\).

This is a definition.

def SlopePred (t ℓ : ℚ) (c : Fin 4 → ℤ) : Prop :=
  t ∉ contactSet ∧ t ≠ 1 ∧ ℓ ≠ 0 ∧
    ∃ (η q : ℚ) (h : Fin 6 → ℤ) (z : Fin 6 → Fin 3 → ℤ),
      (η = 1 ∨ η = -1) ∧ slopeA (slopeR0 η t) q ≠ 0 ∧ (∀ g, h g ≠ 0 ∧ h g ≠ c 0) ∧
      (∀ g, groupW (slopeR ℓ (slopeA (slopeR0 η t) q) (slopeR0 η t))
          (normTests (slopeR0 η t) t (testValues (h g) (z g) c)) ≠ 0) ∧
      traceTheta (fun g => groupW (slopeR ℓ (slopeA (slopeR0 η t) q) (slopeR0 η t))
          (normTests (slopeR0 η t) t (testValues (h g) (z g) c))) ≠ 0 ∧
      PoleSoluble (slopeR ℓ (slopeA (slopeR0 η t) q) (slopeR0 η t) /
        traceTheta (fun g => groupW (slopeR ℓ (slopeA (slopeR0 η t) q) (slopeR0 η t))
          (normTests (slopeR0 η t) t (testValues (h g) (z g) c))) ^ 2)
def slopeR0 (η t : ℚ) : ℚ := η * contactPoly t / (t - 1) ^ 8
def slopeA (R0 q : ℚ) : ℚ := 1 - R0 * q ^ 2
Uses 3 · Used by 11

TheoremSemantics of the slope template#✓

For all \(t,\ell\in\mathbb Q\) and \(c=(c_0,c_1,c_2,c_3)\in\mathbb Z^4\), $\(\mathrm{Rel}_{\mathtt{slope}}\bigl(t,\ell,\iota(c_0),\iota(c_1),\iota(c_2),\iota(c_3)\bigr)\iff\mathrm{Slope}(t,\ell;c).\)$

Proof sketch. The slope template polynomial is the square of the compilation of its conjunction, so the relation holds iff some witness values satisfy every conjunct. The six atoms of the first item say \(\eta^2=1\), \(t\ne1\), \(F(t)\ne0\) (that is, \(t\notin\mathcal C\)), \(\ell\ne0\), \(R_0(t-1)^8=\eta F(t)\) and \(a\ne0\), which determine \(R_0\). For each group the test-group semantics turns the call into the existence of \((h_g,z_g)\) with \([D_{g,j}]=\tau_j(h_g,z_g;c)\); since the denominators \(R_0(t-1)^2\) and \(R_0^{25}(t-1)^{26}\) are nonzero, the pair equations \(\mathrm{den}_j\,C'_{g,j}\doteq D_{g,j}\) say \([C'_{g,j}]=C_{gj}\); the inverse gadget with \(W_g\cdot\omega_g\doteq1\) says \(W_g\ne0\) and \([\omega_g]=W_g^{-1}\), so \(\theta=2\sum_g(\omega_g)_0=\Theta\). Finally \(\theta u_\theta\doteq1\) says \(\Theta\ne0\), \(B\theta^2\doteq R\) says \(B=R/\Theta^2\), and the pole call holds iff \(\Phi(B)\), because the pole template polynomial is \(Q_{\rm pole}^2\). Conversely all witnesses can be chosen from these values.

theorem slope_rel_iff (t ℓ : ℚ) (c : Fin 4 → ℤ) (a : Fin 22 → ℚ) (ht : a 0 = t) (hℓ : a 1 = ℓ)
    (hc : ∀ (i : Fin 4) (k : Fin 5), a ⟨2 + (5 * i + k), by omega⟩ = iota (c i) k) :
    slopeTemplate.Rel a ↔ SlopePred t ℓ c
Uses 10 · Used by 1

The height certificate and the multiplication template

The height certificate imposes membership on the three inputs, writes each abscissa as \((a_{i0}+a_{i1}s)/b_i\), expresses each of the nine rational quantities as a sum of three slopes, and imposes the slope predicate on all \(27\) slopes. The multiplication template conjoins it with the four fixed scalar graphs, which supply the shift points \(\iota(c_*),\iota(c_*n_i)\), and with the inverse of the finite guard.

TheoremSemantics of the height certificate template#✓

For all \(Y_1,Y_2,Y_3\in\mathbb Q^5\), \(\ell\in\mathbb Q\) and \(c\in\mathbb Z^4\), the relation \(\mathrm{Rel}_{\mathtt{height\_certificate}}(Y_1,Y_2,Y_3,\ell,\iota(c_0),\iota(c_1),\iota(c_2),\iota(c_3))\) holds if and only if:

  1. there are \(n_1,n_2,n_3\in\mathbb Z\) with \(Y_i=\iota(n_i)\); write \(x([n_i]P_0)=x_{i0}+x_{i1}s\) with \(x_{i0},x_{i1}\in\mathbb Q\), where \(x_{i0}=x_{i1}=0\) if \(n_i=0\) (these are the coordinates \((Y_i)_1,(Y_i)_2\));
  2. there are \(a_{i0},a_{i1},b_i\in\mathbb Q\) (\(i=1,2,3\)) with \(b_i\ne0\) and \(b_ix_{ij}=a_{ij}\);
  3. for each of the nine quantities \((Q_1,\dots,Q_9)=(a_{10},a_{11},b_1,a_{20},a_{21},b_2,a_{30},a_{31},b_3)\) there are rationals \(t_{k,1},t_{k,2},t_{k,3}\) with \(t_{k,1}+t_{k,2}+t_{k,3}=Q_k\) and \(\mathrm{Slope}(t_{k,l},\ell;c)\) for \(l=1,2,3\).

Thus the certificate first forces all three inputs to be members of \(2E(K_0)\): membership is a conjunct inside the certificate, not a precondition, so even untyped rational inputs, if accepted, have unique indices.

Proof sketch. Unfold the conjunction of the \(35{,}106\)-witness template. The three membership calls give \(Y_i=\iota(n_i)\) by membership and the generator certificate. The atoms \(b_iu_i\doteq1\), \(b_i(Y_i)_1\doteq a_{i0}\), \(b_i(Y_i)_2\doteq a_{i1}\) are item 2. Each of the nine sum atoms and twenty-seven slope calls gives item 3 through the slope semantics, the four shift points being the canonical codes \(\iota(c_k)\). The converse chooses the same witnesses.

theorem heightCertificate_rel_iff (ℓ : ℚ) (c : Fin 4 → ℤ) (a : Fin 36 → ℚ) (hℓ : a 15 = ℓ)
    (hc : ∀ (i : Fin 4) (k : Fin 5), a ⟨16 + (5 * i + k), by omega⟩ = iota (c i) k) :
    heightTemplate.Rel a ↔
      (∃ n : Fin 3 → ℤ, ∀ (i : Fin 3) (k : Fin 5), a ⟨5 * i + k, by omega⟩ = iota (n i) k) ∧
        HeightCert (fun i k => a ⟨5 * i + k, by omega⟩) ℓ c
def HeightCert (Y : Fin 3 → Fin 5 → ℚ) (ℓ : ℚ) (c : Fin 4 → ℤ) : Prop :=
  ∃ (A : Fin 3 → Fin 2 → ℚ) (b : Fin 3 → ℚ),
    (∀ i, b i ≠ 0 ∧ b i * Y i 1 = A i 0 ∧ b i * Y i 2 = A i 1) ∧
    ∀ k : Fin 9, ∃ s : Fin 3 → ℚ, s 0 + s 1 + s 2 = nineQ A b k ∧ ∀ l, SlopePred (s l) ℓ c
Uses 10 · Used by 4

TheoremUnfolding the multiplication template#✓

For all \(Y_1,Y_2,Y_3\in\mathbb Q^5\), \(\mathrm{Rel}_{\mathtt{multiply}}(Y_1,Y_2,Y_3)\) holds if and only if there are \(n_1,n_2,n_3\in\mathbb Z\) with \(Y_i=\iota(n_i)\) such that $\(\mathrm{Rel}_{\mathtt{height\_certificate}}\bigl(Y_1,Y_2,Y_3,\ell_0,\iota(c_*),\iota(c_*n_1),\iota(c_*n_2),\iota(c_*n_3)\bigr) \quad\text{and}\quad\mathrm{Rel}_{\mathtt{multiply.guard}}(Y_1,Y_2,Y_3).\)$ The part without the guard is the unguarded certificate.

Proof sketch. The template polynomial is the sum of the three squared generator equations and the square of the compilation of \(\varphi_{\rm mul}\), so a zero forces \(c_1=1641/8\), \(c_2=-15465/4\), \(c_3=87483/32\) and makes \(G=(0,c_1,-145,c_2,c_3)=\iota(1)\), the code of \(P_0\). The three membership calls inside the height-certificate conjunct do not involve the shift points and force \(Y_i=\iota(n_i)\) (accepted inputs have unique indices). The four scalar conjuncts \(S_{c_*}[\Pi_k,S_k]\) then concern codes of points of \(2E(K_0)\), and since \(c_*\ge1\) the fixed-scalar semantics gives \(S_0=\iota(c_*)\) and \(S_i=\iota(c_*n_i)\); only now are the shift points known to be canonical, so that the semantics of the height certificate applies. The node \(\mathrm{fixed}\ \ell\) has value \(\ell_0\). Conversely, given the right side, take these values for the constants and shift points and the witnesses supplied by the scalar, certificate and guard relations, in disjoint private blocks.

theorem multiply_rel_iff_unguarded (I : Constructors E) (cs ℓ T : ℤ)
    (hS : ∀ (m : ℤ) (r : Fin 5 → ℚ),
      (scalarTemplate I cs).Rel (Fin.append (iota m) r) ↔ r = iota (cs * m))
    (P Q R : Fin 5 → ℚ) :
    (multiplyTemplate I cs ℓ T).Rel (codes3 P Q R) ↔
      ∃ n : Fin 3 → ℤ, P = iota (n 0) ∧ Q = iota (n 1) ∧ R = iota (n 2) ∧
        heightTemplate.Rel (heightVec P Q R ℓ
          ![iota cs, iota (cs * n 0), iota (cs * n 1), iota (cs * n 2)]) ∧
        (guardTemplate I T).Rel (codes3 P Q R)
theorem multiply_rel_iff (I : Constructors E) (cs ℓ T : ℤ)
    (hS : ∀ (m : ℤ) (r : Fin 5 → ℚ),
      (scalarTemplate I cs).Rel (Fin.append (iota m) r) ↔ r = iota (cs * m))
    (P Q R : Fin 5 → ℚ) :
    (multiplyTemplate I cs ℓ T).Rel (codes3 P Q R) ↔
      ∃ n : Fin 3 → ℤ, P = iota (n 0) ∧ Q = iota (n 1) ∧ R = iota (n 2) ∧
        HeightCert ![P, Q, R] ℓ ![cs, cs * n 0, cs * n 1, cs * n 2] ∧
        (guardTemplate I T).Rel (codes3 P Q R)
theorem multiply_rel_iff_cert (I : Constructors E) (T : ℤ)
    (hS : ∀ (m : ℤ) (r : Fin 5 → ℚ),
      (scalarTemplate I (Syntax.cstar : ℤ)).Rel (Fin.append (iota m) r) ↔
        r = iota ((Syntax.cstar : ℤ) * m))
    (P Q R : Fin 5 → ℚ) :
    (multiplyTemplate I (Syntax.cstar : ℤ) (Syntax.ell : ℤ) T).Rel (codes3 P Q R) ↔
      ∃ n : Fin 3 → ℤ, P = iota (n 0) ∧ Q = iota (n 1) ∧ R = iota (n 2) ∧
        HeightCert ![P, Q, R] (Syntax.ell : ℚ) (certShifts n) ∧
        (guardTemplate I T).Rel (codes3 P Q R)
Uses 15 · Used by 3

The guard is a product, over the false triples \((a,b,c)\in[-T,T]^3\), of denominator-cleared squared distances to \((\iota(a),\iota(b),\iota(c))\); its semantics is proved in the specification chapter (semantics of the guard template). By injectivity of codes it passes every true triple and rejects every false triple in the box.

LemmaThe guard passes true triples and rejects false triples in the box#✓

  1. For all \(a,b\in\mathbb Z\), \(\mathrm{Rel}_{\mathtt{multiply.guard}}(\iota(a),\iota(b),\iota(ab))\).
  2. For all \(n_1,n_2,n_3\in\mathbb Z\) with \(|n_i|\le T\) and \(n_1n_2\ne n_3\), \(\mathrm{Rel}_{\mathtt{multiply.guard}}(\iota(n_1),\iota(n_2),\iota(n_3))\) fails.

That is: a false accepted triple in the box would make its own guard factor zero, while at a true triple every factor is positive by injectivity of codes, so the inverse exists. The cutoff \(T\) is used symbolically.

Proof sketch. By the guard semantics, the guard holds exactly when the input triple is not \((\iota(a'),\iota(b'),\iota(c'))\) for a false triple \((a',b',c')\in[-T,T]^3\). (1) If \((\iota(a),\iota(b),\iota(ab))=(\iota(a'),\iota(b'),\iota(c'))\), injectivity of \(\iota\) gives \(a=a'\), \(b=b'\), \(ab=c'\), so \(a'b'=c'\) and the triple is not false. (2) The triple itself is such a false triple.

theorem guard_true_triple (I : Constructors E) (T : ℤ) (hI : I.guard T = guardPoly T)
    (a b : ℤ) : (guardTemplate I T).Rel (codes3 (iota a) (iota b) (iota (a * b)))
theorem guard_false_triple (I : Constructors E) (T : ℤ) (hI : I.guard T = guardPoly T)
    (n : Fin 3 → ℤ) (hn : ∀ i, |n i| ≤ T) (hf : n 0 * n 1 ≠ n 2) :
    ¬ (guardTemplate I T).Rel (codes3 (iota (n 0)) (iota (n 1)) (iota (n 2)))
theorem guard_rel_iff (I : Constructors E) (T : ℤ) (hI : I.guard T = guardPoly T)
    (a : Fin 15 → ℚ) : (guardTemplate I T).Rel a ↔ ¬ FalseTripleCodes T a
Sources
Uses 6 · Used by 3

Other statements

DefinitionThe minimal height hypothesis#✓

Let \(\mathcal C\), \(h\), \(M_S\), \(D\), \(E_0\) and \(C_{\rm cm}\) be as in the six-contact height estimate, and put $\(H_6(D)=2\cdot10^{13}\max\bigl(1,C_{\rm cm},Q_D^{17}\bigr),\qquad Q_D=D^{DE_0}.\)$ Let \(S_{\rm mul}=S_{\rm ht}\cup\mathcal H\cup\{p\text{ prime}:p\mid c_*\}\) be the prime set of the multiplication certificate: \(S_{\rm ht}\) is the set of primes at most \(324\), \(\mathcal H\) is the prime catalogue (the first twenty-two primes greater than \(324\) in each unit class modulo \(W=4P_s\)), and \(c_*=4M_0\), where \(M_0\) is the least formal multiple of \(N_s\).

The minimal height hypothesis is the assertion that for every \(u\in\mathbb Q\setminus\mathcal C\), $\(h(u)\le H_6(D)\,M_{S_{\rm mul}}(u)^{24}.\)$

This is the instance \(S=S_{\rm mul}\), \(R=D\) of the six-contact estimate, and it is the only form of that estimate the proof of the main theorem uses: the precision bound of the value relation needs it at \(S_{\rm ht}\subseteq S_{\rm mul}\), where \(M_{S_{\rm mul}}(u)\) divides \(M_{S_{\rm ht}}(u)\), and the finite box of multiplication soundness needs it at \(S_{\rm mul}\). The constant \(H_6(D)\) is the precision constant \(A^{(0)}_{\rm ht}\). Here it is a hypothesis of the main theorem.

def SixContactMin : Prop :=
  ∀ u : ℚ, u ∉ contactSet →
    ratHeight u ≤ heightH6 (heightD : ℝ) * (contactSupport Mult.S_mul u : ℝ) ^ 24
Sources
Uses 2 · Used by 24

The dependency explorer needs JavaScript and its graph data.

Download the complete graph data.