CM abelian varieties, odd sign functions, embedding lines and rank-one CM Hodge structures
DefinitionCMHodgeBasicThis definition layer fixes the objects of the CM Hodge problem, following Section 1 (p. 1), Section 2.1 (p. 5) and Section 2.2 (pp. 6–7) of the source paper.
A polarized abelian -fold (in the lattice model of the WeilTypeAbelianVarieties bundle) is CM when its endomorphism algebra — the rational matrices commuting with the complex structure — contains a commutative semisimple -subalgebra of dimension ; the point is CM by convention. For a Galois CM field with chosen embedding , complex conjugation is characterized by acting as complex conjugation under every embedding, and an odd sign function satisfies .
The embedding line is the -eigenline of the -action on , and a rank-one CM structure realizes the weight-one Hodge structure as for a polarized -fold , , with one-dimensional embedding lines of type where and where (equation (2.2)).
The layer also implements the coefficient convention of Section 2.1: a class with -coefficients is algebraic when it lies in the -span of rational cycle classes.
Formalization Note. Semisimplicity of a finite-dimensional commutative -algebra is encoded as reducedness (no nonzero nilpotents), an equivalent condition. The Galois hypothesis is encoded by requiring every embedding of into to be a Galois translate of the chosen one. Any realization of is admitted as ; the paper's Riemann-criterion construction supplies one.
Note on notation. The source labels embedding lines by ; since λ is a reserved token in Lean 4 (alternative spelling of fun), the Lean binder is named g — the paper's own notation for Galois elements in (2.3). This is a purely nominal change; the mathematics is unaltered.
import Mathlib
import Definitions.Def_HodgeConjecture
import Definitions.Def_WeilTypeAbelianVarieties
/-!
# CM abelian varieties and rank-one CM Hodge structures
Foundation layer for the mission formalizing OpenAI, *The rational Hodge conjecture for CM
abelian varieties* (September 30, 2026), Section 1 (p. 1), Section 2.1 (p. 5) and
Section 2.2 (pp. 6-7).
* `IsCM` is the paper's CM condition: `End(A) ⊗ ℚ` contains a commutative semisimple
`ℚ`-algebra of dimension `2 dim A`; the point is included by convention. In the lattice
model of `WeilTypeCycles`, `End(A) ⊗ ℚ` is the algebra of rational matrices commuting with
the complex structure `J`. For finite-dimensional commutative `ℚ`-algebras, semisimplicity
is equivalent to reducedness, which is how it is encoded here.
* `IsComplexConjugation` characterizes the complex conjugation `c` of a Galois CM field
`E ⊂ ℂ`: it acts as complex conjugation under every embedding of `E` into `ℂ`.
`IsGaloisEmbedding` says the chosen embedding realizes `E` as a Galois extension of `ℚ`
(every embedding is a Galois translate of the chosen one).
* `OddSign` is an odd sign function `v : G_E → {1, -1}`, `v(cτ) = -v(τ)`.
* `embeddingLine` is the line `U(v)_λ` of the weight-one Hodge structure `U(v)`: the
`λ`-eigenline of the `E`-action on `H^1` (acting by pullback on alternating forms).
* `RankOneCM` realizes `U(v) = H^1(B(v), ℚ)` (equation (2.2)): a polarized `s`-fold with
`E`-action by Hodge endomorphisms, one-dimensional embedding lines, and types prescribed
by `v`. Any such realization is admitted; the paper's Riemann-criterion construction
provides one.
* `IsAlgebraicClassComplex` / `IsAlgebraicTorusClassComplex` implement the scalar-extension
convention of Section 2.1: a class with `ℂ`-coefficients is algebraic when it lies in the
`ℂ`-span of rational cycle classes.
-/
open HodgeConjecture WeilTypeCycles
namespace CMHodge
/-- The automorphism `c` is complex conjugation on the CM field `E` embedded by `ι`:
it has order two and acts as complex conjugation under every embedding of `E` into `ℂ`. -/
def IsComplexConjugation {E : Type} [Field E] [NumberField E] (ι : E →+* ℂ)
(c : E ≃ₐ[ℚ] E) : Prop :=
c ≠ AlgEquiv.refl ∧ c.trans c = AlgEquiv.refl ∧
∀ (τ : E →+* ℂ) (x : E), τ (c x) = starRingEnd ℂ (τ x)
/-- The embedding `ι` realizes `E` as a Galois extension of `ℚ` inside `ℂ`: every
`ℚ`-embedding of `E` into `ℂ` is a Galois translate of `ι`. -/
def IsGaloisEmbedding {E : Type} [Field E] [NumberField E] (ι : E →+* ℂ) : Prop :=
∀ τ : E →+* ℂ, ∃ g : E ≃ₐ[ℚ] E, ∀ x : E, τ x = ι (g x)
/-- An odd sign function on `G_E`: values in `{1, -1}` and `v(cτ) = -v(τ)`. -/
def OddSign {E : Type} [Field E] [NumberField E] (c : E ≃ₐ[ℚ] E)
(v : (E ≃ₐ[ℚ] E) → ℤ) : Prop :=
(∀ τ, v τ = 1 ∨ v τ = -1) ∧ ∀ τ, v (c.trans τ) = -v τ
/-- A polarized abelian `g`-fold is CM: its endomorphism algebra (rational matrices commuting
with the complex structure) contains a commutative semisimple `ℚ`-subalgebra of dimension
`2g`. The point `g = 0` is CM by convention. Semisimplicity is encoded as reducedness,
equivalent for finite-dimensional commutative `ℚ`-algebras. -/
def IsCM {g : ℕ} (A : PolAbVar g) : Prop :=
g = 0 ∨ ∃ S : Subalgebra ℚ (Matrix (Fin (2 * g)) (Fin (2 * g)) ℚ),
(∀ x ∈ S, qMatR x * A.J = A.J * qMatR x) ∧
(∀ x ∈ S, ∀ y ∈ S, x * y = y * x) ∧
(∀ x ∈ S, (∃ n : ℕ, x ^ n = 0) → x = 0) ∧
Module.finrank ℚ S = 2 * g
/-- A de Rham class is algebraic with complex coefficients: a `ℂ`-linear combination of
cycle classes of irreducible codimension-`p` subvarieties (Section 2.1 convention). -/
def IsAlgebraicClassComplex {g N : ℕ} {A : PolAbVar g} (P : ProjModel g A N) (p : ℕ)
(c : P.X.Cohomology (2 * p)) : Prop :=
∃ (m : ℕ) (Z : Fin m → ProjVariety N) (a : Fin m → ℂ)
(cl : Fin m → P.X.Cohomology (2 * p)),
(∀ i, (Z i).cone ⊆ P.X.cone ∧ (Z i).IsIrreducible ∧ (Z i).dim = g - p ∧
P.X.IsCycleClass (Z i) g p (cl i)) ∧
c = ∑ i, a i • cl i
/-- A torus class with complex coefficients is algebraic in a projective realization when it
is represented by an algebraic de Rham class (Section 2.1 convention). -/
def IsAlgebraicTorusClassComplex {g N : ℕ} {A : PolAbVar g} (P : ProjModel g A N) (p : ℕ)
(w : Coh g (2 * p)) : Prop :=
∃ c : P.X.Cohomology (2 * p), RepresentsClass P c w ∧ IsAlgebraicClassComplex P p c
/-- The embedding line `U(v)_λ`: the `λ`-eigenline of the `E`-action on `H^1`, where `a ∈ E`
acts on forms by pullback along its action on `H_1`. -/
def embeddingLine (E : Type) [Field E] [NumberField E] {s : ℕ}
(act : E →+* Matrix (Fin (2 * s)) (Fin (2 * s)) ℚ) (ι : E →+* ℂ)
(g : E ≃ₐ[ℚ] E) : Submodule ℂ (Coh s 1) where
carrier := {w | ∀ (a : E) (x : LatC s),
w (fun _ => (qMatC (act a)).mulVec x) = ι (g a) * w (fun _ => x)}
zero_mem' := by simp
add_mem' := by
intro w₁ w₂ h₁ h₂ a x
simp only [AlternatingMap.add_apply, h₁ a x, h₂ a x]
ring
smul_mem' := by
intro z w hw a x
simp only [AlternatingMap.smul_apply, smul_eq_mul, hw a x]
ring
/-- A rank-one CM Hodge structure of type `v`: a polarized abelian `s`-fold `B` with
`E`-action on `H_1(B, ℚ)` by Hodge endomorphisms whose embedding lines are one-dimensional
of type `(1,0)` where `v = 1` and `(0,1)` where `v = -1`; equivalently `H^1(B, ℚ) ≃ U(v)`
as an `E`-Hodge structure (equation (2.2)). -/
structure RankOneCM (E : Type) [Field E] [NumberField E] (ι : E →+* ℂ)
(v : (E ≃ₐ[ℚ] E) → ℤ) (s : ℕ) where
/-- The underlying polarized abelian `s`-fold `B(v)`. -/
B : PolAbVar s
/-- The action of `E` on `H_1(B, ℚ)`. -/
act : E →+* Matrix (Fin (2 * s)) (Fin (2 * s)) ℚ
/-- `dim B = s = [F : ℚ]`, half the degree of `E`. -/
dim_eq : 2 * s = Module.finrank ℚ E
/-- The `E`-action consists of Hodge endomorphisms: it commutes with the complex structure. -/
endo : ∀ a : E, qMatR (act a) * B.J = B.J * qMatR (act a)
/-- Every embedding line is one-dimensional. -/
line_dim : ∀ g : E ≃ₐ[ℚ] E, Module.finrank ℂ (embeddingLine E act ι g) = 1
/-- The line labeled `λ` has type `(1,0)` when `v(λ) = 1`. -/
type_plus : ∀ g : E ≃ₐ[ℚ] E, v g = 1 →
∀ w ∈ embeddingLine E act ι g, HasType B.J 1 0 w
/-- The line labeled `λ` has type `(0,1)` when `v(λ) = -1`. -/
type_minus : ∀ g : E ≃ₐ[ℚ] E, v g = -1 →
∀ w ∈ embeddingLine E act ι g, HasType B.J 0 1 w
/-- A degree-one torus class has algebraic Betti coefficients: its values on rational
vectors are algebraic numbers (membership in `U(v)_λ ⊂ U(v)_{ℚ̄}`). -/
def HasAlgebraicCoefficients {s : ℕ} (w : Coh s 1) : Prop :=
∀ x : LatQ s, IsAlgebraic ℚ (w (fun _ => qToC x))
end CMHodge