Fixed constants and the guard product

A fixed integer expression is built from literals, references, arithmetic, powers, maxima, factorials, the prime catalogue and the least formal multiple. Its value is a constant, never a quantified witness, and the astronomical values are never computed.

DefinitionThe prime catalogue#✓

Let \(W\ge1\), \(k\ge0\) and \(B\ge0\) be integers. For each residue \(r\) with \(1\le r<W\) and \(\gcd(r,W)=1\), let \(p_{r,1}<p_{r,2}<\dots<p_{r,k}\) be the first \(k\) primes \(p\) with \(p>B\) and \(p\equiv r\pmod W\). Define $\(\mathrm{catalogue\_product}(W,k,B)=\prod_{r}\prod_{j=1}^kp_{r,j},\qquad \mathrm{catalogue\_max}(W,k,B)=\max_{r,j}p_{r,j},\)$ with the maximum of an empty family equal to \(0\). The fixed catalogue of the manuscript is \(W=4\prod_{p\le324}p\), \(k=22\), \(B=324\): the first twenty-two primes above \(324\) in every unit residue class modulo \(W\). Its product is \(H_{\rm cat}\) and its maximum \(H_{\max}\).

The primes \(p_{r,j}\) exist by Dirichlet's theorem on primes in arithmetic progressions. The definition takes \(p_{r,j}\) to be the \(j\)-th element, in increasing order, of the set of primes \(p>B\) with \(p\equiv r\pmod W\); Dirichlet's theorem shows this set is infinite, so the elements listed are the intended primes. Neither \(H_{\rm cat}\) nor \(H_{\max}\) is evaluated; the catalogue bound hypothesis controls \(H_{\max}\).

This is a definition.

noncomputable def cataloguePrime (W B r j : ℕ) : ℕ :=
  Nat.nth (fun p => p.Prime ∧ B < p ∧ p % W = r) j
noncomputable def catalogueProduct (W k B : ℕ) : ℕ :=
  ∏ r ∈ unitResidues W, ∏ j ∈ Finset.range k, cataloguePrime W B r j
noncomputable def catalogueMax (W k B : ℕ) : ℕ :=
  (unitResidues W).sup fun r => (Finset.range k).sup fun j => cataloguePrime W B r j
Sources
Used by 3

DefinitionThe least formal multiple#✓

Every \(u\in K_0\) has a unique normalized representation \(u=(a+bs)/c\) with \(a,b,c\in\mathbb Z\), \(c>0\) and \(\gcd(a,b,c)=1\) (for \(u=0\) this is \((0,0,1)\)). For a point \(Q\) of \(E(K_0)\) put \(\xi(Q)=1/x(Q)\) if \(Q\ne O\) and \(x(Q)\ne0\), and \(\xi(Q)=0\) otherwise.

For an integer \(N\ge1\), the least formal multiple \(\mathrm{LFM}(N)\) is the least \(m\ge1\) such that the normalized representation \((a,b,c)\) of \(\xi([m]P_0)\) satisfies $\(N^4\mid a,\qquad N^4\mid b,\qquad \gcd(c,N)=1 .\)$ If no such \(m\) exists, \(\mathrm{LFM}(N)=0\); this convention only makes the definition total, and the existence of a successful index for the fixed \(N_s\) is proved with the cutoff in Section 12. The fixed constant \(M_0=\mathrm{LFM}(N_s)\) is never evaluated.

Since \(P_0\) has infinite order, \([m]P_0\) is never \(O\) or a point of order two for \(m\ge1\), so the conventions for \(\xi\) at those points are never used for \(P_0\); they match the specification's rule that the identity has inverse abscissa zero.

This is a definition.

def normalizedRep (u : K0) : ℤ × ℤ × ℕ :=
  (u.re.num * ((Nat.lcm u.re.den u.im.den / u.re.den : ℕ) : ℤ),
    u.im.num * ((Nat.lcm u.re.den u.im.den / u.im.den : ℕ) : ℤ),
    Nat.lcm u.re.den u.im.den)
noncomputable def xi : genCurve.toAffine.Point → K0
  | .zero => 0
  | .some x _ _ => x⁻¹
def FormalCondition (N m : ℕ) : Prop :=
  (N : ℤ) ^ 4 ∣ (normalizedRep (xi (m • genP0))).1 ∧
    (N : ℤ) ^ 4 ∣ (normalizedRep (xi (m • genP0))).2.1 ∧
    Nat.Coprime (normalizedRep (xi (m • genP0))).2.2 N
Sources
Uses 1 · Used by 5

DefinitionFixed integer expressions#✓

A fixed integer expression is built from

  • integer literals;
  • references to earlier named fixed constants;
  • \(\mathrm{add}(e_1,e_2)\), \(\mathrm{mul}(e_1,e_2)\), \(\mathrm{pow}(e_1,e_2)\);
  • \(\max(e_1,\dots,e_k)\) with \(k\ge1\);
  • \(\mathrm{factorial}(e)\);
  • \(\mathrm{catalogue\_product}(e_W,e_k,e_B)\) and \(\mathrm{catalogue\_max}(e_W,e_k,e_B)\);
  • \(\mathrm{least\_formal\_multiple}(e_N)\).

Its value \(\mathrm{val}(e)\in\mathbb Z\) is defined recursively: literals are themselves, a reference is the value of the named constant, \(\mathrm{add}\) and \(\mathrm{mul}\) are \(+\) and \(\times\), \(\mathrm{pow}(e_1,e_2)=\mathrm{val}(e_1)^{\mathrm{val}(e_2)}\) (the specification uses only nonnegative exponents; to make the definition total a negative exponent is replaced by \(0\), so the power is then \(1\)), \(\max\) is the maximum, \(\mathrm{factorial}(e)=\mathrm{val}(e)!\) (with \(n!=1\) for \(n\le0\)), the catalogue operators are the catalogue product and maximum of the prime catalogue with modulus \(\mathrm{val}(e_W)\), count \(\mathrm{val}(e_k)\) and floor \(\mathrm{val}(e_B)\), and \(\mathrm{least\_formal\_multiple}(e_N)\) is the least formal multiple of \(\mathrm{val}(e_N)\). Negative arguments of the last three operators do not occur; they are read through the natural-number truncation.

These expressions produce constants, not quantified witnesses, and none of the astronomical ones is ever evaluated: every later statement about them is proved symbolically from these defining equations.

This is a definition.

ZInQ.Syntax.FixedExpr · 21 lines
inductive FixedExpr (R : Type) where
  /-- An integer literal. -/
  | literal (z : ℤ)
  /-- A reference to an earlier named fixed constant. -/
  | ref (r : R)
  /-- `add(e₁, e₂)`. -/
  | add (a b : FixedExpr R)
  /-- `mul(e₁, e₂)`. -/
  | mul (a b : FixedExpr R)
  /-- `pow(e₁, e₂)`. -/
  | pow (a b : FixedExpr R)
  /-- `max(e₁, e₂, …, e_k)`, `k ≥ 1`: the first argument and the list of the others. -/
  | max (a : FixedExpr R) (as : List (FixedExpr R))
  /-- `factorial(e)`. -/
  | factorial (a : FixedExpr R)
  /-- `catalogue_product(e_W, e_k, e_B)`. -/
  | catalogueProduct (W k B : FixedExpr R)
  /-- `catalogue_max(e_W, e_k, e_B)`. -/
  | catalogueMax (W k B : FixedExpr R)
  /-- `least_formal_multiple(e_N)`. -/
  | leastFormalMultiple (N : FixedExpr R)
