Twisted critical values of a modular elliptic curve
DefinitionKN_HorizontalPadicLDefines modularity for one rational elliptic curve and counts primitive algebraic Dirichlet characters for which the MTT Mellin-integral critical value is nonzero. The count uses MTT.criticalLValue directly and never constructs the twist as a modular form.
import Definitions.Def_MTT_Arithmetic
import Mathlib.AlgebraicGeometry.EllipticCurve.LFunction
import Mathlib.Analysis.SpecialFunctions.Log.Basic
import Mathlib.Analysis.SpecialFunctions.Pow.Real
set_option autoImplicit false
namespace HorizontalPadicL
/-- Quantitative lower-bound notation used in Theorem 1.1. -/
def HasLogPowerLowerBound (count : ℝ → ℕ) (α : ℝ) : Prop :=
∃ c X₀ : ℝ, 0 < c ∧ 1 ≤ X₀ ∧
∀ X : ℝ, X₀ ≤ X → c * X / (Real.log X) ^ (1 - α) ≤ count X
/-- An algebraic Dirichlet character together with its level. -/
abbrev DirichletCharacterWithLevel :=
Σ N : {N : ℕ // 0 < N}, DirichletCharacter MTT.Qbar N.1
/-- Weight-two cusp forms for `Γ₀(N)`, with positivity supplied explicitly. -/
abbrev CuspFormAtLevel (N : ℕ) (hN : 0 < N) :=
let _ : NeZero N := ⟨Nat.ne_of_gt hN⟩
CuspForm (CongruenceSubgroup.Gamma0 N : Subgroup (GL (Fin 2) ℝ)) 2
/-- A weight-two cusp form of level `N` whose q-expansion coefficients are the
arithmetic L-series coefficients of `E`. -/
structure ModularFormAtLevel (E : WeierstrassCurve ℚ) (N : ℕ) where
level_pos : 0 < N
form : CuspFormAtLevel N level_pos
coeff_eq : ∀ n : ℕ, (E.LFunction n : ℂ) =
(UpperHalfPlane.qExpansion 1 form).coeff n
/-- A rational elliptic curve is modular if it has an associated weight-two cusp form
at some positive level. -/
def IsModular (E : WeierstrassCurve ℚ) : Prop :=
∃ N : ℕ, Nonempty (ModularFormAtLevel E N)
/-- The least level of a modular form associated with `E`. -/
noncomputable def modularConductor (E : WeierstrassCurve ℚ) (hE : IsModular E) : ℕ := by
classical
exact Nat.find hE
/-- A chosen modular form associated with `E` at its least level. -/
noncomputable def modularFormAtConductor (E : WeierstrassCurve ℚ) (hE : IsModular E) :
ModularFormAtLevel E (modularConductor E hE) := by
classical
exact Classical.choice (Nat.find_spec hE)
lemma modularConductor_pos (E : WeierstrassCurve ℚ) (hE : IsModular E) :
0 < modularConductor E hE :=
(modularFormAtConductor E hE).level_pos
/-- Number of primitive exact-order characters of conductor at most `X`, coprime to
`N(E)`, for which the twisted critical value defined by the MTT Mellin integral is
nonzero. No twisted modular form is constructed or chosen. -/
noncomputable def nonvanishingCount (ι : MTT.Qbar →+* ℂ)
(E : WeierstrassCurve ℚ) (hE : IsModular E) (d : ℕ) (X : ℝ) : ℕ :=
let P := modularFormAtConductor E hE
Set.ncard {χ : DirichletCharacterWithLevel |
χ.2.IsPrimitive ∧ orderOf χ.2 = d ∧ (χ.2.conductor : ℝ) ≤ X ∧
Nat.Coprime (modularConductor E hE) χ.1.1 ∧
@MTT.criticalLValue ι P.form χ.1.1 ⟨Nat.ne_of_gt χ.1.2⟩ χ.2 0 ≠ 0}
end HorizontalPadicL
Read-back
What the Lean code literally says, in plain math · gpt-6-astra
HasLogPowerLowerBound count α is the proposition that there exist real numbers and such that , , and, for every real , is at most count X, with the natural number count X coerced to a real number. The exponent is the real number . The definition places no restriction on and asserts only the existence of some admissible constants; it does not specify them or assert a matching upper bound.
DirichletCharacterWithLevel abbreviates a dependent pair consisting of a positive natural number , represented as an element of the subtype {N : ℕ // 0 < N}, together with a Dirichlet character valued in MTT.Qbar whose modulus is the underlying natural number . Thus the stored natural number is a declared level or modulus and is required to be positive, but the type itself does not say that it is the character’s conductor, that the character is primitive, or that it has any prescribed order.
CuspFormAtLevel N hN abbreviates the type of weight-two cusp forms for the subgroup CongruenceSubgroup.Gamma0 N of . The proof hN : 0 < N is used to install a NeZero N instance required by the cusp-form construction. This abbreviation imposes no normalization, eigenform, newform, coefficient-field, or arithmeticity condition.
ModularFormAtLevel E N is a structure containing three pieces of data: a proof that ; a weight-two cusp form for , using that positivity proof; and a proof that, for every natural number , the complex number obtained from the -th arithmetic LFunction coefficient of the rational Weierstrass curve equals the -th coefficient of the -expansion UpperHalfPlane.qExpansion 1 form. This asserts coefficient-by-coefficient equality for that particular -expansion convention. It does not assert equality of analytic -functions, nor does the structure require the form to be normalized, cuspidal-new, an eigenform, or unique beyond what is already contained in the ambient CuspForm type.
IsModular E is the proposition that there exists a natural number for which ModularFormAtLevel E N is nonempty. Expanded, it says that some is positive and supports a weight-two cusp form for whose -th -expansion coefficient equals the complexified -th arithmetic LFunction coefficient of for every natural number . The witness form is hidden inside Nonempty, so this declaration is only an existence assertion and does not choose a level or a form.
modularConductor E hE is a noncomputably defined natural number obtained by Nat.find from the existence proof hE : IsModular E. It is therefore the least natural number for which ModularFormAtLevel E N is nonempty, equivalently the least positive level admitting a weight-two cusp form with the required coefficient equalities. Despite its name, the definition does not identify this number with an independently defined arithmetic conductor of .
modularFormAtConductor E hE is a noncomputably chosen inhabitant of ModularFormAtLevel E (modularConductor E hE). It uses classical choice on the existence statement supplied by Nat.find_spec hE, so it selects one weight-two cusp form at the least admissible level together with its positivity and coefficient-equality proofs. The declaration provides no uniqueness or canonical-choice property for the selected form.
modularConductor_pos E hE asserts that modularConductor E hE is strictly positive. Its proof simply reads the level_pos field from the chosen modularFormAtConductor E hE; it adds no further characterization of that level.
nonvanishingCount ι E hE d X is the noncomputable set cardinality of all dependent pairs consisting of a positive natural level and an MTT.Qbar-valued Dirichlet character modulo such that: the character is primitive; its group-theoretic order orderOf χ.2 is exactly the natural number ; its conductor, coerced to a real number, is at most the real number ; the least modular level modularConductor E hE is coprime to the stored modulus ; and the MTT critical value at the final argument , formed using the ring homomorphism ι : MTT.Qbar →+* ℂ, the cusp form contained in the classically chosen modularFormAtConductor E hE, the modulus with its nonzero instance obtained from positivity, and the character , is nonzero. The definition does not construct or choose a twisted modular form, does not require ι to be injective, places no positivity condition on or , and tests coprimality against the character’s stored modulus rather than explicitly against χ.2.conductor. It uses Set.ncard without supplying a finiteness proof; consequently the declaration itself does not assert that the qualifying set is finite, and Set.ncard uses its built-in value for an infinite set rather than making finiteness part of the result.
Confirmed by the mission captain (proposal self-audit).