/- Copyright 2026 The Formal Conjectures Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -/ module public import FormalConjecturesUtil

The Hasse--Weil conjecture for elliptic curves

The $L$-series $L(E, s)$ of an elliptic curve $E$ over a number field converges absolutely on $\operatorname{Re} s > 3/2$ ([Tate1966], p. 416; [Gross2011], Lecture 2, §1). The Hasse--Weil conjecture predicts that it has an analytic continuation to the whole complex plane and satisfies a functional equation ([Tate1966], p. 416; [Gross2011], Conjecture 2.7, stated there for the completed $L$-function). Only the continuation is stated here. Over $\mathbb{Q}$ it follows from the modularity theorem.

[Wikipedia] states the conjecture for the Hasse--Weil zeta function and asks only for a meromorphic continuation, which is equivalent to a meromorphic continuation of $L(E, s)$. That weaker form is the one the Birch and Swinnerton-Dyer conjecture rests on, so it is recorded here as well. [Gross2011], Conjecture 2.10 takes it as a hypothesis, and only near $s = 1$. The formulation of the Birch and Swinnerton-Dyer conjecture in FormalConjectures/Millennium/BSD.lean instead asserts a global meromorphic continuation, so it implies exists_hasMeromorphicContinuation below.

References:

    Wikipedia

    [Tate1966] John Tate. "On the conjectures of Birch and Swinnerton-Dyer and a geometric analog." Seminaire Bourbaki, Vol. 9, Exp. No. 306 (1966), 415-440, numdam

    [Gross2011] Benedict H. Gross. "Lectures on the conjecture of Birch and Swinnerton-Dyer." Arithmetic of L-functions, IAS/Park City Math. Ser. 18, AMS (2011), 169-209, math.harvard.edu

@[expose] public sectionnamespace HasseWeilsection NumberFieldvariable {K : Type*} [Field K] [NumberField K] {E : WeierstrassCurve K}

The $L$-series of E has the meromorphic continuation L: L is meromorphic on $\mathbb{C}$ and agrees with E.LSeries on $\operatorname{Re} s > 3/2$, where the series converges absolutely.

def HasMeromorphicContinuation (E : WeierstrassCurve K) (L : ℂ → ℂ) : Prop := Meromorphic L ∧ ∀ s : ℂ, 3 / 2 < s.re → L s = E.LSeries s

The $L$-series of E has the analytic continuation L: L is analytic on $\mathbb{C}$ and agrees with E.LSeries on $\operatorname{Re} s > 3/2$, where the series converges absolutely.

def HasAnalyticContinuation (E : WeierstrassCurve K) (L : ℂ → ℂ) : Prop := (∀ z, AnalyticAt ℂ L z) ∧ ∀ s : ℂ, 3 / 2 < s.re → L s = E.LSeries s

An analytic continuation is a meromorphic continuation.

@[category API, AMS 11 14] theorem HasAnalyticContinuation.hasMeromorphicContinuation {L : ℂ → ℂ} (hL : HasAnalyticContinuation E L) : HasMeromorphicContinuation E L := ⟨fun z ↦ (hL.1 z).meromorphicAt, hL.2⟩open scoped Topology in

A meromorphic continuation is unique away from isolated points: two meromorphic continuations of the $L$-series of E agree on a punctured neighbourhood of every point. They may differ at isolated points, since Meromorphic does not constrain the value of a function at any single point.

K:Type u_1inst✝¹:Field Kinst✝:NumberField KE:WeierstrassCurve KL:ℂ → ℂL':ℂ → ℂhL:HasMeromorphicContinuation E LhL':HasMeromorphicContinuation E L'x:ℂh2:meromorphicOrderAt (L - L') 2 = ⊤⊢ L =ᶠ[𝓝[≠] x] L' K:Type u_1inst✝¹:Field Kinst✝:NumberField KE:WeierstrassCurve KL:ℂ → ℂL':ℂ → ℂhL:HasMeromorphicContinuation E LhL':HasMeromorphicContinuation E L'x:ℂh2:meromorphicOrderAt (L - L') 2 = ⊤key:meromorphicOrderAt (L - L') x = ⊤⊢ L =ᶠ[𝓝[≠] x] L' All goals completed! 🐙

The $L$-series of an elliptic curve over a number field has a meromorphic continuation to $\mathbb{C}$. This is the Hasse--Weil conjecture in the form stated in [Wikipedia], and a weak form of [Gross2011], Conjecture 2.7. It is also what the Birch and Swinnerton-Dyer conjecture rests on, as the hypothesis of [Gross2011], Conjecture 2.10.

@[category research open, AMS 11 14] theorem exists_hasMeromorphicContinuation (E : WeierstrassCurve K) [E.IsElliptic] : ∃ L, HasMeromorphicContinuation E L := K:Type u_1inst✝²:Field Kinst✝¹:NumberField KE:WeierstrassCurve Kinst✝:E.IsElliptic⊢ ∃ L, HasMeromorphicContinuation E L All goals completed! 🐙

The Hasse--Weil conjecture ([Tate1966], p. 416; [Gross2011], Conjecture 2.7): the $L$-series of an elliptic curve over a number field has an analytic continuation to $\mathbb{C}$.

@[category research open, AMS 11 14] theorem exists_hasAnalyticContinuation (E : WeierstrassCurve K) [E.IsElliptic] : ∃ L, HasAnalyticContinuation E L := K:Type u_1inst✝²:Field Kinst✝¹:NumberField KE:WeierstrassCurve Kinst✝:E.IsElliptic⊢ ∃ L, HasAnalyticContinuation E L All goals completed! 🐙end NumberField

The Hasse--Weil conjecture over $\mathbb{Q}$: the $L$-series of an elliptic curve over $\mathbb{Q}$ has an analytic continuation to $\mathbb{C}$. This follows from the modularity theorem, see [Wikipedia].

@[category research solved, AMS 11 14] theorem exists_hasAnalyticContinuation_rat (E : WeierstrassCurve ℚ) [E.IsElliptic] : ∃ L, HasAnalyticContinuation E L := E:WeierstrassCurve ℚinst✝:E.IsElliptic⊢ ∃ L, HasAnalyticContinuation E L All goals completed! 🐙end HasseWeil