Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Polarized abelian varieties of Weil type, Hodge–Weil classes, the discriminant, and algebraic classes via projective realizations

Definition
WeilTypeAbelianVarieties

by LG · Sep 12, 2026 · Mathlib 0df444a (Lean v4.33.1)

abelian-varietiesalgebraic-cyclesalgebraic-geometrycomplex-geometryhodge-theory

This bundle builds, from scratch, the objects needed to state the algebraicity of Weil classes on polarized abelian varieties of Weil type: complex tori with a polarization, their cohomology and Hodge types, complex multiplication of Weil type, the Hodge–Weil plane, the discriminant of the associated hermitian form, and — through a projective realization — the notion of an algebraic cohomology class. It is built on top of the platform's HodgeConjecture bundle, which supplies projective varieties over C\mathbb{C}C, their de Rham cohomology, Hodge classes and cycle classes in the sense of §1 of Deligne's Clay problem description.

Complex tori. A ggg-dimensional complex torus is presented through its first homology: the real vector space H1(A,R)=R2gH_1(A,\mathbb{R})=\mathbb{R}^{2g}H1​(A,R)=R2g with the lattice Z2g\mathbb{Z}^{2g}Z2g, a complex structure given by a real 2g×2g2g\times 2g2g×2g matrix JJJ with J2=−1J^2=-1J2=−1, and a polarization given by a rational alternating 2g×2g2g\times 2g2g×2g matrix EEE, i.e. ET=−EE^{\mathsf T}=-EET=−E, subject to the Riemann bilinear relations

E(Jx,Jy)=E(x,y)for all x,y,E(x,Jx)>0for all x≠0.E(Jx,Jy)=E(x,y)\quad\text{for all }x,y,\qquad E(x,Jx)>0\quad\text{for all }x\neq 0 .E(Jx,Jy)=E(x,y)for all x,y,E(x,Jx)>0for all x=0.

Here E(x,y)E(x,y)E(x,y) denotes xTEyx^{\mathsf T}EyxTEy. The polarization is taken rational rather than integral: this is the isogeny-invariant form of the Riemann relations, and a suitable integer multiple of EEE is a genuine ample class.

Cohomology and Hodge types. Cohomology is the exterior algebra of H1H^1H1: Hk(A,C)H^k(A,\mathbb{C})Hk(A,C) is realized as the space of alternating C\mathbb{C}C-multilinear forms in kkk arguments on H1(A,C)=C2gH_1(A,\mathbb{C})=\mathbb{C}^{2g}H1​(A,C)=C2g, which for a torus is exactly the space of translation-invariant kkk-forms. A class is rational, i.e. lies in Hk(A,Q)H^k(A,\mathbb{Q})Hk(A,Q), when all of its values on rational vectors are rational. The complex structure makes C\mathbb{C}C act on H1(A,C)H_1(A,\mathbb{C})H1​(A,C) by

z⋅v=(Re⁡z) v+(Im⁡z) Jv,z\cdot v=(\operatorname{Re}z)\,v+(\operatorname{Im}z)\,Jv ,z⋅v=(Rez)v+(Imz)Jv,

which is multiplication by zzz on the iii-eigenspace of JJJ and by zˉ\bar zzˉ on the (−i)(-i)(−i)-eigenspace; a class www has type (p,q)(p,q)(p,q) when w(z⋅v1,…,z⋅vk)=zpzˉ q w(v1,…,vk)w(z\cdot v_1,\dots,z\cdot v_k)=z^{p}\bar z^{\,q}\,w(v_1,\dots,v_k)w(z⋅v1​,…,z⋅vk​)=zpzˉqw(v1​,…,vk​) for all zzz and all vvv. A Hodge class of degree 2p2p2p is a rational class of type (p,p)(p,p)(p,p).

Weil type. Fix n,d≥1n,d\ge 1n,d≥1 and K=Q(−d)K=\mathbb{Q}(\sqrt{-d})K=Q(−d​). A polarized abelian 2n2n2n-fold of Weil type is a polarized abelian variety AAA of dimension 2n2n2n together with a rational matrix M=η(−d)M=\eta(\sqrt{-d})M=η(−d​) acting on H1(A,Q)H_1(A,\mathbb{Q})H1​(A,Q) with

M2=−d,MJ=JM,E(Mx,My)=d E(x,y),M^2=-d,\qquad MJ=JM,\qquad E(Mx,My)=d\,E(x,y),M2=−d,MJ=JM,E(Mx,My)=dE(x,y),

the last identity expressing that η(k)\eta(k)η(k) maps the polarization class hhh to Nm(k) h\mathrm{Nm}(k)\,hNm(k)h, and such that each of the two eigenspaces of MMM on H1(A,C)H_1(A,\mathbb{C})H1​(A,C), for the eigenvalues ±id\pm i\sqrt{d}±id​, meets the iii-eigenspace of JJJ in a subspace of complex dimension exactly nnn. This is Weil's condition, imposed symmetrically on both eigenspaces so that it does not depend on the convention chosen for H1,0H^{1,0}H1,0 versus H0,1H^{0,1}H0,1.

Hodge–Weil classes. Writing WWW and W‾\overline WW for the ±id\pm i\sqrt d±id​ eigenspaces of MMM on H1(A,C)H_1(A,\mathbb{C})H1​(A,C), the Hodge–Weil classes are the rational classes of degree 2n2n2n lying in ∧2nW⊕∧2nW‾\wedge^{2n}W\oplus\wedge^{2n}\overline W∧2nW⊕∧2nW, characterized as the rational degree-2n2n2n classes that vanish on every tuple of vectors containing at least one vector of WWW and at least one vector of W‾\overline WW.

