Route AP: progressions of good primes in place of the prime pattern
The completeness of the multiplication template needs every integer to be a sum of three good slopes, the slope representation. The manuscript obtains it from the twenty-two-prime pattern of Proposition 6.2, whose proof uses the Green–Tao–Ziegler theory of linear equations in primes. Route AP replaces the twenty-two-prime pattern by the statement 22P_AP, that the good slope primes contain arbitrarily long arithmetic progressions, through a change in the completeness proof only: the polynomial is unchanged, and so are the slope predicate and soundness. Since 22P_AP follows from Szemerédi's theorem in the primes and the positive density of the good slope primes, both proved here, the twenty-two-prime pattern is no longer a hypothesis of the main theorem.
The obstacle is the common difference: a progression of many primes has a difference divisible by every small prime to a high power, so its slopes have poles at the old primes \(S_b\), which condition 2 of the slope representation forbids. Lemma P shows that such a pole is harmless: the parameter \(q\) of the slope certificate, chosen \(\ell\)-adically close to a square root of \(R_0^{-1}\), absorbs it.
Lemma P
DefinitionThe hypotheses of Lemma P#✓
Let \(\ell\) be a prime and \(t\in\mathbb Q\), written \(t=u/v\) in lowest terms with \(v>0\). Then \(t\) satisfies the hypotheses of Lemma P at \(\ell\) if
- \(e=v_\ell(v)\ge1\), that is, \(t\) has a pole at \(\ell\);
- \(e\ge3\) if \(\ell=2\);
- none of the seven numbers \(u-cv\), \(c\in\mathcal C\cup\{1\}\), is divisible by \(\ell\).
The contact numerator of \((u,v)\) is \(F(u,v)=\prod_{c\in\mathcal C}(u-cv)\), so that \(F(u/v)=F(u,v)/v^6\).
The research note also asks for \(F(t)>0\); that condition only fixes the sign \(\eta=1\) of the slope predicate, and it is kept in field 2′ of the slope conditions rather than here.
def PoleAbsorbHyp (ℓ : ℕ) (t : ℚ) : Prop :=
1 ≤ padicValNat ℓ t.den ∧ (ℓ = 2 → 3 ≤ padicValNat ℓ t.den) ∧
∀ c ∈ patternShifts, ¬ (ℓ : ℤ) ∣ t.num - c * t.den
def apContactNum (u v : ℤ) : ℤ :=
(u - 0 * v) * (u - (-15) * v) * (u - (-20) * v) * (u - (-24) * v) * (u - (-30) * v) *
(u - (-60) * v)
def patternShifts : List ℤ := [0, -15, -20, -24, -30, -60, 1]
ZInQKernel/Hypotheses/PrimePattern.lean:109
TheoremLemma P: a pole at an old prime is absorbed by the parameter \(q\)#✓
Let \(\ell\) be a prime and let \(t=u/v\) satisfy the hypotheses of Lemma P at \(\ell\), with \(e=v_\ell(v)\), and put \(R_0=F(t)/(t-1)^8\). Then:
- \(v_\ell(R_0)=2e\), \(v_\ell(t-1)=-e\), and \(R_0\) is a square in \(\mathbb Q_\ell\);
- for every integer \(N\) the set of \(x\in\mathbb Q_\ell\) with \(|1-R_0x^2|_\ell\le\ell^{-N}\) is non-empty and open in \(\mathbb Q_\ell\); more precisely there are \(m\in\mathbb Z\) and \(k,M\in\mathbb N\) such that every rational \(q\) with \(|q-m/\ell^k|_\ell\le\ell^{-M}\) satisfies \(|1-R_0q^2|_\ell\le\ell^{-N}\), that is \(v_\ell(1-R_0q^2)\ge N\) (or \(1-R_0q^2=0\)). In particular such a rational \(q\) exists.
Proof sketch. (1) With \(F(u,v)\) the contact numerator, \(R_0=F(u,v)\,v^2/(u-v)^8\). The numbers \(u-cv\) and \(u-v\) are \(\ell\)-units, so \(v_\ell(R_0)=2e\) and \(v_\ell(t-1)=v_\ell(u-v)-v_\ell(v)=-e\). Since \(v\mid F(u,v)-u^6\), the unit \(X=F(u,v)\) is congruent to \(u^6\) modulo \(\ell^e\); Hensel's lemma for \(Y^2-X\) at \(Y=u^3\) applies because \(|u^6-X|_\ell\le\ell^{-e}<|2u^3|_\ell^2\) (for \(\ell=2\) this needs \(e\ge3\)). So \(X=y^2\) in \(\mathbb Z_\ell\), and \(R_0=z^2\) with \(z=vy/(u-v)^4\). (2) Put \(w=z^{-1}\), so that \(R_0w^2=1\). If \(|x-w|_\ell\le|w|_\ell\min(1,\ell^{-N})\), then \(1-R_0x^2=R_0(w-x)(w+x)\) has absolute value at most \(\ell^{-N}\), by the ultrametric inequality. The set is the preimage of a closed ball, which is open in \(\mathbb Q_\ell\); and the rationals \(m/\ell^k\) are dense in \(\mathbb Q_\ell\), which gives the rational ball.
The note's hypothesis \(F(t)>0\) is not needed for these statements; it only fixes \(\eta=1\).
theorem lemmaP_one {ℓ : ℕ} [hℓ : Fact ℓ.Prime] {t : ℚ} (hP : PoleAbsorbHyp ℓ t) :
padicValRat ℓ (slopeR0 1 t) = 2 * (padicValNat ℓ t.den : ℤ) ∧
padicValRat ℓ (t - 1) = -(padicValNat ℓ t.den : ℤ) ∧
∃ z : ℚ_[ℓ], ((slopeR0 1 t : ℚ) : ℚ_[ℓ]) = z ^ 2
theorem lemmaP_two {ℓ : ℕ} [hℓ : Fact ℓ.Prime] {t : ℚ} (hP : PoleAbsorbHyp ℓ t) (N : ℤ) :
{x : ℚ_[ℓ] | ‖1 - ((slopeR0 1 t : ℚ) : ℚ_[ℓ]) * x ^ 2‖ ≤ (ℓ : ℝ) ^ (-N)}.Nonempty ∧
IsOpen {x : ℚ_[ℓ] | ‖1 - ((slopeR0 1 t : ℚ) : ℚ_[ℓ]) * x ^ 2‖ ≤ (ℓ : ℝ) ^ (-N)}
theorem lemmaP_two_ball {ℓ : ℕ} [hℓ : Fact ℓ.Prime] {t : ℚ} (hP : PoleAbsorbHyp ℓ t) (N : ℤ) :
∃ (m : ℤ) (k M : ℕ), ∀ q : ℚ, padicNorm ℓ (q - m / (ℓ : ℚ) ^ k) ≤ (ℓ : ℚ) ^ (-(M : ℤ)) →
padicNorm ℓ (slopeA (slopeR0 1 t) q) ≤ (ℓ : ℚ) ^ (-N)
def PoleAbsorbHyp (ℓ : ℕ) (t : ℚ) : Prop :=
1 ≤ padicValNat ℓ t.den ∧ (ℓ = 2 → 3 ≤ padicValNat ℓ t.den) ∧
∀ c ∈ patternShifts, ¬ (ℓ : ℤ) ∣ t.num - c * t.den
ZInQKernel/Multiplication/Completeness/AP/LemmaP.lean:30
def slopeR0 (η t : ℚ) : ℚ := η * contactPoly t / (t - 1) ^ 8
ZInQKernel/Multiplication/Certificate/SlopePredicate.lean:27
def slopeA (R0 q : ℚ) : ℚ := 1 - R0 * q ^ 2
ZInQKernel/Multiplication/Certificate/SlopePredicate.lean:30
Uses 2 · Used by 1
TheoremLemma P, part (3): the valuation of the pole input#✓
Let \(p\) be a prime, \(\eta\in\{1,-1\}\), \(\ell\in\mathbb Q\) nonzero with \(v_p(\ell)\ge0\), and \(t\in\mathbb Q\setminus(\mathcal C\cup\{1\})\) with \(R_0=\eta F(t)/(t-1)^8\). Suppose that for some \(e\in\mathbb N\) $\(v_p(R_0)=2e,\qquad v_p(t-1)=-e .\)$ Let \(q\in\mathbb Q\) with \(a=1-R_0q^2\ne0\) and $\(v_p(a)\ge23e+v_p(12)+2,\)$ and let \(D_{gj}\in K_0\) (\(1\le g\le6\), \(1\le j\le12\)) be integral at every prime of \(\mathbb Z[\sqrt2]\) above \(p\). Form \(R=\ell^2a^2R_0\), \(C_{gj}\), \(W_g\) and \(\Theta\) as in the slope predicate, and assume \(\Theta\ne0\). Then the pole input \(B=R/\Theta^2\) has \(v_p(B)\ge4\).
Proof sketch. Measure valuations above \(p\) on the scale of \(v_p\). Then \(v(C_{gj})\ge-2ek_j+e(k_j+1)=-e(k_j-1)\), and \(v(R)=2v_p(\ell)+2v_p(a)+2e\), so \(v(RC_{gj}^2)\ge2v_p(a)+2e-2e(k_j-1)\ge2v_p(a)-46e>v_p(12)\) for \(k_j\in\{1,25\}\). Each factor \(1+RC_{gj}^2\), hence each \(W_g\) and \(W_g^{-1}\), is \(\equiv1\) to valuation \(>v_p(12)\) at every place above \(p\), so \(\Theta-12=\operatorname{Tr}\sum_g(W_g^{-1}-1)\) has valuation \(>v_p(12)\) and \(v_p(\Theta)=v_p(12)\). Finally \(v_p(B)=v(R)-2v_p(12)\ge2v_p(a)-2v_p(12)\ge4\). This is the manuscript's real-place argument (\(a\to0\)) transported to \(\mathbb Q_p\).
theorem lemmaP_three {p : ℕ} (hp : p.Prime) {ℓ η q t : ℚ} (hη : η = 1 ∨ η = -1) (hℓ0 : ℓ ≠ 0)
(hℓp : 0 ≤ padicValRat p ℓ) (ht : t ∉ contactSet) (ht1 : t ≠ 1) (e : ℕ)
(hR0v : padicValRat p (slopeR0 η t) = 2 * e) (ht1v : padicValRat p (t - 1) = -e)
(ha : slopeA (slopeR0 η t) q ≠ 0)
(hN : 23 * (e : ℤ) + padicValNat p 12 + 2 ≤ padicValRat p (slopeA (slopeR0 η t) q))
(D : Fin 6 → Fin 12 → K0)
(hD : ∀ (π : Zs) (hπ : Prime π), π ∣ (p : Zs) → ∀ g j, Vge (vP π hπ) 0 (D g j))
(hΘ : traceTheta (fun g => groupW (slopeR ℓ (slopeA (slopeR0 η t) q) (slopeR0 η t))
(normTests (slopeR0 η t) t (D g))) ≠ 0) :
4 ≤ padicValRat p (poleInput ℓ η q t D)
theorem padicValRat_traceTheta_of_clear {p : ℕ} (hp : p.Prime) {R0 t R : ℚ} (hR0 : R0 ≠ 0)
(ht1 : t ≠ 1) (hR : R ≠ 0) (D : Fin 6 → Fin 12 → K0)
(hD : ∀ (π : Zs) (hπ : Prime π), π ∣ (p : Zs) → ∀ g j, Vge (vP π hπ) 0 (D g j))
(hclear : ∀ j, ((padicValNat p 12 : ℕ) : ℤ) + 1 ≤ padicValRat p R -
2 * (prec j * padicValRat p R0 + (prec j + 1) * padicValRat p (t - 1)))
(hΘ : traceTheta (fun g => groupW R (normTests R0 t (D g))) ≠ 0) :
padicValRat p (traceTheta (fun g => groupW R (normTests R0 t (D g)))) =
((padicValNat p 12 : ℕ) : ℤ)
def contactSet : Finset ℚ := {0, -15, -20, -24, -30, -60}
ZInQKernel/Hypotheses/Height.lean:84
def slopeR0 (η t : ℚ) : ℚ := η * contactPoly t / (t - 1) ^ 8
ZInQKernel/Multiplication/Certificate/SlopePredicate.lean:27
def slopeA (R0 q : ℚ) : ℚ := 1 - R0 * q ^ 2
ZInQKernel/Multiplication/Certificate/SlopePredicate.lean:30
abbrev K0 : Type := QuadraticAlgebra ℚ 2 0
ZInQKernel/Hypotheses/MordellWeil.lean:25
abbrev Zs : Type := QuadraticAlgebra ℤ 2 0
ZInQKernel/Model/Field/Basic.lean:148
def Vge (m : ℤ) (x : K) : Prop := ((m : ℤ) : WithTop ℤ) ≤ v x
ZInQKernel/Multiplication/Local/ValHelpers.lean:17
noncomputable def vP (π : Zs) (hπ : Prime π) : AddValuation K0 (WithTop ℤ) :=
ordOf ((primeSpec π hπ).valuation K0)
ZInQKernel/Multiplication/Local/Valuations.lean:72
noncomputable def traceTheta (W : Fin 6 → K0) : ℚ := QuadraticAlgebra.trace (∑ g, (W g)⁻¹)
ZInQKernel/Multiplication/Certificate/SlopePredicate.lean:43
noncomputable def groupW (R : ℚ) (C : Fin 12 → K0) : K0 := ∏ j, (1 + (R : K0) * C j ^ 2)
ZInQKernel/Multiplication/Certificate/SlopePredicate.lean:40
def slopeR (ℓ a R0 : ℚ) : ℚ := ℓ ^ 2 * a ^ 2 * R0
ZInQKernel/Multiplication/Certificate/SlopePredicate.lean:33
noncomputable def normTests (R0 t : ℚ) (D : Fin 12 → K0) (j : Fin 12) : K0 :=
D j / ((R0 : K0) ^ prec j * ((t - 1 : ℚ) : K0) ^ (prec j + 1))
ZInQKernel/Multiplication/Certificate/SlopePredicate.lean:36
noncomputable def poleInput (ℓ η q t : ℚ) (D : Fin 6 → Fin 12 → K0) : ℚ :=
slopeR ℓ (slopeA (slopeR0 η t) q) (slopeR0 η t) /
traceTheta (fun g => groupW (slopeR ℓ (slopeA (slopeR0 η t) q) (slopeR0 η t))
(normTests (slopeR0 η t) t (D g))) ^ 2
ZInQKernel/Multiplication/Completeness/PoleValuations.lean:24
def prec (j : Fin 12) : ℕ := if j.val < 8 then 1 else 25
ZInQKernel/Multiplication/Certificate/Constants.lean:90
Uses 2 · Used by 1
The modified completeness of the multiplication template
Field 2′ allows, at each old prime, either the bounds of condition 2 or the hypotheses of Lemma P. The completeness proof of the multiplication chapter goes through with one change: at the old primes where a slope has a pole, the weak approximation step puts \(q\) in the ball of Lemma P(2) instead of making \(v_\ell(q)\ge C_\ell\). Everything else (the shifts at the selected primes, the integrality of the tests at the old primes, positivity and smallness of the pole input, the guard) is reused unchanged.
StructureSlopes with poles at the old primes: field 2′#✓
For a real \(B_0\), say that \(t\in\mathbb Q\) satisfies conditions 1, 2′, 3, 4 for \(B_0\) if it satisfies conditions 1, 3 and 4 of the slope representation for \(B_0\) and, in place of condition 2:
- 2′. for every \(p\in S_b\), either the bounds of condition 2 hold at \(p\), $\(|v_p(t-1)|\le B_p\quad\text{and}\quad|v_p(F(t)/(t-1)^8)|\le8B_p,\)$ or \(F(t)>0\) and \(t\) satisfies the hypotheses of Lemma P at \(p\).
Every \(t\) satisfying conditions 1–4 for \(B_0\) satisfies conditions 1, 2′, 3, 4 for \(B_0\).
Field 2′ allows a pole of any order at an old prime, provided the seven numerators \(u-cv\), \(c\in\mathcal C\cup\{1\}\), are prime to it; this is what a progression of primes provides, whose common difference is divisible by every small prime to a high power.
structure GoodSlopeAP (B₀ : ℝ) (t : ℚ) : Prop where
not_mem_contactSet : t ∉ contactSet
ne_one : t ≠ 1
old : ∀ p ∈ S_b, OldBounds p t ∨ (0 < contactPoly t ∧ PoleAbsorbHyp p t)
contact : ∀ p : ℕ, p ∉ S_b → IsOddContactPrime t p →
B₀ < p ∧ GoodSlopePrime p ∧
∀ c ∈ contactSet, 0 < padicValRat p (t - c) → padicValRat p (t - c) = 1
few : ∃ P : Finset ℕ, P.card ≤ 6 ∧ ∀ p, p ∈ P ↔ p ∉ S_b ∧ IsOddContactPrime t p
def OldBounds (p : ℕ) (t : ℚ) : Prop :=
|padicValRat p (t - 1)| ≤ Bp p ∧ |padicValRat p (contactPoly t / (t - 1) ^ 8)| ≤ 8 * Bp p
def contactSet : Finset ℚ := {0, -15, -20, -24, -30, -60}
ZInQKernel/Hypotheses/Height.lean:84
noncomputable def S_b : Finset ℕ := S_ht ∪ catalogue
ZInQKernel/Multiplication/Certificate/Constants.lean:37
def OldBounds (p : ℕ) (t : ℚ) : Prop :=
|padicValRat p (t - 1)| ≤ Bp p ∧ |padicValRat p (contactPoly t / (t - 1) ^ 8)| ≤ 8 * Bp p
ZInQKernel/Multiplication/Completeness/AP/GoodSlope.lean:18
def contactPoly (t : ℚ) : ℚ := t * (t + 15) * (t + 20) * (t + 24) * (t + 30) * (t + 60)
ZInQKernel/Multiplication/Certificate/Constants.lean:81
def PoleAbsorbHyp (ℓ : ℕ) (t : ℚ) : Prop :=
1 ≤ padicValNat ℓ t.den ∧ (ℓ = 2 → 3 ≤ padicValNat ℓ t.den) ∧
∀ c ∈ patternShifts, ¬ (ℓ : ℤ) ∣ t.num - c * t.den
ZInQKernel/Multiplication/Completeness/AP/LemmaP.lean:30
def IsOddContactPrime (t : ℚ) (p : ℕ) : Prop :=
p.Prime ∧ ∃ c ∈ contactSet, 0 < padicValRat p (t - c) ∧ Odd (padicValRat p (t - c))
ZInQKernel/Multiplication/Certificate/Constants.lean:85
def GoodSlopePrime (p : ℕ) : Prop :=
p.Prime ∧ ∃ r : ZMod p, r ^ 2 = 2 ∧
(75 - 53 * r : ZMod p) ≠ 0 ∧ (75 + 53 * r : ZMod p) ≠ 0 ∧
Nat.gcd (pointCount p (-(75 - 53 * r) ^ 2)) (pointCount p (-(75 + 53 * r) ^ 2)) = 4
ZInQKernel/Hypotheses/PrimePattern.lean:128
def Bp (p : ℕ) : ℕ := if p ∈ S_ht then 4 else 1
ZInQKernel/Multiplication/Certificate/Constants.lean:67
DefinitionThe slope representation under field 2′#✓
The slope representation under field 2′ is the assertion that every integer \(A\) is a sum \(t_1+t_2+t_3=A\) of three rationals each satisfying conditions 1, 2′, 3, 4 for \(B_0=0\).
It is weaker than the slope representation, which it replaces in the completeness of the multiplication template.
def SlopeRepresentationAP : Prop :=
∀ A : ℤ, ∃ t : Fin 3 → ℚ, ∑ j, t j = A ∧ ∀ j, GoodSlopeAP 0 (t j)
structure GoodSlopeAP (B₀ : ℝ) (t : ℚ) : Prop where
not_mem_contactSet : t ∉ contactSet
ne_one : t ≠ 1
old : ∀ p ∈ S_b, OldBounds p t ∨ (0 < contactPoly t ∧ PoleAbsorbHyp p t)
contact : ∀ p : ℕ, p ∉ S_b → IsOddContactPrime t p →
B₀ < p ∧ GoodSlopePrime p ∧
∀ c ∈ contactSet, 0 < padicValRat p (t - c) → padicValRat p (t - c) = 1
few : ∃ P : Finset ℕ, P.card ≤ 6 ∧ ∀ p, p ∈ P ↔ p ∉ S_b ∧ IsOddContactPrime t p
ZInQKernel/Multiplication/Completeness/AP/GoodSlope.lean:23
Uses 1 · Used by 6
TheoremThe slope representation implies its form under field 2′#✓
The slope representation implies the slope representation under field 2′.
Proof sketch. A good slope satisfies condition 2 at every \(p\in S_b\), hence the first alternative of field 2′; conditions 1, 3 and 4 are unchanged.
So everything the twenty-two-prime pattern or the two-slope pattern gives, route AP accepts as well.
theorem slopeRepresentationAP_of_slopeRepresentation (h : SlopeRepresentation) :
SlopeRepresentationAP
theorem GoodSlope.goodSlopeAP {B₀ : ℝ} {t : ℚ} (ht : GoodSlope B₀ t) : GoodSlopeAP B₀ t
def SlopeRepresentation : Prop :=
∀ A : ℤ, ∃ t : Fin 3 → ℚ, ∑ j, t j = A ∧ ∀ j, GoodSlope 0 (t j)
ZInQKernel/Multiplication/Completeness/PatternSlopes.lean:314
def SlopeRepresentationAP : Prop :=
∀ A : ℤ, ∃ t : Fin 3 → ℚ, ∑ j, t j = A ∧ ∀ j, GoodSlopeAP 0 (t j)
ZInQKernel/Multiplication/Completeness/AP/Completeness.lean:22
structure GoodSlope (B₀ : ℝ) (t : ℚ) : Prop where
not_mem_contactSet : t ∉ contactSet
ne_one : t ≠ 1
old : ∀ p ∈ S_b, |padicValRat p (t - 1)| ≤ Bp p ∧
|padicValRat p (contactPoly t / (t - 1) ^ 8)| ≤ 8 * Bp p
contact : ∀ p : ℕ, p ∉ S_b → IsOddContactPrime t p →
B₀ < p ∧ GoodSlopePrime p ∧
∀ c ∈ contactSet, 0 < padicValRat p (t - c) → padicValRat p (t - c) = 1
few : ∃ P : Finset ℕ, P.card ≤ 6 ∧ ∀ p, p ∈ P ↔ p ∉ S_b ∧ IsOddContactPrime t p
ZInQKernel/Multiplication/Completeness/PatternSlopes.lean:26
structure GoodSlopeAP (B₀ : ℝ) (t : ℚ) : Prop where
not_mem_contactSet : t ∉ contactSet
ne_one : t ≠ 1
old : ∀ p ∈ S_b, OldBounds p t ∨ (0 < contactPoly t ∧ PoleAbsorbHyp p t)
contact : ∀ p : ℕ, p ∉ S_b → IsOddContactPrime t p →
B₀ < p ∧ GoodSlopePrime p ∧
∀ c ∈ contactSet, 0 < padicValRat p (t - c) → padicValRat p (t - c) = 1
few : ∃ P : Finset ℕ, P.card ≤ 6 ∧ ∀ p, p ∈ P ↔ p ∉ S_b ∧ IsOddContactPrime t p
ZInQKernel/Multiplication/Completeness/AP/GoodSlope.lean:23
Uses 2 · Used by 1
LemmaWeak approximation with residue targets#✓
Let \(S\) and \(S'\) be disjoint finite sets of primes. For \(p\in S\) let \(m_p\in\mathbb Z\) and \(k_p,n_p\in\mathbb N\). Let \(x_0\in\mathbb R\), \(\delta>0\) and \(X\subset\mathbb R\) finite. Then there is a nonzero \(q\in\mathbb Q\) with \(q\notin X\), \(|q-x_0|<\delta\), $\(\Bigl|q-\frac{m_p}{p^{k_p}}\Bigr|_p\le p^{-n_p}\quad(p\in S),\qquad v_p(q)\ge0\quad(p\in S').\)$
This generalizes the weak approximation used by the original completeness proof, where every target is \(0\): route AP needs \(q\) close to a \(p\)-adic square root of \(R_0^{-1}\) at the old primes where a slope has a pole.
Proof sketch. Let \(K=\sum_{p\in S}(n_p+k_p)\). By the Chinese remainder theorem choose integers \(E_p\equiv1\pmod{p^K}\) with \(E_p\equiv0\pmod{p'^K}\) for the other \(p'\in S\), and put \(y=\sum_{p\in S}(m_p/p^{k_p})E_p\); then \(|y-m_p/p^{k_p}|_p\le p^{-n_p}\) and \(y\) is integral at \(S'\). Weak approximation for the parameter \(q\), applied to the target \(x_0-y\) with valuations \(\ge K\) on \(S\), \(\ge0\) on \(S'\), and the excluded set \(\{-y\}\cup(X-y)\), gives \(q'\); take \(q=y+q'\).
theorem weak_approx_targets (S S' : Finset ℕ) (hS : ∀ p ∈ S, p.Prime) (hS' : ∀ p ∈ S', p.Prime)
(hdisj : Disjoint S S') (m : ℕ → ℤ) (k n : ℕ → ℕ) (x₀ δ : ℝ) (hδ : 0 < δ) (X : Finset ℝ) :
∃ q : ℚ, q ≠ 0 ∧ (q : ℝ) ∉ X ∧ |(q : ℝ) - x₀| < δ ∧
(∀ p ∈ S, padicNorm p (q - m p / (p : ℚ) ^ k p) ≤ (p : ℚ) ^ (-(n p : ℤ))) ∧
∀ p ∈ S', 0 ≤ padicValRat p q
theorem padicNorm_le_zpow_iff_ap {p : ℕ} [hp : Fact p.Prime] {q : ℚ} (hq : q ≠ 0) (n : ℤ) :
padicNorm p q ≤ (p : ℚ) ^ (-n) ↔ n ≤ padicValRat p q
theorem exists_crt_idempotent_ap (S : Finset ℕ) (hS : ∀ p ∈ S, p.Prime) (K : ℕ) {p : ℕ}
(hp : p ∈ S) : ∃ E : ℤ, (p : ℤ) ^ K ∣ E - 1 ∧ ∀ p' ∈ S, p' ≠ p → (p' : ℤ) ^ K ∣ E
Uses 1 · Used by 1
LemmaValuations of the pole input under field 2′#✓
Let \(t\in\mathbb Q\) satisfy conditions 1, 2′, 3, 4 (for some \(B_0\)), and let \(P(t)\) be its set of odd contact primes outside \(S_b\). Let \(\eta\in\{1,-1\}\), \(R_0=\eta F(t)/(t-1)^8\), let \(\ell\ne0\) with \(v_p(\ell)=E_p\) for \(p\in S_b\) and \(v_p(\ell)=0\) for every other prime, and let \(q\in\mathbb Q\) with \(a=1-R_0q^2\ne0\) such that
- for every \(p\in S_b\), either the bounds of condition 2 hold at \(p\) and \(v_p(q)\ge C_p\), or there is \(e\in\mathbb N\) with \(v_p(F(t)/(t-1)^8)=2e\), \(v_p(t-1)=-e\) and \(v_p(a)\ge23e+v_p(12)+2\);
- \(v_p(q)\ge0\) for every \(p\in P(t)\).
Let \(D_{gj}\in K_0\) satisfy (i) and (ii) of the valuations of the pole input of a completed slope (integral above \(S_b\); for each \(p\in P(t)\) some group and place with \(v_{\mathfrak p}(D_{gj})\ge k_j\)), and assume \(W_g\ne0\) and \(\Theta\ne0\). Then \(B=R/\Theta^2\) satisfies:
- \(v_p(B)\ge4\) for every \(p\in S_b\), in particular for every \(p\in S_0\);
- \(v_p(B)=1\) for every \(p\in P(t)\);
- \(v_p(B)\) is even for every other prime \(p\notin S_b\);
and the reduced denominator of \(B\) is a perfect square.
The only change from the original lemma is part 1: \(v_p(B)\ge4\) replaces \(v_p(B)\ge103C_p+8\), which is all that pole completeness and the square denominator need.
Proof sketch. At \(p\in S_b\) with the first alternative, the original argument applies verbatim. With the second alternative, Lemma P(3) gives \(v_p(B)\ge4\); its integrality hypothesis is (i), and \(v_p(\ell)=E_p\ge0\). At \(p\in P(t)\), conditions 1 and 3 alone give \(v_p(F(t)/(t-1)^8)=1\) and \(v_p(t-1)=0\), and the original argument applies. At the other primes the parity argument is unchanged, since \(a\) enters \(R\) squared.
ZInQ.Mult.pole_input_valuations_AP · 23 lines
theorem pole_input_valuations_AP {B₀ : ℝ} {t : ℚ} (ht : GoodSlopeAP B₀ t) {η q ℓ : ℚ}
(hη : η = 1 ∨ η = -1) (hℓ0 : ℓ ≠ 0)
(hℓ : ∀ p : ℕ, p.Prime → padicValRat p ℓ = if p ∈ S_b then (Ep p : ℤ) else 0)
(hq_old : ∀ p ∈ S_b, (OldBounds p t ∧ (Cp p : ℤ) ≤ padicValRat p q) ∨
∃ e : ℕ, padicValRat p (contactPoly t / (t - 1) ^ 8) = 2 * e ∧
padicValRat p (t - 1) = -e ∧
23 * (e : ℤ) + padicValNat p 12 + 2 ≤ padicValRat p (slopeA (slopeR0 η t) q))
(hq_sel : ∀ p : ℕ, p ∉ S_b → IsOddContactPrime t p → 0 ≤ padicValRat p q)
(ha : slopeA (slopeR0 η t) q ≠ 0) (D : Fin 6 → Fin 12 → K0)
(hD_old : ∀ p ∈ S_b, ∀ (π : Zs) (hπ : Prime π), π ∣ (p : Zs) →
∀ g j, Vge (vP π hπ) 0 (D g j))
(hD_sel : ∀ p : ℕ, p ∉ S_b → IsOddContactPrime t p →
∃ g, ∃ (π : Zs) (hπ : Prime π), π ∣ (p : Zs) ∧ ∀ j, Vge (vP π hπ) (prec j) (D g j))
(hW : ∀ g, groupW (slopeR ℓ (slopeA (slopeR0 η t) q) (slopeR0 η t))
(normTests (slopeR0 η t) t (D g)) ≠ 0)
(hΘ : traceTheta (fun g => groupW (slopeR ℓ (slopeA (slopeR0 η t) q) (slopeR0 η t))
(normTests (slopeR0 η t) t (D g))) ≠ 0) :
(∀ p ∈ S_b, 4 ≤ padicValRat p (poleInput ℓ η q t D)) ∧
(∀ p : ℕ, p ∉ S_b → IsOddContactPrime t p → padicValRat p (poleInput ℓ η q t D) = 1) ∧
(∀ p : ℕ, p.Prime → p ∉ S_b → ¬ IsOddContactPrime t p →
Even (padicValRat p (poleInput ℓ η q t D))) ∧
(∀ p ∈ poleS0, 4 ≤ padicValRat p (poleInput ℓ η q t D)) ∧
IsSquare (poleInput ℓ η q t D).den
theorem GoodSlopeAP.contactQuot_eq_one {B₀ : ℝ} {t : ℚ} (ht : GoodSlopeAP B₀ t) {p : ℕ}
(hpS : p ∉ S_b) (hodd : IsOddContactPrime t p) :
padicValRat p (contactPoly t / (t - 1) ^ 8) = 1 ∧ padicValRat p (t - 1) = 0
structure GoodSlopeAP (B₀ : ℝ) (t : ℚ) : Prop where
not_mem_contactSet : t ∉ contactSet
ne_one : t ≠ 1
old : ∀ p ∈ S_b, OldBounds p t ∨ (0 < contactPoly t ∧ PoleAbsorbHyp p t)
contact : ∀ p : ℕ, p ∉ S_b → IsOddContactPrime t p →
B₀ < p ∧ GoodSlopePrime p ∧
∀ c ∈ contactSet, 0 < padicValRat p (t - c) → padicValRat p (t - c) = 1
few : ∃ P : Finset ℕ, P.card ≤ 6 ∧ ∀ p, p ∈ P ↔ p ∉ S_b ∧ IsOddContactPrime t p
ZInQKernel/Multiplication/Completeness/AP/GoodSlope.lean:23
noncomputable def S_b : Finset ℕ := S_ht ∪ catalogue
ZInQKernel/Multiplication/Certificate/Constants.lean:37
def Ep (p : ℕ) : ℕ := 52 * Cp p + padicValNat p 12 + 4
ZInQKernel/Multiplication/Certificate/Constants.lean:76
def OldBounds (p : ℕ) (t : ℚ) : Prop :=
|padicValRat p (t - 1)| ≤ Bp p ∧ |padicValRat p (contactPoly t / (t - 1) ^ 8)| ≤ 8 * Bp p
ZInQKernel/Multiplication/Completeness/AP/GoodSlope.lean:18
def Cp (p : ℕ) : ℕ := 14 * Bp p
ZInQKernel/Multiplication/Certificate/Constants.lean:70
def contactPoly (t : ℚ) : ℚ := t * (t + 15) * (t + 20) * (t + 24) * (t + 30) * (t + 60)
ZInQKernel/Multiplication/Certificate/Constants.lean:81
def slopeA (R0 q : ℚ) : ℚ := 1 - R0 * q ^ 2
ZInQKernel/Multiplication/Certificate/SlopePredicate.lean:30
def slopeR0 (η t : ℚ) : ℚ := η * contactPoly t / (t - 1) ^ 8
ZInQKernel/Multiplication/Certificate/SlopePredicate.lean:27
def IsOddContactPrime (t : ℚ) (p : ℕ) : Prop :=
p.Prime ∧ ∃ c ∈ contactSet, 0 < padicValRat p (t - c) ∧ Odd (padicValRat p (t - c))
ZInQKernel/Multiplication/Certificate/Constants.lean:85
abbrev K0 : Type := QuadraticAlgebra ℚ 2 0
ZInQKernel/Hypotheses/MordellWeil.lean:25
abbrev Zs : Type := QuadraticAlgebra ℤ 2 0
ZInQKernel/Model/Field/Basic.lean:148
def Vge (m : ℤ) (x : K) : Prop := ((m : ℤ) : WithTop ℤ) ≤ v x
ZInQKernel/Multiplication/Local/ValHelpers.lean:17
noncomputable def vP (π : Zs) (hπ : Prime π) : AddValuation K0 (WithTop ℤ) :=
ordOf ((primeSpec π hπ).valuation K0)
ZInQKernel/Multiplication/Local/Valuations.lean:72
def prec (j : Fin 12) : ℕ := if j.val < 8 then 1 else 25
ZInQKernel/Multiplication/Certificate/Constants.lean:90
noncomputable def groupW (R : ℚ) (C : Fin 12 → K0) : K0 := ∏ j, (1 + (R : K0) * C j ^ 2)
ZInQKernel/Multiplication/Certificate/SlopePredicate.lean:40
def slopeR (ℓ a R0 : ℚ) : ℚ := ℓ ^ 2 * a ^ 2 * R0
ZInQKernel/Multiplication/Certificate/SlopePredicate.lean:33
noncomputable def normTests (R0 t : ℚ) (D : Fin 12 → K0) (j : Fin 12) : K0 :=
D j / ((R0 : K0) ^ prec j * ((t - 1 : ℚ) : K0) ^ (prec j + 1))
ZInQKernel/Multiplication/Certificate/SlopePredicate.lean:36
noncomputable def traceTheta (W : Fin 6 → K0) : ℚ := QuadraticAlgebra.trace (∑ g, (W g)⁻¹)
ZInQKernel/Multiplication/Certificate/SlopePredicate.lean:43
noncomputable def poleInput (ℓ η q t : ℚ) (D : Fin 6 → Fin 12 → K0) : ℚ :=
slopeR ℓ (slopeA (slopeR0 η t) q) (slopeR0 η t) /
traceTheta (fun g => groupW (slopeR ℓ (slopeA (slopeR0 η t) q) (slopeR0 η t))
(normTests (slopeR0 η t) t (D g))) ^ 2
ZInQKernel/Multiplication/Completeness/PoleValuations.lean:24
def poleS0 : Finset ℕ := {2, 3, 5, 7, 13}
ZInQKernel/Hypotheses/Pole.lean:19
TheoremCompleteness of the slope certificate under field 2′#✓
Assume pole completeness. Let \(n_1,n_2\in\mathbb Z\), \(n_3=n_1n_2\) and \(c=(c_*,c_*n_1,c_*n_2,c_*n_3)\). If \(t\in\mathbb Q\) satisfies conditions 1, 2′, 3, 4 (for some \(B_0\)), then $\(\mathrm{Slope}(t,\ell_0;c).\)$
Proof sketch. As for the completeness of the slope certificate for a true triple, except for the choice of \(q\). Choose \(\eta\) with \(R_0=\eta F(t)/(t-1)^8>0\), the shifts \(h_g\) at the selected odd contact primes, the test values \(D_{gj}\) and \(\varepsilon\) from the positivity lemma, exactly as before. Let \(S_{\rm pole}\subseteq S_b\) be the old primes at which field 2′ uses its second alternative; there \(F(t)>0\), so \(\eta=1\). For \(p\in S_{\rm pole}\) Lemma P(2) with \(N=23e_p+v_p(12)+2\), \(e_p=v_p(\text{denominator of }t)\), gives a rational ball \(|q-m_p/p^{k_p}|_p\le p^{-n_p}\) on which \(v_p(1-R_0q^2)\ge N\). Weak approximation with residue targets chooses a nonzero \(q\notin\{\pm R_0^{-1/2}\}\) in these balls, with \(v_p(q)\ge C_p\) at the other primes of \(S_b\) (target \(0\)), \(v_p(q)\ge0\) at the selected primes, and \(q\) so close to \(R_0^{-1/2}\) that \(0<|a|<\varepsilon\). Then \(W_g\ne0\), \(\Theta\ne0\) and \(0<B<1/2\); the tests are integral above \(S_b\) because every shift is a multiple of \(M_0\); and the valuations of the pole input under field 2′ give \(v_p(B)\ge4\) on \(S_0\) and a square reduced denominator, with Lemma P(1) supplying \(v_p(R_0)=2e_p\) and \(v_p(t-1)=-e_p\) at \(S_{\rm pole}\). Pole completeness gives \(\Phi(B)\).
theorem slope_complete_AP (hPC : PoleCompleteness) (n₁ n₂ : ℤ) {t : ℚ}
{B₀ : ℝ} (ht : GoodSlopeAP B₀ t) :
SlopePred t Syntax.ell (certShifts ![n₁, n₂, n₁ * n₂])
def PoleCompleteness : Prop :=
∀ B : ℚ, IsSquare B.den → 0 < B → B < 1 / 2 → (∀ p ∈ poleS0, 4 ≤ padicValRat p B) →
PoleSoluble B
ZInQKernel/Hypotheses/Pole.lean:39
structure GoodSlopeAP (B₀ : ℝ) (t : ℚ) : Prop where
not_mem_contactSet : t ∉ contactSet
ne_one : t ≠ 1
old : ∀ p ∈ S_b, OldBounds p t ∨ (0 < contactPoly t ∧ PoleAbsorbHyp p t)
contact : ∀ p : ℕ, p ∉ S_b → IsOddContactPrime t p →
B₀ < p ∧ GoodSlopePrime p ∧
∀ c ∈ contactSet, 0 < padicValRat p (t - c) → padicValRat p (t - c) = 1
few : ∃ P : Finset ℕ, P.card ≤ 6 ∧ ∀ p, p ∈ P ↔ p ∉ S_b ∧ IsOddContactPrime t p
ZInQKernel/Multiplication/Completeness/AP/GoodSlope.lean:23
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)
ZInQKernel/Multiplication/Certificate/SlopePredicate.lean:52
noncomputable def ell : ℕ := FixedFormula.ell Ps Hcat
ZInQKernel/Syntax/Constants/Fixed.lean:98
noncomputable def certShifts (n : Fin 3 → ℤ) : Fin 4 → ℤ :=
![(Syntax.cstar : ℤ), Syntax.cstar * n 0, Syntax.cstar * n 1, Syntax.cstar * n 2]
ZInQKernel/Multiplication/Certificate/SlopePredicate.lean:65
Uses 11 · Used by 1
TheoremCompleteness of the multiplication template under field 2′#✓
Assume pole completeness and the slope representation under field 2′. For all \(a,b\in\mathbb Z\), $\(\mathrm{Rel}_{\mathtt{multiply}}\bigl(\iota(a),\iota(b),\iota(ab)\bigr).\)$
This is the completeness of the multiplication template with the slope representation weakened to field 2′. The template, and hence the polynomial, is the same; only the proof changes, and only in the choice of the parameter \(q\) of each slope certificate.
Proof sketch. The proof of the completeness of the multiplication template, word for word: the guard holds at a true triple; for each of the nine integers \(a_{i0},a_{i1},b_i\) of the height certificate, the slope representation under field 2′ gives three slopes with that sum, and each of the \(27\) slopes satisfies the slope predicate by the completeness of the slope certificate under field 2′.
theorem multiply_complete_AP (hPC : PoleCompleteness) (h22 : SlopeRepresentationAP) (a b : ℤ) :
(multiplyTemplate specConstructors FixedConst.cstar.value FixedConst.ell.value
FixedConst.T.value).Rel (codes3 (iota a) (iota b) (iota (a * b)))
theorem slopes_of_int_AP (hPC : PoleCompleteness) (h22 : SlopeRepresentationAP)
(n₁ n₂ A : ℤ) :
∃ t : Fin 3 → ℚ, ∑ l, t l = A ∧
∀ l, SlopePred (t l) Syntax.ell (certShifts ![n₁, n₂, n₁ * n₂])
theorem completeness_core_AP (hPC : PoleCompleteness) (h22 : SlopeRepresentationAP)
(a b : ℤ) :
∃ (B : Fin 3 → ℕ) (A : Fin 3 → Fin 2 → ℤ),
(∀ i, 0 < B i) ∧
(∀ i, (B i : ℚ) * iota (![a, b, a * b] i) 1 = A i 0 ∧
(B i : ℚ) * iota (![a, b, a * b] i) 2 = A i 1) ∧
(∀ i k, ∃ t : Fin 3 → ℚ, ∑ l, t l = A i k ∧
∀ l, SlopePred (t l) Syntax.ell (certShifts ![a, b, a * b])) ∧
(∀ i, ∃ t : Fin 3 → ℚ, ∑ l, t l = B i ∧
∀ l, SlopePred (t l) Syntax.ell (certShifts ![a, b, a * b]))
def PoleCompleteness : Prop :=
∀ B : ℚ, IsSquare B.den → 0 < B → B < 1 / 2 → (∀ p ∈ poleS0, 4 ≤ padicValRat p B) →
PoleSoluble B
ZInQKernel/Hypotheses/Pole.lean:39
def SlopeRepresentationAP : Prop :=
∀ A : ℤ, ∃ t : Fin 3 → ℚ, ∑ j, t j = A ∧ ∀ j, GoodSlopeAP 0 (t j)
ZInQKernel/Multiplication/Completeness/AP/Completeness.lean:22
noncomputable def multiplyTemplate (I : Constructors E) (cstar ell T : ℤ) : ExPoly :=
Build.template 15 (multiplyBuild I cstar ell T (varPoint 0) (varPoint 5) (varPoint 10))
ZInQKernel/Syntax/Templates/Multiply.lean:209
noncomputable def specConstructors : Constructors (FixedExpr FixedConst) :=
⟨FixedConst.fixedVal, psiComponent, guardPoly⟩
ZInQKernel/Syntax/Recipes/Polynomial.lean:35
inductive FixedConst
| P0 | W | Hproduct | Hmax | Ns | M | cstar | ell | F | D | G0 | E0 | R | Q | Bcm | Ccm
| Aheight | T
deriving DecidableEq, Repr
ZInQKernel/Syntax/Constants/Fixed.lean:149
def codes3 (P Q R : Fin 5 → ℚ) : Fin 15 → ℚ := Fin.append (Fin.append P Q) R
ZInQKernel/Syntax/Templates/Multiply.lean:151
noncomputable def iota (n : ℤ) : Fin 5 → ℚ := pointCode (n • genP0)
ZInQKernel/Model/Field/Codes.lean:27
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)
ZInQKernel/Multiplication/Certificate/SlopePredicate.lean:52
noncomputable def ell : ℕ := FixedFormula.ell Ps Hcat
ZInQKernel/Syntax/Constants/Fixed.lean:98
noncomputable def certShifts (n : Fin 3 → ℤ) : Fin 4 → ℤ :=
![(Syntax.cstar : ℤ), Syntax.cstar * n 0, Syntax.cstar * n 1, Syntax.cstar * n 2]
ZInQKernel/Multiplication/Certificate/SlopePredicate.lean:65
Uses 9 · Used by 2
TheoremCorrectness of the multiplication template under field 2′#✓
Assume the minimal height hypothesis, pole completeness and the slope representation under field 2′. For all \(Y_1,Y_2,Y_3\in\mathbb Q^5\), $\(\mathrm{Rel}_{\mathtt{multiply}}(Y_1,Y_2,Y_3)\iff\exists\,a,b\in\mathbb Z:\quad (Y_1,Y_2,Y_3)=\bigl(\iota(a),\iota(b),\iota(ab)\bigr).\)$
Proof sketch. Soundness is the soundness of the multiplication template, which uses neither pole completeness nor any slope representation. Completeness is the completeness of the multiplication template under field 2′.
theorem multiplication_exact_AP (hH : SixContactMin) (hPC : PoleCompleteness)
(h22 : SlopeRepresentationAP) :
Translation.MultiplicationExact Syntax.specConstructors FixedConst.cstar.value
FixedConst.ell.value FixedConst.T.value
def SixContactMin : Prop :=
∀ u : ℚ, u ∉ contactSet →
ratHeight u ≤ heightH6 (heightD : ℝ) * (contactSupport Mult.S_mul u : ℝ) ^ 24
ZInQKernel/Hypotheses/HeightMin.lean:50
def PoleCompleteness : Prop :=
∀ B : ℚ, IsSquare B.den → 0 < B → B < 1 / 2 → (∀ p ∈ poleS0, 4 ≤ padicValRat p B) →
PoleSoluble B
ZInQKernel/Hypotheses/Pole.lean:39
def SlopeRepresentationAP : Prop :=
∀ A : ℤ, ∃ t : Fin 3 → ℚ, ∑ j, t j = A ∧ ∀ j, GoodSlopeAP 0 (t j)
ZInQKernel/Multiplication/Completeness/AP/Completeness.lean:22
def MultiplicationExact (I : Constructors E) (cstar ell T : ℤ) : Prop :=
∀ p q r : Fin 5 → ℚ, (multiplyTemplate I cstar ell T).Rel (Fin.append (Fin.append p q) r) ↔
∃ a b : ℤ, p = iota a ∧ q = iota b ∧ r = iota (a * b)
ZInQKernel/Compiler/Translation/NaturalCode.lean:30
noncomputable def specConstructors : Constructors (FixedExpr FixedConst) :=
⟨FixedConst.fixedVal, psiComponent, guardPoly⟩
ZInQKernel/Syntax/Recipes/Polynomial.lean:35
inductive FixedConst
| P0 | W | Hproduct | Hmax | Ns | M | cstar | ell | F | D | G0 | E0 | R | Q | Bcm | Ccm
| Aheight | T
deriving DecidableEq, Repr
ZInQKernel/Syntax/Constants/Fixed.lean:149
Uses 7 · Used by 1
TheoremThe ordinary-value relation under field 2′#✓
Assume the minimal height hypothesis, pole completeness and the slope representation under field 2′. Then for every \(t\in\mathbb Q\), $\(\bigl(\exists\,N\in\mathbb Q^5:\ \mathrm{Rel}_{\mathtt{value}}(N,t)\bigr)\iff t\in\mathbb Z .\)$
Proof sketch. The proof of the exact ordinary-value relation uses the slope representation only through the correctness of the multiplication template (input M), directly and through the soundness and completeness of Close. Supply M from the correctness of the multiplication template under field 2′.
theorem exists_value_relation_iff_AP (hH : SixContactMin) (hPC : PoleCompleteness)
(h22 : Mult.SlopeRepresentationAP) (t : ℚ) :
(∃ N : Fin 5 → ℚ, ValueRel N t) ↔ ∃ z : ℤ, (z : ℚ) = t
def SixContactMin : Prop :=
∀ u : ℚ, u ∉ contactSet →
ratHeight u ≤ heightH6 (heightD : ℝ) * (contactSupport Mult.S_mul u : ℝ) ^ 24
ZInQKernel/Hypotheses/HeightMin.lean:50
def PoleCompleteness : Prop :=
∀ B : ℚ, IsSquare B.den → 0 < B → B < 1 / 2 → (∀ p ∈ poleS0, 4 ≤ padicValRat p B) →
PoleSoluble B
ZInQKernel/Hypotheses/Pole.lean:39
def SlopeRepresentationAP : Prop :=
∀ A : ℤ, ∃ t : Fin 3 → ℚ, ∑ j, t j = A ∧ ∀ j, GoodSlopeAP 0 (t j)
ZInQKernel/Multiplication/Completeness/AP/Completeness.lean:22
def ValueRel (N : Fin 5 → ℚ) (t : ℚ) : Prop :=
ValRel (getEx closeSpecLib 5) (List.ofFn N ++ [t])
ZInQKernel/Assembly/Top/Spec.lean:22
Uses 5 · Used by 1
TheoremThe assembly lemma under field 2′#✓
Assume the minimal height hypothesis, pole completeness and the slope representation under field 2′, and the bound on the addition and multiplication nodes of the universal halting circuit. Then the specified polynomial \(P_*\), the same polynomial as in the assembly lemma, witnesses the target statement: it has \(292{,}890{,}231{,}905\) variables, degree below \(2\uparrow\uparrow7\), coefficients below \(2\uparrow\uparrow8\), and for every \(q\in\mathbb Q\) the equation \(P_*(q,w)=0\) has a rational solution \(w\) exactly when \(q\in\mathbb Z\).
Proof sketch. The proof of the assembly lemma, with the ordinary-value relation under field 2′ in place of the exact ordinary-value relation; the size bounds and the witness accounting do not involve the slope representation.
theorem assembly_AP (hB : Compiler.NodeCheck.HaltingAddMulBound) (hH : SixContactMin)
(hPC : PoleCompleteness) (h22 : Mult.SlopeRepresentationAP) : FrozenTarget
def HaltingAddMulBound : Prop :=
countKind .add haltingCircuit.nodes ≤ 125307 ∧ countKind .mul haltingCircuit.nodes ≤ 98361
ZInQKernel/Compiler/NodeBound/Defs.lean:19
def SixContactMin : Prop :=
∀ u : ℚ, u ∉ contactSet →
ratHeight u ≤ heightH6 (heightD : ℝ) * (contactSupport Mult.S_mul u : ℝ) ^ 24
ZInQKernel/Hypotheses/HeightMin.lean:50
def PoleCompleteness : Prop :=
∀ B : ℚ, IsSquare B.den → 0 < B → B < 1 / 2 → (∀ p ∈ poleS0, 4 ≤ padicValRat p B) →
PoleSoluble B
ZInQKernel/Hypotheses/Pole.lean:39
def SlopeRepresentationAP : Prop :=
∀ A : ℤ, ∃ t : Fin 3 → ℚ, ∑ j, t j = A ∧ ∀ j, GoodSlopeAP 0 (t j)
ZInQKernel/Multiplication/Completeness/AP/Completeness.lean:22
def FrozenTarget : Prop :=
∃ P : MvPolynomial (Fin 292890231905) Int,
P.totalDegree < hyperoperation 4 2 7 ∧
(∀ m : Fin 292890231905 →₀ Nat,
(P.coeff m).natAbs < hyperoperation 4 2 8) ∧
∀ q : Rat,
(∃ w : Fin 292890231904 → Rat,
MvPolynomial.eval₂ (Int.castRingHom Rat) (Fin.cons q w) P = 0) ↔
∃ z : Int, (z : Rat) = q
ZInQKernel/Target.lean:18
Uses 8 · Used by 3
Proposition AP
A progression of good slope primes long enough to contain the fourteen numerators of the slopes \(u/v\) and \(A+10-u/v\) gives, with the constant slope \(-10\), a representation of \(A\).
DefinitionThe statement 22P_AP: long progressions of good slope primes#✓
The statement 22P_AP is the assertion that for every \(K\in\mathbb N\) there are integers \(x\ge1\) and \(v\ge1\) such that each of the \(K+1\) numbers $\(x,\ x+v,\ x+2v,\ \dots,\ x+Kv\)$ is a good slope prime larger than every prime of \(S_b=S_{\rm ht}\cup\mathcal H\).
It mentions neither an integer to be represented, nor the catalogue multipliers, nor valuations at the old primes, except through the lower bound \(\max S_b\); and it places no condition on the common difference \(v\). It replaces the twenty-two-prime pattern as the arithmetic input of the completeness of the multiplication template. It was introduced as a hypothesis and is now proved: it follows from Szemerédi's theorem in the primes and the positive density of the good slope primes (22P_AP from Green–Tao and Proposition D), both proved here.
def GoodPrimeAP : Prop :=
∀ K : ℕ, ∃ x v : ℕ, 1 ≤ x ∧ 1 ≤ v ∧
∀ j ≤ K, GoodSlopePrime (x + j * v) ∧ ∀ q ∈ Mult.S_b, q < x + j * v
def GoodSlopePrime (p : ℕ) : Prop :=
p.Prime ∧ ∃ r : ZMod p, r ^ 2 = 2 ∧
(75 - 53 * r : ZMod p) ≠ 0 ∧ (75 + 53 * r : ZMod p) ≠ 0 ∧
Nat.gcd (pointCount p (-(75 - 53 * r) ^ 2)) (pointCount p (-(75 + 53 * r) ^ 2)) = 4
ZInQKernel/Hypotheses/PrimePattern.lean:128
noncomputable def S_b : Finset ℕ := S_ht ∪ catalogue
ZInQKernel/Multiplication/Certificate/Constants.lean:37
Uses 2 · Used by 4
LemmaA slope with prime numerators satisfies field 2′#✓
Let \(u,v\in\mathbb Z\) with \(v>0\). Suppose that for each \(b\in\mathcal C\cup\{1\}\) the number \(|u-bv|\) is a prime larger than every prime of \(S_b\), that for each \(b\in\mathcal C\) it is a good slope prime, and that \(F(u/v)>0\). Then \(t=u/v\) satisfies conditions 1, 2′, 3, 4 for \(B_0=0\).
In addition, \(F(t)>0\) whenever \(t>0\) or \(t<-60\).
Proof sketch. A prime dividing \(u\) and \(v\) would divide the seven numbers \(u-bv\), which are distinct primes, so \(u/v\) is in lowest terms; the numbers are nonzero, so \(t\notin\mathcal C\cup\{1\}\). Let \(p\in S_b\) and \(e=v_p(v)\); all seven numbers are \(p\)-units. If \(e\le B_p\) then \(v_p(t-1)=-e\) and \(v_p(F(t)/(t-1)^8)=2e\) satisfy the bounds of condition 2 (when \(e=0\) both vanish). Otherwise \(e\ge B_p+1\ge2\), and \(e\ge5\) at \(p=2\), so \(t\) satisfies the hypotheses of Lemma P at \(p\), and \(F(t)>0\) is assumed: field 2′ holds. Conditions 3 and 4 are the argument of the two-slope pattern: an odd contact prime of \(t\) outside \(S_b\) divides some \(u-cv\), so it is that good slope prime, with contact valuation \(1\), and there are at most six of them. The sign statement holds because the six factors \(t-c\) of \(F(t)\) are all positive, or all negative.
theorem goodSlopeAP_of_progression (u v : ℤ) (hv : 0 < v)
(hpr : ∀ b ∈ patternShifts, (u - b * v).natAbs.Prime ∧ ∀ q ∈ S_b, q < (u - b * v).natAbs)
(hgood : ∀ b ∈ contactInts, GoodSlopePrime (u - b * v).natAbs)
(hF : 0 < contactPoly ((u : ℚ) / v)) :
GoodSlopeAP 0 ((u : ℚ) / v)
theorem contactPoly_pos_of_pos {t : ℚ} (ht : 0 < t) : 0 < contactPoly t
theorem contactPoly_pos_of_lt {t : ℚ} (ht : t < -60) : 0 < contactPoly t
def patternShifts : List ℤ := [0, -15, -20, -24, -30, -60, 1]
ZInQKernel/Hypotheses/PrimePattern.lean:109
noncomputable def S_b : Finset ℕ := S_ht ∪ catalogue
ZInQKernel/Multiplication/Certificate/Constants.lean:37
def contactInts : List ℤ := [0, -15, -20, -24, -30, -60]
ZInQKernel/Multiplication/Completeness/PatternSlopes.lean:93
def GoodSlopePrime (p : ℕ) : Prop :=
p.Prime ∧ ∃ r : ZMod p, r ^ 2 = 2 ∧
(75 - 53 * r : ZMod p) ≠ 0 ∧ (75 + 53 * r : ZMod p) ≠ 0 ∧
Nat.gcd (pointCount p (-(75 - 53 * r) ^ 2)) (pointCount p (-(75 + 53 * r) ^ 2)) = 4
ZInQKernel/Hypotheses/PrimePattern.lean:128
def contactPoly (t : ℚ) : ℚ := t * (t + 15) * (t + 20) * (t + 24) * (t + 30) * (t + 60)
ZInQKernel/Multiplication/Certificate/Constants.lean:81
structure GoodSlopeAP (B₀ : ℝ) (t : ℚ) : Prop where
not_mem_contactSet : t ∉ contactSet
ne_one : t ≠ 1
old : ∀ p ∈ S_b, OldBounds p t ∨ (0 < contactPoly t ∧ PoleAbsorbHyp p t)
contact : ∀ p : ℕ, p ∉ S_b → IsOddContactPrime t p →
B₀ < p ∧ GoodSlopePrime p ∧
∀ c ∈ contactSet, 0 < padicValRat p (t - c) → padicValRat p (t - c) = 1
few : ∃ P : Finset ℕ, P.card ≤ 6 ∧ ∀ p, p ∈ P ↔ p ∉ S_b ∧ IsOddContactPrime t p
ZInQKernel/Multiplication/Completeness/AP/GoodSlope.lean:23
Uses 3 · Used by 1
TheoremProposition AP: progressions of good slope primes give the slope representation#✓
Assume 22P_AP. Then the slope representation under field 2′ holds: every integer \(A\) is a sum of three rationals satisfying conditions 1, 2′, 3, 4 for \(B_0=0\).
Proof sketch. Put \(A'=A+10\), \(T=\mathcal C\cup\{1\}\) and \(S_A^+=T\cup(A'-T)\), so that \(\max S_A^+=\max(1,A'+60)\) and \(\min S_A^+=\min(-60,A'-1)\). Take a progression \(x+jv\) (\(0\le j\le K_A\), \(K_A=\max S_A^+-\min S_A^+\)) of good slope primes above \(\max S_b\) and put \(u=x+(\max S_A^+)v\). For \(c'\in S_A^+\) the number \(u-c'v=x+(\max S_A^+-c')v\) is a term of the progression. Put \(t_1=u/v\), \(t_2=A'-u/v=(A'v-u)/v\) and \(t_3=-10\), so \(t_1+t_2+t_3=A\). Then \(t_1>\max S_A^+\ge1\) and \(t_2=A'-\max S_A^+-x/v<-60\), so \(F(t_1),F(t_2)>0\). The numerators of \(t_1\) are \(u-bv\) and those of \(t_2\) are \(-(u-(A'-b)v)\) (\(b\in T\)), all terms of the progression, so both slopes satisfy field 2′ by the lemma on slopes with prime numerators. The constant \(-10\) is a good slope (as in the two-slope pattern), hence satisfies field 2′.
Only fourteen terms of the progression are used. Field 2′ cannot be avoided: a progression of \(K+1\) primes larger than \(K+1\) has its difference divisible by every prime at most \(K+1\), and \(K_A\) grows with \(|A|\).
theorem slopeRepresentationAP_of_goodPrimeAP (hAP : GoodPrimeAP) : SlopeRepresentationAP
def GoodPrimeAP : Prop :=
∀ K : ℕ, ∃ x v : ℕ, 1 ≤ x ∧ 1 ≤ v ∧
∀ j ≤ K, GoodSlopePrime (x + j * v) ∧ ∀ q ∈ Mult.S_b, q < x + j * v
ZInQKernel/Hypotheses/PrimeAP.lean:34
def SlopeRepresentationAP : Prop :=
∀ A : ℤ, ∃ t : Fin 3 → ℚ, ∑ j, t j = A ∧ ∀ j, GoodSlopeAP 0 (t j)
ZInQKernel/Multiplication/Completeness/AP/Completeness.lean:22
Uses 5 · Used by 2
22P_AP from Green–Tao
The good slope primes have positive relative density (Proposition D), and every such set of primes contains arbitrarily long progressions (Szemerédi's theorem in the primes).
Theorem22P_AP from Green–Tao and Proposition D#✓
Assume Szemerédi's theorem in the primes (every set of primes of positive relative upper density contains arithmetic progressions of every finite length) and that the good slope primes have positive relative upper density in the primes. Then 22P_AP holds.
Both assumptions are theorems here (Szemerédi's theorem in the primes, Proposition D), so 22P_AP holds unconditionally.
Proof sketch. Let \(M=\max S_b\) and \(G'\) the set of good slope primes larger than \(M\). The good slope primes up to \(N\) number at most \(|G'\cap[0,N]|+M+1\). If \(\delta\pi(N)\) is at most the number of good slope primes up to \(N\) for infinitely many \(N\), then, since \(\pi(N)\to\infty\), \(M+1\le(\delta/2)\pi(N)\) for all large \(N\), and \((\delta/2)\pi(N)\le|G'\cap[0,N]|\) for infinitely many \(N\). So \(G'\) is a set of primes of positive relative upper density, and Szemerédi's theorem in the primes gives, for every \(K\), a progression \(a+bj\) (\(j\le K\), \(b\ge1\)) in \(G'\); its first term is a prime, so \(a\ge1\).
theorem goodPrimeAP_of_greenTaoDense (hGT : GreenTaoDense) (hD : GoodPrimeDensity) :
GoodPrimeAP
def GreenTaoDense : Prop :=
∀ A : Set ℕ, A ⊆ {p | p.Prime} → PrimesRelUpperDensityPos A → ContainsArbitraryAPs A
ZInQKernel/Hypotheses/GreenTao.lean:51
def GoodPrimeDensity : Prop :=
PrimesRelUpperDensityPos {p | GoodSlopePrime p}
ZInQKernel/Hypotheses/GreenTao.lean:64
def GoodPrimeAP : Prop :=
∀ K : ℕ, ∃ x v : ℕ, 1 ≤ x ∧ 1 ≤ v ∧
∀ j ≤ K, GoodSlopePrime (x + j * v) ∧ ∀ q ∈ Mult.S_b, q < x + j * v
ZInQKernel/Hypotheses/PrimeAP.lean:34
Uses 3 · Used by 4
TheoremProgressions of good slope primes from Szemerédi's theorem in the primes alone#✓
Assume Szemerédi's theorem in the primes (every set of primes of positive relative upper density contains arithmetic progressions of every finite length). Then the statement 22P_AP holds: for every \(K\) there are \(x\ge1\) and \(v\ge1\) such that the \(K+1\) numbers \(x+jv\) (\(0\le j\le K\)) are good slope primes larger than every prime of \(S_b\).
Since Szemerédi's theorem in the primes is itself proved, this is an intermediate form; the same conclusion follows from Szemerédi's theorem in the primes and the uniform bad-prime bound.
Proof sketch. Proposition D gives the density statement, and the two together give 22P_AP.
theorem goodPrimeAP_of_greenTaoDense' (hGT : GreenTaoDense) : GoodPrimeAP
theorem goodPrimeAP_of_greenTaoDense_uniformBadBound (hGT : GreenTaoDense)
(hU : UniformBadBound) : GoodPrimeAP
def GreenTaoDense : Prop :=
∀ A : Set ℕ, A ⊆ {p | p.Prime} → PrimesRelUpperDensityPos A → ContainsArbitraryAPs A
ZInQKernel/Hypotheses/GreenTao.lean:51
def GoodPrimeAP : Prop :=
∀ K : ℕ, ∃ x v : ℕ, 1 ≤ x ∧ 1 ≤ v ∧
∀ j ≤ K, GoodSlopePrime (x + j * v) ∧ ∀ q ∈ Mult.S_b, q < x + j * v
ZInQKernel/Hypotheses/PrimeAP.lean:34
def UniformBadBound : Prop :=
∃ A N₁ : ℝ, 0 < A ∧ ∀ N : ℕ, N₁ ≤ N → ∀ ℓ : ℕ, ℓ.Prime → ℓ % 4 = 1 → 5 ≤ ℓ →
((ℓ : ℝ) ^ 4 ≤ N) →
(((Finset.range (N + 1)).filter (· ∈ BadSet ℓ)).card : ℝ) ≤ A * N / (ℓ ^ 2 * Real.log N)
ZInQKernel/Density/PropD.lean:33
Loading dependency explorer…
The dependency explorer needs JavaScript and its graph data.