Skip to content

Heights and the finite search

The \(x\)-height on \(C\) changes under doubling by a factor four up to the explicit constants \(\log392\) and \(\log676\), coming from the duplication forms, their archimedean sizes and their common divisor at \((s)\) and \((\delta)\).

DefinitionThe \(x\)-height on \(C(K_0)\)#✓

For \(x\in K_0\) let \(h(x)\) be the absolute logarithmic Weil height, $\(h(x)=\frac1{[K_0:\mathbb Q]}\sum_{v}n_v\log\max(1,|x|_v) =\frac12\sum_v n_v\log\max(1,|x|_v),\)$ the sum over the places \(v\) of \(K_0\) (the two real places and the finite places), with \(|\cdot|_v\) extending the usual absolute value of \(\mathbb Q\) and local degrees \(n_v\). For a point \(T\in C(K_0)\) put $\(h_x(T)=h(x(T))\ \ (T\ne O),\qquad h_x(O)=0 .\)$ For \(x\in\mathbb Q\) this is the height \(\log\max(|a|,b)\) of a reduced fraction \(a/b\).

noncomputable def hK0 (x : K0) : ℝ := logHeight₁ x / 2
noncomputable def hx (T : curveC.toAffine.Point) : ℝ := T.naiveHeight / 2
Uses 2 · Used by 6

LemmaThe height of a fraction in \(\mathbb Z[\sqrt2]\)#✓

Let \(a,b\in\mathbb Z[s]\) with \(b\ne0\), and let \(g\) be a greatest common divisor of \(a\) and \(b\) in \(\mathbb Z[s]\). Then $\(h(a/b)=\frac12\Bigl(\log\max(|\sigma_+a|,|\sigma_+b|)+\log\max(|\sigma_-a|,|\sigma_-b|) -\log|\operatorname N(g)|\Bigr).\)$ In particular, for coprime \(a,b\), \(\exp(2h(a/b))=\max(|\sigma_+a|,|\sigma_+b|)\cdot\max(|\sigma_-a|,|\sigma_-b|)\); for a rational \(p/q\) in lowest terms with \(q>0\), \(h(p/q)=\log\max(|p|,q)\); and \(h\ge0\).

