Four-factor products, the Künneth switch line (2.4), rational Hodge maps and surface periods (3.1)
DefinitionCMHodgeGeometryThis layer supplies the geometric objects of the four-factor reduction, following Section 2.3 (p. 8, equation (2.4)) and Section 3 (pp. 11–12, equation (3.1)) of the source paper.
The four-factor product of polarized -folds is pinned by block-diagonal action of its complex structure and polarization on the four lattice blocks. The Künneth switch line
is characterized by its values on pure block tuples: a -form lies on the line exactly when those values factor through vectors of the four selected embedding lines, with labels . Multilinearity and alternation determine the class uniquely from these values.
A rational Hodge map into a projective surface is presented by its -linear extension, required to preserve rational classes and the types , . The surface period uses the orientation and measure conventions of the HodgeConjecture bundle; the nonvanishing condition is stated via closed-form representatives of the four de Rham classes. HodgeImageSpan is the complex span of the images of one embedding line under all rational Hodge maps, as in Corollary 3.2.
Formalization Note. The switch-line predicate is equivalent to membership in the Künneth image of the tensor product of the four lines; it avoids choosing a Künneth representative. The period condition is independent of the chosen closed-form representatives by Stokes' theorem on the compact surface.
Note on notation. The source's embedding label is named g in the Lean binders, since λ is a reserved token in Lean 4; a purely nominal change.
import Mathlib
import Definitions.Def_HodgeConjecture
import Definitions.Def_WeilTypeAbelianVarieties
import Definitions.Def_CMHodgeBasic
/-!
# Four-factor products, Kunneth switch lines, and surface periods
Geometric layer for the mission formalizing OpenAI, *The rational Hodge conjecture for CM
abelian varieties* (September 30, 2026): Section 2.3 (Theorem 2.5, equation (2.4), p. 8)
and Section 3 (Proposition 3.1, equation (3.1), p. 11; Corollary 3.2, p. 12).
* `blockIn` embeds one lattice block into the four-factor product lattice.
* `IsProduct4` pins a polarized `(4s)`-fold as the product of four polarized `s`-folds:
its complex structure and polarization act block-diagonally with the prescribed blocks.
* `IsSwitchClass` characterizes the Kunneth line
`U(v1)_1 ⊗ U(v2)_1 ⊗ U(v3)_c ⊗ U(v4)_c ⊂ H^4(∏ B(v_i), ℚ)` (equation (2.4)):
an alternating 4-form lies on this line exactly when its values on pure block tuples
factor through vectors of the four selected embedding lines. This determines the class
uniquely by multilinearity and alternation.
* `wedge4Val` / `surfacePeriod4` compute `∫_S ω1 ∧ ω2 ∧ ω3 ∧ ω4` for four 1-forms on a
projective surface, with the orientation and measure conventions of the
`HodgeConjecture` bundle.
* `IsHodgeMapToSurface` is a rational Hodge map `U(v) → H^1(S, ℚ)`, presented by its
`ℂ`-linear extension: it preserves rationality and the types `(1,0)` and `(0,1)`.
* `HodgeImageSpan` is the complex span of the images of one embedding line under all
rational Hodge maps (Corollary 3.2).
* `HasNonzeroSurfacePeriod` states the nonvanishing period condition (3.1) via closed-form
representatives of the four de Rham classes.
-/
open HodgeConjecture WeilTypeCycles CMHodge
namespace CMHodge
/-- Embed a vector of one `2s`-dimensional lattice block into the four-block product
lattice `ℚ^{2s} ⊕ ℚ^{2s} ⊕ ℚ^{2s} ⊕ ℚ^{2s}` (any scalar type with zero). -/
def blockIn {α : Type} [Zero α] (s : ℕ) (i : Fin 4) (x : Fin (2 * s) → α) :
Fin (2 * (s + s + s + s)) → α :=
match s with
| 0 => fun j => Fin.elim0 j
| s + 1 => fun j =>
if (j.val / (2 * (s + 1)) : ℕ) = i.val then
x ⟨j.val % (2 * (s + 1)), Nat.mod_lt _ (by omega)⟩
else 0
/-- Select one of four polarized `s`-folds by block index. -/
def blockSel {s : ℕ} (B1 B2 B3 B4 : PolAbVar s) (i : Fin 4) : PolAbVar s :=
if i.val = 0 then B1 else if i.val = 1 then B2 else if i.val = 2 then B3 else B4
/-- `A` is the product of the four polarized `s`-folds `B1, B2, B3, B4`: its complex
structure and polarization act on each lattice block as the corresponding factor. -/
def IsProduct4 {s : ℕ} (A : PolAbVar (s + s + s + s)) (B1 B2 B3 B4 : PolAbVar s) : Prop :=
(∀ (i : Fin 4) (x : LatR s),
A.J.mulVec (blockIn s i x) = blockIn s i ((blockSel B1 B2 B3 B4 i).J.mulVec x)) ∧
(∀ (i : Fin 4) (x : LatQ s),
A.E.mulVec (blockIn s i x) = blockIn s i ((blockSel B1 B2 B3 B4 i).E.mulVec x))
/-- Membership in the Kunneth switch line (2.4):
`U(v1)_1 ⊗ U(v2)_1 ⊗ U(v3)_c ⊗ U(v4)_c ⊂ H^4(∏ B(v_i), ℚ)`.
A 4-form lies on this line exactly when its values on pure block tuples are the products
of values of four vectors drawn from the selected embedding lines (labels `(1, 1, c, c)`).
Multilinearity and alternation determine the class from these values, so this predicate
characterizes precisely the elements of the line. -/
def IsSwitchClass {E : Type} [Field E] [NumberField E] {s : ℕ}
{ι : E →+* ℂ} {v1 v2 v3 v4 : (E ≃ₐ[ℚ] E) → ℤ}
(B1 : RankOneCM E ι v1 s) (B2 : RankOneCM E ι v2 s)
(B3 : RankOneCM E ι v3 s) (B4 : RankOneCM E ι v4 s)
(c : E ≃ₐ[ℚ] E) (w : Coh (s + s + s + s) 4) : Prop :=
∃ (w1 w2 w3 w4 : Coh s 1),
w1 ∈ embeddingLine E B1.act ι AlgEquiv.refl ∧
w2 ∈ embeddingLine E B2.act ι AlgEquiv.refl ∧
w3 ∈ embeddingLine E B3.act ι c ∧
w4 ∈ embeddingLine E B4.act ι c ∧
∀ x : Fin 4 → LatC s,
w (fun j => blockIn s j (x j)) =
w1 (fun _ => x 0) * w2 (fun _ => x 1) * w3 (fun _ => x 2) * w4 (fun _ => x 3)
/-- The value `(ω1 ∧ ω2 ∧ ω3 ∧ ω4)_P(f)` of the four-fold wedge of 1-forms on a frame,
with the shuffle-sign convention of the `HodgeConjecture` bundle. -/
noncomputable def wedge4Val {N : ℕ} (ω1 ω2 ω3 ω4 : Form N 1) (P : Amb N)
(f : Fin 4 → Amb N) : ℂ :=
∑ σ : Equiv.Perm (Fin 4), (((Equiv.Perm.sign σ : ℤˣ) : ℤ) : ℂ) *
ω1 P (fun _ => f (σ 0)) * ω2 P (fun _ => f (σ 1)) *
ω3 P (fun _ => f (σ 2)) * ω4 P (fun _ => f (σ 3))
/-- `∫_S ω1 ∧ ω2 ∧ ω3 ∧ ω4` over a projective surface `S`, with the complex orientation
and volume normalization of the `HodgeConjecture` bundle. -/
noncomputable def surfacePeriod4 {N : ℕ} (S : ProjVariety N) (ω1 ω2 ω3 ω4 : Form N 1) : ℂ :=
∫ P in S.regPts,
wedge4Val ω1 ω2 ω3 ω4 P (frame (S.tangent P) P 4) ∂(volMeasure N 4)
/-- A `ℂ`-linear map `h : H^1(B, ℂ) → H^1(S, ℂ)` is the extension of a rational Hodge map
`U(v) → H^1(S, ℚ)`: it preserves rational classes and the Hodge types `(1,0)` and `(0,1)`. -/
def IsHodgeMapToSurface {s N : ℕ} (J : Matrix (Fin (2 * s)) (Fin (2 * s)) ℝ)
(S : ProjVariety N) (h : Coh s 1 →ₗ[ℂ] S.Cohomology 1) : Prop :=
(∀ w : Coh s 1, IsRationalClass w → S.IsRational (h w)) ∧
(∀ w : Coh s 1, HasType J 1 0 w → S.HasTypeClass 1 0 (h w)) ∧
(∀ w : Coh s 1, HasType J 0 1 w → S.HasTypeClass 0 1 (h w))
/-- The complex span of the images of the embedding line `U(v)_λ` under all rational
Hodge maps `U(v) → H^1(S, ℚ)` (Corollary 3.2). -/
noncomputable def HodgeImageSpan {E : Type} [Field E] [NumberField E] {s N : ℕ}
{ι : E →+* ℂ} {v : (E ≃ₐ[ℚ] E) → ℤ} (B : RankOneCM E ι v s)
(g : E ≃ₐ[ℚ] E) (S : ProjVariety N) : Submodule ℂ (S.Cohomology 1) :=
Submodule.span ℂ {y | ∃ (h : Coh s 1 →ₗ[ℂ] S.Cohomology 1) (α : Coh s 1),
IsHodgeMapToSurface B.B.J S h ∧ α ∈ embeddingLine E B.act ι g ∧ y = h α}
/-- The nonvanishing surface period condition (3.1): some (equivalently any) closed-form
representatives of the four degree-one classes have nonzero four-fold wedge integral. -/
def HasNonzeroSurfacePeriod {N : ℕ} (S : ProjVariety N)
(c1 c2 c3 c4 : S.Cohomology 1) : Prop :=
∃ (ω1 ω2 ω3 ω4 : S.closedForms 1),
S.cls ω1 = c1 ∧ S.cls ω2 = c2 ∧ S.cls ω3 = c3 ∧ S.cls ω4 = c4 ∧
surfacePeriod4 S ω1.1 ω2.1 ω3.1 ω4.1 ≠ 0
end CMHodge