/- From Prove2Me, definition `BSD` (https://prove2.me/definitions/61113937-1181-472c-b70b-8db0651ba0b7). Apache-2.0 per Prove2Me's terms. -/ import Mathlib /-! A. Wiles, *The Birch and Swinnerton-Dyer Conjecture*, Clay Mathematics Institute Millennium Prize Problem description (2000), pp. 1–2. The two quantities compared by the conjecture, for an elliptic curve `W` over `ℚ` given by a Weierstrass equation: the rank `r` of the Mordell–Weil group `W(ℚ)`, and the analytic continuation of the Hasse–Weil L-series `L(W, s)`. The L-series itself is Mathlib's `WeierstrassCurve.LSeries`: the Dirichlet series `∑ aₙ n⁻ˢ` whose coefficients are those of the Euler product over all primes `p` of `(1 - aₚ p⁻ˢ + p¹⁻²ˢ)⁻¹` at primes of good reduction (`aₚ = p + 1 - #W̃(𝔽ₚ)`, computed on a model minimal at `p`), `(1 - p⁻ˢ)⁻¹` at split multiplicative primes, `(1 + p⁻ˢ)⁻¹` at non-split multiplicative primes and `1` at additive primes — the complete L-series `L*(C, s)` of Wiles' Remark 1. The Dirichlet series converges for `Re s > 3/2`; Mathlib's `LSeries` takes the junk value `0` where it does not converge. -/ namespace BSD open WeierstrassCurve /-- `Λ` is *the* L-function of `W`: an entire function `ℂ → ℂ` that agrees with the Hasse–Weil Dirichlet series `L(W, s)` on the half-plane `Re s > 3/2` on which the series converges. -/ structure IsLFunction (W : WeierstrassCurve ℚ) (Λ : ℂ → ℂ) : Prop where differentiable : Differentiable ℂ Λ eq_LSeries : ∀ s : ℂ, 3 / 2 < s.re → Λ s = W.LSeries s /-- The rank `r` of `W(ℚ)`: the rank of the abelian group of rational points of `W`, regarded as a `ℤ`-module (the `r` in `W(ℚ) ≃ ℤ^r ⊕ W(ℚ)_tors`). -/ noncomputable def rank (W : WeierstrassCurve ℚ) : ℕ := Module.finrank ℤ W.toAffine.Point end BSD