Hodge conjecture: the CM case in Lean, read and discussed
OpenAI's Lean proof of the Hodge conjecture for CM abelian varieties: rerun it, read its statement, and keep the open questions with their sources. The conjecture is open

| 1 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Abelian.Schemes |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.Flat |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.Finite |
| 4 | import Mathlib.AlgebraicGeometry.Morphisms.FlatRank |
| 5 | import Mathlib.FieldTheory.IsAlgClosed.Basic |
| 6 | |
| 7 | /-! # Isogenies -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! Finite flat isogenies and the tame geometric kernel type of a polarization. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 16 | open scoped _root_.CategoryTheory.MonObj |
| 17 | open scoped BigOperators |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | variable {g h : ℕ} {S : Scheme.{u}} |
| 22 | |
| 23 | /-- A group-scheme morphism acts on test-scheme points. -/ |
| 24 | def Abelian.Schemes.AbelianScheme.mapPoints (A : Abelian.Schemes.AbelianScheme g S) (B : Abelian.Schemes.AbelianScheme h S) |
| 25 | (f : A.scheme ⟶ B.scheme) [IsMonHom f] (T : Over S) : |
| 26 | A.Points T →* B.Points T where |
| 27 | toFun a := a ≫ f |
| 28 | map_one' := MonObj.one_comp f |
| 29 | map_mul' a b := MonObj.mul_comp a b f |
| 30 | |
| 31 | /-- An isogeny is a finite, flat, surjective morphism of group schemes. -/ |
| 32 | structure Abelian.Schemes.AbelianScheme.Isogeny (A : Abelian.Schemes.AbelianScheme g S) (B : Abelian.Schemes.AbelianScheme h S) where |
| 33 | hom : A.scheme ⟶ B.scheme |
| 34 | preservesGroup : IsMonHom hom |
| 35 | finite : IsFinite hom.left |
| 36 | flat : Flat hom.left |
| 37 | surjective : Surjective hom.left |
| 38 | |
| 39 | attribute [instance] Abelian.Schemes.AbelianScheme.Isogeny.preservesGroup Abelian.Schemes.AbelianScheme.Isogeny.finite Abelian.Schemes.AbelianScheme.Isogeny.flat Abelian.Schemes.AbelianScheme.Isogeny.surjective |
| 40 | |
| 41 | /-- The identity is an isogeny. -/ |
| 42 | def Abelian.Schemes.AbelianScheme.Isogeny.identity (A : Abelian.Schemes.AbelianScheme g S) : Abelian.Schemes.AbelianScheme.Isogeny A A where |
| 43 | hom := 𝟙 A.scheme |
| 44 | preservesGroup := inferInstance |
| 45 | finite := inferInstanceAs (IsFinite (𝟙 A.scheme.left)) |
| 46 | flat := inferInstanceAs (Flat (𝟙 A.scheme.left)) |
| 47 | surjective := inferInstanceAs (Surjective (𝟙 A.scheme.left)) |
| 48 | |
| 49 | /-- Kernel points over a test scheme. -/ |
| 50 | def Abelian.Schemes.AbelianScheme.Isogeny.kernelAt {A : Abelian.Schemes.AbelianScheme g S} {B : Abelian.Schemes.AbelianScheme h S} |
| 51 | (f : Abelian.Schemes.AbelianScheme.Isogeny A B) (T : Over S) : Subgroup (A.Points T) := |
| 52 | (A.mapPoints B f.hom T).ker |
| 53 | |
| 54 | /-- Polarization type includes both finite-flat degree and elementary divisors of |
| 55 | geometric kernel points. The degree condition retains nonreduced kernel length, |
| 56 | which geometric points alone cannot detect in positive characteristic. -/ |
| 57 | structure Abelian.Schemes.AbelianScheme.Isogeny.HasPolarizationType {A : Abelian.Schemes.AbelianScheme g S} {B : Abelian.Schemes.AbelianScheme g S} |
| 58 | (f : Abelian.Schemes.AbelianScheme.Isogeny A B) (δ : Fin g → ℕ) : Prop where |
| 59 | degree : ∀ b : B.scheme.left, f.hom.left.finrank b = (∏ i, δ i) ^ 2 |
| 60 | geometricKernel : ∀ (K : Type u) [Field K] [IsAlgClosed K] (s : Spec (.of K) ⟶ S), |
| 61 | Nonempty (f.kernelAt (Over.mk s) ≃* |
| 62 | Multiplicative ((∀ i : Fin g, ZMod (δ i)) × (∀ i : Fin g, ZMod (δ i)))) |
| 63 | |
| 64 | /-- An isogeny of principal polarization type is an isomorphism. -/ |
| 65 | theorem Abelian.Schemes.AbelianScheme.Isogeny.HasPolarizationType.principal_isIso {A B : Abelian.Schemes.AbelianScheme g S} |
| 66 | {f : Abelian.Schemes.AbelianScheme.Isogeny A B} (hf : f.HasPolarizationType (fun _ => 1)) : IsIso f.hom.left := by |
| 67 | apply (Scheme.Hom.isIso_iff_finrank_eq f.hom.left).mpr |
| 68 | funext b |
| 69 | simpa using hf.degree b |
| 70 | |
| 71 | end |
| 72 | |
| 73 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction |