Bounds for the fixed constants
Only a few small facts are computed: the size of the primorial, the factorial \(324!\) to within its binary length, and \(G_0<2^{37}\).
LemmaSmall explicit bounds#✓
The following closed inequalities between explicit natural numbers hold, where \(P_s=\prod_{p\le324,\ p\text{ prime}}p\) and \(W=4P_s\):
- \(P_s<2^{433}\) and \(10^5<W<2^{435}<2^{512}\);
- \(2^{2000}<324!<2^{2250}\);
- \(G_0=116064000000<2^{37}\).
This is a finite computation. The manuscript states \(10^5<W<2^{512}\) and \(2^{2000}<F_0<2^{2250}\); the sharper \(P_s<2^{433}\) is used for \(N_s\) and \(\ell\). The lower bound on \(W\) is used to apply the effective Dirichlet theorem at \(q=W\), which needs \(W\ge2^{16}\).
Proof sketch. Direct evaluation: \(P_s\) and \(W\) have the decimal values of the primorial literal, with \(433\) and \(435\) binary digits; \(324!\) has \(2241\) binary digits (\(2^{2240}<324!<2^{2241}\)); and \(2^{37}=137438953472\).
theorem small_constant_bounds :
Ps < 2 ^ 433 ∧ 10 ^ 5 < W ∧ W < 2 ^ 435 ∧ (2 : ℕ) ^ 435 < 2 ^ 512 ∧
2 ^ 2000 < F ∧ F < 2 ^ 2250 ∧ G0 < 2 ^ 37
def Ps : ℕ := primorial 324
ZInQKernel/Syntax/Constants/Fixed.lean:84
def W : ℕ := FixedFormula.W Ps
ZInQKernel/Syntax/Constants/Fixed.lean:86
def F : ℕ := Nat.factorial 324
ZInQKernel/Syntax/Constants/Fixed.lean:100
def G0 : ℕ := 116064000000
ZInQKernel/Syntax/Constants/Fixed.lean:104
Uses 2 · Used by 5
The symbolic estimates of the whole chapter also use a handful of closed comparisons between explicit numbers of at most a few thousand binary digits; they are collected in one place.
LemmaClosed numerical comparisons#✓
The following inequalities between explicit natural numbers hold:
- \(433+22\cdot2^{4608}<2^{4613}\) and \(4+1262628+16104\cdot2^{4608}<2^{4623}\), where \(1262628=433\cdot2916\) and \(16104=22\cdot732\);
- \(2+10\cdot2^{4613}<2^{4617}\);
- \(10^{12}<2^{40}\) and \(2250+2^{9009}<2^{9010}\);
- \(4096\cdot85033<2^{29}\);
- \((96\cdot10^{13})^{13}<2^{650}\) and \(2210\cdot116064000000^2<2^{86}\);
- \(11243+2\cdot7950=27143\), \(3\cdot3^4+6\cdot27143\cdot3^2+27143^2<2^{30}\), \(2\,(3^6+5\cdot27143\cdot3^4+5\cdot27143^2\cdot3^2+27143^3)<2^{46}\) and \(16\,(3^3+27143\cdot3)^2<2^{38}\);
- \(\max(6564,4640,123720,87483)<2^{17}\) and \(65536\cdot1281<2^{27}\).
This is a finite computation. Every number involved has at most \(9011\) binary digits; none of the constants \(D\), \(T\), \(H_{\rm cat}\), \(N_s\), \(M_0\), \(c_*\), \(\ell\) or \(c_3\) occurs. These are the closed comparisons used by the symbolic estimates of this chapter: (1) for \(N_s\) and \(\ell\), (2) for \(c_*\), (3) for \(R=D\) and the upper bound on \(D\), (4) for \(C_{\rm cm}\), (5) for the bound on \(T\), (6) for the base cases of the division polynomials and (7) for the code heights. The program literal is bounded in the compiler chapter, not here.
Proof sketch. Direct evaluation. For instance \(4096\cdot85033=348295168<536870912=2^{29}\), \(65536\cdot1281=83951616<134217728=2^{27}\), and \(22\cdot2^{4608}+433<32\cdot2^{4608}=2^{4613}\) because \(433<10\cdot2^{4608}\). Items 1 and 2 are those of the cutoff \(2^{W^8}\); the manuscript's cutoff \(2^{W^3}\) used the exponents \(2048\), \(2053\), \(2054\), \(2059\) and \(2063\) instead.
theorem closed_comparisons :
(433 + 22 * 2 ^ 4608 < 2 ^ 4613 ∧ 4 + 1262628 + 16104 * 2 ^ 4608 < 2 ^ 4623 ∧
1262628 = 433 * 2916 ∧ 16104 = 22 * 732) ∧
2 + 10 * 2 ^ 4613 < 2 ^ 4617 ∧
(10 ^ 12 < 2 ^ 40 ∧ 2250 + 2 ^ 9009 < 2 ^ 9010) ∧
4096 * 85033 < 2 ^ 29 ∧
((96 * 10 ^ 13) ^ 13 < 2 ^ 650 ∧ 2210 * 116064000000 ^ 2 < 2 ^ 86) ∧
(11243 + 2 * 7950 = 27143 ∧
3 * 3 ^ 4 + 6 * 27143 * 3 ^ 2 + 27143 ^ 2 < 2 ^ 30 ∧
2 * (3 ^ 6 + 5 * 27143 * 3 ^ 4 + 5 * 27143 ^ 2 * 3 ^ 2 + 27143 ^ 3) < 2 ^ 46 ∧
16 * (3 ^ 3 + 27143 * 3) ^ 2 < 2 ^ 38) ∧
(max (max (max 6564 4640) 123720) 87483 < 2 ^ 17 ∧ 65536 * 1281 < 2 ^ 27)
Sources
Used by 9
The catalogue bound puts every catalogue prime below \(X=2^{W^8}\). This bounds the catalogue maximum and product, hence \(N_s\) and the pole clearing constant \(\ell\).
TheoremThe catalogue below the progression cutoff#✓
Assume the catalogue bound. Let \(W=4P_s\) and \(X=2^{W^8}\). For every residue \(r\) with \(1\le r<W\) and \(\gcd(r,W)=1\) and every \(j\) with \(1\le j\le22\), the catalogue prime \(p_{r,j}\) (the \(j\)-th prime \(p>324\) with \(p\equiv r\pmod W\)) satisfies $\(324<p_{r,j}<X .\)$ Consequently $\(H_{\max}=\mathrm{catalogue\_max}(W,22,324)<X,\qquad 1\le H_{\rm cat}=\mathrm{catalogue\_product}(W,22,324)\le X^{22W}.\)$
Proof sketch. Fix such \(r\). The hypothesis gives at least \(22\) primes \(p\) with \(324<p<X\) and \(p\bmod W=r\); these are exactly the elements below \(X\) of the set \(S_r=\{p\text{ prime}:p>324,\ p\equiv r\pmod W\}\), whose elements in increasing order are \(p_{r,1}<p_{r,2}<\cdots\). So at least \(22\) elements of \(S_r\) are below \(X\), and the \(j\)-th element for \(j\le22\) is below \(X\) (if \(\#(S_r\cap[0,X))\ge22>j-1\), then the element of index \(j-1\), counting from \(0\), is below \(X\)). It is above \(324\) by definition of \(S_r\). The maximum of finitely many numbers below \(X\) is below \(X\) (an empty maximum is \(0<X\)). The product has \(22\,\varphi(W)\le22W\) factors, each in \([1,X)\), so it lies in \([1,X^{22W}]\).
The manuscript reaches the same conclusion at the smaller cutoff \(2^{W^3}\) through the progression estimate, which gives more than \(X/(2W^4)>22\) primes in each unit class and notes that no prime at most \(324\) lies in a unit class. Here the cutoff is \(X=2^{W^8}\), the range of the effective Dirichlet theorem, and the catalogue bound states the needed count directly.
theorem catalogue_bounds (hCAT : CatalogueBound8) :
(∀ r j : ℕ, 1 ≤ r → r < W → r.Coprime W → j < 22 →
324 < Syntax.cataloguePrime W 324 r j ∧ Syntax.cataloguePrime W 324 r j < 2 ^ W ^ 8) ∧
Hmax < 2 ^ W ^ 8 ∧ 1 ≤ Hcat ∧ Hcat ≤ (2 ^ W ^ 8) ^ (22 * W)
def CatalogueBound8 : Prop :=
∀ r : ℕ, r < catalogueModulus → Nat.Coprime r catalogueModulus →
22 ≤ ({p ∈ Finset.Ioo 324 (2 ^ catalogueModulus ^ 8) |
p.Prime ∧ p % catalogueModulus = r}).card
ZInQKernel/Hypotheses/PrimePattern.lean:190
def W : ℕ := FixedFormula.W Ps
ZInQKernel/Syntax/Constants/Fixed.lean:86
noncomputable def cataloguePrime (W B r j : ℕ) : ℕ :=
Nat.nth (fun p => p.Prime ∧ B < p ∧ p % W = r) j
ZInQKernel/Syntax/Constants/Catalogue.lean:43
noncomputable def Hmax : ℕ := catalogueMax W 22 324
ZInQKernel/Syntax/Constants/Fixed.lean:90
noncomputable def Hcat : ℕ := catalogueProduct W 22 324
ZInQKernel/Syntax/Constants/Fixed.lean:88
Uses 3 · Used by 2
TheoremSize of \(N_s\) and \(\ell\)#✓
Assume the catalogue bound. Then $\(1\le N_s=P_sH_{\rm cat}<2^{2^{4613}}\qquad\text{(that is, }\log_2N_s<2^{4613}\text{)},\)$ and the pole clearing constant satisfies $\(\ell=12\,P_s^{2916}H_{\rm cat}^{732}<2^{2^{4623}} .\)$
Proof sketch. All quantities are natural numbers; work with exponents of \(2\). With \(X=2^{W^8}\), \(H_{\rm cat}\le X^{22W}=2^{22W^9}\) and \(P_s<2^{433}\), so \(N_s<2^{433+22W^9}\). From \(W<2^{512}\), \(W^9<2^{4608}\), so \(433+22W^9<433+22\cdot2^{4608}<32\cdot2^{4608}=2^{4613}\), whence \(N_s<2^{2^{4613}}\). For \(\ell\): \(12<2^4\), \(P_s^{2916}<2^{433\cdot2916}=2^{1262628}\) and \(H_{\rm cat}^{732}\le2^{16104W^9}\), with \(16104<2^{14}\), so \(\ell<2^{4+1262628+16104\cdot2^{4608}}<2^{2^{4623}}\). Positivity: \(P_s\ge1\) and \(H_{\rm cat}\ge1\).
The manuscript, with the cutoff \(2^{W^3}\), states \(\log_2N_s<2^{2054}\); the cutoff \(2^{W^8}\) of the effective Dirichlet theorem changes the numerals. The bound on \(\ell\) is the companion proof's estimate \(\ell<T\), made explicit, and is used for the size of the fixed constructor.
theorem catalogue_size (hCAT : CatalogueBound8) :
1 ≤ Ns ∧ Ns < 2 ^ 2 ^ 4613 ∧ ell < 2 ^ 2 ^ 4623
def CatalogueBound8 : Prop :=
∀ r : ℕ, r < catalogueModulus → Nat.Coprime r catalogueModulus →
22 ≤ ({p ∈ Finset.Ioo 324 (2 ^ catalogueModulus ^ 8) |
p.Prime ∧ p % catalogueModulus = r}).card
ZInQKernel/Hypotheses/PrimePattern.lean:190
noncomputable def Ns : ℕ := FixedFormula.Ns Ps Hcat
ZInQKernel/Syntax/Constants/Fixed.lean:92
noncomputable def ell : ℕ := FixedFormula.ell Ps Hcat
ZInQKernel/Syntax/Constants/Fixed.lean:98
Uses 5 · Used by 3
The least formal multiple is at most \(N_s^{10}\) (proved in the next section), so \(c_*=4M_0\) is below \(2^{2^{4617}}\), far below \(D\), whose double logarithm lies between \(8008\) and \(9010\).
TheoremSize of the formal multiple constant#✓
Assume the catalogue bound. Then \(1\le M_0\le N_s^{10}\) and $\(c_*=4M_0<2^{2^{4617}} .\)$
Proof sketch. The existence of a successful formal multiple, applied to \(N=N_s\ge1\), gives \(1\le M_0=\mathrm{LFM}(N_s)\le N_s^{10}\). With \(N_s<2^{2^{4613}}\), \(c_*\le4N_s^{10}<2^{2+10\cdot2^{4613}}\), and \(2+10\cdot2^{4613}<16\cdot2^{4613}=2^{4617}\).
The manuscript, with the cutoff \(2^{W^3}\), has \(c_*<2^{2^{2059}}\); the cutoff \(2^{W^8}\) of the effective Dirichlet theorem changes the numeral.
theorem formal_multiple_size (hCAT : CatalogueBound8) :
1 ≤ M0 ∧ M0 ≤ Ns ^ 10 ∧ cstar < 2 ^ 2 ^ 4617
def CatalogueBound8 : Prop :=
∀ r : ℕ, r < catalogueModulus → Nat.Coprime r catalogueModulus →
22 ≤ ({p ∈ Finset.Ioo 324 (2 ^ catalogueModulus ^ 8) |
p.Prime ∧ p % catalogueModulus = r}).card
ZInQKernel/Hypotheses/PrimePattern.lean:190
noncomputable def M0 : ℕ := leastFormalMultiple Ns
ZInQKernel/Syntax/Constants/Fixed.lean:94
noncomputable def Ns : ℕ := FixedFormula.Ns Ps Hcat
ZInQKernel/Syntax/Constants/Fixed.lean:92
noncomputable def cstar : ℕ := FixedFormula.cstar M0
ZInQKernel/Syntax/Constants/Fixed.lean:96
Uses 5 · Used by 3
TheoremBounds for \(D\)#✓
With \(F_0=324!\) and \(D=F_0\,3^{256F_0^4}\), $\(2^{2^{8008}}<D<2^{2^{9010}} .\)$
Proof sketch. From \(2^{2000}<F_0<2^{2250}\). Lower bound: \(256F_0^4>2^8\cdot2^{8000}=2^{8008}\) and \(3^k>2^k\) for \(k\ge1\), so \(D\ge3^{256F_0^4}>2^{256F_0^4}>2^{2^{8008}}\). Upper bound: \(3<2^2\) gives \(3^{256F_0^4}<2^{512F_0^4}<2^{2^9\cdot2^{9000}}=2^{2^{9009}}\), so \(D<2^{2250}\cdot2^{2^{9009}}=2^{2250+2^{9009}}\), and \(2250+2^{9009}<2^{9010}\). Only monotonicity of \(k\mapsto2^k\), \(k\mapsto k^4\) and \(k\mapsto3^k\) is used; \(D\) is not evaluated.
theorem D_bounds : 2 ^ 2 ^ 8008 < D ∧ D < 2 ^ 2 ^ 9010
def D : ℕ := FixedFormula.D F
ZInQKernel/Syntax/Constants/Fixed.lean:102
Uses 3 · Used by 4
Hence \(D\) dominates the other entries of \(R\), and with \(R=D\) the maximum defining \(A_{\rm ht}\) is attained by \(Q^{17}\). This identifies \(T\) with a closed expression in \(D\) and \(G_0\), which is bounded by monotonicity alone.
TheoremThe parameter \(R\) equals \(D\)#✓
Assume the catalogue bound. Then \(H_{\max}<D\), \(c_*<D\) and \(10^{12}<D\); consequently $\(R=\max(D,H_{\max},c_*,10^{12})=D .\)$
Proof sketch. \(H_{\max}<2^{W^8}\) and \(W^8<2^{8\cdot512}=2^{4096}\), so \(H_{\max}<2^{2^{4096}}<2^{2^{8008}}<D\). Next \(c_*<2^{2^{4617}}<2^{2^{8008}}<D\), and \(10^{12}<2^{40}<D\). A maximum whose first entry dominates the others equals that entry.
theorem r_equals_d (hCAT : CatalogueBound8) :
Hmax < D ∧ cstar < D ∧ 10 ^ 12 < D ∧ R = D
theorem R_eq_D (hCAT : CatalogueBound8) : R = D
def CatalogueBound8 : Prop :=
∀ r : ℕ, r < catalogueModulus → Nat.Coprime r catalogueModulus →
22 ≤ ({p ∈ Finset.Ioo 324 (2 ^ catalogueModulus ^ 8) |
p.Prime ∧ p % catalogueModulus = r}).card
ZInQKernel/Hypotheses/PrimePattern.lean:190
noncomputable def Hmax : ℕ := catalogueMax W 22 324
ZInQKernel/Syntax/Constants/Fixed.lean:90
def D : ℕ := FixedFormula.D F
ZInQKernel/Syntax/Constants/Fixed.lean:102
noncomputable def cstar : ℕ := FixedFormula.cstar M0
ZInQKernel/Syntax/Constants/Fixed.lean:96
noncomputable def R : ℕ := FixedFormula.R D Hmax cstar
ZInQKernel/Syntax/Constants/Fixed.lean:108
Uses 7 · Used by 3
TheoremThe closed form of \(T\)#✓
Assume the catalogue bound. Then:
- \(Q=R^{RE_0}=D^{10G_0^2D^3}\);
- \(C_{\rm cm}<2^{50000D^2}<Q^{17}\), so \(\max(1,C_{\rm cm},Q^{17})=Q^{17}\);
- \(A_{\rm ht}=2\cdot10^{13}\,D^{170G_0^2D^3}\) and $\(T=(48A_{\rm ht})^{13}=(96\cdot10^{13})^{13}\,D^{2210G_0^2D^3}.\)$
Proof sketch. By \(R=D\) and \(E_0=10D^2G_0^2\), \(RE_0=10G_0^2D^3\), which is (1). For (2): \(D^2<2^{D^2}\) and \(3^{21000D^2}<4^{21000D^2}=2^{42000D^2}\) give \(B_{\rm cm}\le2^{42001D^2}\), and \(4096(1028+5D+84000D^2)\le4096\cdot85033\,D^2<2^{29}D^2<2^{42001D^2}\) (using \(1\le D\le D^2\)), so \(C_{\rm cm}<3\cdot2^{42001D^2}<2^{50000D^2}\). On the other side \(D\ge2\) gives \(Q^{17}=D^{170G_0^2D^3}\ge2^{170G_0^2D^3}\), and \(170G_0^2D^3>50000D^2\) because \(170G_0^2D>50000\) (already \(D>300\)). Also \(Q^{17}\ge1\). For (3), \(A_{\rm ht}=2\cdot10^{13}Q^{17}\), so \(48A_{\rm ht}=96\cdot10^{13}Q^{17}\) and \(T=(96\cdot10^{13})^{13}Q^{221}\) with \(Q^{221}=D^{221\cdot10G_0^2D^3}=D^{2210G_0^2D^3}\).
The manuscript compares \(\log_2Q_D^{17}=170G_0^2D^3\log_2D\) with \(50000D^2\); the proof here uses only \(\log_2D\ge1\).
theorem t_identity (hCAT : CatalogueBound8) :
Q = D ^ (10 * G0 ^ 2 * D ^ 3) ∧
(Ccm < 2 ^ (50000 * D ^ 2) ∧ 2 ^ (50000 * D ^ 2) < Q ^ 17 ∧
max (max 1 Ccm) (Q ^ 17) = Q ^ 17) ∧
Aht = 2 * 10 ^ 13 * D ^ (170 * G0 ^ 2 * D ^ 3) ∧
T = (96 * 10 ^ 13) ^ 13 * D ^ (2210 * G0 ^ 2 * D ^ 3)
def CatalogueBound8 : Prop :=
∀ r : ℕ, r < catalogueModulus → Nat.Coprime r catalogueModulus →
22 ≤ ({p ∈ Finset.Ioo 324 (2 ^ catalogueModulus ^ 8) |
p.Prime ∧ p % catalogueModulus = r}).card
ZInQKernel/Hypotheses/PrimePattern.lean:190
noncomputable def Q : ℕ := FixedFormula.Q R E0
ZInQKernel/Syntax/Constants/Fixed.lean:110
def D : ℕ := FixedFormula.D F
ZInQKernel/Syntax/Constants/Fixed.lean:102
def G0 : ℕ := 116064000000
ZInQKernel/Syntax/Constants/Fixed.lean:104
def Ccm : ℕ := FixedFormula.Ccm Bcm D
ZInQKernel/Syntax/Constants/Fixed.lean:114
noncomputable def Aht : ℕ := FixedFormula.Aht Ccm Q
ZInQKernel/Syntax/Constants/Fixed.lean:116
noncomputable def T : ℕ := FixedFormula.T Aht
ZInQKernel/Syntax/Constants/Fixed.lean:118
Uses 5 · Used by 2
TheoremThe cutoff is below a triple tower#✓
With \(D\) and \(G_0\) as defined, $\((96\cdot10^{13})^{13}\,D^{2210G_0^2D^3}<2^{D^8}<2^{2^{2^{9013}}} .\)$ With the closed form of \(T\) this is the bound on \(T\) in the literal cutoff.
Proof sketch. Write \(D\) symbolically and use \(2^{2^{8008}}<D<2^{2^{9010}}\) and \(G_0<2^{37}\). First \((96\cdot10^{13})^{13}<2^{650}\) and \(2210G_0^2<2^{86}<D\) (closed comparisons), so \(2210G_0^2D^3<D^4\). With \(D<2^D\), \(D^{2210G_0^2D^3}<(2^D)^{D^4}=2^{D^5}\). Then \(650+D^5<D^8\) since \(D>650\), giving the first inequality. Finally \(D^8<\bigl(2^{2^{9010}}\bigr)^8=2^{2^{9013}}\), giving the second.
The manuscript's chain is \(G_0<2^{37}\), \(E_0<D^3\), \(\log_2Q_D<D^5\), \(\log_2A_{\rm ht}<D^7\) and \(\log_2T<D^8<2^{2^{9013}}\); the route above bounds the closed form directly and reaches the same \(\log_2T<D^8\).
theorem closedT_lt :
(96 * 10 ^ 13) ^ 13 * D ^ (2210 * G0 ^ 2 * D ^ 3) < 2 ^ D ^ 8 ∧
2 ^ D ^ 8 < 2 ^ 2 ^ 2 ^ 9013
def D : ℕ := FixedFormula.D F
ZInQKernel/Syntax/Constants/Fixed.lean:102
def G0 : ℕ := 116064000000
ZInQKernel/Syntax/Constants/Fixed.lean:104
Uses 4 · Used by 1
Loading dependency explorer…
The dependency explorer needs JavaScript and its graph data.