The hermitian form and the discriminant. With KKK embedded in C\mathbb{C}C by −d↦id\sqrt{-d}\mapsto i\sqrt d−d​↦id​, the form

H(x,y)=E(Mx,y)+−d E(x,y)H(x,y)=E(Mx,y)+\sqrt{-d}\,E(x,y)H(x,y)=E(Mx,y)+−d​E(x,y)

is KKK-valued and hermitian on H1(A,Q)H_1(A,\mathbb{Q})H1​(A,Q), regarded as a KKK-vector space of dimension 2n2n2n through η\etaη. A KKK-basis is a family b1,…,b2nb_1,\dots,b_{2n}b1​,…,b2n​ such that b1,…,b2n,Mb1,…,Mb2nb_1,\dots,b_{2n},Mb_1,\dots,Mb_{2n}b1​,…,b2n​,Mb1​,…,Mb2n​ is a Q\mathbb{Q}Q-basis of H1(A,Q)H_1(A,\mathbb{Q})H1​(A,Q). The determinant of the Gram matrix (H(bi,bj))\big(H(b_i,b_j)\big)(H(bi​,bj​)) lies in Q×\mathbb{Q}^\timesQ×, and its class modulo norms from K×K^\timesK× is the discriminant. The bundle defines the predicate discriminant −1-1−1: there is a KKK-basis whose Gram determinant equals −(a2+dc2)-(a^2+dc^2)−(a2+dc2) for rationals a,ca,ca,c not both zero. Since a change of KKK-basis multiplies the determinant by a norm, the condition does not depend on the basis.

Projective realizations and algebraicity. A projective realization of a polarized abelian ggg-fold AAA consists of a non-singular projective variety X⊆PNX\subseteq\mathbb{P}^NX⊆PN of dimension ggg together with a smooth map u:R2g→Xu:\mathbb{R}^{2g}\to Xu:R2g→X which is periodic under the lattice Z2g\mathbb{Z}^{2g}Z2g, surjective onto XXX, injective modulo the lattice, an immersion, and holomorphic in the sense that its differential intertwines JJJ with the complex structure of projective space. Given such a realization, a de Rham class c∈Hk(X,C)c\in H^{k}(X,\mathbb{C})c∈Hk(X,C) represents a class w∈Hk(A,C)w\in H^{k}(A,\mathbb{C})w∈Hk(A,C) of the torus when every closed form representing ccc has, over the kkk-cycle

T(λ)={u(∑itiλi)  :  0≤ti≤1}T(\lambda)=\Big\{u\Big(\textstyle\sum_i t_i\lambda_i\Big)\;:\;0\le t_i\le 1\Big\}T(λ)={u(∑i​ti​λi​):0≤ti​≤1}

swept out by rational vectors λ1,…,λk\lambda_1,\dots,\lambda_kλ1​,…,λk​, the period w(λ1,…,λk)w(\lambda_1,\dots,\lambda_k)w(λ1​,…,λk​). A class c∈H2p(X,C)c\in H^{2p}(X,\mathbb{C})c∈H2p(X,C) is algebraic when it is a rational linear combination of cycle classes cl(Z)\mathrm{cl}(Z)cl(Z) of irreducible subvarieties Z⊆XZ\subseteq XZ⊆X of dimension g−pg-pg−p, and a class of the torus is algebraic when it is represented by an algebraic class of XXX.

These definitions are the vocabulary in which the goal theorem and the milestones of this mission are stated; none of them is currently available in Mathlib.

Definition code
import Mathlib
import Definitions.Def_HodgeConjecture

/-!
# Polarized abelian varieties of Weil type, their Hodge–Weil classes, and algebraicity

E. Markman, *Cycles on abelian 2n-folds of Weil type from secant sheaves on abelian n-folds*,
arXiv:2502.03415, §1.1.

A `g`-dimensional complex torus is presented by its first rational homology `H_1(A,ℚ) = ℚ^{2g}`,
together with the complex structure `J` on `H_1(A,ℝ)` and a rational Riemann form `E`
(the polarization).  Cohomology `H^k(A,ℂ)` is the space of alternating `ℂ`-multilinear forms on
`H_1(A,ℂ)`, which is the usual identification `H^k(A,ℂ) = ∧^k H^1(A,ℂ)`.