ZInQ.Syntax.FixedExpr.val · 16 lines
noncomputable def val (env : R → ℤ) : FixedExpr R → ℤ
  | literal z => z
  | ref r => env r
  | add a b => val env a + val env b
  | mul a b => val env a * val env b
  | pow a b => val env a ^ (val env b).toNat
  | max a as => valMax env (val env a) as
  | factorial a => ((val env a).toNat.factorial : ℤ)
  | catalogueProduct W k B =>
      (_root_.ZInQ.Syntax.catalogueProduct (val env W).toNat (val env k).toNat
        (val env B).toNat : ℤ)
  | catalogueMax W k B =>
      (_root_.ZInQ.Syntax.catalogueMax (val env W).toNat (val env k).toNat
        (val env B).toNat : ℤ)
  | leastFormalMultiple N =>
      (_root_.ZInQ.Syntax.leastFormalMultiple (val env N).toNat : ℤ)
Sources
Uses 2 · Used by 3

The specification binds eighteen named constants, from the primorial \(P_s\) through the guard cutoff \(T\); only the two primorial literals are checked numerically.

DefinitionThe prescribed fixed constants#✓

The specification binds the following named fixed integer expressions, in this order:

Constant Definition
\(P_s\) \(\prod_{p\le324,\ p\text{ prime}}p\)
\(W\) \(4P_s\)
\(H_{\rm cat}\) \(\mathrm{catalogue\_product}(W,22,324)\)
\(H_{\max}\) \(\mathrm{catalogue\_max}(W,22,324)\)
\(N_s\) \(P_sH_{\rm cat}\)
\(M_0\) \(\mathrm{least\_formal\_multiple}(N_s)\)
\(c_*\) \(4M_0\)
\(\ell\) \(12\,P_s^{2916}H_{\rm cat}^{732}\)
\(F\) \(324!\)
\(D\) \(F\cdot3^{256F^4}\)
\(G_0\) \(116064000000\)
\(E_0\) \(10(DG_0)^2\)
\(R\) \(\max(D,H_{\max},c_*,10^{12})\)
\(Q\) \(R^{RE_0}\)
\(B_{\rm cm}\) \(D^2\,3^{21000D^2}+1\)
\(C_{\rm cm}\) \(2B_{\rm cm}+4096\bigl((1028+5D)+84000D^2\bigr)\)
\(A_{\rm ht}\) \(2\cdot10^{13}\cdot\max(1,C_{\rm cm},Q^{17})\)
\(T\) \((48A_{\rm ht})^{13}\)

The saved specification stores \(P_s\) and \(W\) as decimal literals; here they are defined by the displayed products, and their decimal values are a separate finite check. The five further constants \(\mathrm{integer\_constant}_0,\dots,\mathrm{integer\_constant}_4\) are the nontrivial integer constants of the natural precision polynomial, bound by the model-evaluation translation (they are \(4\), \(2\), \(3\), the program literal \(c_3\), and \(1399\)). Here \(c_3\) is the code of the wrapper program written for this construction, with \(1399<c_3<2^{2^{24}}\) (size of the program literal); it is not the saved literal of the manuscript.

\(A_{\rm ht}\) is \(H_6(S;R)\) of the six-contact estimate at this \(R\), and \(T\) is the cutoff of the finite guard. No constant in the table except \(G_0\) is evaluated in the proof; the size chapter bounds them symbolically.

This is a definition.

def Ps : ℕ := primorial 324
def W : ℕ := FixedFormula.W Ps
noncomputable def Hcat : ℕ := catalogueProduct W 22 324
Names in the saved specification
Constant Saved specification
\(P_s\) P0
\(W\) W
\(H_{\rm cat}\) Hproduct
\(H_{\max}\) Hmax
\(N_s\) Ns
\(M_0\) M
\(c_*\) cstar
\(\ell\) ell
\(F\) F
\(D\) D
\(G_0\) G0
\(E_0\) E0
\(R\) R
\(Q\) Q
\(B_{\rm cm}\) Bcm
\(C_{\rm cm}\) Ccm
\(A_{\rm ht}\) Aheight
\(T\) T
Sources
Uses 1 · Used by 17