Proof sketch. Write \(a=ga'\), \(b=gb'\) with \(a',b'\) coprime; the right side is unchanged because \(\prod_\sigma|\sigma g|=|\operatorname N(g)|\). For coprime \(a',b'\) and \(x=a'/b'\), \(\sum_v n_v\log\max(1,|x|_v)=\sum_v n_v\log\max(|a'|_v,|b'|_v)-\sum_vn_v\log|b'|_v\); the last sum vanishes by the product formula, and at every finite place \(\max(|a'|_v,|b'|_v)=1\) by coprimality, leaving the two real places. Integers \(p,q\) coprime in \(\mathbb Z\) are coprime in \(\mathbb Z[s]\), and then both real places give \(\max(|p|,q)\).

theorem hK0_div (a b : Zs) (hb : b ≠ 0) (g : Zs) (hga : g ∣ a) (hgb : g ∣ b)
    (hg : ∀ d, d ∣ a → d ∣ b → d ∣ g) :
    hK0 (Zs.toK0 a / Zs.toK0 b) =
      (Real.log (max |K0.embPlus (Zs.toK0 a)| |K0.embPlus (Zs.toK0 b)|) +
        Real.log (max |K0.embMinus (Zs.toK0 a)| |K0.embMinus (Zs.toK0 b)|) -
        Real.log |((QuadraticAlgebra.norm g : ℤ) : ℝ)|) / 2
theorem hK0_div_of_isCoprime {a b : Zs} (hab : IsCoprime a b) :
    hK0 (Zs.toK0 a / Zs.toK0 b) =
      (Real.log (max |K0.embPlus (Zs.toK0 a)| |K0.embPlus (Zs.toK0 b)|) +
        Real.log (max |K0.embMinus (Zs.toK0 a)| |K0.embMinus (Zs.toK0 b)|)) / 2
theorem hK0_ratCast (r : ℚ) : hK0 (r : K0) = Real.log (max |(r.num : ℝ)| (r.den : ℝ))
Sources
Uses 2 · Used by 5

LemmaThe duplication forms on \(C\)#✓

Put $\(F_2(a,b)=(a^2+\delta^2b^2)^2,\qquad G_2(a,b)=4ab(a^2-\delta^2b^2).\)$ Let \(T=(x,y)\in C(K_0)\) with \(y\ne0\), and let \(a,b\in\mathbb Z[s]\) with \(b\ne0\) and \(x=a/b\). Then \(G_2(a,b)\ne0\), \([2]T\ne O\) and $\(x([2]T)=\frac{F_2(a,b)}{G_2(a,b)} .\)$ If instead \(y=0\), then \([2]T=O\).

Proof sketch. With the tangent slope \(\lambda=(3x^2-\delta^2)/(2y)\), \(x([2]T)=\lambda^2-2x=\frac{(3x^2-\delta^2)^2-8x(x^3-\delta^2x)}{4y^2}=\frac{(x^2+\delta^2)^2}{4x(x^2-\delta^2)}\), using \(y^2=x(x^2-\delta^2)\); homogenize with \(x=a/b\). Since \(y\ne0\), \(x\notin\{0,\delta,-\delta\}\), so \(a\ne0\) and \(a^2\ne\delta^2b^2\), hence \(G_2(a,b)\ne0\). A point with \(y=0\) equals its own negative.

def F2 (a b : Zs) : Zs := dupF deltaZ a b
def G2 (a b : Zs) : Zs := dupG deltaZ a b
theorem x_two_smul_C {x y : K0} (h : curveC.toAffine.Nonsingular x y) (hy : y ≠ 0)
    {a b : Zs} (hb : b ≠ 0) (hx : x = Zs.toK0 a / Zs.toK0 b) :
    G2 a b ≠ 0 ∧ ∃ y' h', 2 • Point.some x y h =
      Point.some (Zs.toK0 (F2 a b) / Zs.toK0 (G2 a b)) y' h'
Sources
Uses 1 · Used by 3

LemmaArchimedean bounds for the duplication forms#✓

Let \(\Delta\) be a real number with \(1\le\Delta\le5\), let \(a,b\in\mathbb R\), \(M=\max(|a|,|b|)\), \(F=(a^2+\Delta^2b^2)^2\) and \(G=4ab(a^2-\Delta^2b^2)\). Then $\(M^4\le\max(|F|,|G|)\le676\,M^4 .\)$ Since \(\sigma_\pm(\delta)=3\mp\sqrt2\in[1,5]\), at either real embedding of \(K_0\) the values of the duplication forms satisfy \(\max(|\sigma a|,|\sigma b|)^4\le\max(|\sigma F_2(a,b)|,|\sigma G_2(a,b)|)\le676\max(|\sigma a|,|\sigma b|)^4\).

Proof sketch. \(a^2+\Delta^2b^2\ge a^2+b^2\ge M^2\) gives the lower bound from \(F\) alone. \(a^2+\Delta^2b^2\le26M^2\) gives \(F\le676M^4\), and \(|G|\le4|a||b|(a^2+\Delta^2b^2)\le104M^4\). The constant \(676=26^2\).

theorem duplication_archimedean (Δ a b : ℝ) (h1 : 1 ≤ Δ) (h5 : Δ ≤ 5) :
    max |a| |b| ^ 4 ≤ max |dupF Δ a b| |dupG Δ a b| ∧
      max |dupF Δ a b| |dupG Δ a b| ≤ 676 * max |a| |b| ^ 4
Sources
Uses 3 · Used by 1

LemmaThe common divisor of the duplication forms#✓

Let \(a,b\in\mathbb Z[s]\) be coprime and let \(g\) be a greatest common divisor of \(F_2(a,b)\) and \(G_2(a,b)\) (assume they are not both zero). Then \(v_\pi(g)=0\) for every prime \(\pi\) associate to neither \(s\) nor \(\delta\), \(v_s(g)\le6\) and \(v_\delta(g)\le4\). Consequently $\(|\operatorname N(g)|\le2^6\cdot7^4=392^2 .\)$

Proof sketch. It suffices to bound \(v_\pi(F_2(a,b))\) whenever \(\pi\) divides both forms. Primes \(\pi\nmid2\delta\). If \(\pi\mid a\) then \(\pi\mid a^2+\delta^2b^2\) forces \(\pi\mid b\); similarly \(\pi\mid b\) forces \(\pi\mid a\); and \(\pi\mid a^2-\delta^2b^2\) together with \(\pi\mid a^2+\delta^2b^2\) gives \(\pi\mid2a^2\). All contradict coprimality. At \(\delta\). If \(\delta\nmid a\), \(F_2\equiv a^4\not\equiv0\). If \(\delta\mid a\), then \(\delta\nmid b\) and with \(a=\delta a'\), \(F_2=\delta^4(a'^2+b^2)^2\); since \(-1\) is not a square modulo \(\delta\) (residue field \(\mathbb F_7\)), \(\delta\nmid a'^2+b^2\), so \(v_\delta(F_2)=4\). At \(s\). If exactly one of \(a,b\) is divisible by \(s\), \(a^2+\delta^2b^2\) is prime to \(s\) and \(v_s(F_2)=0\). If neither is, the dyadic valuation computation gives \(v_s(a^2+\delta^2b^2)\in\{2,3\}\), so \(v_s(F_2)\le6\). Finally \(|\operatorname N(s)|=2\), \(|\operatorname N(\delta)|=7\) and \(2^6\cdot7^4=153664=392^2\).

theorem duplication_common_divisor {a b : Zs} (hab : IsCoprime a b) {g : Zs}
    (hgF : g ∣ F2 a b) (hgG : g ∣ G2 a b) (_hg : ∀ d, d ∣ F2 a b → d ∣ G2 a b → d ∣ g)
    (hF0 : F2 a b ≠ 0 ∨ G2 a b ≠ 0) :
    (∀ π, Prime π → ¬ Associated π sqrt2Z → ¬ Associated π deltaZ → vp π (Zs.toK0 g) = 0) ∧
      vp sqrt2Z (Zs.toK0 g) ≤ 6 ∧ vp deltaZ (Zs.toK0 g) ≤ 4 ∧
      (QuadraticAlgebra.norm g).natAbs ≤ 392 ^ 2
Sources
Uses 5 · Used by 1

TheoremHeight bounds for doubling on \(C\)#✓

For every \(T\in C(K_0)\), $\(4h_x(T)-\log392\ \le\ h_x([2]T)\ \le\ 4h_x(T)+\log676 .\)$

Proof sketch. If \(T=O\) both sides are trivial. If \(T=(x,0)\), then \([2]T=O\) and \(x\in\{0,\pm\delta\}\) with \(h(0)=0\) and \(h(\pm\delta)=\tfrac12\log7\) (since \(\operatorname N(\delta)=7\) and both embeddings of \(\delta\) exceed \(1\)); then \(4h_x(T)-\log392\le2\log7-\log392<0\) and the upper bound is trivial. Otherwise write \(x(T)=a/b\) with \(a,b\in\mathbb Z[s]\) coprime, so \(h_x(T)=\frac12\sum_\sigma\log M_\sigma\) with \(M_\sigma=\max(|\sigma a|,|\sigma b|)\). By the duplication forms \(x([2]T)=F_2(a,b)/G_2(a,b)\), and by the height of a fraction with \(g=\gcd(F_2,G_2)\), $\(h_x([2]T)=\tfrac12\Bigl(\sum_\sigma\log\max(|\sigma F_2|,|\sigma G_2|)-\log|\operatorname N(g)|\Bigr).\)$ The archimedean bounds give \(4\log M_\sigma\le\log\max(|\sigma F_2|,|\sigma G_2|)\le\log676+4\log M_\sigma\), and \(0\le\log|\operatorname N(g)|\le2\log392\) by the common-divisor lemma. Combining yields both inequalities.

theorem hx_two_smul_bounds (T : curveC.toAffine.Point) :
    4 * hx T - Real.log 392 ≤ hx (2 • T) ∧ hx (2 • T) ≤ 4 * hx T + Real.log 676
Sources
Uses 6 · Used by 1
16 fully proved

The canonical height

The canonical height is the limit of \(4^{-m}h_x([2^m]T)\); it differs from \(h_x\) by bounded amounts and is a quadratic form.

DefinitionThe canonical height on \(C(K_0)\)#✓

For \(T\in C(K_0)\) the canonical height \(\widehat h(T)\) is defined by $\(2\,\widehat h(T)=\lim_{m\to\infty}4^{-m}\,h_x\bigl([2^m]T\bigr).\)$ Formally, \(\widehat h(T)\) is half the limit of the real sequence \(4^{-m}h_x([2^m]T)\); that the sequence converges for every \(T\) is proved, from the duplication height bounds, with the basic properties of \(\widehat h\). The factor \(2\) is the manuscript's normalization, under which \(2\widehat h\) is comparable with \(h_x\).

noncomputable def canonHeight (T : curveC.toAffine.Point) : ℝ :=
  (limUnder atTop fun m : ℕ => hx ((2 ^ m) • T) / 4 ^ m) / 2
Sources
Uses 1 · Used by 4

TheoremBasic properties of the canonical height#✓

For every \(T\in C(K_0)\) the limit defining \(\widehat h(T)\) exists, and:

  1. \[2\widehat h(T)\le h_x(T)+\frac{\log676}{3}\qquad\text{and}\qquad h_x(T)\le2\widehat h(T)+\frac{\log392}{3};\]
  2. \(\widehat h([2]T)=4\widehat h(T)\);
  3. \(\widehat h(-T)=\widehat h(T)\), and \(\widehat h(T+T')=\widehat h(T)\) for every \(T'\in C(K_0)[2]\);
  4. \(\widehat h(T)\ge0\).

Proof sketch. Put \(c_m=4^{-m}h_x([2^m]T)\). The duplication height bounds give \(-4^{-m-1}\log392\le c_{m+1}-c_m\le4^{-m-1}\log676\), so \((c_m)\) is Cauchy, and summing the geometric series from \(m=0\) gives \(-\frac{\log392}3\le\lim c_m-h_x(T)\le\frac{\log676}3\), which is (1). (2) is a shift of the index. (3): \(x(-P)=x(P)\) and \([2^m](-T)=-[2^m]T\); and \([2](T+T')=[2]T\), so by (2) \(\widehat h(T+T')=\widehat h([2]T)/4=\widehat h(T)\). (4) holds since \(h_x\ge0\).

theorem canonHeight_tendsto (T : curveC.toAffine.Point) :
    Tendsto (fun m : ℕ => hx ((2 ^ m) • T) / 4 ^ m) atTop (𝓝 (2 * canonHeight T))
theorem two_canonHeight_le (T : curveC.toAffine.Point) :
    2 * canonHeight T ≤ hx T + Real.log 676 / 3
theorem hx_le_two_canonHeight (T : curveC.toAffine.Point) :
    hx T ≤ 2 * canonHeight T + Real.log 392 / 3
Sources
Uses 3 · Used by 4

TheoremThe canonical height is quadratic#✓

For all \(P,Q\in C(K_0)\) and \(m\in\mathbb Z\), $\(\widehat h(P+Q)+\widehat h(P-Q)=2\widehat h(P)+2\widehat h(Q),\qquad \widehat h([m]P)=m^2\,\widehat h(P).\)$

Proof sketch. (Silverman, Theorem VIII.9.3; Néron-Tate.) The naive height satisfies the approximate parallelogram law: there is a constant \(c\) with \(|h_x(P+Q)+h_x(P-Q)-2h_x(P)-2h_x(Q)|\le c\) for all \(P,Q\) (Silverman, Theorem VIII.6.2). Apply it to \([2^n]P,[2^n]Q\), divide by \(4^n\) and let \(n\to\infty\): since \([2^n](P\pm Q)=[2^n]P\pm[2^n]Q\), the error \(c/4^n\) tends to \(0\) and the exact parallelogram law follows. Taking \(Q=P\) gives \(\widehat h(O)=0\) and the case \(m=2\); induction on \(m\ge1\) with \(\widehat h((m+1)P)=2\widehat h(mP)+2\widehat h(P)-\widehat h((m-1)P)\) gives \(m^2\widehat h(P)\), and \(\widehat h(-P)=\widehat h(P)\) gives negative \(m\). The constant \(c\) is not needed explicitly.

theorem canonHeight_parallelogram (P Q : curveC.toAffine.Point) :
    canonHeight (P + Q) + canonHeight (P - Q) = 2 * canonHeight P + 2 * canonHeight Q
theorem canonHeight_zsmul (m : ℤ) (P : curveC.toAffine.Point) :
    canonHeight (m • P) = (m : ℝ) ^ 2 * canonHeight P
Sources
Uses 2 · Used by 3

Small points

If \(R\) were \([m]S+T\) with \(|m|\ge3\), the generator \(S\) would have \(h_x(S)<\log9\), by \(h_x(2R)=\log41\) and one explicit integer comparison.

LemmaThe height of \(2R\)#✓

\(h_x([2]R)=h\bigl(\tfrac{57-28s}{8}\bigr)=\log41\).

The proof reduces to three closed integer facts, a finite computation: $\(57^2-2\cdot28^2=41^2\ (=1681),\qquad 49^2>2\cdot28^2\ (2401>1568),\qquad 57\text{ is odd}.\)$

Proof sketch. By the certificate for \(R\), \(x([2]R)=a/b\) with \(a=57-28s\) and \(b=8=s^6\). The only prime dividing \(b\) is \(s\), and \(s\nmid a\) because \(57\) is odd, so \(a,b\) are coprime. Both embeddings of \(a\) exceed \(8\): \(57+28\sqrt2>8\) trivially, and \(57-28\sqrt2>8\) because \(49>28\sqrt2\), i.e. \(49^2>2\cdot28^2\). By the height of a fraction, \(h=\tfrac12\log(\sigma_+(a)\sigma_-(a))=\tfrac12\log\operatorname N(a)=\tfrac12\log41^2\).

theorem hx_two_R : hx (2 • pointR) = Real.log 41
Sources
Uses 4 · Used by 2

LemmaTwo explicit integer comparisons#✓

The following inequalities between natural numbers hold: $\(41^3\cdot676\cdot392^{36}<9^{108},\qquad 392<41^3 .\)$ Equivalently \(\frac{\log(41^3\cdot676)}{108}+\frac{\log392}{3}<\log9\) and \(\log41>\frac{\log392}{3}\). This is a finite computation: the two sides of the first inequality have \(102\) and \(104\) decimal digits.

Proof sketch. Evaluate both sides; \(41^3=68921\). The logarithmic forms follow by monotonicity of \(\log\) after multiplying the first by \(108\) and the second by \(3\).

theorem height_comparisons : 41 ^ 3 * 676 * 392 ^ 36 < 9 ^ 108 ∧ 392 < 41 ^ 3
Sources
Used by 1

LemmaA multiple of a small point#✓

  1. \(\widehat h(R)>0\); more precisely \(8\widehat h(R)=2\widehat h([2]R)\ge\log41-\frac{\log392}{3}>0\).
  2. If \(R=[m]S+T\) with \(S\in C(K_0)\), \(T\in C(K_0)[2]\) and \(m\in\mathbb Z\), \(|m|\ge3\), then $\(h_x(S)\le\frac{\log(41^3\cdot676)}{108}+\frac{\log392}{3}<\log9 .\)$

Proof sketch. By the basic properties and the height of \(2R\), \(2\widehat h([2]R)\ge h_x([2]R)-\frac{\log392}3=\log41-\frac{\log392}3\), positive by the comparison \(392<41^3\), and \(\widehat h([2]R)=4\widehat h(R)\); this is (1). For (2), \(2\widehat h([2]R)\le h_x([2]R)+\frac{\log676}{3}=\log41+\frac{\log676}{3}\), so \(2\widehat h(R)\le\frac{3\log41+\log676}{12}=\frac{\log(41^3\cdot676)}{12}\). Since \(T\) is two-torsion and \(\widehat h\) is quadratic, \(\widehat h(R)=\widehat h([m]S)=m^2\widehat h(S)\ge9\widehat h(S)\), so \(2\widehat h(S)\le\frac{\log(41^3\cdot676)}{108}\). Then \(h_x(S)\le2\widehat h(S)+\frac{\log392}{3}\), and the final strict inequality is the comparison \(41^3\cdot676\cdot392^{36}<9^{108}\).

theorem canonHeight_R_pos :
    8 * canonHeight pointR = 2 * canonHeight (2 • pointR) ∧
      Real.log 41 - Real.log 392 / 3 ≤ 2 * canonHeight (2 • pointR) ∧
      0 < Real.log 41 - Real.log 392 / 3 ∧ 0 < canonHeight pointR
theorem hx_lt_log_nine_of_multiple (S T : curveC.toAffine.Point) (m : ℤ)
    (hR : pointR = m • S + T) (hT : 2 • T = 0) (hm : 3 ≤ |m|) :
    hx S ≤ Real.log (41 ^ 3 * 676) / 108 + Real.log 392 / 3 ∧ hx S < Real.log 9
Sources
Uses 6 · Used by 1

A point of such small height has its abscissa in an explicit finite set: \(14{,}008\) roots of \(7{,}004\) primitive quadratics and \(111\) rationals. An exact square test leaves only the two-torsion abscissas and the four translates of \(R\).

Let \(x\in K_0\) with \(h(x)<\log9\).

  1. If \(x\in\mathbb Q\), then \(x=p/q\) with \(p,q\in\mathbb Z\) coprime, \(|p|\le9\) and \(1\le q\le9\) (in fact \(|p|,q\le8\)).
  2. If \(x\notin\mathbb Q\), then there are integers \(a,b,c,k\) with $\(1\le a\le81,\quad|b|\le162,\quad|c|\le81,\quad\gcd(a,b,c)=1,\quad b^2-4ac=2k^2,\quad 1\le k\le162,\)$ such that \(x=\frac{-b+ks}{2a}\) or \(x=\frac{-b-ks}{2a}\); then \(aX^2+bX+c\) is the primitive minimal polynomial of \(x\) and both its roots lie in \(K_0\).

Proof sketch. (1) \(h(p/q)=\log\max(|p|,q)<\log9\). (2) Write \(x=u+vs\) with \(v\ne0\) and \(x=\alpha/\beta\) with \(\alpha,\beta\in\mathbb Z[s]\) coprime. The integer polynomial \(f(X)=\operatorname N(\beta X-\alpha)=\operatorname N(\beta)X^2-\operatorname{Tr}(\alpha\bar\beta)X+\operatorname N(\alpha)\) has the real roots \(r_\pm=\sigma_\pm(x)\), and \(|\operatorname N(\beta)|\max(1,|r_+|)\max(1,|r_-|)=\prod_\sigma\max(|\sigma\alpha|,|\sigma\beta|)=e^{2h(x)}<81\). Divide \(f\) by its content and fix the sign to get \(aX^2+bX+c\) with \(a\ge1\) and \(a\max(1,|r_+|)\max(1,|r_-|)<81\). Then \(a<81\), \(|b|=a|r_++r_-|<162\) and \(|c|=a|r_+r_-|<81\). The discriminant is \(a^2(r_+-r_-)^2=8a^2v^2=2k^2\) with \(k=2a|v|>0\); as \(2k^2\in\mathbb Z\) and \(k\in\mathbb Q\), \(k\in\mathbb Z\), and \(2k^2<162^2+4\cdot81^2=2\cdot162^2\) gives \(k<162\). Finally \(2au=-b\) and \(2av=\pm k\).

theorem search_box (x : K0) (hx : hK0 x < Real.log 9) :
    (x.im = 0 → ∃ p q : ℤ, Int.gcd p q = 1 ∧ |p| ≤ 8 ∧ 1 ≤ q ∧ q ≤ 8 ∧
      x = (((p : ℚ) / q : ℚ) : K0)) ∧
    (x.im ≠ 0 → ∃ a b c k : ℤ, 1 ≤ a ∧ a ≤ 81 ∧ |b| ≤ 162 ∧ |c| ≤ 81 ∧
      Int.gcd (Int.gcd a b) c = 1 ∧ b ^ 2 - 4 * a * c = 2 * k ^ 2 ∧ 1 ≤ k ∧ k ≤ 162 ∧
      (x = ⟨((-b : ℤ) : ℚ) / (2 * (a : ℚ)), (k : ℚ) / (2 * (a : ℚ))⟩ ∨
        x = ⟨((-b : ℤ) : ℚ) / (2 * (a : ℚ)), ((-k : ℤ) : ℚ) / (2 * (a : ℚ))⟩) ∧
      (a : K0) * x ^ 2 + (b : K0) * x + (c : K0) = 0)
Sources
Uses 3 · Used by 1

LemmaAn exact square test in \(K_0\)#✓

For \(u,v\in\mathbb Q\) say that \(\mathrm{Sq}(u,v)\) holds if there are a sign \(\eta\in\{1,-1\}\) and rationals \(t,y_0\) with $\(t^2=u^2-2v^2,\qquad y_0^2=\frac{u+\eta t}{2},\)$ such that either \(y_0\ne0\) and \(\bigl(y_0+\tfrac{v}{2y_0}s\bigr)^2=u+vs\), or \(y_0=0\), \(v=0\) and \(u/2=y_1^2\) for some \(y_1\in\mathbb Q\). Then $\(u+vs\ \text{is a square in }K_0\iff\mathrm{Sq}(u,v),\)$ including the case \(u+vs=0\). Since a rational number has a rational square root exactly when its reduced numerator and denominator are perfect squares (and it is nonnegative), \(\mathrm{Sq}\) is decidable by finitely many integer square-root extractions.

Proof sketch. (\(\Leftarrow\)) In the first case the square is exhibited; in the second \((y_1s)^2=2y_1^2=u=u+vs\). (\(\Rightarrow\)) If \(u+vs=(y_0+y_1s)^2\), then \(u=y_0^2+2y_1^2\), \(v=2y_0y_1\) and \(u^2-2v^2=(y_0^2-2y_1^2)^2\). Take \(t=|y_0^2-2y_1^2|\) and \(\eta\) with \(\eta t=y_0^2-2y_1^2\); then \((u+\eta t)/2=y_0^2\). If \(y_0\ne0\), \(y_1=v/(2y_0)\); if \(y_0=0\), then \(v=0\) and \(u=2y_1^2\).

def SqTest (u v : ℚ) : Prop :=
  ∃ η : ℚ, (η = 1 ∨ η = -1) ∧ ∃ t y₀ : ℚ, t ^ 2 = u ^ 2 - 2 * v ^ 2 ∧ y₀ ^ 2 = (u + η * t) / 2 ∧
    ((y₀ ≠ 0 ∧ (⟨y₀, v / (2 * y₀)⟩ : K0) ^ 2 = ⟨u, v⟩) ∨
      (y₀ = 0 ∧ v = 0 ∧ ∃ y₁ : ℚ, u / 2 = y₁ ^ 2))
theorem isSquare_iff_sqTest (u v : ℚ) : IsSquare (⟨u, v⟩ : K0) ↔ SqTest u v
Sources
Uses 1 · Used by 1

Let \(f(x)=x^3-\delta^2x\) with \(\delta^2=11-6s\). Let \(\mathcal Q\) be the set of integer triples \((a,b,c)\) with \(1\le a\le81\), \(|b|\le162\), \(|c|\le81\), \(\gcd(a,b,c)=1\) and \(b^2-4ac=2k^2\) for an integer \(1\le k\le162\); let \(\mathcal X_2\) be the set of the numbers \(x=\frac{-b\pm ks}{2a}\in K_0\) for \((a,b,c)\in\mathcal Q\) and both signs; and let \(\mathcal X_1\) be the set of rationals \(p/q\) with \(\gcd(p,q)=1\), \(|p|\le9\), \(1\le q\le9\). Then:

  1. \(|\mathcal Q|=7004\), the roots counted with their sign number \(14008\), and \(|\mathcal X_1|=111\);
  2. for \(x\in\mathcal X_1\cup\mathcal X_2\), \(f(x)\) is a square in \(K_0\) if and only if $\(x\in\Bigl\{0,\ \delta,\ -\delta,\ 1+s,\ 23-17s,\ 2+4s,\ \tfrac{5-4s}{2}\Bigr\}.\)$

Each membership test is the exact square test applied to the two rational components of \(f(x)\). This is a finite computation over explicit finite sets.

Proof sketch. Enumerate the box: for each \((a,b,c)\) check primitivity and whether \((b^2-4ac)/2\) is a positive perfect square \(k^2\) with \(k\le162\); for each resulting \(x\) and each rational candidate compute the components of \(f(x)\) exactly and run the square test. An independent replay of exactly this computation gives the stated counts and survivors.

theorem smallHeight_search :
    searchQ.card = 7004 ∧ searchX2.card = 14008 ∧ searchX1.card = 111 ∧
      ∀ x ∈ searchX1.image (fun r : ℚ => (r : K0)) ∪ searchX2,
        (IsSquare (fC x) ↔ x ∈ smallSurvivors)
Sources
Uses 2 · Used by 1

LemmaThe translates of \(R\) by two-torsion#✓

On \(C:y^2=x^3-\delta^2x\) with \(R=(1+s,2s)\): $\(x(R)=1+s,\quad x\bigl(R+(0,0)\bigr)=23-17s,\quad x\bigl(R+(\delta,0)\bigr)=2+4s,\quad x\bigl(R+(-\delta,0)\bigr)=\frac{5-4s}{2}.\)$ Each sum is computed by the chord rule with distinct abscissas. These are closed identities in \(K_0\): a finite computation.

Proof sketch. The chord slopes are \(2s/(1+s)=4-2s\), \(2s/(2s-2)=2+s\) and \(2s/4=s/2\); then \(x_3=\lambda^2-x_1-x_2\) gives \((24-16s)-(1+s)=23-17s\), \((6+4s)-(1+s)-(3-s)=2+4s\) and \(\tfrac12-(1+s)+(3-s)=\tfrac52-2s\).

theorem x_pointR_add_cT0 :
    ∃ y h, pointR + cT0 = Point.some (⟨23, -17⟩ : K0) y h
theorem x_pointR_add_cTdelta :
    ∃ y h, pointR + cTdelta = Point.some (⟨2, 4⟩ : K0) y h
theorem x_pointR_add_cTnegdelta :
    ∃ y h, pointR + cTnegdelta = Point.some (⟨5 / 2, -2⟩ : K0) y h
Sources
Uses 1 · Used by 1

The dependency explorer needs JavaScript and its graph data.

Download the complete graph data.