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.FiniteEtale |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.FlatRank |
| 3 | |
| 4 | /-! # Rank Specialization -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.PELModuli.CMPoints.RankSpecialization |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Comparison of FiniteEtale's coordinate dimensions with the geometric ranks |
| 11 | of finite flat morphisms, and constancy under specialization. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 14 | |
| 15 | theorem finite_group_geometric_rank {k : Type} [Field k] |
| 16 | (H : GroupSchemes.FiniteEtale.FiniteCommGroupScheme k) (x : Spec (.of k)) : |
| 17 | H.scheme.hom.finrank x = Module.finrank k H.algebra := by |
| 18 | exact (Scheme.Hom.finrank_SpecMap_algebraMap k H.algebra x).trans |
| 19 | (congrFun (Module.rankAtStalk_eq_finrank_of_free (R := k) (M := H.algebra)) x) |
| 20 | |
| 21 | theorem finite_group_rank_of_iso {k : Type} [Field k] |
| 22 | (G H : GroupSchemes.FiniteEtale.FiniteCommGroupScheme k) (e : G.scheme ≅ H.scheme) : |
| 23 | Module.finrank k G.algebra = Module.finrank k H.algebra := by |
| 24 | let x : Spec (.of k) := IsLocalRing.closedPoint k |
| 25 | have : IsIso e.hom.left := inferInstanceAs |
| 26 | (IsIso (((Over.forget (Spec (.of k))).mapIso e).hom)) |
| 27 | calc |
| 28 | Module.finrank k G.algebra = G.scheme.hom.finrank x := (finite_group_geometric_rank G x).symm |
| 29 | _ = (e.hom.left ≫ H.scheme.hom).finrank x := congrArg (fun u => u.finrank x) e.hom.w.symm |
| 30 | _ = H.scheme.hom.finrank x := |
| 31 | congrFun (Scheme.Hom.finrank_comp_left_of_isIso e.hom.left H.scheme.hom) x |
| 32 | _ = Module.finrank k H.algebra := finite_group_geometric_rank H x |
| 33 | |
| 34 | theorem finite_group_fiber_rank {X S : Scheme} (f : X ⟶ S) [IsFinite f] [Flat f] |
| 35 | {k : Type} [Field k] (p : Spec (.of k) ⟶ S) |
| 36 | (H : GroupSchemes.FiniteEtale.FiniteCommGroupScheme k) |
| 37 | (e : H.scheme ≅ Over.mk (pullback.snd f p)) (x : Spec (.of k)) : |
| 38 | Module.finrank k H.algebra = f.finrank (p x) := by |
| 39 | have : IsIso e.hom.left := inferInstanceAs |
| 40 | (IsIso (((Over.forget (Spec (.of k))).mapIso e).hom)) |
| 41 | calc |
| 42 | Module.finrank k H.algebra = H.scheme.hom.finrank x := (finite_group_geometric_rank H x).symm |
| 43 | _ = (e.hom.left ≫ pullback.snd f p).finrank x := congrArg (fun u => u.finrank x) e.hom.w.symm |
| 44 | _ = (pullback.snd f p).finrank x := |
| 45 | congrFun (Scheme.Hom.finrank_comp_left_of_isIso e.hom.left (pullback.snd f p)) x |
| 46 | _ = f.finrank (p x) := Scheme.Hom.finrank_pullback_snd f p x |
| 47 | |
| 48 | theorem finite_flat_rank_specializes {X S : Scheme} |
| 49 | (f : X ⟶ S) [IsFinite f] [Flat f] [LocallyOfFinitePresentation f] |
| 50 | {x y : S} (hxy : x ⤳ y) : f.finrank x = f.finrank y := |
| 51 | (hxy.map f.isLocallyConstant_finrank.continuous).eq |
| 52 | |
| 53 | theorem finite_flat_rank_on_component {X S : Scheme} |
| 54 | (f : X ⟶ S) [IsFinite f] [Flat f] [LocallyOfFinitePresentation f] |
| 55 | (x y : S) (hy : y ∈ connectedComponent x) : f.finrank y = f.finrank x := |
| 56 | f.isLocallyConstant_finrank.apply_eq_of_isPreconnected |
| 57 | isPreconnected_connectedComponent hy mem_connectedComponent |
| 58 | |
| 59 | /-- Once the geometric finite-flat block family and its characteristic-zero |
| 60 | rank have been proved, every specializing FiniteEtale presentation has that rank. -/ |
| 61 | theorem finite_group_rank_of_specialization {X S : Scheme} |
| 62 | (f : X ⟶ S) [IsFinite f] [Flat f] [LocallyOfFinitePresentation f] |
| 63 | {k : Type} [Field k] (p : Spec (.of k) ⟶ S) |
| 64 | (H : GroupSchemes.FiniteEtale.FiniteCommGroupScheme k) |
| 65 | (e : H.scheme ≅ Over.mk (pullback.snd f p)) |
| 66 | (x : S) (y : Spec (.of k)) (hxy : x ⤳ p y) (r : ℕ) (hr : f.finrank x = r) : |
| 67 | Module.finrank k H.algebra = r := |
| 68 | (finite_group_fiber_rank f p H e y).trans ((finite_flat_rank_specializes f hxy).symm.trans hr) |
| 69 | |
| 70 | end |
| 71 | |
| 72 | end OAI.AlgebraicGeometry.PELModuli.CMPoints.RankSpecialization |