Skip to content

Pole completeness from certified rank (the congruent-number route)

The congruent-number route. This chapter belongs to the congruent-number route to pole completeness, through Tian–Yuan–Zhang and Gross–Zagier. Elliot's route is the other route to the same theorem. The route's Lean is kept at the tag route-k-final and pinned upstream in elliotglazer/diophantine-z-q. Pages whose Lean is not on this fork's main (fork issue #77) say so; the Lean of the other pages is still in the tree.

The manuscript's pole polynomial puts two points on curves \(y^2=x(x-\ell)(x+3\ell)\), and the manuscript derives pole completeness from its restricted converse theorem, whose proof uses Kato's Euler system, Waldspurger's formula, Bump–Friedberg–Hoffstein and Nekovář's Selmer complexes. The congruent-number route changes the polynomial to the congruent number curves \(C_\ell:y^2=x(x-\ell)(x+\ell)\); the elementary direction, Lemma 5.1, is unchanged (the one-sided pole obstruction). This chapter proves pole completeness for the new polynomial from one narrow hypothesis on congruent number curves, the certified rank hypothesis CR₃, by an explicit descent: for every admissible input \(B\) it produces two curves \(C_n\) and \(C_{n\theta}\) whose 2-Selmer groups, written as an \(\mathbb F_2\)-linear system in Legendre symbols, have dimension \(3\) and contain the class \(\beta\). CR₃ turns these certificates into rational points, and two such points give a zero of the pole polynomial.

Throughout, \(C_d\) is the curve \(y^2=x^3-d^2x\); it depends only on \(d^2\).

16 fully proved3 ready to state

Configurations and the Selmer system

An odd squarefree \(d>0\) is recorded by its primes, their classes modulo \(8\) and their Legendre symbols; Proposition 0 writes the 2-Selmer group of \(C_d\) as the solutions of a linear system in these data. The system makes sense for any configuration, realized by a number or not.

StructureConfigurations#✓

For an odd class \(c\) modulo \(8\) put \(\lambda(c)=[c\equiv3\pmod4]\) and \(\mu(c)=[c\equiv3,5\pmod8]\), as elements of \(\mathbb F_2\).

A configuration \(\mathcal C\) on a finite set \(S\) of symbols (the "primes" of \(\mathcal C\)) consists of a class \(c_x\in\{1,3,5,7\}\subset\mathbb Z/8\) for every \(x\in S\) and a bit \([y/x]\in\mathbb F_2\) for every pair \(x\ne y\) of elements of \(S\), subject to reciprocity: $\([x/y]+[y/x]=\lambda_x\lambda_y\qquad(x\ne y),\)$ where \(\lambda_x=\lambda(c_x)\) and \(\mu_x=\mu(c_x)\). Bits \([x/x]\) on the diagonal play no role. The product class of \(\mathcal C\) is \(c(\mathcal C)=\prod_{x\in S}c_x\) modulo \(8\); it is again odd. A symbol \(r\) with \(c_r=1\) is a glue prime; for it \(\lambda_r=\mu_r=0\), so reciprocity makes its bits symmetric, \([r/x]=[x/r]\).

The model is an odd squarefree \(d>0\): its primes with their classes modulo \(8\) and their Legendre symbols form a configuration, by quadratic reciprocity (the configuration of an odd number). Configurations that no number realizes occur only as intermediate steps of the descent.

structure Config (ι : Type*) where
  /-- The class `c_x` mod 8. -/
  cls : ι → ZMod 8
  cls_mem : ∀ x, cls x ∈ oddClasses
  /-- `bit y x = [y/x]`, the symbol of `y` at `x`. Only its off-diagonal values matter. -/
  bit : ι → ι → ZMod 2
  recip : ∀ x y, x ≠ y → bit x y + bit y x = lam8 (cls x) * lam8 (cls y)
def oddClasses : Finset (ZMod 8) := {1, 3, 5, 7}
def lam8 (c : ZMod 8) : ZMod 2 := if c = 3 ∨ c = 7 then 1 else 0
Used by 3

DefinitionThe Selmer system of a configuration#✓

