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.GroupSchemes.AffineHopf |
| 2 | import OAI.AlgebraicGeometry.AbelianScheme.CartierDuality.DualAlgebra |
| 3 | |
| 4 | /-! # Cartier -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.GroupSchemes |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # FiniteEtale: finite Cartier duals of the given geometric group schemes |
| 12 | |
| 13 | The dual's Hopf algebra is the convolution dual of the coordinate Hopf algebra |
| 14 | recovered from the input scheme. The dual algebra construction and its Hopf |
| 15 | axioms are proved in DualAlgebra; no statement placeholder is imported. |
| 16 | -/ |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 19 | open OAI.AlgebraicGeometry.AbelianScheme.CartierDuality.DualAlgebra.Construction |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | variable {k : Type u} [Field k] |
| 24 | |
| 25 | /-- A finite cocommutative Hopf algebra gives an actual commutative group scheme. -/ |
| 26 | def FiniteEtale.FiniteCommGroupScheme.ofHopf (A : Type u) [CommRing A] [HopfAlgebra k A] |
| 27 | [Coalgebra.IsCocomm k A] [Module.Finite k A] : FiniteEtale.FiniteCommGroupScheme k where |
| 28 | algebra := CommAlgCat.of k A |
| 29 | finite := inferInstance |
| 30 | group := by |
| 31 | change CommGrpObj ((Spec (CommRingCat.of A)).asOver (Spec (CommRingCat.of k))) |
| 32 | exact AlgebraicGeometry.instCommGrpObjSpecAsOverSpec |
| 33 | (R := CommRingCat.of k) (A := CommRingCat.of A) |
| 34 | |
| 35 | /-- The finite dual group scheme, for a coordinate algebra with fixed instances. -/ |
| 36 | def FiniteEtale.FiniteCommGroupScheme.dualOfHopf (A : Type u) [CommRing A] [HopfAlgebra k A] |
| 37 | [Coalgebra.IsCocomm k A] [Module.Finite k A] : FiniteEtale.FiniteCommGroupScheme k := |
| 38 | FiniteEtale.FiniteCommGroupScheme.ofHopf (k := k) (AbelianScheme.CartierDuality.DualAlgebra.Construction.DualCoordinate k A) |
| 39 | |
| 40 | theorem FiniteEtale.FiniteCommGroupScheme.dualOfHopf_rank (A : Type u) [CommRing A] [HopfAlgebra k A] |
| 41 | [Coalgebra.IsCocomm k A] [Module.Finite k A] : |
| 42 | Module.finrank k (FiniteEtale.FiniteCommGroupScheme.dualOfHopf (k := k) A).algebra = Module.finrank k A := by |
| 43 | change Module.finrank k (AbelianScheme.CartierDuality.DualAlgebra.Construction.DualCoordinate k A) = _ |
| 44 | rw [(AbelianScheme.CartierDuality.DualAlgebra.Construction.dualCoordinateLinearEquiv k A).finrank_eq] |
| 45 | exact Subspace.dual_finrank_eq |
| 46 | |
| 47 | /-- Cartier duality on finite commutative group schemes over k. -/ |
| 48 | def FiniteEtale.FiniteCommGroupScheme.cartierDual (G : FiniteEtale.FiniteCommGroupScheme k) : FiniteEtale.FiniteCommGroupScheme k := by |
| 49 | exact @FiniteEtale.FiniteCommGroupScheme.dualOfHopf k _ G.algebra _ G.coordinateHopf G.coordinateHopf_cocomm G.finite |
| 50 | |
| 51 | /-- The coordinate dimension, and hence the order, is preserved by Cartier duality. -/ |
| 52 | theorem FiniteEtale.FiniteCommGroupScheme.cartierDual_rank (G : FiniteEtale.FiniteCommGroupScheme k) : |
| 53 | Module.finrank k G.cartierDual.algebra = Module.finrank k G.algebra := by |
| 54 | exact @FiniteEtale.FiniteCommGroupScheme.dualOfHopf_rank k _ G.algebra _ G.coordinateHopf G.coordinateHopf_cocomm G.finite |
| 55 | |
| 56 | end |
| 57 | |
| 58 | end OAI.AlgebraicGeometry.GroupSchemes |