Approximation for every fixed shift
The precision computation of the compiler chapter decides, for five integers \((n,\kappa,a,l,j)\) given by their signed encodings, whether \(n\notin\mathcal C\), \(\kappa\ne0\), \(a,l\ge1\), \(j=na\) and the two strict tests \(|r(a,j)-n|<\epsilon_l\) and \(4\epsilon_l<4^{-B(n,\kappa)}\) hold. All quantities are exact rationals and integers. The compiler chapter defines the precision relation, the local parameter and the window quantities, the signed encoding and the precision height constant, and proves that this constant is the six-contact constant \(H_6(S_{\rm ht})\), so that its bound is the \(B(n,\kappa)\) of the ordinary-value relation (identification). Its admissibility clause is automatic for nonzero indices, by the nonzero-multiples lemma.
Close chooses codes \(A,L,J\), links the five signed codes to the precision inputs in the order \((n,\kappa,a,l,j)\) and imposes \(|t-r(a,j)|<\epsilon_l\) on the same coordinates.
TheoremThe relation Close#✓
Assume the six-contact estimate, pole completeness and the twenty-two-prime pattern. Then for all \(N,K\in\mathbb Q^5\) and \(t\in\mathbb Q\), \(\mathrm{Rel}_{\mathtt{close}}(N,K,t)\) holds exactly when there are \(n,\kappa,a,l\in\mathbb Z\) with $\(N=\iota(n),\quad K=\iota(\kappa),\quad\operatorname{Prec}(n,\kappa,a,l,na),\quad |t-r(a,na)|<\epsilon_l ,\)$ where, for integers \(n,\kappa,a,l,j\), \(\operatorname{Prec}(n,\kappa,a,l,j)\) abbreviates the precision relation \(\operatorname{accepts}(\operatorname{enc}n,\operatorname{enc}\kappa,\operatorname{enc}a,\operatorname{enc}l,\operatorname{enc}j)\) at the signed encodings, and \(r(a,j)\) and \(\epsilon_l\) are the quantities of the local parameter \(z\), defined because \(\operatorname{Prec}\) includes the admissibility of \(l,a,j\). This is the manuscript's \(\operatorname{Close}(N,\mathcal K,t)\): choose \(A,L,J\), link the five signed codes \(N,\mathcal K,A,L,J\) to the precision inputs in the order \((n,\kappa,a,l,j)\), and impose \(|t-r(a,j)|<\epsilon_l\) on the same coordinates.
Proof sketch. By the relations of the outer recipes, \(\mathrm{Rel}_{\mathtt{close}}(N,K,t)\) holds exactly when there are \(A,L,J,E_0,\dots,E_4\) with five signed-encoding relations, the precision relation and the coordinate window. Input C is used as a chain of three equivalences. Let \(C\) be the natural precision polynomial. For all \(E_0,\dots,E_4\in\mathbb Q^5\):
- by the semantics of the rational translation (which uses the multiplication statement M and so the three hypotheses of M), \(\mathrm{Rel}_{\mathtt{precision}}(E_0,\dots,E_4)\) holds exactly when there is \(c\in\mathbb N^5\) with \(E_i=\iota(c_i)\) for \(0\le i\le4\) and \(C(c,\mathbf z)=0\) for some \(\mathbf z\in\mathbb N^{1305806}\);
- by the semantics of the natural precision polynomial, the existence of such \(\mathbf z\) is \(\operatorname{accepts}(c)\);
- since \(\operatorname{enc}\circ\operatorname{dec}\) is the identity, \(\operatorname{accepts}(c)\) is \(\operatorname{Prec}(\operatorname{dec}c_0,\dots,\operatorname{dec}c_4)\).
Hence $\(\mathrm{Rel}_{\mathtt{precision}}(E_0,\dots,E_4)\iff\exists\,c\in\mathbb N^5:\ E_i=\iota(c_i)\ (0\le i\le4)\ \text{and}\ \operatorname{Prec}(\operatorname{dec}c_0,\dots,\operatorname{dec}c_4).\)$
(\(\Rightarrow\)) The signed encodings give \(\Sigma_i=\iota(m_i)\) and \(E_i=\iota(\operatorname{enc}m_i)\) with \((m_0,\dots,m_4)=(n,\kappa,a,l,j)\). By input C and injectivity of \(\iota\), \(c_i=\operatorname{enc}m_i\), so \(\operatorname{Prec}(n,\kappa,a,l,j)\), in particular \(j=na\). The coordinate window gives indices \(a',l',j'\) with \(A=\iota(a')\) etc. and \(|t-r(a',j')|<\epsilon_{l'}\); injectivity gives \((a',l',j')=(a,l,j)\).
(\(\Leftarrow\)) Put \(j=na\), \(A=\iota(a)\), \(L=\iota(l)\), \(J=\iota(j)\) and \(E_i=\iota(\operatorname{enc}m_i)\). The signed encodings hold, the precision relation holds by input C since \(\operatorname{dec}\circ\operatorname{enc}\) is the identity, and the coordinate window holds because \(a,l\ge1\) are nonzero.
theorem close_relation_iff
(hM : MultiplicationExact specConstructors FixedConst.cstar.value FixedConst.ell.value
FixedConst.T.value)
(N K : Fin 5 → ℚ) (t : ℚ) :
ValRel (getEx closeSpecLib 2) (List.ofFn N ++ (List.ofFn K ++ [t])) ↔
∃ n κ a l : ℤ, N = iota n ∧ K = iota κ ∧
accepts ![enc n, enc κ, enc a, enc l, enc (n * a)] ∧
|t - rRatio a (n * a)| < epsIdx l
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
def ValRel (τ : ExPoly) (l : List ℚ) : Prop := τ.Rel fun k => l.getD k 0
ZInQKernel/Assembly/Values/Outer.lean:28
noncomputable def getEx (lib : List ExPoly) (t : ℕ) : ExPoly := lib.getD t ExPoly.empty
ZInQKernel/Syntax/Language/Nodes.lean:74
noncomputable abbrev closeSpecLib : List ExPoly :=
specLib specConstructors FixedConst.cstar.value FixedConst.ell.value FixedConst.T.value
(Compiler.Universal.c3 : ℤ) (precisionCircuitOf (Compiler.Universal.c3 : ℤ))
ZInQKernel/Assembly/Close/Relation.lean:34
noncomputable def iota (n : ℤ) : Fin 5 → ℚ := pointCode (n • genP0)
ZInQKernel/Model/Field/Codes.lean:27
def accepts (c : Fin 5 → ℕ) : Prop :=
acceptsInt (dec (c 0)) (dec (c 1)) (dec (c 2)) (dec (c 3)) (dec (c 4))
ZInQKernel/Compiler/Precision/Relation.lean:44
def enc (n : ℤ) : ℕ := if 0 ≤ n then 2 * n.toNat else 2 * (-n).toNat - 1
ZInQKernel/Compiler/Precision/Encoding.lean:16
noncomputable def rRatio (a j : ℤ) : ℚ := (zIdx j / zIdx a).re
ZInQKernel/Compiler/Precision/ZCoordinate.lean:66
noncomputable def epsIdx (k : ℤ) : ℚ := |(zIdx k).re| + |(zIdx k).im|
ZInQKernel/Compiler/Precision/ZCoordinate.lean:63
Sources
Uses 15 · Used by 2
Soundness is the triangle inequality: \(|t-n|<2\epsilon_l<4^{-B}/2<e^{-B}\).
TheoremSoundness of Close#✓
Assume the six-contact estimate, pole completeness and the twenty-two-prime pattern. Let \(n,\kappa\in\mathbb Z\) and \(t\in\mathbb Q\). If \(\mathrm{Rel}_{\mathtt{close}}(\iota(n),\iota(\kappa),t)\), then \(n\notin\mathcal C\), \(\kappa\ne0\) and, in \(\mathbb R\), $\(|t-n|<e^{-B(n,\kappa)} .\)$
Proof sketch. The Close relation gives \(n',\kappa',a,l\) with \(\iota(n')=\iota(n)\), \(\iota(\kappa')=\iota(\kappa)\), \(\operatorname{Prec}(n',\kappa',a,l,n'a)\) and \(|t-r(a,n'a)|<\epsilon_l\); injectivity of \(\iota\) gives \(n'=n\), \(\kappa'=\kappa\). The precision relation contains \(n\notin\mathcal C\), \(\kappa\ne0\), \(|r(a,na)-n|<\epsilon_l\) and \(4\epsilon_l\cdot4^{B}<1\) with \(B=B(n,\kappa)\ge0\). By the triangle inequality, $\(|t-n|<2\epsilon_l<\tfrac12\,4^{-B}<e^{-B},\)$ the last step because \((e/4)^B\le1<2\). No height input is used here.
theorem close_sound
(hM : MultiplicationExact specConstructors FixedConst.cstar.value FixedConst.ell.value
FixedConst.T.value)
(n κ : ℤ) (t : ℚ)
(h : ValRel (getEx closeSpecLib 2) (List.ofFn (iota n) ++ (List.ofFn (iota κ) ++ [t]))) :
(n : ℚ) ∉ contactSet ∧ κ ≠ 0 ∧ |(t : ℝ) - n| < Real.exp (-(bound n κ : ℝ))
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
def ValRel (τ : ExPoly) (l : List ℚ) : Prop := τ.Rel fun k => l.getD k 0
ZInQKernel/Assembly/Values/Outer.lean:28
noncomputable def getEx (lib : List ExPoly) (t : ℕ) : ExPoly := lib.getD t ExPoly.empty
ZInQKernel/Syntax/Language/Nodes.lean:74
noncomputable abbrev closeSpecLib : List ExPoly :=
specLib specConstructors FixedConst.cstar.value FixedConst.ell.value FixedConst.T.value
(Compiler.Universal.c3 : ℤ) (precisionCircuitOf (Compiler.Universal.c3 : ℤ))
ZInQKernel/Assembly/Close/Relation.lean:34
noncomputable def iota (n : ℤ) : Fin 5 → ℚ := pointCode (n • genP0)
ZInQKernel/Model/Field/Codes.lean:27
def contactSet : Finset ℚ := {0, -15, -20, -24, -30, -60}
ZInQKernel/Hypotheses/Height.lean:84
noncomputable def bound (n κ : ℤ) : ℕ := A0 * (κ * sixF n).natAbs ^ 24
ZInQKernel/Compiler/Precision/HeightConstant.lean:89
Uses 9 · Used by 1
For completeness, positive multiples of \(P_0\) approach the identity simultaneously at both real places. The manuscript cites compactness of \(E(\mathbf R)\times E(\mathbf R)\); here the needed compactness and continuity of subtraction are proved by hand for real curves \(y^2=x^3-e^2x\).
LemmaCompactness and continuity of subtraction on a real curve#✓
Let \(e\in\mathbb R\), \(e\ne0\), and let \(E_e(\mathbb R)\) be the group of real points of \(y^2=x^3-e^2x\) (chord-and-tangent law, identity \(O\)). For a sequence \((P_m)\) in \(E_e(\mathbb R)\) and \(Q\in E_e(\mathbb R)\) write \(P_m\to Q\) when
- \(Q=(x_Q,y_Q)\) is affine, \(P_m\) is affine for all large \(m\), and \(x(P_m)\to x_Q\), \(y(P_m)\to y_Q\); or
- \(Q=O\) and for every \(M\in\mathbb R\), for all large \(m\), either \(P_m=O\) or \(P_m\) is affine with \(x(P_m)>M\).
Then:
- every sequence in \(E_e(\mathbb R)\) has a subsequence converging to some point of \(E_e(\mathbb R)\);
- if \(P_m\to Q\) and \(P'_m\to Q\) for the same \(Q\), then \(P'_m-P_m\to O\).
Proof sketch. Write \(f(x)=x^3-e^2x=(x+e)x(x-e)\); its roots \(0,\pm e\) are simple, with \(f'(c)=3c^2-e^2\ne0\) at each root. Real points have \(f(x)\ge0\), so \(x\ge-|e|\).
(1) If infinitely many terms are \(O\), or the abscissas of the affine terms are unbounded above, a subsequence converges to \(O\). Otherwise the affine terms eventually lie in \([-|e|,M]\times[-\sqrt{\max f},\sqrt{\max f}]\), and Bolzano–Weierstrass gives a convergent subsequence; its limit satisfies \(y^2=f(x)\) by continuity.
(2) Discard the indices with \(P'_m=P_m\), where the difference is \(O\). Case \(Q\) affine with \(y_Q\ne0\): eventually \(y'+y\to2y_Q\ne0\), so \(P'\ne-P\); if \(x'=x\) then \(P'=P\); otherwise \(P'-P=P'+(-P)\) has abscissa \(\lambda^2-x-x'\) with chord slope \(\lambda=(y'+y)/(x'-x)\), and \(|\lambda|\to\infty\). Case \(Q=(c,0)\) with \(f(c)=0\): if \(x'=x\) then \(P'=-P\) and \(P'-P=-[2]P\) has abscissa \(\bigl(f'(x)/(2y)\bigr)^2-2x\to\infty\) since \(f'(x)\to f'(c)\ne0\) and \(y\to0\); otherwise \(y'^2-y^2=(x'-x)\,g\) with \(g=x'^2+xx'+x^2-e^2\to f'(c)\ne0\), so eventually \(y'\ne y\) and \(\lambda=(y'+y)/(x'-x)=g/(y'-y)\) has \(|\lambda|\to\infty\). Case \(Q=O\): translate by \(T=(0,0)\). For affine \(P=(x,y)\) with \(x\ne0\), \(P+T=(-e^2/x,\ e^2y/x^2)\), and \(|e^2y/x^2|^2=e^4f(x)/x^4\to0\) as \(x\to\infty\), while \(O+T=T\); hence \(P_m+T\to T\) and \(P'_m+T\to T\), and \((P'_m+T)-(P_m+T)=P'_m-P_m\to O\) by the previous case. In every case the abscissa of \(P'_m-P_m\) tends to \(+\infty\) (or the difference is \(O\)).
This is the elementary content of "\(E(\mathbb R)\) is a compact topological group"; the manuscript uses compactness of \(E(\mathbb R)\times E(\mathbb R)\) directly.
noncomputable abbrev realCurve (e : ℝ) : WeierstrassCurve ℝ := shortCurve (-e ^ 2)
def TendstoPt (P : ℕ → W.toAffine.Point) : W.toAffine.Point → Prop
| .zero => ∀ M : ℝ, ∀ᶠ m in atTop, P m = 0 ∨ M < ptX (P m)
| .some x₀ y₀ _ => (∀ᶠ m in atTop, P m ≠ 0) ∧
Tendsto (fun m => ptX (P m)) atTop (𝓝 x₀) ∧ Tendsto (fun m => ptY (P m)) atTop (𝓝 y₀)
theorem exists_subseq_tendstoPt (he : e ≠ 0) (P : ℕ → (realCurve e).toAffine.Point) :
∃ φ : ℕ → ℕ, StrictMono φ ∧ ∃ Q, TendstoPt (P ∘ φ) Q
def shortCurve (A : F) : WeierstrassCurve F where
a₁ := 0
a₂ := 0
a₃ := 0
a₄ := A
a₆ := 0
ZInQKernel/Model/Field/ShortWeierstrass.lean:22
def ptX : W.toAffine.Point → ℝ
| .zero => 0
| .some x _ _ => x
ZInQKernel/Assembly/Real/Subtraction.lean:31
def ptY : W.toAffine.Point → ℝ
| .zero => 0
| .some _ y _ => y
ZInQKernel/Assembly/Real/Subtraction.lean:36
noncomputable abbrev realCurve (e : ℝ) : WeierstrassCurve ℝ := shortCurve (-e ^ 2)
ZInQKernel/Assembly/Real/Subtraction.lean:22
def TendstoPt (P : ℕ → W.toAffine.Point) : W.toAffine.Point → Prop
| .zero => ∀ M : ℝ, ∀ᶠ m in atTop, P m = 0 ∨ M < ptX (P m)
| .some x₀ y₀ _ => (∀ᶠ m in atTop, P m ≠ 0) ∧
Tendsto (fun m => ptX (P m)) atTop (𝓝 x₀) ∧ Tendsto (fun m => ptY (P m)) atTop (𝓝 y₀)
ZInQKernel/Assembly/Real/Subtraction.lean:50
Used by 1
TheoremMultiples of the generator approach the identity at both real places#✓
For every \(M\in\mathbb R\) there is an integer \(k\ge1\) such that \([k]P_0=(x_k,y_k)\) is affine and $\(\sigma_+(x_k)>M\qquad\text{and}\qquad\sigma_-(x_k)>M .\)$ That is, positive multiples of \(P_0\) approach the identity simultaneously in the two real embeddings.
Proof sketch. Each real embedding \(\sigma_\pm\) maps \(E\) to the real curve \(y^2=x^3-e_\pm^2x\) with \(e_\pm=\sigma_\pm(d)=75\mp53\sqrt2\ne0\), and induces a group homomorphism \(E(K_0)\to E_{e_\pm}(\mathbb R)\), \((x,y)\mapsto(\sigma_\pm x,\sigma_\pm y)\), \(O\mapsto O\) (the chord-and-tangent formulas are rational and commute with ring homomorphisms). Apply the compactness statement to the sequence \(\sigma_+([k]P_0)\), \(k\ge1\), and then to \(\sigma_-([k]P_0)\) along the resulting subsequence: there are \(k_1<k_2<\cdots\) and points \(Q_\pm\) with \(\sigma_\pm([k_i]P_0)\to Q_\pm\). By continuity of subtraction, \(\sigma_\pm([k_{i+1}-k_i]P_0)=\sigma_\pm([k_{i+1}]P_0)-\sigma_\pm([k_i]P_0)\to O\) in both embeddings. For \(i\) large, \(k=k_{i+1}-k_i\ge1\) has both embedded points equal to \(O\) or with abscissa \(>M\); since \(P_0\) has infinite order, \([k]P_0\) is affine, so both abscissas exceed \(M\).
The manuscript's argument (partition the compact closure of the cyclic subgroup into small neighbourhoods and subtract two close multiples) is the same pigeonhole principle.
theorem exists_multiple_large_unconditional (M : ℝ) :
∃ k : ℕ, 1 ≤ k ∧ ∃ (x y : K0) (h : genCurve.toAffine.Nonsingular x y),
(k : ℤ) • genP0 = .some x y h ∧ M < K0.embPlus x ∧ M < K0.embMinus x
abbrev K0 : Type := QuadraticAlgebra ℚ 2 0
ZInQKernel/Hypotheses/MordellWeil.lean:25
def genCurve : WeierstrassCurve K0 where
a₁ := 0
a₂ := 0
a₃ := 0
a₄ := -genD ^ 2
a₆ := 0
ZInQKernel/Hypotheses/MordellWeil.lean:34
def genP0 : genCurve.toAffine.Point := Point.mk genP0_equation
ZInQKernel/Model/Field/Curve.lean:118
noncomputable def embPlus : K0 →+* ℝ :=
(QuadraticAlgebra.lift ⟨Real.sqrt 2, real_sqrt_two_mul_self⟩).toRingHom
ZInQKernel/Model/Field/Basic.lean:81
noncomputable def embMinus : K0 →+* ℝ :=
(QuadraticAlgebra.lift ⟨-Real.sqrt 2, real_neg_sqrt_two_mul_self⟩).toRingHom
ZInQKernel/Model/Field/Basic.lean:85
Uses 4 · Used by 1
Near the identity, \(z([n]Q)/z(Q)\) tends to \(n\); with the division-polynomial formulas this is a limit of rational functions at infinity.
LemmaThe derivative of multiplication at a real place#✓
Let \(\tau\in\{\sigma_+,\sigma_-\}\) be a real embedding of \(K_0\) and \(n\) a nonzero integer. For every \(\eta>0\) there is \(M\in\mathbb R\) such that for every affine point \(Q=(x,y)\in E(K_0)\) with \(\tau(x)>M\):
- \(x\ne0\), \(y\ne0\), and \([n]Q\) is affine with nonzero abscissa and ordinate;
- \(\bigl|\tau\bigl(z([n]Q)/z(Q)\bigr)-n\bigr|<\eta\).
This is the statement that the derivative of \([n]\) at the identity is \(n\), read in the coordinate \(z=-x/y\) near \(O\) at the real place \(\tau\).
Proof sketch. Write \(f_m\) for the normalized division polynomials of \(y^2=x^3+Ax\), \(A=-d^2\), and \(\psi_m\) for the division polynomials. Since \(z(-P)=-z(P)\), it suffices to treat \(n\ge1\). By the multiplication-by-\(n\) formulas, if \(\psi_n(Q)\ne0\) then \([n]Q\) is affine with $\(\frac{x([n]Q)}{x}=\frac{\phi_n(x)}{x\,\psi_n^2(x)},\qquad \frac{y([n]Q)}{y}=\frac{f_{2n}(x)}{\psi_n^4(x)},\)$ where \(\phi_n=x\psi_n^2-\psi_{n+1}\psi_{n-1}\), and \(\psi_n^2\), \(\psi_n^4\) and \(\phi_n\) are polynomials in \(x\) after substituting \(y^2=x^3+Ax\) (the second identity is \(y([n]Q)=\psi_{2n}/(2\psi_n^4)\) with \(\psi_{2n}=2yf_{2n}\)). By the agreement with the classical division polynomials, the degrees and leading coefficients are: \(\phi_n\) degree \(n^2\), leading coefficient \(1\); \(\psi_n^2\) degree \(n^2-1\), leading coefficient \(n^2\); \(f_{2n}\) degree \(2n^2-2\), leading coefficient \(n\); \(\psi_n^4\) degree \(2n^2-2\), leading coefficient \(n^4\) (for odd \(n\) it is \(f_n^4\), for even \(n\) it is \(16(x^3+Ax)^2f_n^4\), and \(f_n\) has leading coefficient \(n\) or \(n/2\)). Apply \(\tau\) to the coefficients: as \(\tau(x)\to+\infty\) the two quotients tend to \(1/n^2\) and \(1/n^3\), and \(\tau(\psi_n(x)^2)\ne0\), \(\tau(y^2)=\tau(x)(\tau(x)^2-\tau(d)^2)>0\) for \(\tau(x)\) large. Hence for \(\tau(x)>M\) all quantities are nonzero, and $\(\tau\Bigl(\frac{z([n]Q)}{z(Q)}\Bigr)=\tau\Bigl(\frac{x([n]Q)}{x}\Bigr)\Big/\tau\Bigl(\frac{y([n]Q)}{y}\Bigr)\longrightarrow\frac{n^3}{n^2}=n .\)$ The polynomials depend only on \(n\) and \(A\), so \(M\) depends only on \(n\), \(\tau\) and \(\eta\).
noncomputable def zCoord : genCurve.toAffine.Point → K0
| .zero => 0
| .some x y _ => -x / y
theorem z_ratio_tendsto (τ : K0 →+* ℝ) {n : ℤ} (hn : n ≠ 0) {η : ℝ} (hη : 0 < η) :
∃ M : ℝ, ∀ (x y : K0) (h : genCurve.toAffine.Nonsingular x y), M < τ x →
x ≠ 0 ∧ y ≠ 0 ∧
(∃ (x' y' : K0) (h' : genCurve.toAffine.Nonsingular x' y'),
n • Point.some x y h = .some x' y' h' ∧ x' ≠ 0 ∧ y' ≠ 0) ∧
|τ (zCoord (n • Point.some x y h) / zCoord (.some x y h)) - n| < η
def genCurve : WeierstrassCurve K0 where
a₁ := 0
a₂ := 0
a₃ := 0
a₄ := -genD ^ 2
a₆ := 0
ZInQKernel/Hypotheses/MordellWeil.lean:34
abbrev K0 : Type := QuadraticAlgebra ℚ 2 0
ZInQKernel/Hypotheses/MordellWeil.lean:25
noncomputable def zCoord : genCurve.toAffine.Point → K0
| .zero => 0
| .some x y _ => -x / y
ZInQKernel/Assembly/Real/Derivative.lean:26
Uses 6 · Used by 1
Choosing \(l\) first so that \(\epsilon_l\) is small enough, and then \(a\) with \(r(a,na)\) within \(\epsilon_l\) of \(n\), gives Close for every fixed nonzero shift.
TheoremCompleteness of Close for every fixed shift#✓
Assume the six-contact estimate, pole completeness and the twenty-two-prime pattern. For every \(n\in\mathbb Z\setminus\mathcal C\) and every nonzero \(\kappa\in\mathbb Z\), $\(\mathrm{Rel}_{\mathtt{close}}\bigl(\iota(n),\iota(\kappa),n\bigr).\)$ The shift \(\kappa\) is arbitrary: this holds for every already fixed nonzero \(\kappa\), whatever its size.
Proof sketch. Put \(B=B(n,\kappa)\in\mathbb N\) and \(\theta=4^{-B}/4>0\). By the Close relation it suffices to find \(a,l\ge1\) with \(\operatorname{Prec}(n,\kappa,a,l,na)\) and \(|n-r(a,na)|<\epsilon_l\); the latter is one of the conditions of \(\operatorname{Prec}\).
Choice of \(l\). For an affine point with abscissa \(x\) and \(\tau(x)>|\tau(d)|\) in a real embedding \(\tau\), \(\tau(z)^2=\tau(x)/(\tau(x)^2-\tau(d)^2)\), which tends to \(0\) as \(\tau(x)\to\infty\). Choose \(M_1\) such that \(\tau(x)>M_1\) gives \(|\tau(z)|<\theta/2\) for both \(\tau=\sigma_\pm\), and by the accumulation statement choose \(l\ge1\) with \(\sigma_\pm(x([l]P_0))>M_1\). Since \(u_l=(\sigma_+z_l+\sigma_-z_l)/2\) and \(v_l=(\sigma_+z_l-\sigma_-z_l)/(2\sqrt2)\), $\(0<\epsilon_l=|u_l|+|v_l|\le|\sigma_+z_l|+|\sigma_-z_l|<\theta,\)$ positivity because \(z_l\ne0\). Hence \(4\epsilon_l\cdot4^{B}<1\).
Choice of \(a\). Apply the real derivative statement to \(n\) with \(\eta=\epsilon_l\) in both embeddings, obtaining \(M_2\), and choose \(a\ge1\) by accumulation with \(\sigma_\pm(x([a]P_0))>M_2\). With \(Q=[a]P_0\) and \([n]Q=[na]P_0\), $\(|r(a,na)-n|=\Bigl|\tfrac12\sum_\pm\bigl(\sigma_\pm(z_{na}/z_a)-n\bigr)\Bigr|<\epsilon_l .\)$
With \(j=na\) all conditions of \(\operatorname{Prec}(n,\kappa,a,l,j)\) hold (\(n\notin\mathcal C\), \(\kappa\ne0\), \(a,l\ge1\), and \(l,a,j\) are admissible because they are nonzero), and the window \(|t-r(a,j)|<\epsilon_l\) holds for \(t=n\). The order of choices matters: \(l\) is fixed first, then \(a\) depending on \(\epsilon_l\).
theorem close_complete
(hM : MultiplicationExact specConstructors FixedConst.cstar.value FixedConst.ell.value
FixedConst.T.value)
(n κ : ℤ) (hn : (n : ℚ) ∉ contactSet) (hκ : κ ≠ 0) :
ValRel (getEx closeSpecLib 2) (List.ofFn (iota n) ++ (List.ofFn (iota κ) ++ [(n : ℚ)]))
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
def contactSet : Finset ℚ := {0, -15, -20, -24, -30, -60}
ZInQKernel/Hypotheses/Height.lean:84
def ValRel (τ : ExPoly) (l : List ℚ) : Prop := τ.Rel fun k => l.getD k 0
ZInQKernel/Assembly/Values/Outer.lean:28
noncomputable def getEx (lib : List ExPoly) (t : ℕ) : ExPoly := lib.getD t ExPoly.empty
ZInQKernel/Syntax/Language/Nodes.lean:74
noncomputable abbrev closeSpecLib : List ExPoly :=
specLib specConstructors FixedConst.cstar.value FixedConst.ell.value FixedConst.T.value
(Compiler.Universal.c3 : ℤ) (precisionCircuitOf (Compiler.Universal.c3 : ℤ))
ZInQKernel/Assembly/Close/Relation.lean:34
noncomputable def iota (n : ℤ) : Fin 5 → ℚ := pointCode (n • genP0)
ZInQKernel/Model/Field/Codes.lean:27
Uses 13 · Used by 1
Loading dependency explorer…
The dependency explorer needs JavaScript and its graph data.