TheoremDecimal values of the primorial constants#✓

There are exactly \(66\) primes \(p\le324\), and $\(P_s=\prod_{p\le324}p=19361386640700823163471425054312320082662897612571563761906962414215012369856637179096947335243680669607531475629148240284399976570,\)$ $\(W=4P_s=77445546562803292653885700217249280330651590450286255047627849656860049479426548716387789340974722678430125902516592961137599906280 .\)$ These are the two decimal literals of the saved specification. In binary, \(P_s\) has \(433\) digits and \(W\) has \(435\).

This is a closed decidable statement about explicit natural numbers: compute the primes up to \(324\) and their product.

theorem primorial_324_eq : primorial 324 =
    19361386640700823163471425054312320082662897612571563761906962414215012369856637179096947335243680669607531475629148240284399976570
theorem four_mul_primorial_324_eq : 4 * primorial 324 =
    77445546562803292653885700217249280330651590450286255047627849656860049479426548716387789340974722678430125902516592961137599906280
Uses 1 · Used by 1

The constructor finite_guard_product inserts the product, over the false triples \((a,b,c)\in[-T,T]^3\) with \(ab\ne c\), of the denominator-cleared squared distances to \((\iota(a),\iota(b),\iota(c))\).

DefinitionThe finite false-triple product#✓

For an integer \(T\ge0\), a triple \((a,b,c)\in\mathbb Z^3\) is a false triple in the box if \(|a|,|b|,|c|\le T\) and \(ab\ne c\). For such a triple write the fifteen coordinates of \((\iota(a),\iota(b),\iota(c))\), in point-major order, as reduced fractions \(A_j/B_j\) with \(B_j>0\) (\(j=1,\dots,15\)), and put \(D_{abc}=\prod_{j=1}^{15}B_j\). The guard polynomial is $\(G_T(X_1,\dots,X_{15})=\prod_{\substack{(a,b,c)\in[-T,T]^3\\ ab\ne c}}\ \sum_{j=1}^{15}\Bigl(D_{abc}X_j-\frac{D_{abc}}{B_j}A_j\Bigr)^2\ \in\mathbb Z[X_1,\dots,X_{15}],\)$ the product over the finite set of false triples (empty product \(1\)). Each factor has integer coefficients because \(B_j\mid D_{abc}\). The constructor \(\mathrm{guard}\ e\ (a_1,\dots,a_{15})\) denotes \(G_{\mathrm{val}(e)}\) at the polynomials of its argument nodes; the specification uses only \(e=T\).

The polynomial is never expanded: its arithmetic zero set is described by the guard semantics, and its size by the size chapter.

The specification describes the coordinates of \(\iota(n)\), \(n>0\), through division polynomials at \(P_0\), namely \(x_n=x(P_0)-\psi_{n+1}(P_0)\psi_{n-1}(P_0)/\psi_n(P_0)^2\) and \(y_n=\psi_{2n}(P_0)/(2\psi_n(P_0)^4)\), with \(\iota(-n)\) obtained by negating the ordinate. These are the coordinates of \([n]P_0\) by the multiplication-by-\(n\) formulas, because \(P_0\) has infinite order; the definition here uses \(\iota\) directly.

This is a definition.

noncomputable def guardPoly (T : ℤ) : MvPolynomial (Fin 15) ℤ :=
  ∏ t ∈ falseTriples T, guardFactor t
theorem guardPoly_eval_eq_zero_iff (T : ℤ) (x : Fin 15 → ℚ) :
    eval₂ (Int.castRingHom ℚ) x (guardPoly T) = 0 ↔
      ∃ a b c : ℤ, |a| ≤ T ∧ |b| ≤ T ∧ |c| ≤ T ∧ a * b ≠ c ∧ x = tripleCode (a, b, c)
Informally uses
Sources
Uses 1 · Used by 4 · Informal links 1
6 fully proved

The dependency explorer needs JavaScript and its graph data.

Download the complete graph data.