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.CartierDuality.PolarizedTorsion |
| 2 | import OAI.AlgebraicGeometry.Picard.Homomorphisms.FiniteHopfPresentation |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.FlatRank |
| 4 | |
| 5 | /-! # Cartier Rank -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.CartierRank.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | Cartier duality preserves the actual finite-flat rank over a field. |
| 13 | The comparison uses the constructed dual Hopf algebra and the unique |
| 14 | isomorphism of character representatives. |
| 15 | -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 18 | open scoped _root_.CategoryTheory.MonObj _root_.CategoryTheory.Obj |
| 19 | |
| 20 | open OAI.AlgebraicGeometry.CartierDuality.PolarizedTorsion.Construction OAI.AlgebraicGeometry.Picard.Homomorphisms.FiniteHopfPresentation.Construction |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | theorem groupScheme_finrank_of_hopfIso |
| 25 | {k : Type u} [Field k] (R : CommHopfAlgCat k) [Module.Finite k R] |
| 26 | (G : Grp (Over (Spec (.of k)))) [IsFinite G.X.hom] [Flat G.X.hom] |
| 27 | (e : (hopfSpec (.of k)).obj (.op R) ≅ G) (s : Spec (.of k)) : |
| 28 | G.X.hom.finrank s = Module.finrank k R := by |
| 29 | let i : ((hopfSpec (.of k)).obj (.op R)).X ≅ G.X := (Grp.forget _).mapIso e |
| 30 | have : IsIso i.hom.left := inferInstanceAs (IsIso ((Over.forget _).map i.hom)) |
| 31 | have h : ((hopfSpec (.of k)).obj (.op R)).X.hom.finrank s = Module.finrank k R := by |
| 32 | change (Spec.map (CommRingCat.ofHom (algebraMap k R))).finrank s = _ |
| 33 | have hs := Scheme.Hom.finrank_SpecMap_algebraMap k R (show PrimeSpectrum k from s) |
| 34 | rw [Module.rankAtStalk_eq_finrank_of_free] at hs |
| 35 | exact hs |
| 36 | rw [← i.hom.w, Scheme.Hom.finrank_comp_left_of_isIso] at h |
| 37 | exact h |
| 38 | |
| 39 | theorem cartierGroupRepresentation_finrank |
| 40 | {k : Type u} [Field k] |
| 41 | (G : Grp (Over (Spec (.of k)))) [IsCommMonObj G.X] |
| 42 | [IsFinite G.X.hom] [Flat G.X.hom] |
| 43 | (C : CartierDuality.GroupRepresentatives.Construction.Schemes.CharacterGroupRepresentation (Spec (.of k)) G) (s : Spec (.of k)) : |
| 44 | C.dual.X.hom.finrank s = G.X.hom.finrank s := by |
| 45 | obtain ⟨R, hf, hc, ⟨e⟩⟩ := Picard.Homomorphisms.FiniteHopfPresentation.Construction.finite_commutative_hopfPresentation k G |
| 46 | have : Module.Finite k R := hf |
| 47 | have : Coalgebra.IsCocomm k R := hc |
| 48 | have : IsFinite C.dual.X.hom := C.finite |
| 49 | have : Flat C.dual.X.hom := C.flat |
| 50 | let D := CartierDuality.PolarizedTorsion.Construction.affineCartierGroupRepresentation k R |
| 51 | let j : C.dual.X ≅ D.dual.X := (Grp.forget _).mapIso (C.dualMapIso D e) |
| 52 | have : IsIso j.hom.left := inferInstanceAs (IsIso ((Over.forget _).map j.hom)) |
| 53 | have : IsFinite D.dual.X.hom := D.finite |
| 54 | have : Flat D.dual.X.hom := D.flat |
| 55 | have hr : D.dual.X.hom.finrank s = Module.finrank k (CartierDuality.DualAlgebra.Construction.DualCoordinate k R) := by |
| 56 | change (Spec.map (CommRingCat.ofHom (algebraMap k (CartierDuality.DualAlgebra.Construction.DualCoordinate k R)))).finrank s = _ |
| 57 | have hs := Scheme.Hom.finrank_SpecMap_algebraMap k (CartierDuality.DualAlgebra.Construction.DualCoordinate k R) |
| 58 | (show PrimeSpectrum k from s) |
| 59 | rw [Module.rankAtStalk_eq_finrank_of_free] at hs |
| 60 | exact hs |
| 61 | calc |
| 62 | C.dual.X.hom.finrank s = D.dual.X.hom.finrank s := by |
| 63 | rw [← j.hom.w, Scheme.Hom.finrank_comp_left_of_isIso] |
| 64 | _ = Module.finrank k (CartierDuality.DualAlgebra.Construction.DualCoordinate k R) := hr |
| 65 | _ = Module.finrank k R := |
| 66 | (CartierDuality.DualAlgebra.Construction.dualCoordinateLinearEquiv k R).finrank_eq.trans (Subspace.dual_finrank_eq ..) |
| 67 | _ = G.X.hom.finrank s := (groupScheme_finrank_of_hopfIso R G e s).symm |
| 68 | |
| 69 | end |
| 70 | |
| 71 | end OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.CartierRank.Construction |