Algebraicity of a cohomology class is *not* modelled abstractly: a torus is tied to an actual
non-singular projective variety `X ⊆ ℙ^N` through a projective realization (a `ℤ^{2g}`-periodic
holomorphic immersion `u : ℝ^{2g} → X` which is bijective modulo the lattice), and algebraicity
is then membership in the `ℚ`-span of the cycle classes `cl(Z)` of sub-varieties `Z ⊆ X`, in the
sense of the `HodgeConjecture` bundle (Deligne's Clay problem description, §1).
-/

namespace WeilTypeCycles

open HodgeConjecture Matrix

/-! ### Lattices -/

/-- `H_1(A,ℝ) = ℝ^{2g}` for a `g`-dimensional complex torus. -/
abbrev LatR (g : ℕ) := Fin (2 * g) → ℝ

/-- `H_1(A,ℚ) = ℚ^{2g}`. -/
abbrev LatQ (g : ℕ) := Fin (2 * g) → ℚ

/-- `H_1(A,ℂ) = ℂ^{2g}`. -/
abbrev LatC (g : ℕ) := Fin (2 * g) → ℂ

/-- The inclusion `ℚ^{2g} ⊆ ℝ^{2g}`. -/
def qToR {g : ℕ} (x : LatQ g) : LatR g := fun i => ((x i : ℚ) : ℝ)

/-- The inclusion `ℚ^{2g} ⊆ ℂ^{2g}`. -/
def qToC {g : ℕ} (x : LatQ g) : LatC g := fun i => ((x i : ℚ) : ℂ)

/-- A rational matrix, viewed as a real matrix. -/
def qMatR {g : ℕ} (M : Matrix (Fin (2 * g)) (Fin (2 * g)) ℚ) :
    Matrix (Fin (2 * g)) (Fin (2 * g)) ℝ := M.map (fun q => (q : ℝ))

/-- A rational matrix, viewed as a complex matrix. -/
def qMatC {g : ℕ} (M : Matrix (Fin (2 * g)) (Fin (2 * g)) ℚ) :
    Matrix (Fin (2 * g)) (Fin (2 * g)) ℂ := M.map (fun q => (q : ℂ))

/-- A real matrix, viewed as a complex matrix. -/
def rMatC {g : ℕ} (M : Matrix (Fin (2 * g)) (Fin (2 * g)) ℝ) :
    Matrix (Fin (2 * g)) (Fin (2 * g)) ℂ := M.map (fun r => (r : ℂ))

/-- The value `E(x,y)` of a rational alternating form on real vectors. -/
def formR {g : ℕ} (E : Matrix (Fin (2 * g)) (Fin (2 * g)) ℚ) (x y : LatR g) : ℝ :=
  x ⬝ᵥ (qMatR E).mulVec y

/-- The value `E(x,y)` of a rational alternating form on rational vectors. -/
def formQ {g : ℕ} (E : Matrix (Fin (2 * g)) (Fin (2 * g)) ℚ) (x y : LatQ g) : ℚ :=
  x ⬝ᵥ E.mulVec y

/-! ### Polarized abelian varieties -/

/-- A polarized abelian variety of complex dimension `g`, described by the Riemann bilinear
relations: a complex structure `J` on `H_1(A,ℝ) = ℝ^{2g}` and a rational alternating form `E`
on `H_1(A,ℚ) = ℚ^{2g}` with `E(Jx,Jy) = E(x,y)` and `E(x,Jx) > 0` for `x ≠ 0`. -/
structure PolAbVar (g : ℕ) where
  /-- The complex structure on `H_1(A,ℝ)`. -/
  J : Matrix (Fin (2 * g)) (Fin (2 * g)) ℝ
  /-- The polarization: a rational alternating form on `H_1(A,ℚ)`. -/
  E : Matrix (Fin (2 * g)) (Fin (2 * g)) ℚ
  /-- `J² = -1`. -/
  J_sq : J * J = -1
  /-- `E` is alternating. -/
  E_alt : E.transpose = -E
  /-- `E(Jx, Jy) = E(x,y)`. -/
  E_invariant : ∀ x y : LatR g, formR E (J.mulVec x) (J.mulVec y) = formR E x y
  /-- `E(x, Jx) > 0` for every nonzero `x`: the polarization is positive definite. -/
  E_positive : ∀ x : LatR g, x ≠ 0 → 0 < formR E x (J.mulVec x)

/-! ### Cohomology of a complex torus -/

/-- `H^k(A,ℂ) = ∧^k H^1(A,ℂ)`, realized as the alternating `ℂ`-multilinear forms on
`H_1(A,ℂ) = ℂ^{2g}`. -/
abbrev Coh (g k : ℕ) := (LatC g) [⋀^Fin k]→ₗ[ℂ] ℂ

/-- A class in `H^k(A,ℂ)` is rational, i.e. lies in `H^k(A,ℚ)`, when all its values on rational
vectors are rational. -/
def IsRationalClass {g k : ℕ} (w : Coh g k) : Prop :=
  ∀ v : Fin k → LatQ g, ∃ q : ℚ, w (fun i => qToC (v i)) = (q : ℂ)

/-- The action of a complex scalar `z` on `H_1(A,ℂ)` determined by the complex structure `J`:
`z • v = (Re z) v + (Im z) J v`.  It acts by `z` on the `i`-eigenspace of `J` and by `z̄` on the
`(-i)`-eigenspace. -/
noncomputable def scal {g : ℕ} (J : Matrix (Fin (2 * g)) (Fin (2 * g)) ℝ) (z : ℂ) (v : LatC g) : LatC g :=
  z.re • v + z.im • (rMatC J).mulVec v

/-- A class in `H^k(A,ℂ)` has Hodge type `(p,q)`: it is multiplied by `z^p z̄^q` under the
scaling action of `z ∈ ℂ` attached to the complex structure `J`. -/
def HasType {g k : ℕ} (J : Matrix (Fin (2 * g)) (Fin (2 * g)) ℝ) (p q : ℕ) (w : Coh g k) : Prop :=
  ∀ (z : ℂ) (v : Fin k → LatC g),
    w (fun i => scal J z (v i)) = z ^ p * (starRingEnd ℂ z) ^ q * w v

/-- A Hodge class of degree `2p`: a rational class of type `(p,p)`. -/
def IsHodgeClass {g : ℕ} (J : Matrix (Fin (2 * g)) (Fin (2 * g)) ℝ) (p : ℕ)
    (w : Coh g (2 * p)) : Prop :=
  IsRationalClass w ∧ HasType J p p w

/-- The eigenspace of a complex matrix inside `H_1(A,ℂ)`. -/
def eigenspace {g : ℕ} (M : Matrix (Fin (2 * g)) (Fin (2 * g)) ℂ) (a : ℂ) :
    Submodule ℂ (LatC g) :=
  LinearMap.ker (Matrix.mulVecLin M - a • LinearMap.id)

/-! ### Abelian varieties of Weil type -/

/-- A polarized abelian variety of Weil type of dimension `2n` with complex multiplication by
`K = ℚ(√-d)`: a polarized abelian `2n`-fold `A` together with the endomorphism `M = η(√-d)` of
`H_1(A,ℚ)`, subject to

* `M² = -d`,
* `M` commutes with the complex structure (so `M` is an endomorphism of `A`),
* `E(Mx,My) = d·E(x,y)`, i.e. `η(k)` multiplies the polarization class by `Nm(k)`,
* each of the two eigenspaces of `M` on `H_1(A,ℂ)` meets the `i`-eigenspace of `J` in an
  `n`-dimensional subspace (Weil's condition).
-/
structure WeilAbVar (n d : ℕ) where
  /-- The underlying polarized abelian `2n`-fold. -/
  A : PolAbVar (2 * n)
  /-- The endomorphism `η(√-d)` of `H_1(A,ℚ)`. -/
  M : Matrix (Fin (2 * (2 * n))) (Fin (2 * (2 * n))) ℚ
  /-- `η(√-d)² = -d`. -/
  M_sq : M * M = -(d : ℚ) • 1
  /-- `η(√-d)` is an endomorphism of the complex torus: it commutes with `J`. -/
  M_comm : qMatR M * A.J = A.J * qMatR M
  /-- `E(Mx, My) = d E(x,y)`: `η(k)` maps the polarization class `h` to `Nm(k)·h`. -/
  M_pol : ∀ x y : LatR (2 * n),
    formR A.E ((qMatR M).mulVec x) ((qMatR M).mulVec y) = (d : ℝ) * formR A.E x y
  /-- Weil's condition for the `√-d`-eigenspace. -/
  weil_plus :
    Module.finrank ℂ
      ↥((eigenspace (qMatC M) (Complex.I * (Real.sqrt d : ℂ))) ⊓
        (eigenspace (rMatC A.J) Complex.I)) = n
  /-- Weil's condition for the `-√-d`-eigenspace. -/
  weil_minus :
    Module.finrank ℂ
      ↥((eigenspace (qMatC M) (-(Complex.I * (Real.sqrt d : ℂ)))) ⊓
        (eigenspace (rMatC A.J) Complex.I)) = n

namespace WeilAbVar

variable {n d : ℕ} (W : WeilAbVar n d)

/-- The `√-d`-eigenspace `W ⊆ H_1(A,ℂ)` of `η(√-d)`. -/
noncomputable def eigenPlus : Submodule ℂ (LatC (2 * n)) :=
  eigenspace (qMatC W.M) (Complex.I * (Real.sqrt d : ℂ))

/-- The `-√-d`-eigenspace `W̄ ⊆ H_1(A,ℂ)` of `η(√-d)`. -/
noncomputable def eigenMinus : Submodule ℂ (LatC (2 * n)) :=
  eigenspace (qMatC W.M) (-(Complex.I * (Real.sqrt d : ℂ)))

/-- A *Hodge–Weil class*: a rational class of degree `2n` lying in
`∧^{2n}W ⊕ ∧^{2n}W̄ ⊆ H^{2n}(A,ℂ)`, i.e. a rational class which vanishes on every tuple of
vectors containing both a vector of the `√-d`-eigenspace and a vector of the
`-√-d`-eigenspace of `η(√-d)`. -/
noncomputable def IsHodgeWeilClass (w : Coh (2 * n) (2 * n)) : Prop :=
  IsRationalClass w ∧
    ∀ v : Fin (2 * n) → LatC (2 * n),
      (∃ i, v i ∈ W.eigenPlus) → (∃ j, v j ∈ W.eigenMinus) → w v = 0

/-- A `K`-basis of `H_1(A,ℚ)`: a family `b₁, …, b_{2n}` such that
`b₁, …, b_{2n}, Mb₁, …, Mb_{2n}` is a `ℚ`-basis of `H_1(A,ℚ)`. -/
def IsKBasis (b : Fin (2 * n) → LatQ (2 * n)) : Prop :=
  LinearIndependent ℚ (Sum.elim b (fun i => W.M.mulVec (b i))) ∧
    Submodule.span ℚ (Set.range (Sum.elim b (fun i => W.M.mulVec (b i)))) = ⊤

/-- The Gram matrix, in a `K`-basis `b`, of the `K`-valued hermitian form
`H(x,y) = E(η(√-d)x, y) + √-d · E(x,y)` attached to a polarized abelian variety of Weil type,
with `K = ℚ(√-d)` embedded in `ℂ` by `√-d ↦ i√d`. -/
noncomputable def hermMatrix (b : Fin (2 * n) → LatQ (2 * n)) :
    Matrix (Fin (2 * n)) (Fin (2 * n)) ℂ :=
  fun i j =>
    ((formQ W.A.E (W.M.mulVec (b i)) (b j) : ℚ) : ℂ) +
      Complex.I * (Real.sqrt d : ℂ) * ((formQ W.A.E (b i) (b j) : ℚ) : ℂ)

/-- The discriminant of `(A, η, h)` is `-1`: the determinant of the Gram matrix of the hermitian
form `H` in some `K`-basis is `-Nm(k)` for some `k ∈ K^×`, i.e. it equals `-(a² + d c²)` for
rationals `a, c` not both zero.  (Changing the `K`-basis multiplies the determinant by a norm, so
this condition does not depend on the chosen basis.) -/
noncomputable def DiscriminantIsMinusOne : Prop :=
  ∃ b : Fin (2 * n) → LatQ (2 * n), W.IsKBasis b ∧
    ∃ a c : ℚ, ¬(a = 0 ∧ c = 0) ∧
      (W.hermMatrix b).det = ((-(a ^ 2 + (d : ℚ) * c ^ 2) : ℚ) : ℂ)

end WeilAbVar

/-! ### Projective realizations and algebraic classes -/

/-- A *projective realization* of the polarized abelian `g`-fold `A`: a non-singular projective
variety `X ⊆ ℙ^N` of dimension `g` together with a smooth map `u : ℝ^{2g} → X` which is
`ℤ^{2g}`-periodic, surjective onto `X`, injective modulo the lattice `ℤ^{2g}`, an immersion, and
holomorphic in the sense that its differential intertwines the complex structure `J` of `A` with
the complex structure of projective space. -/
structure ProjModel (g : ℕ) (A : PolAbVar g) (N : ℕ) where
  /-- The projective variety. -/
  X : ProjVariety N
  /-- The uniformization `ℝ^{2g} → X ⊆ ℙ^N`. -/
  u : LatR g → Amb N
  /-- `X` is non-singular of dimension `g`. -/
  nonsingular : X.IsNonsingular g
  /-- `u` is smooth. -/
  smooth : ContDiff ℝ (⊤ : ℕ∞) u
  /-- `u` is `ℤ^{2g}`-periodic. -/
  periodic : ∀ (x : LatR g) (m : Fin (2 * g) → ℤ), u (x + fun i => ((m i : ℤ) : ℝ)) = u x
  /-- `u` maps onto the points of `X`. -/
  surjective : Set.range u = X.pts
  /-- `u` is injective modulo the lattice `ℤ^{2g}`. -/
  injective_mod_lattice : ∀ x y : LatR g, u x = u y →
    ∃ m : Fin (2 * g) → ℤ, y = x + fun i => ((m i : ℤ) : ℝ)
  /-- `u` is holomorphic: its differential intertwines `J` with the complex structure of `ℙ^N`. -/
  holomorphic : ∀ x v : LatR g,
    fderiv ℝ u x (A.J.mulVec v) = Jmap (u x) (fderiv ℝ u x v)
  /-- `u` is an immersion. -/
  immersion : ∀ x : LatR g, Function.Injective (fderiv ℝ u x)

/-- The period `∫_{T(λ)} ω` of a `k`-form of `ℙ^N` over the `k`-cycle
`T(λ) = {u(∑ tᵢ λᵢ) : 0 ≤ tᵢ ≤ 1}` swept out in `X` by the vectors `λ₁, …, λ_k`. -/
noncomputable def periodCube {g N k : ℕ} (u : LatR g → Amb N) (w : Form N k)
    (lam : Fin k → LatR g) : ℂ :=
  ∫ t : Fin k → ℝ in Set.pi Set.univ (fun _ => Set.Icc (0 : ℝ) 1),
    w (u (∑ i, t i • lam i)) (fun i => fderiv ℝ u (∑ j, t j • lam j) (lam i))

/-- The de Rham class `c ∈ H^k(X,ℂ)` of a projective realization represents the class
`w ∈ H^k(A,ℂ)` of the torus: every closed form representing `c` has, over the `k`-cycle swept out
by rational vectors `λ₁, …, λ_k`, the period `w(λ₁, …, λ_k)`. -/
def RepresentsClass {g N k : ℕ} {A : PolAbVar g} (P : ProjModel g A N)
    (c : P.X.Cohomology k) (w : Coh g k) : Prop :=
  ∀ f : P.X.closedForms k, P.X.cls f = c →
    ∀ lam : Fin k → LatQ g,
      periodCube P.u f.1 (fun i => qToR (lam i)) = w (fun i => qToC (lam i))

/-- A class `c ∈ H^{2p}(X,ℂ)` is algebraic: it is a rational linear combination of the cycle
classes `cl(Z)` of irreducible sub-varieties `Z ⊆ X` of dimension `g - p` (Deligne, §1). -/
def IsAlgebraicClass {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 class `w ∈ H^{2p}(A,ℂ)` of the torus is algebraic in a given projective realization: it is
represented by an algebraic class of the projective variety. -/
def IsAlgebraicTorusClass {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 ∧ IsAlgebraicClass P p c

end WeilTypeCycles
Source
E. Markman, Cycles on abelian 2n-folds of Weil type from secant sheaves on abelian n-folds, arXiv:2502.03415, Introduction §1.1 'Abelian varieties of Weil-type' (definitions of abelian variety of Weil type, Hodge-Weil classes, polarized abelian variety of Weil type, the K-valued hermitian form H and its discriminant det H); P. Deligne, The Hodge Conjecture, Clay Mathematics Institute Millennium Prize Problem description (2000), §1, for de Rham cohomology, Hodge classes and cycle classes.
Read-back

What the Lean code literally says, in plain math · aristotle-harmonic

Read-back — definitions bundle WeilTypeAbelianVarieties

Throughout, g,k,n,d,N,pg,k,n,d,N,pg,k,n,d,N,p denote natural numbers, and the ambient objects ProjVariety, Amb, Form, Jmap, Cohomology, closedForms, cls, IsNonsingular, IsCycleClass, pts, cone, IsIrreducible, dim, IsHodgeClass are those of the imported HodgeConjecture bundle.

Ambient spaces. LatR(g)\mathrm{LatR}(g)LatR(g), LatQ(g)\mathrm{LatQ}(g)LatQ(g), LatC(g)\mathrm{LatC}(g)LatC(g) are the spaces of functions {0,1,…,2g−1}→R,Q,C\{0,1,\dots,2g-1\}\to\mathbb{R},\mathbb{Q},\mathbb{C}{0,1,…,2g−1}→R,Q,C, i.e. R2g\mathbb{R}^{2g}R2g, Q2g\mathbb{Q}^{2g}Q2g, C2g\mathbb{C}^{2g}C2g; for g=0g=0g=0 each is the zero space. The maps qToR\mathrm{qToR}qToR and qToC\mathrm{qToC}qToC send a rational vector to the same vector with coordinates cast into R\mathbb{R}R resp. C\mathbb{C}C; qMatR\mathrm{qMatR}qMatR, qMatC\mathrm{qMatC}qMatC, rMatC\mathrm{rMatC}rMatC cast a matrix entrywise. For a rational 2g×2g2g\times 2g2g×2g matrix EEE, formR(E)(x,y)=x⋅(ERy)\mathrm{formR}(E)(x,y)=x\cdot (E_{\mathbb R}y)formR(E)(x,y)=x⋅(ER​y) is the real number obtained as the dot product of xxx with the matrix–vector product of the real cast of EEE with yyy, and formQ(E)(x,y)=x⋅(Ey)\mathrm{formQ}(E)(x,y)=x\cdot(Ey)formQ(E)(x,y)=x⋅(Ey) is the same expression for rational vectors. No symmetry, non-degeneracy or alternation is imposed in these two definitions.

PolAbVar g is a structure whose data are a real 2g×2g2g\times 2g2g×2g matrix JJJ and a rational 2g×2g2g\times 2g2g×2g matrix EEE, subject to four conditions: J⋅J=−1J\cdot J=-\mathbb 1J⋅J=−1 (matrix product, 1\mathbb 11 the identity matrix); ET=−EE^{\mathsf T}=-EET=−E; for all real vectors x,yx,yx,y, formR(E)(Jx,Jy)=formR(E)(x,y)\mathrm{formR}(E)(Jx,Jy)=\mathrm{formR}(E)(x,y)formR(E)(Jx,Jy)=formR(E)(x,y); and for every real vector x≠0x\neq 0x=0, 0<formR(E)(x,Jx)0<\mathrm{formR}(E)(x,Jx)0<formR(E)(x,Jx). Nothing requires EEE to be integral on Z2g\mathbb{Z}^{2g}Z2g, and no relation to a projective variety is part of this structure. For g=0g=0g=0 the two matrices are empty, J⋅J=−1J\cdot J=-\mathbb 1J⋅J=−1 holds vacuously, and the positivity condition is vacuous since the only vector is 000.

Coh g k is the space of alternating C\mathbb{C}C-multilinear maps (C2g)k→C(\mathbb{C}^{2g})^{k}\to\mathbb{C}(C2g)k→C with kkk arguments indexed by {0,…,k−1}\{0,\dots,k-1\}{0,…,k−1}. For k=0k=0k=0 this is C\mathbb{C}C itself.

IsRationalClass w asserts: for every kkk-tuple v1,…,vkv_1,\dots,v_kv1​,…,vk​ of rational vectors there exists q∈Qq\in\mathbb{Q}q∈Q with w(v1,…,vk)=qw(v_1,\dots,v_k)=qw(v1​,…,vk​)=q (the rational vectors being cast into C2g\mathbb{C}^{2g}C2g). Nothing is asserted about values on non-rational tuples.

scal J z v is the vector (Re⁡z) v+(Im⁡z) JCv(\operatorname{Re}z)\,v+(\operatorname{Im}z)\,J_{\mathbb C}v(Rez)v+(Imz)JC​v in C2g\mathbb{C}^{2g}C2g, where JCJ_{\mathbb C}JC​ is the complex cast of JJJ, and the two scalar multiplications are by the real numbers Re⁡z\operatorname{Re}zRez and Im⁡z\operatorname{Im}zImz. No hypothesis such as J2=−1J^2=-\mathbb 1J2=−1 is used in this definition.

HasType J p q w, for w∈Coh g kw\in\mathrm{Coh}\,g\,kw∈Cohgk, asserts: for every z∈Cz\in\mathbb{C}z∈C and every kkk-tuple v1,…,vkv_1,\dots,v_kv1​,…,vk​ of complex vectors,

w(scal(J,z,v1),…,scal(J,z,vk))=zp z‾ q w(v1,…,vk).w\big(\mathrm{scal}(J,z,v_1),\dots,\mathrm{scal}(J,z,v_k)\big)=z^{p}\,\overline{z}^{\,q}\,w(v_1,\dots,v_k).w(scal(J,z,v1​),…,scal(J,z,vk​))=zpzqw(v1​,…,vk​).

The condition is imposed for all zzz, including z=0z=0z=0; the exponents p,qp,qp,q are unrelated to kkk in the definition, so HasType may be stated for degrees other than p+qp+qp+q.

IsHodgeClass J p w, for w∈Coh g (2p)w\in\mathrm{Coh}\,g\,(2p)w∈Cohg(2p), is the conjunction of IsRationalClass w and HasType J p p w.

eigenspace M a for a complex 2g×2g2g\times 2g2g×2g matrix MMM and a∈Ca\in\mathbb{C}a∈C is the kernel of the linear map v↦Mv−a vv\mapsto Mv-a\,vv↦Mv−av on C2g\mathbb{C}^{2g}C2g, i.e. the aaa-eigenspace together with 000.

WeilAbVar n d is a structure with data: a PolAbVar (2n) called AAA (so the ambient spaces are R4n\mathbb{R}^{4n}R4n, Q4n\mathbb{Q}^{4n}Q4n, C4n\mathbb{C}^{4n}C4n) and a rational 4n×4n4n\times 4n4n×4n matrix MMM; and with five conditions:

  1. M⋅M=−d⋅1M\cdot M=-d\cdot\mathbb 1M⋅M=−d⋅1, where ddd is cast into Q\mathbb{Q}Q;
  2. MR A.J=A.J MRM_{\mathbb R}\,A.J=A.J\,M_{\mathbb R}MR​A.J=A.JMR​ as real matrices;
  3. for all real vectors x,yx,yx,y: formR(A.E)(MRx,MRy)=d⋅formR(A.E)(x,y)\mathrm{formR}(A.E)(M_{\mathbb R}x,M_{\mathbb R}y)=d\cdot \mathrm{formR}(A.E)(x,y)formR(A.E)(MR​x,MR​y)=d⋅formR(A.E)(x,y);
  4. the complex dimension of the intersection of the (id)\big(i\sqrt d\big)(id​)-eigenspace of MCM_{\mathbb C}MC​ with the iii-eigenspace of (A.J)C(A.J)_{\mathbb C}(A.J)C​ equals nnn;
  5. the complex dimension of the intersection of the (−id)\big(-i\sqrt d\big)(−id​)-eigenspace of MCM_{\mathbb C}MC​ with the iii-eigenspace of (A.J)C(A.J)_{\mathbb C}(A.J)C​ equals nnn.

Here d\sqrt dd​ is the real square root of the natural number ddd, cast into C\mathbb{C}C; for d=0d=0d=0 it is 000 and conditions 4 and 5 become the same condition. The dimensions are the rank of the corresponding subspace, which is 000 by convention for an infinite-dimensional space. For n=0n=0n=0 both dimension conditions read 0=00=00=0.

eigenPlus, eigenMinus of such a structure are the (id)\big(i\sqrt d\big)(id​)- and (−id)\big(-i\sqrt d\big)(−id​)-eigenspaces of MCM_{\mathbb C}MC​ inside C4n\mathbb{C}^{4n}C4n.

IsHodgeWeilClass W w, for w∈Coh (2n) (2n)w\in \mathrm{Coh}\,(2n)\,(2n)w∈Coh(2n)(2n), asserts: www is a rational class, and for every 2n2n2n-tuple v1,…,v2nv_1,\dots,v_{2n}v1​,…,v2n​ of complex vectors such that some viv_ivi​ lies in eigenPlus and some vjv_jvj​ lies in eigenMinus, one has w(v1,…,v2n)=0w(v_1,\dots,v_{2n})=0w(v1​,…,v2n​)=0. Note that 000 belongs to both eigenspaces, so any tuple containing a zero entry satisfies both existential clauses; for such tuples the conclusion w(v)=0w(v)=0w(v)=0 holds automatically by multilinearity.

IsKBasis W b, for a family b1,…,b2nb_1,\dots,b_{2n}b1​,…,b2n​ of rational vectors in Q4n\mathbb{Q}^{4n}Q4n, asserts that the family of 4n4n4n vectors (b1,…,b2n,Mb1,…,Mb2n)\big(b_1,\dots,b_{2n},Mb_1,\dots,Mb_{2n}\big)(b1​,…,b2n​,Mb1​,…,Mb2n​) is Q\mathbb{Q}Q-linearly independent and spans Q4n\mathbb{Q}^{4n}Q4n.

hermMatrix W b is the 2n×2n2n\times 2n2n×2n complex matrix with entries

Hij=formQ(A.E)(Mbi,bj)+id  formQ(A.E)(bi,bj),H_{ij}=\mathrm{formQ}(A.E)(Mb_i,b_j)+i\sqrt d\;\mathrm{formQ}(A.E)(b_i,b_j),Hij​=formQ(A.E)(Mbi​,bj​)+id​formQ(A.E)(bi​,bj​),

the two rational values being cast into C\mathbb{C}C. No hermitian symmetry is asserted; it is a definition, not a claim.

DiscriminantIsMinusOne W asserts: there exists a family bbb satisfying IsKBasis W b, and there exist rationals a,ca,ca,c, not both zero, such that the determinant of hermMatrix W b equals the complex number −(a2+d c2)-(a^{2}+d\,c^{2})−(a2+dc2). This is an existential statement over bases: it does not claim the value is the same for every KKK-basis.

ProjModel g A N is a structure with data: a projective algebraic set X⊆PNX\subseteq\mathbb{P}^NX⊆PN and a map u:R2g→Amb(N)u:\mathbb{R}^{2g}\to \mathrm{Amb}(N)u:R2g→Amb(N), subject to:

  1. XXX is non-singular of pure dimension ggg;
  2. uuu is infinitely differentiable;
  3. for every x∈R2gx\in\mathbb{R}^{2g}x∈R2g and every integer vector mmm, u(x+m)=u(x)u(x+m)=u(x)u(x+m)=u(x);
  4. the range of uuu equals the point set of XXX;
  5. whenever u(x)=u(y)u(x)=u(y)u(x)=u(y) there is an integer vector mmm with y=x+my=x+my=x+m;
  6. for all x,v∈R2gx,v\in\mathbb{R}^{2g}x,v∈R2g, Du(x)(A.J v)=Jmap(u(x))(Du(x)v)Du(x)\big(A.J\,v\big)=\mathrm{Jmap}\big(u(x)\big)\big(Du(x)v\big)Du(x)(A.Jv)=Jmap(u(x))(Du(x)v), where Du(x)Du(x)Du(x) is the Fréchet derivative of uuu at xxx and Jmap\mathrm{Jmap}Jmap is the ambient complex structure of the imported bundle;
  7. for every xxx, the linear map Du(x)Du(x)Du(x) is injective.

Conditions 6 and 7 refer to the Fréchet derivative, which is the zero map at points where uuu is not differentiable; condition 2 excludes that. Nothing here refers to the polarization A.EA.EA.E: only A.JA.JA.J enters, through condition 6.

periodCube u w \lambda, for a kkk-form www of the ambient space and a kkk-tuple λ1,…,λk\lambda_1,\dots,\lambda_kλ1​,…,λk​ of real vectors, is the Bochner integral

∫[0,1]kw(u(∑itiλi))(Du(∑jtjλj)λ1,…,Du(∑jtjλj)λk) dt\int_{[0,1]^{k}} w\Big(u\big(\textstyle\sum_i t_i\lambda_i\big)\Big)\Big(Du\big(\textstyle\sum_j t_j\lambda_j\big)\lambda_1,\dots,Du\big(\textstyle\sum_j t_j\lambda_j\big)\lambda_k\Big)\,dt∫[0,1]k​w(u(∑i​ti​λi​))(Du(∑j​tj​λj​)λ1​,…,Du(∑j​tj​λj​)λk​)dt

over the unit cube of Rk\mathbb{R}^{k}Rk with respect to the product Lebesgue measure. If the integrand is not integrable the integral is 000 by convention.

RepresentsClass P c w, for a de Rham class c∈Hk(X,C)c\in H^{k}(X,\mathbb{C})c∈Hk(X,C) of the variety of the projective model PPP and a class w∈Coh g kw\in\mathrm{Coh}\,g\,kw∈Cohgk, asserts: for every closed form fff on XXX whose cohomology class is ccc, and for every kkk-tuple λ1,…,λk\lambda_1,\dots,\lambda_kλ1​,…,λk​ of rational vectors,

periodCube(u,f,λ)=w(λ1,…,λk),\mathrm{periodCube}\big(u,f,\lambda\big)=w(\lambda_1,\dots,\lambda_k),periodCube(u,f,λ)=w(λ1​,…,λk​),

with the rational vectors cast into R2g\mathbb{R}^{2g}R2g on the left and into C2g\mathbb{C}^{2g}C2g on the right. If no closed form represents ccc, the condition holds vacuously.

IsAlgebraicClass P p c, for c∈H2p(X,C)c\in H^{2p}(X,\mathbb{C})c∈H2p(X,C), asserts the existence of a natural number mmm, of projective algebraic sets Z1,…,ZmZ_1,\dots,Z_mZ1​,…,Zm​, of rationals a1,…,ama_1,\dots,a_ma1​,…,am​ and of classes cl1,…,clm∈H2p(X,C)\mathrm{cl}_1,\dots,\mathrm{cl}_m\in H^{2p}(X,\mathbb{C})cl1​,…,clm​∈H2p(X,C) such that for each iii: the affine cone of ZiZ_iZi​ is contained in that of XXX, ZiZ_iZi​ is irreducible, the dimension of ZiZ_iZi​ equals g−pg-pg−p, and cli\mathrm{cl}_icli​ is the cycle class of ZiZ_iZi​ in the sense of the imported bundle (Poincaré duality against all closed forms of complementary degree); and finally c=∑iai clic=\sum_i a_i\,\mathrm{cl}_ic=∑i​ai​cli​. The choice m=0m=0m=0 is allowed, in which case the condition says c=0c=0c=0. The dimension g−pg-pg−p is truncated natural subtraction, so it is 000 whenever p≥gp\ge gp≥g.

IsAlgebraicTorusClass P p w, for w∈Coh g (2p)w\in\mathrm{Coh}\,g\,(2p)w∈Cohg(2p), asserts the existence of a class c∈H2p(X,C)c\in H^{2p}(X,\mathbb{C})c∈H2p(X,C) which both represents www in the sense of RepresentsClass and is algebraic in the sense of IsAlgebraicClass.

Human review
  • Endorsed by Shuze Chen · Sep 13, 2026

  • Endorsed by LG · Sep 13, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me