Let \(\mathcal C\) be a configuration on \(S\). The Selmer system \(\Sigma(\mathcal C)\) has the unknowns \(a_0,a_1,b_0,b_1\in\mathbb F_2\) and \(u,v\in\mathbb F_2^S\). Write \((Ku)_x=\sum_{y\ne x}[y/x](u_y+u_x)\) (Monsky's matrix) and \(\lambda\cdot u=\sum_x\lambda_xu_x\), and likewise \(\mu\cdot u\), \(\lambda\cdot v\). The equations are $\(\begin{aligned} (\mathrm{E1}_x)\quad&(Ku)_x+\lambda_xv_x=a_0\lambda_x+a_1\mu_x&&(x\in S),\\ (\mathrm{E2}_x)\quad&\mu_xu_x+(Kv)_x+\lambda_xv_x=b_0\lambda_x+b_1\mu_x&&(x\in S),\\ (\mathrm R)\quad&a_0=b_0, \end{aligned}\)$ and the two rows (D) for the product class \(c=c(\mathcal C)\):

\(c\) rows (D)
\(1\) \(a_1=0\), \(\mu\cdot u=0\), \(\lambda\cdot v=\lambda\cdot u\)
\(3\) \(a_1=0\), \(b_0=\lambda\cdot v\), \(b_1=\mu\cdot u\)
\(5\) \(a_1=0\), \(b_1=\mu\cdot u\), \(\lambda\cdot v=\lambda\cdot u\)
\(7\) \(a_1=0\), \(\mu\cdot u=0\), \(b_0=\lambda\cdot v\)

Its solutions form a finite set (an \(\mathbb F_2\)-subspace); "dimension \(3\)" means exactly \(8\) solutions. The first coordinate of a solution is \((a_0,a_1,u)\), standing for the class \(a=(-1)^{a_0}2^{a_1}\prod_xx^{u_x}\); the solution stands for the pair of classes \((a,b)\) with \(b=(-1)^{b_0}2^{b_1}\prod_xx^{v_x}\).

Every solution has \(a_1=0\), and the system depends only on the classes and the off-diagonal bits of \(\mathcal C\).

For the configuration of an odd squarefree \(d>0\), Proposition 0 (descent-alt §4.1) identifies the solutions of \(\Sigma(\mathcal C_d)\), through \((a,b)\), with the 2-Selmer group of \(C_d:y^2=x^3-d^2x\): the rows E1, E2 are the local conditions at the primes of \(d\), (R) the real place and (D) the place \(2\). Proposition 0 is formalized in its own chapter (Proposition 0); the descent of this chapter does not use it, and it connects the system to rational points only through the certified rank hypothesis and its Selmer form.

def IsSol (σ : Unknowns ι) : Prop :=
  (∀ x, 𝒞.E1 σ x) ∧ (∀ x, 𝒞.E2 σ x) ∧ σ.a0 = σ.b0 ∧ 𝒞.D σ
def sols : Finset (Unknowns ι) := Finset.univ.filter 𝒞.IsSol
@[ext]
structure Unknowns (ι : Type*) where
  a0 : ZMod 2
  a1 : ZMod 2
  b0 : ZMod 2
  b1 : ZMod 2
  u : ι → ZMod 2
  v : ι → ZMod 2
Uses 1 · Used by 7

Two operations shrink a configuration and carry its solutions bijectively onto those of the smaller one, keeping \(a_0,a_1,b_0,b_1\): removing a glue prime with a single partner, and gluing a set of primes into one virtual prime through glue primes. At the end of the reduction stands a configuration of two primes, whose system is computed directly.

TheoremThe partner lemma#✓

Let \(\mathcal C\) be a configuration on \(S\), let \(r\in S\) be a glue prime (\(c_r=1\)), and let \(y\in S\setminus\{r\}\) be its partner: \([r/y]=1\) and \([r/z]=0\) for every \(z\notin\{r,y\}\). Let \(\mathcal C\setminus r\) be the restriction of \(\mathcal C\) to \(S\setminus\{r\}\). Then a tuple \((a_0,a_1,b_0,b_1,u,v)\) solves \(\Sigma(\mathcal C)\) if and only if \(u_r=u_y\), \(v_r=v_y\) and its restriction to \(S\setminus\{r\}\) solves \(\Sigma(\mathcal C\setminus r)\). Consequently forgetting \(u_r,v_r\) is a bijection from the solutions of \(\Sigma(\mathcal C)\) onto those of \(\Sigma(\mathcal C\setminus r)\); it keeps \(a_0,a_1,b_0,b_1\), and its inverse sets \(u_r=u_y\), \(v_r=v_y\). In particular the two systems have the same number of solutions.

The same holds for a family: if \(S=S_0\sqcup R\) where every \(r\in R\) is a glue prime with a partner \(y(r)\in S_0\) and \([r/z]=0\) for every \(z\notin\{r,y(r)\}\) (other elements of \(R\) included), then restriction to \(S_0\) is a bijection from the solutions of \(\Sigma(\mathcal C)\) onto those of \(\Sigma(\mathcal C|_{S_0})\), inverted by \(u_r=u_{y(r)}\), \(v_r=v_{y(r)}\).

Proof sketch. Since \(c_r=1\), \(\lambda_r=\mu_r=0\) and \([z/r]=[r/z]\), so \(\mathrm{E1}_r\) reads \([y/r](u_y+u_r)=u_y+u_r=0\) and \(\mathrm{E2}_r\) reads \(v_y+v_r=0\). The unknowns \(u_r,v_r\) occur elsewhere only in \(\mathrm{E1}_y\), \(\mathrm{E2}_y\), through the terms \([r/y](u_r+u_y)\) and \([r/y](v_r+v_y)\), which vanish once \(\mathrm{E1}_r\), \(\mathrm{E2}_r\) hold; every other row is the corresponding row of \(\Sigma(\mathcal C\setminus r)\). The product class does not change because \(c_r=1\), and \(r\) contributes nothing to \(\lambda\cdot u\), \(\mu\cdot u\), \(\lambda\cdot v\), so the rows (D) and (R) agree. The single-prime statement is the family statement with \(R=\{r\}\), after reindexing.

theorem Partner.bijOn (h : 𝒞.Partner r y) :
    Set.BijOn (fun σ : Unknowns ι => σ.comp Subtype.val) (𝒞.sols : Set (Unknowns ι))
      ((𝒞.erase r).sols : Set (Unknowns {x // x ≠ r}))
structure Partner (𝒞 : Config ι) (r y : ι) : Prop where
  ne : y ≠ r
  cls_eq_one : 𝒞.cls r = 1
  bit_partner : 𝒞.bit r y = 1
  bit_other : ∀ z, z ≠ r → z ≠ y → 𝒞.bit r z = 0
def erase (𝒞 : Config ι) (r : ι) : Config {x // x ≠ r} where
  cls x := 𝒞.cls x
  cls_mem _ := 𝒞.cls_mem _
  bit x y := 𝒞.bit x y
  recip _ _ h := 𝒞.recip _ _ (fun e => h (Subtype.ext e))
Sources
Uses 1 · Used by 1

TheoremThe gluing lemma#✓

Let \(\mathcal C\) be a configuration on \(S=S'\sqcup\{g\}\sqcup G\sqcup R\), where \(R=\{r_\ell:\ell\in G\}\) consists of glue primes (\(c_{r_\ell}=1\)) with $\([r_\ell/\ell]=[r_\ell/g]=1,\qquad[r_\ell/z]=0\text{ for every other }z\in S .\)$ Put \(X=G\cup\{g\}\). Let \(\mathcal C^*\) be the configuration on \(S'\sqcup\{g^*\}\) that agrees with \(\mathcal C\) on \(S'\) and has $\(c_{g^*}=c_g\prod_{\ell\in G}c_\ell,\qquad[y/g^*]=\sum_{x\in X}[y/x],\qquad [g^*/y]=\sum_{x\in X}[x/y]\qquad(y\in S');\)$ it satisfies reciprocity because \(\lambda\) is additive on odd classes, and \(c(\mathcal C^*)=c(\mathcal C)\). Then the map \(\Phi\) that keeps \(a_0,a_1,b_0,b_1\) and \(u|_{S'}\), \(v|_{S'}\) and sends \(u_g,v_g\) to \(u_{g^*},v_{g^*}\) is a bijection from the solutions of \(\Sigma(\mathcal C)\) onto those of \(\Sigma(\mathcal C^*)\). Its inverse sets \(u_x=u_{g^*}\), \(v_x=v_{g^*}\) for \(x\in X\) and, for \(\ell\in G\), $\(\begin{aligned} u_{r_\ell}&=\sum_{y\in S'}[y/\ell](u_y+u_{g^*})+u_{g^*}+\lambda_\ell(v_{g^*}+a_0),&&(2.1)\\ v_{r_\ell}&=\sum_{y\in S'}[y/\ell](v_y+v_{g^*})+v_{g^*}+\mu_\ell u_{g^*}+\lambda_\ell(v_{g^*}+b_0)+b_1\mu_\ell.&&(2.2) \end{aligned}\)$ In particular the two systems have the same number of solutions.

Proof sketch. (1) For \(\ell\in G\) the row \(\mathrm{E1}_{r_\ell}\) reads \((u_\ell+u_{r_\ell})+(u_g+u_{r_\ell})=0\), so \(u_\ell=u_g\); likewise \(\mathrm{E2}_{r_\ell}\) gives \(v_\ell=v_g\). (2) At \(y\in S'\) no glue prime is linked to \(y\), and with \(u\) constant on \(X\) the terms from \(X\) in \((Ku)_y\) add up to \([g^*/y](u_g+u_y)\); so \(\mathrm{E1}_y\), \(\mathrm{E2}_y\) are the rows of \(\Sigma(\mathcal C^*)\). (3) The unknown \(u_{r_\ell}\) occurs only in \(\mathrm{E1}_{r_\ell}\), \(\mathrm{E1}_\ell\) and \(\mathrm{E1}_g\); the row \(\mathrm{E1}_\ell\) determines it, which is (2.1) (all solutions have \(a_1=0\)), and the sum \(\mathrm{E1}_g+\sum_\ell\mathrm{E1}_\ell\), in which the glue unknowns and the terms between two elements of \(X\) cancel, is the row \(\mathrm{E1}_{g^*}\). The \(\mathrm{E2}\) rows behave the same way and give (2.2). (4) The product class is unchanged because \(c_{r_\ell}=1\), and \(\lambda\cdot u=\lambda|_{S'}\cdot u|_{S'}+\lambda_{g^*}u_{g^*}\), and likewise for \(\mu\cdot u\) and \(\lambda\cdot v\), so (D) and (R) agree. Hence \(\Phi\) maps solutions to solutions; the formulas of the inverse map solutions back, and the two maps are mutually inverse by step 1, (2.1) and (2.2).

theorem bijOn (h : 𝒞.Gluing) :
    Set.BijOn glueMap (𝒞.sols : Set (Unknowns (S' ⊕ (Option G ⊕ G))))
      (𝒞.glue.sols : Set (Unknowns (Option S')))
structure Gluing (𝒞 : Config (S' ⊕ (Option G ⊕ G))) : Prop where
  cls_eq_one : ∀ ℓ, 𝒞.cls (.inr (.inr ℓ)) = 1
  bit_ell : ∀ ℓ, 𝒞.bit (.inr (.inr ℓ)) (.inr (.inl (some ℓ))) = 1
  bit_g : ∀ ℓ, 𝒞.bit (.inr (.inr ℓ)) (.inr (.inl none)) = 1
  bit_other : ∀ ℓ z, z ≠ .inr (.inr ℓ) → z ≠ .inr (.inl (some ℓ)) → z ≠ .inr (.inl none) →
    𝒞.bit (.inr (.inr ℓ)) z = 0
ZInQ.RouteK.Config.glue · 24 lines
def glue (𝒞 : Config (S' ⊕ (Option G ⊕ G))) : Config (Option S') where
  cls := fun
    | none => ∏ o, 𝒞.cls (.inr (.inl o))
    | some s => 𝒞.cls (.inl s)
  cls_mem := fun
    | none => prod_mem_oddClasses _ _ fun _ _ => 𝒞.cls_mem _
    | some _ => 𝒞.cls_mem _
  bit := fun
    | some y, some y' => 𝒞.bit (.inl y) (.inl y')
    | some y, none => ∑ o, 𝒞.bit (.inl y) (.inr (.inl o))
    | none, some y => ∑ o, 𝒞.bit (.inr (.inl o)) (.inl y)
    | none, none => 0
  recip := by
    rintro (_ | x) (_ | y) h
    · exact absurd rfl h
    · show ∑ o, 𝒞.bit (.inr (.inl o)) (.inl y) + ∑ o, 𝒞.bit (.inl y) (.inr (.inl o)) =
        lam8 (∏ o, 𝒞.cls (.inr (.inl o))) * lam8 (𝒞.cls (.inl y))
      rw [← Finset.sum_add_distrib, lam8_prod _ _ fun _ _ => 𝒞.cls_mem _, Finset.sum_mul]
      exact Finset.sum_congr rfl fun o _ => 𝒞.recip _ _ Sum.inr_ne_inl
    · show ∑ o, 𝒞.bit (.inl x) (.inr (.inl o)) + ∑ o, 𝒞.bit (.inr (.inl o)) (.inl x) =
        lam8 (𝒞.cls (.inl x)) * lam8 (∏ o, 𝒞.cls (.inr (.inl o)))
      rw [← Finset.sum_add_distrib, lam8_prod _ _ fun _ _ => 𝒞.cls_mem _, Finset.mul_sum]
      exact Finset.sum_congr rfl fun o _ => 𝒞.recip _ _ Sum.inl_ne_inr
    · exact 𝒞.recip _ _ fun e => h (congrArg some (Sum.inl_injective e))
Sources
Uses 1 · Used by 1

TheoremThe base configuration#✓

Let \(\mathcal C_0\) be a configuration on two symbols \(\{p^*,q_0\}\) with \(c_{p^*}=7\) and \(c_{q_0}=3\), and put \(x=[q_0/p^*]\) (so \([p^*/q_0]=x+1\)). Then the solutions of \(\Sigma(\mathcal C_0)\) are exactly the tuples with \(a_0,u_{p^*},u_{q_0}\) free and, with \(w=u_{p^*}+u_{q_0}\), $\(v_{p^*}=a_0+xw,\quad v_{q_0}=a_0+(x+1)w,\quad a_1=0,\quad b_0=a_0,\quad b_1=u_{q_0}.\)$ So \(\Sigma(\mathcal C_0)\) has exactly \(8\) solutions (dimension \(3\)), and for each \(a_0\in\mathbb F_2\) it has the solution $\(\sigma_0:\quad u=(u_{p^*},u_{q_0})=(1,0),\quad v_{p^*}=a_0+x,\quad v_{q_0}=a_0+x+1,\quad a_1=0,\quad b_0=a_0,\quad b_1=0,\)$ whose first coordinate \((a_0,0,\mathbf 1_{p^*})\) is the class \((-1)^{a_0}p^*\).

Proof sketch. Here \(\lambda=(1,1)\), \(\mu=(0,1)\) and \(c(\mathcal C_0)=21\equiv5\). Then \((Ku)_{p^*}=xw\) and \((Ku)_{q_0}=(x+1)w\), and the rows are \(xw+v_{p^*}=a_0\), \((x+1)w+v_{q_0}=a_0\), \(x(v_{p^*}+v_{q_0})+v_{p^*}=b_0\), \(u_{q_0}+(x+1)(v_{p^*}+v_{q_0})+v_{q_0}=b_0+b_1\), \(a_0=b_0\), and the rows (D) for \(c=5\): \(a_1=0\), \(b_1=u_{q_0}\), \(v_{p^*}+v_{q_0}=w\). The \(\mathrm E1\) rows give \(v_{p^*}\) and \(v_{q_0}\), hence \(v_{p^*}+v_{q_0}=w\); substituting, the \(\mathrm E2\) rows follow from (R) and \(b_1=u_{q_0}\). The equivalence is a finite check over the nine bits \(x,a_0,a_1,b_0,b_1,u_{p^*},u_{q_0},v_{p^*},v_{q_0}\), done by the kernel.

theorem base_card_sols' (𝒞 : Config ι) (hpq : p ≠ q) (hall : ∀ z, z = p ∨ z = q)
    (hp : 𝒞.cls p = 7) (hq : 𝒞.cls q = 3) : 𝒞.sols.card = 8
theorem base_mem_sols' (𝒞 : Config ι) (hpq : p ≠ q) (hall : ∀ z, z = p ∨ z = q)
    (hp : 𝒞.cls p = 7) (hq : 𝒞.cls q = 3) (a0 : ZMod 2) :
    (⟨a0, 0, a0, 0, fun z => if z = p then 1 else 0,
      fun z => if z = p then a0 + 𝒞.bit q p else a0 + 𝒞.bit q p + 1⟩ : Unknowns ι) ∈ 𝒞.sols
theorem base_exists_first' (𝒞 : Config ι) (hpq : p ≠ q) (hall : ∀ z, z = p ∨ z = q)
    (hp : 𝒞.cls p = 7) (hq : 𝒞.cls q = 3) (a0 : ZMod 2) :
    ∃ σ ∈ 𝒞.sols, σ.first = (a0, 0, fun z => if z = p then 1 else 0)
Sources
Uses 1 · Used by 1

Residue bits and actual numbers

DefinitionResidue bits#✓

For a prime \(p\) and an integer \(a\), the residue bit \([a/p]\in\mathbb F_2\) is \(0\) if \(a\) is a square modulo \(p\) and \(1\) otherwise; for \(a\) prime to \(p\) it is the bit of the Legendre symbol, \((a/p)=(-1)^{[a/p]}\), and for \(p\mid a\) it is \(0\) (this value is never used). Put \(\lambda_p=[-1/p]\) and \(\mu_p=[2/p]\). For an integer \(\beta\) put \(s(\beta)=[\beta<0]\in\mathbb F_2\), and let \(P(\beta)\) be the set of primes dividing \(\beta\).

noncomputable def legBit (p : ℕ) (a : ℤ) : ZMod 2 := if IsSquare (a : ZMod p) then 0 else 1
noncomputable def lamBit (p : ℕ) : ZMod 2 := legBit p (-1)
noncomputable def muBit (p : ℕ) : ZMod 2 := legBit p 2
Used by 13

TheoremQuadratic reciprocity in residue bits#✓

Let \(p\ne q\) be odd primes. Then $\([q/p]+[p/q]=\lambda_p\lambda_q,\qquad\lambda_p=[p\equiv3\pmod4],\qquad \mu_p=[p\equiv3,5\pmod8],\)$ and \([ab/p]=[a/p]+[b/p]\) for integers \(a,b\) prime to \(p\) (so the bit of a finite product of integers prime to \(p\) is the sum of their bits). For \(a\) prime to \(p\), \([a/p]=0\) if and only if \((a/p)=1\); more generally, for \(b\in\mathbb F_2\), \([a/p]=b\) if and only if \((a/p)=(-1)^b\). A prime \(q\ne p\) is prime to \(p\).

These are quadratic reciprocity, its two supplementary laws and the multiplicativity of the Legendre symbol, rewritten in \(\mathbb F_2\). In particular, for a prime \(r\equiv1\pmod4\) the bits are symmetric, \([y/r]=[r/y]\), and for \(q\equiv3\pmod4\), \([y/q]=[q/y]+\lambda_y\).

Proof sketch. Quadratic reciprocity gives \((q/p)(p/q)=(-1)^{\frac{p-1}2\frac{q-1}2}\), the first supplement \((-1/p)=(-1)^{(p-1)/2}\) and the second \((2/p)=1\) exactly when \(p\equiv\pm1\pmod8\). Taking the bits of these \(\pm1\) identities turns products into sums.

theorem legBit_reciprocity {p q : ℕ} (hp : p.Prime) (hq : q.Prime) (hp2 : p ≠ 2) (hq2 : q ≠ 2)
    (hpq : p ≠ q) : legBit p q + legBit q p = lamBit p * lamBit q
theorem lamBit_eq (p : ℕ) [Fact p.Prime] : lamBit p = if p % 4 = 3 then 1 else 0
theorem muBit_eq (p : ℕ) [Fact p.Prime] (hp2 : p ≠ 2) :
    muBit p = if p % 8 = 3 ∨ p % 8 = 5 then 1 else 0
Sources
Uses 1 · Used by 8

DefinitionThe configuration of an odd number and Selmer certificates#✓

Let \((f_k)_{k\in K}\) be a finite family of distinct odd primes. Its configuration has the symbols \(K\), the classes \(c_k=f_k\bmod 8\) and the bits \([f_a/f_b]\) (the residue bit of \(f_a\) modulo \(f_b\)); reciprocity is quadratic reciprocity in residue bits. For an odd positive integer \(d\), the configuration \(\mathcal C_d\) of \(d\) is that of the primes dividing \(d\).

For an integer \(a\), the class of \(a\) in the coordinates of \(d\) is \((s(a),0,u)\) with \(u_p=[p\mid a]\) for the primes \(p\mid d\); when \(a\) is a squarefree odd divisor of \(d\) it is the first coordinate of \(a=(-1)^{s(a)}\prod_{p\mid a}p\).

A Selmer certificate for \((d,a)\), with \(d\) odd and positive, is the statement that \(\Sigma(\mathcal C_d)\) has exactly \(8\) solutions and that one of them has first coordinate the class of \(a\). Through Proposition 0 it says that \(\dim_{\mathbb F_2}\mathrm{Sel}_2(C_d)=3\) and that \(a\) is a first Kummer coordinate of \(\mathrm{Sel}_2(C_d)\), a certificate of Selmer type in the sense of slot-k §1.2.

noncomputable def natConfig (d : ℕ) (hd : Odd d) : Config d.primeFactors :=
  primeCfg (fun p => p.1) Subtype.val_injective fun p => prime_ne_two_of_mem_primeFactors hd p.2
noncomputable def primeCfg {κ : Type*} (f : κ → ℕ) (hf : Function.Injective f)
    (hp : ∀ k, (f k).Prime ∧ f k ≠ 2) : Config κ where
  cls k := (f k : ZMod 8)
  cls_mem k := natCast_mem_oddClasses (((hp k).1.eq_two_or_odd).resolve_left (hp k).2)
  bit a b := legBit (f b) (f a)
  recip x y h := by
    show legBit (f y) (f x) + legBit (f x) (f y) = lam8 (f x : ZMod 8) * lam8 (f y : ZMod 8)
    rw [lam8_natCast_eq_lamBit (hp x).1 (hp x).2, lam8_natCast_eq_lamBit (hp y).1 (hp y).2,
      legBit_reciprocity (hp y).1 (hp x).1 (hp y).2 (hp x).2 (hf.ne h).symm, mul_comm]
def natClass (d : ℕ) (a : ℤ) : ZMod 2 × ZMod 2 × (d.primeFactors → ZMod 2) :=
  (signBit a, 0, fun p => if (p.1 : ℤ) ∣ a then 1 else 0)
Uses 3 · Used by 10

DefinitionThe certified rank hypothesis#✓

The congruent-number route. The certified rank hypothesis is the hypothesis of the congruent-number route to pole completeness, through Tian–Yuan–Zhang and Gross–Zagier. Elliot's route, the other route to the same theorem, does not use it. The route's Lean is kept at the tag route-k-final and pinned upstream in elliotglazer/diophantine-z-q; this definition is still in the tree.

For an integer \(d\) let \(C_d\) be the congruent number curve \(y^2=x^3-d^2x\). The certified rank hypothesis CR₃ is the following assertion. Let \(d\) be a squarefree positive integer with \(d\equiv5\pmod8\), and let \(a\) be a squarefree integer dividing \(d\) with \(|a|\equiv7\pmod8\). Suppose that the Selmer system \(\Sigma(\mathcal C_d)\) of the configuration of \(d\) has exactly \(8\) solutions and that one of them has first coordinate the class of \(a\), that is \(a_0=[a<0]\), \(a_1=0\) and \(u_p=[p\mid a]\) for the primes \(p\mid d\). Then \(C_d\) has a rational point \((x,y)\) with \(x\ne0\) and \(x/a\) a square in \(\mathbb Q\).

CR₃ is a statement about Legendre symbols and rational points only; no Selmer group enters it. It rests on the following theorems. Proposition 0 is proved (Proposition 0), so CR₃ follows from its Selmer form (CR₃ from its Selmer form). So are the elementary steps of route (i), namely the rule of row 5b (Theorem 4.3) with Corollary 4.4, the identity of the row-5b determinant with the genus sum (Theorem 3.6) and Rédei's formula, and so is the last step below, from positive rank to every Selmer class (RK9, with Mordell–Weil for \(C_d\)). The analytic and rank theorems are not proved here.

  • Proposition 0 (descent-alt §4.1; its place-2 rows for \(d\equiv5\pmod8\) are rechecked in slot-k §2.1) identifies the solutions of \(\Sigma(\mathcal C_d)\) with the 2-Selmer group \(\mathrm{Sel}_2(C_d)\), so the hypotheses say that \(\dim\mathrm{Sel}_2(C_d)=3\) and that \(a\) is a first Kummer coordinate of \(\mathrm{Sel}_2(C_d)\).
  • Positive rank, by route (i). For \(d\equiv5\pmod8\) with \(|\mathrm{Sel}_2(C_d)|=8\) and a first coordinate with \(|a|\equiv7\pmod8\), the shape CR₃ assumes, an elementary computation (the row-5b determinant of Smith's Monsky matrices, reproved in tyz-5b §§2–4) shows that the genus sum \(T_{5b}(d)\) of Tian, Yuan and Zhang is odd. Their Theorem 3.5 and the argument of the proof of their Theorem 3.5(2), as completed in nt-tyz §4 by Proposition N, then give that \(L(C_d,s)\) vanishes to order exactly one at \(s=1\). Gross–Zagier, applied over an auxiliary imaginary quadratic field \(K\) that satisfies the Heegner hypothesis and has \(L(C_d^K,1)\ne0\) (Bump–Friedberg–Hoffstein), then gives \(\operatorname{rank}C_d(\mathbb Q)\ge1\); \(C_d\) is modular because it has complex multiplication by \(\mathbb Z[i]\). Tian–Yuan–Zhang and Gross–Zagier are published. The form of TYZ used is the one their proof gives, which rests on their Proposition 3.4, whose proof is a sketch; Proposition N replaces that step by a direct parity count, and it is not refereed.
  • Route (ii), an alternative that is not needed: Kriz's 2-converse theorem (Theorems 10.13 and 10.17(2), an unrefereed preprint) with the corank lemma (the Cassels–Tate pairing on \(Ш(C_d)/Ш(C_d)_{\rm div}\) is nondegenerate and alternating, so \(\dim(Ш/Ш_{\rm div})[2]\) is even; no finiteness of \(Ш\) is assumed) gives \(\operatorname{rank}C_d(\mathbb Q)=1\) and \(Ш(C_d)[2]=0\).
  • Then \(\dim C_d(\mathbb Q)/2C_d(\mathbb Q)=2+\operatorname{rank}C_d(\mathbb Q)\) is at least \(3=\dim\mathrm{Sel}_2(C_d)\), so the Kummer map is onto \(\mathrm{Sel}_2(C_d)\) (RK9) and the class \(a\) comes from a point \(P\), which may be taken of infinite order (replace \(P\) by \(P+2Q\)). The torsion classes are \(1,-1,d,-d\), which \(a\) is not since \(|a|\equiv7\) and \(d\equiv5\pmod8\). A point of infinite order has \(x\notin\{0,\pm d\}\), so its first Kummer coordinate is the class of \(x\): \(x\in a\mathbb Q^{*2}\).

The congruences \(d\equiv5\), \(|a|\equiv7\pmod8\) are exactly what the descent lemma produces, so CR₃ is as narrow as the proof allows short of naming the configurations of the slot construction. A form that names them, with positive rank as its conclusion, is CR₃^DL,Rk; it follows from the positive-rank forms CR₃^Rk and CR₃^TYZ,Rk, and the main theorem also holds under it and under the positive-rank forms of the hypothesis (the positive-rank chapter). CR₃ is not proved here; it is a hypothesis of the main theorem from three hypotheses and of the main theorem from two hypotheses, while the main theorem at the tag route-k-final derived it from four statements about L-series. It implies pole completeness for the pole polynomial with the curves \(x+\ell\).

def CertifiedRank : Prop :=
  ∀ (d : ℕ) (a : ℤ) (hd : d % 8 = 5), Squarefree d → Squarefree a → a ∣ (d : ℤ) →
    a.natAbs % 8 = 7 →
    (RouteK.natConfig d (RouteK.odd_of_mod_eight_eq_five hd)).sols.card = 8 →
    (∃ σ ∈ (RouteK.natConfig d (RouteK.odd_of_mod_eight_eq_five hd)).sols,
      σ.first = RouteK.natClass d a) →
    ∃ x y : ℚ, y ^ 2 = x ^ 3 - (d : ℚ) ^ 2 * x ∧ x ≠ 0 ∧ IsSquare (x / a)
Uses 1 · Used by 4

The inputs \(\beta\) and \(\theta\)

An admissible input \(B\) and a signed divisor \(m\) of \(2730\) determine the squarefree parts \(\beta=\mathrm{sqf}(mB)\) and \(\theta=\mathrm{sqf}(m(m-B))\). The multiplier is chosen so that \(|\beta|\equiv7\pmod8\), and \(\theta\) then has four local properties.

DefinitionAdmissible inputs, the squarefree part, \(\beta\) and \(\theta\)#✓

A rational \(B\) is admissible if its reduced denominator is a square, \(0<B<1/2\), and \(v_p(B)\ge4\) for every \(p\in S_0=\{2,3,5,7,13\}\). These are the hypotheses of pole completeness, which therefore says that every admissible \(B\) satisfies \(\Phi(B)\).

The signed squarefree part of an integer \(N\) is \(\mathrm{sqf}(N)=\operatorname{sign}(N)\prod_{p:\,v_p(N)\text{ odd}}p\), and that of a rational \(x=a/b\) in lowest terms (\(b>0\)) is \(\mathrm{sqf}(x)=\mathrm{sqf}(ab)\). For \(x\ne0\), \(\mathrm{sqf}(x)\) is squarefree, \(x=\mathrm{sqf}(x)\,t^2\) for some nonzero rational \(t\), and it is the only squarefree integer with this property; \(\mathrm{sqf}(0)=0\).

A signed divisor of \(2730=2\cdot3\cdot5\cdot7\cdot13\) is an integer \(m\), of either sign, with \(m\mid2730\). For a rational \(B\) and such an \(m\) put $\(\beta=\mathrm{sqf}(mB),\qquad\theta=\mathrm{sqf}\bigl(m(m-B)\bigr).\)$

def sqf (x : ℚ) : ℤ := sqfInt (x.num * x.den)
def betaOf (B : ℚ) (m : ℤ) : ℤ := sqf (m * B)
def thetaOf (B : ℚ) (m : ℤ) : ℤ := sqf (m * (m - B))
Uses 1 · Used by 8

LemmaThe multiplier lemma#✓

Let \(B\) be a nonzero rational. Then there is a positive divisor \(m\) of \(2730\) such that \(\beta=\mathrm{sqf}(mB)\) is odd and \(|\beta|\equiv7\pmod8\). In particular every admissible \(B\) has a signed divisor \(m\) of \(2730\) with \(\beta\) odd and \(|\beta|\equiv7\pmod8\).

Proof sketch. Write \(B=\mathrm{sqf}(B)\,t^2\) and \(\mathrm{sqf}(B)=2^fb'\) with \(f\in\{0,1\}\) and \(b'\) odd. Multiplication by an odd class permutes the odd classes modulo \(8\), so some \(m_0\in\{1,3,5,7\}\) has \(m_0|b'|\equiv7\pmod8\); put \(m=2^fm_0\). Then \(mB=m_0b'\,(2^ft)^2\), so \(\beta=\mathrm{sqf}(m_0b')\) is odd. Since \(m_0\) is \(1\) or a prime, \(\beta\) differs from \(m_0b'\) at most by an odd square factor, and odd squares are \(\equiv1\pmod8\), so \(|\beta|\equiv m_0|b'|\equiv7\pmod8\). Admissibility is not needed beyond \(B\ne0\).

theorem exists_multiplier_pos {B : ℚ} (hB : B ≠ 0) :
    ∃ m : ℤ, 0 < m ∧ m ∣ 2730 ∧ Odd (betaOf B m) ∧ (betaOf B m).natAbs % 8 = 7
theorem exists_multiplier {B : ℚ} (hB : Admissible B) :
    ∃ m : ℤ, m ∣ 2730 ∧ Odd (betaOf B m) ∧ (betaOf B m).natAbs % 8 = 7
Sources
Uses 1 · Used by 2

LemmaThe properties (θ1)–(θ4)#✓

Let \(B\) be admissible, \(m\) a signed divisor of \(2730\), \(\beta=\mathrm{sqf}(mB)\) and \(\theta=\mathrm{sqf}(m(m-B))\). Then:

  • (θ1) \(\theta>0\), \(\theta\equiv1\pmod8\) and \(\gcd(\theta,2730)=1\);
  • (θ2) no prime divides both \(\beta\) and \(\theta\);
  • (θ3) \((\beta/\ell)=1\) for every prime \(\ell\mid\theta\);
  • (θ4) \((\theta/p)=1\) for every odd prime \(p\mid\beta\).

Property (θ4) also holds at \(p=2\), since \(\theta\) is odd.

Proof sketch. Write \(B=a/k^2\) in lowest terms, so \(0<2a<k^2\) and, for \(p\in S_0\), \(p\nmid k\) and \(p^4\mid a\). With \(M=mk\) there are nonzero integers \(s,c\) with $\(ma=\beta s^2,\qquad\theta c^2=M^2-ma,\)$ the integer form of \(\theta c^2=1-\beta t^2\), \(\beta t^2=B/m\). The local computation is one lemma: if \(\theta c^2=(p^eM_1)^2-X\) with \(\theta\) squarefree, \(p\nmid M_1\) and \(p^{2e+j}\mid X\) for some \(j\ge1\), then \(p\nmid\theta\) and \(\theta c_1^2\equiv M_1^2\pmod{p^j}\) for some \(c_1\) prime to \(p\). At \(p\in S_0\) it applies with \(j=3\) (\(p^4\mid a\), and \(p^2\nmid m\)), which gives \(p\nmid\theta\) and, at \(p=2\), \(\theta\equiv1\pmod8\), because odd squares are \(\equiv1\pmod8\); and \(\theta>0\) because \(M^2-ma=m^2k^2(1-B/m)\) with \(|B/m|\le B<1/2\). This is (θ1). At a prime \(p\mid\beta\) outside \(S_0\): \(p\mid ma\) and \(p\nmid m\), so \(p\mid a\) and \(p\nmid k\); the lemma applies with \(e=0\), \(j=1\), so \(p\nmid\theta\) and \(\theta\) is a nonzero square modulo \(p\); at a prime of \(\beta\) in \(S_0\) the first case gives the same. This gives (θ2) and (θ4). At a prime \(\ell\mid\theta\): \(\ell\notin S_0\) by (θ1), so \(\ell\nmid m\); \(\ell\nmid k\), since otherwise \(\ell\mid M^2-\theta c^2=ma\) would give \(\ell\mid a\); hence \(\beta s^2=ma\equiv M^2\not\equiv0\pmod\ell\), and \(\beta\) is a nonzero square modulo \(\ell\), which is (θ3).

theorem theta_props {B : ℚ} (hB : Admissible B) {m : ℤ} (hm : m ∣ 2730) :
    (0 < thetaOf B m ∧ thetaOf B m % 8 = 1 ∧ Int.gcd (thetaOf B m) 2730 = 1) ∧
    (∀ p : ℕ, p.Prime → (p : ℤ) ∣ betaOf B m → ¬ (p : ℤ) ∣ thetaOf B m) ∧
    (∀ (ℓ : ℕ) [Fact ℓ.Prime], (ℓ : ℤ) ∣ thetaOf B m → legendreSym ℓ (betaOf B m) = 1) ∧
    (∀ (p : ℕ) [Fact p.Prime], p ≠ 2 → (p : ℤ) ∣ betaOf B m →
      legendreSym p (thetaOf B m) = 1)
theorem theta1 {B : ℚ} (hB : Admissible B) {m : ℤ} (hm : m ∣ 2730) :
    0 < thetaOf B m ∧ thetaOf B m % 8 = 1 ∧ Int.gcd (thetaOf B m) 2730 = 1
theorem theta2 {B : ℚ} (hB : Admissible B) {m : ℤ} (hm : m ∣ 2730) (p : ℕ) (hp : p.Prime)
    (hpβ : (p : ℤ) ∣ betaOf B m) : ¬ (p : ℤ) ∣ thetaOf B m
Uses 1 · Used by 2

The slots

The auxiliary primes are chosen by Dirichlet's theorem with prescribed residue bits: one prime \(q_0\equiv3\pmod8\), glue primes \(r_p\equiv1\pmod8\) that glue the primes of \(\beta\) into one virtual prime of class \(7\), and glue primes \(r_\ell\equiv1\pmod8\) that hang the primes of \(\theta\) on \(q_0\).

LemmaThe slot lemma#✓

Let \(S\) be a finite set of odd primes with signs \(\varepsilon_p\in\{\pm1\}\) (\(p\in S\)), let \(a\) be an odd integer and \(A\) a finite set of natural numbers. Then there is a prime \(q\notin A\) with \(q\equiv a\pmod8\) and \((q/p)=\varepsilon_p\) for every \(p\in S\).

Equivalently, in residue bits: for prescribed bits \(b_p\in\mathbb F_2\) (\(p\in S\)) there is a prime \(q\notin A\cup S\) with \(q\equiv a\pmod8\) and \([q/p]=b_p\) for every \(p\in S\).

Proof sketch. Every odd prime \(p\) has \((p-1)/2\ge1\) nonzero squares and as many non-squares modulo \(p\), so some residue \(r_p\) prime to \(p\) has \((r_p/p)=\varepsilon_p\). By the Chinese remainder theorem the conditions \(q\equiv a\pmod 8\) and \(q\equiv r_p\pmod p\) (\(p\in S\)) define one invertible class modulo \(8\prod_{p\in S}p\), and by Dirichlet's theorem on primes in arithmetic progressions it contains a prime larger than every element of \(A\) (and of \(S\)).

theorem exists_prime_slot (S : Finset ℕ) (hS : ∀ p ∈ S, p.Prime ∧ p ≠ 2) (ε : ℕ → ℤ)
    (hε : ∀ p ∈ S, ε p = 1 ∨ ε p = -1) {a : ℤ} (ha : Odd a) (A : Finset ℕ) :
    ∃ q : ℕ, q.Prime ∧ q ∉ A ∧ (q : ℤ) ≡ a [ZMOD 8] ∧
      ∀ (p : ℕ) [Fact p.Prime], p ∈ S → legendreSym p q = ε p
theorem exists_prime_slot_bits (S : Finset ℕ) (hS : ∀ p ∈ S, p.Prime ∧ p ≠ 2) (b : ℕ → ZMod 2)
    {a : ℤ} (ha : Odd a) (A : Finset ℕ) :
    ∃ q : ℕ, q.Prime ∧ q ∉ A ∧ q ∉ S ∧ (q : ℤ) ≡ a [ZMOD 8] ∧ ∀ p ∈ S, legBit p q = b p
Sources
Uses 1 · Used by 2

StructureThe slot conditions#✓

Let \(\beta,\theta\) be odd coprime integers, \(P=P(\beta)\) and \(T=P(\theta)\) their sets of primes, \(p_0\in P\), \(G=P\setminus\{p_0\}\), \(s=s(\beta)=[\beta<0]\) and \(x=s+1\in\mathbb F_2\). Slot data for \(\beta,\theta,p_0\) are pairwise distinct primes \(q_0\), \(r_p\) (\(p\in G\)) and \(r_\ell\) (\(\ell\in T\)), none dividing \(2\beta\theta\), such that:

  • \(q_0\equiv3\pmod8\), \([q_0/p]=1+\lambda_px\) for \(p\in G\), \([q_0/p_0]=x+\sum_{p\in G}(1+\lambda_px)\), and \([q_0/\ell]=0\) for \(\ell\in T\);
  • for \(p\in G\): \(r_p\equiv1\pmod8\), \([r_p/p]=[r_p/p_0]=1\), and \([r_p/y]=0\) for every \(y\in(P\setminus\{p,p_0\})\cup T\cup\{q_0\}\) and every \(y=r_{p'}\) with \(p'\in G\setminus\{p\}\);
  • for \(\ell\in T\): \(r_\ell\equiv1\pmod8\), \([r_\ell/\ell]=[r_\ell/q_0]=1\), and \([r_\ell/y]=0\) for every \(y\in P\cup(T\setminus\{\ell\})\), every \(y=r_p\) with \(p\in G\), and every \(y=r_{\ell'}\) with \(\ell'\in T\setminus\{\ell\}\).

For slot data, \(\sum_{p\in P}[q_0/p]=x\); the slots number \(|P|+|T|=\omega(\beta)+\omega(\theta)\); and the reverse bits follow by reciprocity: \([y/r]=[r/y]\) for the glue slots \(r\equiv1\pmod4\) and \([y/q_0]=[q_0/y]+\lambda_y\) for every odd prime \(y\ne q_0\).

The prime \(q_0\) breaks the symmetry and forms the base configuration with the glued prime of \(\beta\); the \(r_p\) glue the primes of \(\beta\) into one virtual prime; the \(r_\ell\) hang the primes of \(\theta\) on \(q_0\). The condition \([q_0/\ell]=0\) is never used by the proof.

ZInQ.RouteK.Slots · 38 lines
structure Slots (β θ : ℤ) (p₀ : ℕ) where
  /-- The symmetry-breaking slot `q₀`. -/
  q₀ : ℕ
  /-- The glue slots `r_p`, `p ∈ P ∖ {p₀}`. -/
  rP : ℕ → ℕ
  /-- The glue slots `r_ℓ`, `ℓ ∈ T`. -/
  rT : ℕ → ℕ
  q₀_prime : q₀.Prime
  q₀_mod_eight : q₀ % 8 = 3
  q₀_not_dvd : ¬ (q₀ : ℤ) ∣ 2 * β * θ
  q₀_sym_P : ∀ p ∈ primesOf β \ {p₀}, legBit p q₀ = 1 + lamBit p * (signBit β + 1)
  q₀_sym_p₀ : legBit p₀ q₀ =
    (signBit β + 1) + ∑ p ∈ primesOf β \ {p₀}, (1 + lamBit p * (signBit β + 1))
  q₀_sym_T : ∀ ℓ ∈ primesOf θ, legBit ℓ q₀ = 0
  rP_prime : ∀ p ∈ primesOf β \ {p₀}, (rP p).Prime
  rP_mod_eight : ∀ p ∈ primesOf β \ {p₀}, rP p % 8 = 1
  rP_not_dvd : ∀ p ∈ primesOf β \ {p₀}, ¬ (rP p : ℤ) ∣ 2 * β * θ
  rP_ne_q₀ : ∀ p ∈ primesOf β \ {p₀}, rP p ≠ q₀
  rP_injOn : Set.InjOn rP ↑(primesOf β \ {p₀})
  rP_sym_self : ∀ p ∈ primesOf β \ {p₀}, legBit p (rP p) = 1
  rP_sym_p₀ : ∀ p ∈ primesOf β \ {p₀}, legBit p₀ (rP p) = 1
  rP_sym_P : ∀ p ∈ primesOf β \ {p₀}, ∀ y ∈ primesOf β, y ≠ p → y ≠ p₀ → legBit y (rP p) = 0
  rP_sym_T : ∀ p ∈ primesOf β \ {p₀}, ∀ ℓ ∈ primesOf θ, legBit ℓ (rP p) = 0
  rP_sym_q₀ : ∀ p ∈ primesOf β \ {p₀}, legBit q₀ (rP p) = 0
  rP_sym_rP : ∀ p ∈ primesOf β \ {p₀}, ∀ p' ∈ primesOf β \ {p₀}, p' ≠ p →
    legBit (rP p') (rP p) = 0
  rT_prime : ∀ ℓ ∈ primesOf θ, (rT ℓ).Prime
  rT_mod_eight : ∀ ℓ ∈ primesOf θ, rT ℓ % 8 = 1
  rT_not_dvd : ∀ ℓ ∈ primesOf θ, ¬ (rT ℓ : ℤ) ∣ 2 * β * θ
  rT_ne_q₀ : ∀ ℓ ∈ primesOf θ, rT ℓ ≠ q₀
  rT_ne_rP : ∀ ℓ ∈ primesOf θ, ∀ p ∈ primesOf β \ {p₀}, rT ℓ ≠ rP p
  rT_injOn : Set.InjOn rT ↑(primesOf θ)
  rT_sym_self : ∀ ℓ ∈ primesOf θ, legBit ℓ (rT ℓ) = 1
  rT_sym_q₀ : ∀ ℓ ∈ primesOf θ, legBit q₀ (rT ℓ) = 1
  rT_sym_P : ∀ ℓ ∈ primesOf θ, ∀ p ∈ primesOf β, legBit p (rT ℓ) = 0
  rT_sym_T : ∀ ℓ ∈ primesOf θ, ∀ ℓ' ∈ primesOf θ, ℓ' ≠ ℓ → legBit ℓ' (rT ℓ) = 0
  rT_sym_rP : ∀ ℓ ∈ primesOf θ, ∀ p ∈ primesOf β \ {p₀}, legBit (rP p) (rT ℓ) = 0
  rT_sym_rT : ∀ ℓ ∈ primesOf θ, ∀ ℓ' ∈ primesOf θ, ℓ' ≠ ℓ → legBit (rT ℓ') (rT ℓ) = 0
theorem sum_q₀_sym (hp₀ : p₀ ∈ primesOf β) :
    ∑ p ∈ primesOf β, legBit p D.q₀ = signBit β + 1
theorem card_primes (hp₀ : p₀ ∈ primesOf β) :
    D.primes.card = (primesOf β).card + (primesOf θ).card
Sources
Uses 2 · Used by 9

TheoremThe slots exist#✓

Let \(\beta,\theta\) be odd coprime integers and \(p_0\in P(\beta)\). Then slot data for \(\beta,\theta,p_0\) exist: primes \(q_0\), \(r_p\) (\(p\in P(\beta)\setminus\{p_0\}\)) and \(r_\ell\) (\(\ell\in P(\theta)\)) satisfying the slot conditions.

For an admissible \(B\) these hypotheses hold: by the multiplier lemma there is a signed divisor \(m\) of \(2730\) with \(\beta=\mathrm{sqf}(mB)\) odd and \(|\beta|\equiv7\pmod8\), so \(P(\beta)\ne\emptyset\), and \(\theta=\mathrm{sqf}(m(m-B))\) is odd and coprime to \(\beta\) by (θ1) and (θ2); so the slots exist for every \(p_0\in P(\beta)\).

Proof sketch. Choose \(q_0\), then the \(r_p\) one after the other, then the \(r_\ell\) one after the other, each by the slot lemma: each condition fixes the class modulo \(8\) and the residue bit modulo finitely many odd primes already fixed, and the new prime avoids all primes already used and the primes of \(2\beta\theta\). The conditions \([r/r']=0\) between two glue slots, imposed against the earlier one only, hold in both directions by reciprocity, since both are \(\equiv1\pmod4\).

theorem exists_slots {β θ : ℤ} (hβ : Odd β) (hθ : Odd θ) (hcop : IsCoprime β θ) {p₀ : ℕ}
    (hp₀ : p₀ ∈ primesOf β) : Nonempty (Slots β θ p₀)
theorem exists_slots_of_admissible {B : ℚ} (hB : Admissible B) {m : ℤ} (hm : m ∣ 2730)
    (hβ : Odd (betaOf B m)) {p₀ : ℕ} (hp₀ : p₀ ∈ primesOf (betaOf B m)) :
    Nonempty (Slots (betaOf B m) (thetaOf B m) p₀)
theorem exists_multiplier_and_slots {B : ℚ} (hB : Admissible B) :
    ∃ m : ℤ, m ∣ 2730 ∧ Odd (betaOf B m) ∧ (betaOf B m).natAbs % 8 = 7 ∧
      (primesOf (betaOf B m)).Nonempty ∧
      ∀ p₀ ∈ primesOf (betaOf B m), Nonempty (Slots (betaOf B m) (thetaOf B m) p₀)
Sources
Uses 6 · Used by 5

The descent lemma

With \(n=|\beta|q_0\prod r_p\prod r_\ell\), the partner and gluing lemmas reduce the configurations of \(|n|\) and \(|n\theta|\) to the base configuration, and the class \(\beta\) survives every step.

TheoremThe realization: both curves reduce to the base configuration#✓

Partly removed from the Lean development. Some Lean declarations of this page were removed from this fork's main with the congruent-number route (fork issue #77; they are at the tag route-k-final). The page belongs to the congruent-number route; Elliot's route is the other route to the same theorem.

Let \(\beta,\theta\) be integers such that \(\beta\) is odd and squarefree with \(|\beta|\equiv7\pmod8\); \(\theta>0\) is squarefree with \(\theta\equiv1\pmod8\); \(\beta\) and \(\theta\) are coprime; \([\beta/\ell]=0\) for every prime \(\ell\mid\theta\); and \([\theta/p]=0\) for every prime \(p\mid\beta\). Let \(p_0\in P(\beta)\), let \(q_0\), \(r_p\) (\(p\in G=P(\beta)\setminus\{p_0\}\)) and \(r_\ell\) (\(\ell\in T=P(\theta)\)) satisfy the slot conditions, and put $\(d_1=|\beta|\,q_0\prod_{p\in G}r_p\prod_{\ell\in T}r_\ell,\qquad d_2=d_1\theta .\)$ Then \(d_1\) and \(d_2\) are squarefree, \(d_1\equiv5\pmod8\), \(\beta\mid d_1\), and both \((d_1,\beta)\) and \((d_2,\beta)\) carry Selmer certificates: \(\Sigma(\mathcal C_{d_1})\) and \(\Sigma(\mathcal C_{d_2})\) have exactly \(8\) solutions each, and each has a solution with first coordinate the class of \(\beta\). (So \(d_2\equiv5\pmod8\) too.)

The hypotheses on \(\beta,\theta\) are those that the multiplier lemma and (θ1)–(θ4) give for an admissible input, in residue bits.

Proof sketch. Both numbers are products of distinct odd primes, so their configurations are those of the families of their primes, and a solution of the family's system with first coordinate \((s(\beta),0,[\,\cdot\mid\beta])\) is a certificate for the product. Let \(s=s(\beta)\) and \(x=s+1\).

The first curve (\(d_1\), on \(P\cup\{q_0\}\cup R_P\cup R_T\)). 1. Each \(r_\ell\) has exactly one nonzero bit inside this set, at its partner \(q_0\); the partner lemma removes all of them and identifies \(\Sigma(\mathcal C_{d_1})\) with \(\Sigma(\mathcal C_\Sigma)\), \(\mathcal C_\Sigma\) the configuration on \(P\cup\{q_0\}\cup R_P\). 2. The gluing lemma applies to \(\mathcal C_\Sigma\) with \(g=p_0\), \(G=P\setminus\{p_0\}\), glue primes \(r_p\) and \(S'=\{q_0\}\). The glued configuration lives on \(\{p^*,q_0\}\) with \(c_{p^*}=|\beta|\bmod8=7\), \(c_{q_0}=3\) and \([q_0/p^*]=\sum_{p\in P}[q_0/p]=x\). 3. By the base configuration lemma it has \(8\) solutions; hence so do \(\Sigma(\mathcal C_\Sigma)\) and \(\Sigma(\mathcal C_{d_1})\). 4. Lift the solution \(\sigma_0\) with \(a_0=s\): through the gluing lemma, \(u_P=\mathbf 1_P\), \(u_{q_0}=0\), and by (2.1) \(u_{r_p}=[q_0/p]+1+\lambda_px=0\) by the choice of \([q_0/p]\); through the partner lemma, \(u_{r_\ell}=u_{q_0}=0\). The first coordinate is \((s,0,\mathbf 1_P)\), the class of \(\beta\).

The second curve (\(d_2\), on \(P\cup R_P\cup\{q_0\}\cup T\cup R_T\)). 5. The gluing lemma applies with \(g=q_0\), \(G=T\), glue primes \(r_\ell\) and \(S'=P\cup R_P\). The glued vertex has class \(q_0\theta\equiv3\pmod8\) by (θ1). For \(p\in P\), \(\sum_{\ell\in T}[\ell/p]=[\theta/p]=0\), because \(\theta=\prod_{\ell\in T}\ell\); and \(\sum_{\ell\in T}[p/\ell]=[\theta/p]+\lambda_p\sum_{\ell\in T}\lambda_\ell=0\) by reciprocity prime by prime, since \(\sum_\ell\lambda_\ell=\lambda(\theta)=0\). The bits between \(R_P\) and \(T\) vanish by construction. So the glued configuration is \(\mathcal C_\Sigma\) with \(q_0^*\) in place of \(q_0\), and \(\Sigma(\mathcal C_{d_2})\) has \(8\) solutions by steps 1–3. 6. Lift the solution of step 4 through this gluing: \(u_T=u_{q_0}=0\), \(v_{q_0}=s+x+1=0\), and by (2.1), for \(\ell\in T\), \(u_{r_\ell}=\sum_{p\in P}[p/\ell]+\lambda_\ell s=[|\beta|/\ell]+\lambda_\ell s =([\beta/\ell]+s\lambda_\ell)+s\lambda_\ell=0\), using \([\beta/\ell]=0\). The first coordinate is again the class of \(\beta\).

theorem selmerCertified_of_primeCfg {κ : Type*} [Fintype κ] [DecidableEq κ] (f : κ → ℕ)
    (hf : Function.Injective f) (hp : ∀ k, (f k).Prime ∧ f k ≠ 2) (a : ℤ)
    (hcard : (primeCfg f hf hp).sols.card = 8) {σ : Unknowns κ}
    (hσ : σ ∈ (primeCfg f hf hp).sols) (ha0 : σ.a0 = signBit a) (ha1 : σ.a1 = 0)
    (hu : ∀ k, σ.u k = if (f k : ℤ) ∣ a then 1 else 0) :
    SelmerCertified (∏ k, f k) a
Lean

Removed from this fork's main with the congruent-number route and kept at the tag route-k-final: ZInQ.RouteK.Slots.selmerCertified_d₁, ZInQ.RouteK.Slots.selmerCertified_d₂, ZInQ.RouteK.Inputs, ZInQ.RouteK.Slots.d₁, ZInQ.RouteK.Slots.d₂, ZInQ.RouteK.Slots.d₁_eq', ZInQ.RouteK.Slots.d₂_eq, ZInQ.RouteK.Slots.squarefree_d₁, ZInQ.RouteK.Slots.squarefree_d₂, ZInQ.RouteK.Slots.d₁_mod, ZInQ.RouteK.Slots.β_dvd_d₁.

Sources
Uses 6 · Used by 8

TheoremThe descent lemma#○

The congruent-number route. This page belongs to the congruent-number route to pole completeness, through Tian–Yuan–Zhang and Gross–Zagier. Elliot's route is the other route to the same theorem. This page's Lean declarations are not on this fork's main (fork issue #77); the route's Lean is kept at the tag route-k-final and pinned upstream in elliotglazer/diophantine-z-q.

For every admissible \(B\) there are a signed divisor \(m\) of \(2730\) and an integer \(n\) such that, with \(\beta=\mathrm{sqf}(mB)\) and \(\theta=\mathrm{sqf}(m(m-B))\):

  • \(\beta\mid n\), \(|n|\equiv5\pmod8\) and \(|\beta|\equiv7\pmod8\);
  • \(n\) and \(n\theta\) are squarefree, and \(|n\theta|\equiv5\pmod8\);
  • \((|n|,\beta)\) and \((|n\theta|,\beta)\) carry Selmer certificates: the systems \(\Sigma(\mathcal C_{|n|})\) and \(\Sigma(\mathcal C_{|n\theta|})\) have exactly \(8\) solutions each, and each has a solution with first coordinate the class of \(\beta\).

Through Proposition 0 this says that \(C_n\) and \(C_{n\theta}\) have 2-Selmer groups of dimension \(3\) in which \(\beta\) is a first Kummer coordinate. The construction uses \(\omega(\beta)+\omega(\theta)\) auxiliary primes.

Along the way: for admissible \(B\), a signed divisor \(m\) of \(2730\) with \(\beta\) odd and \(|\beta|\equiv7\pmod8\), and a prime \(p_0\) dividing \(\beta\), the triple \(\beta,\theta,p_0\) satisfies the hypotheses of the realization: \(\beta\) is squarefree, \(\theta>0\) is squarefree with \(\theta\equiv1\pmod8\), \(\beta\) and \(\theta\) are coprime, \([\beta/\ell]=0\) for every prime \(\ell\mid\theta\), and \([\theta/p]=0\) for every prime \(p\mid\beta\).

Proof sketch. By the multiplier lemma choose \(m\) with \(\beta\) odd and \(|\beta|\equiv7\pmod8\); then \(P(\beta)\ne\emptyset\), and by (θ1)–(θ4) the pair \(\beta,\theta\) satisfies the hypotheses of the realization (with \(\beta\), \(\theta\) squarefree as squarefree parts of nonzero rationals, and (θ3), (θ4) in residue bits). Fix \(p_0\in P(\beta)\), choose the slots and take \(n=d_1\). Then \(|n\theta|=d_1\theta=d_2\), and the realization gives every assertion; \(d_2\equiv5\cdot1\pmod8\).

Uses 7 · Used by 4

From points to pole completeness

Two points with abscissas in \(\beta\mathbb Q^{*2}\) on \(C_N\) and \(C_{N\theta}\) rescale to the witnesses of the pole polynomial. With CR₃ applied to the two certified curves this proves pole completeness, which the main theorem by the congruent-number route therefore does not assume. The proof applies CR₃ to these two curves only; the two-curves section proves pole completeness from positive rank on curves of the same kind: the two curves of some slot choice, for every triple \(\beta,\theta,p_0\) satisfying the hypotheses of the realization (CR₃^DL,Rk), or, for each admissible input, for some multiplier, prime \(p_0\mid\beta\) and slot choice (CR₃^DL,Adm,Rk).

TheoremPoints on two congruent number curves give pole solubility#○

The congruent-number route. This page belongs to the congruent-number route to pole completeness, through Tian–Yuan–Zhang and Gross–Zagier. Elliot's route is the other route to the same theorem. This page's Lean declarations are not on this fork's main (fork issue #77); the route's Lean is kept at the tag route-k-final and pinned upstream in elliotglazer/diophantine-z-q.

Let \(B\) be a nonzero rational, \(m\ne B\) a signed divisor of \(2730\), \(\beta=\mathrm{sqf}(mB)\), \(\theta=\mathrm{sqf}(m(m-B))\), and \(N\) a nonzero rational. Suppose that \(C_N:y^2=x^3-N^2x\) has a rational point \((x_1,y_1)\) with \(x_1\ne0\) and \(x_1/\beta\) a square, and that \(C_{N\theta}:y^2=x^3-(N\theta)^2x\) has a rational point \((x_2,y_2)\) with \(x_2\ne0\) and \(x_2/\beta\) a square. Then \(\Phi(B)\) holds: the pole polynomial has a rational zero with input \(B\).

Proof sketch. Every signed divisor of \(2730\) is the multiplier \((1-2b_0)(1+b_1)(1+2b_2)(1+4b_3)(1+6b_4)(1+12b_5)\) for some bits \(b_i\in\{0,1\}\): the sign gives \(b_0\), and \(|m|=\gcd(|m|,2)\gcd(|m|,3)\gcd(|m|,5)\gcd(|m|,7)\gcd(|m|,13)\) gives the others. Then \(A=mB=\beta t^2\) and \(H=A(A-B^2)=B^2m(m-B)=\theta h^2\) with \(t,h\ne0\). Write \(x_1=\beta s^2\), \(x_2=\beta s'^2\). Scaling the first point by \(\lambda=t/s\) gives the point \((A,\lambda^3y_1)\) on \(C_e\) with \(e=N\lambda^2\), so \(r_1=\lambda^3y_1\) satisfies \(r_1^2=A(A-e)(A+e)\). Then \(eH=N\theta(\lambda h)^2\), and scaling the second point by \(\lambda h\) gives \((Az^2,(\lambda h)^3y_2)\) on \(C_{eH}\) with \(z=s'h/s\); so \(r_2=(\lambda h)^3y_2/z\) satisfies \((zr_2)^2=Az^2(Az^2-eH)(Az^2+eH)\), that is \(r_2^2=T_2\). Finally \(w=(eHz)^{-1}\), which exists because \(e,H,z\ne0\). Every summand of the pole polynomial vanishes.

Uses 2 · Used by 2

TheoremPole completeness from the certified rank hypothesis#○

The congruent-number route. This page belongs to the congruent-number route to pole completeness, through Tian–Yuan–Zhang and Gross–Zagier. Elliot's route is the other route to the same theorem. This page's Lean declarations are not on this fork's main (fork issue #77); the route's Lean is kept at the tag route-k-final and pinned upstream in elliotglazer/diophantine-z-q.

Assume the certified rank hypothesis CR₃. Then pole completeness holds: every admissible \(B\) satisfies \(\Phi(B)\), for the pole polynomial with the congruent number curves \(y^2=x(x-\ell)(x+\ell)\).

Proof sketch. Let \(B\) be admissible. The descent lemma gives \(m\) and \(n\). Apply CR₃ to \(d=|n|\) and to \(d=|n\theta|\), with \(a=\beta\) in both cases: \(d\) is squarefree with \(d\equiv5\pmod8\), \(\beta\) is squarefree (a squarefree part of the nonzero rational \(mB\)), divides \(n\) and \(n\theta\), has \(|\beta|\equiv7\pmod8\), and the Selmer certificates are the remaining hypotheses. This gives rational points with nonzero abscissas in \(\beta\mathbb Q^{*2}\) on \(C_{|n|}\) and on \(C_{|n\theta|}\), which is \(C_{N\theta}\) for \(N=|n|\) since only \(d^2\) enters. Since \(0<B<1/2\), the integer \(m\) is not \(B\), so the lemma on points and pole solubility gives \(\Phi(B)\).

Sources
Uses 4 · Used by 1

The dependency explorer needs JavaScript and its graph data.

Download the complete graph data.