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.AbelianScheme.FrobeniusKernel.EtaleSubgroups |
| 2 | import OAI.AlgebraicGeometry.AbelianScheme.FrobeniusKernel.AnnihilatorSheaf |
| 3 | import OAI.AlgebraicGeometry.AbelianScheme.CartierDuality.Characters |
| 4 | import Mathlib.RingTheory.Finiteness.ModuleFinitePresentation |
| 5 | |
| 6 | /-! # Ordinary Blocks -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianScheme.FrobeniusKernel.OrdinaryBlocks.Construction |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! |
| 13 | The ordinary block models are actual finite group schemes. The |
| 14 | multiplicative model is the spectrum of a group Hopf algebra, while the |
| 15 | étale model is the finite disjoint union with the same label group. |
| 16 | The ordinary splitting input is an isomorphism of these native schemes. |
| 17 | -/ |
| 18 | |
| 19 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 20 | open _root_.CategoryTheory.MonoidalCategory _root_.CategoryTheory.CartesianMonoidalCategory |
| 21 | open scoped _root_.CategoryTheory.MonObj |
| 22 | |
| 23 | universe u |
| 24 | |
| 25 | variable (R : Type u) [CommRing R] |
| 26 | |
| 27 | abbrev OrdinaryBlockLabels (q n d : ℕ) := |
| 28 | ULift.{u} (Multiplicative (Fin d → ZMod (q ^ n))) |
| 29 | |
| 30 | /-- μ_(q^n)^d is defined by its actual coordinate Hopf algebra. -/ |
| 31 | abbrev multiplicativeOrdinaryBlock (q n d : ℕ) : |
| 32 | Grp (Over (Spec (.of R))) := |
| 33 | CartierDuality.Characters.Construction.affineHopfGroupScheme R (MonoidAlgebra R (OrdinaryBlockLabels.{u} q n d)) |
| 34 | |
| 35 | /-- The étale height-d block at level n. -/ |
| 36 | def etaleOrdinaryBlock (q n d : ℕ) : Grp (Over (Spec (.of R))) := |
| 37 | EtaleSubgroups.Construction.etaleGroupScheme (Spec (.of R)) (OrdinaryBlockLabels.{u} q n d) |
| 38 | |
| 39 | theorem multiplicativeOrdinaryBlock_finiteLocallyFree (q n d : ℕ) [NeZero q] : |
| 40 | IsFinite (multiplicativeOrdinaryBlock R q n d).X.hom ∧ |
| 41 | Flat (multiplicativeOrdinaryBlock R q n d).X.hom ∧ |
| 42 | LocallyOfFinitePresentation (multiplicativeOrdinaryBlock R q n d).X.hom := by |
| 43 | have : Finite (OrdinaryBlockLabels.{u} q n d) := inferInstance |
| 44 | have : Module.FinitePresentation R (MonoidAlgebra R (OrdinaryBlockLabels.{u} q n d)) := |
| 45 | Module.finitePresentation_of_projective _ _ |
| 46 | change IsFinite (Spec.map (CommRingCat.ofHom (algebraMap R |
| 47 | (MonoidAlgebra R (OrdinaryBlockLabels.{u} q n d))))) ∧ |
| 48 | Flat (Spec.map (CommRingCat.ofHom (algebraMap R |
| 49 | (MonoidAlgebra R (OrdinaryBlockLabels.{u} q n d))))) ∧ |
| 50 | LocallyOfFinitePresentation (Spec.map (CommRingCat.ofHom (algebraMap R |
| 51 | (MonoidAlgebra R (OrdinaryBlockLabels.{u} q n d))))) |
| 52 | rw [IsFinite.SpecMap_iff, Flat.SpecMap_iff, LocallyOfFinitePresentation.SpecMap_iff] |
| 53 | exact ⟨RingHom.finite_algebraMap.mpr inferInstance, |
| 54 | RingHom.flat_algebraMap_iff.mpr inferInstance, |
| 55 | RingHom.finitePresentation_algebraMap.mpr inferInstance⟩ |
| 56 | |
| 57 | theorem etaleOrdinaryBlock_finiteLocallyFree (q n d : ℕ) [NeZero q] : |
| 58 | IsFinite (etaleOrdinaryBlock R q n d).X.hom ∧ |
| 59 | Flat (etaleOrdinaryBlock R q n d).X.hom ∧ |
| 60 | LocallyOfFinitePresentation (etaleOrdinaryBlock R q n d).X.hom := by |
| 61 | have : Etale (etaleOrdinaryBlock R q n d).X.hom := EtaleSubgroups.Construction.etaleGroupScheme_etale _ _ |
| 62 | exact ⟨EtaleSubgroups.Construction.etaleGroupScheme_finite _ _, inferInstance, inferInstance⟩ |
| 63 | |
| 64 | /-- The assumed ordinary splitting, now in native finite group schemes. |
| 65 | For the active chosen block the heights are d=1 and r=2. The compact |
| 66 | blocks have heights (3,0) or (0,3). -/ |
| 67 | abbrev OrdinaryBlockSplitting (B : Grp (Over (Spec (.of R)))) (q n d r : ℕ) := |
| 68 | B ≅ multiplicativeOrdinaryBlock R q n d ⊗ etaleOrdinaryBlock R q n r |
| 69 | |
| 70 | /-- The chosen multiplicative subgroup in the original block coordinates. -/ |
| 71 | def ordinaryMultiplicativeInclusion {B : Grp (Over (Spec (.of R)))} |
| 72 | {q n d r : ℕ} (e : OrdinaryBlockSplitting R B q n d r) : |
| 73 | multiplicativeOrdinaryBlock R q n d ⟶ B := |
| 74 | AnnihilatorSheaf.Construction.splitFirstInclusion (multiplicativeOrdinaryBlock R q n d) (etaleOrdinaryBlock R q n r) ≫ e.inv |
| 75 | |
| 76 | /-- A finite subgroup with a monomorphic inclusion in a separated scheme |
| 77 | has an actual closed embedding. -/ |
| 78 | theorem closedSubgroupOfFiniteMono {S : Scheme.{u}} {H B : Over S} |
| 79 | (i : H ⟶ B) [Mono i] [IsFinite H.hom] [IsSeparated B.hom] : |
| 80 | IsClosedImmersion i.left := by |
| 81 | have : IsFinite (i.left ≫ B.hom) := (congrArg IsFinite i.w).mpr inferInstance |
| 82 | have : IsFinite i.left := IsFinite.of_comp i.left B.hom |
| 83 | exact (IsClosedImmersion.iff_isFinite_and_mono i.left).mpr ⟨inferInstance, inferInstance⟩ |
| 84 | |
| 85 | theorem splitFirstInclusion_closed {S : Scheme.{u}} (G H : Grp (Over S)) |
| 86 | [IsFinite G.X.hom] [IsFinite H.X.hom] : |
| 87 | IsClosedImmersion (AnnihilatorSheaf.Construction.splitFirstInclusion G H).hom.hom.left := by |
| 88 | have : Mono (AnnihilatorSheaf.Construction.splitFirstInclusion G H).hom.hom := mono_of_mono_fac |
| 89 | (show (AnnihilatorSheaf.Construction.splitFirstInclusion G H).hom.hom ≫ fst G.X H.X = 𝟙 G.X from lift_fst _ _) |
| 90 | have : IsSeparated (G ⊗ H).X.hom := by |
| 91 | change IsSeparated (Limits.pullback.fst G.X.hom H.X.hom ≫ G.X.hom) |
| 92 | infer_instance |
| 93 | exact closedSubgroupOfFiniteMono (AnnihilatorSheaf.Construction.splitFirstInclusion G H).hom.hom |
| 94 | |
| 95 | theorem splitSecondInclusion_closed {S : Scheme.{u}} (G H : Grp (Over S)) |
| 96 | [IsFinite G.X.hom] [IsFinite H.X.hom] : |
| 97 | IsClosedImmersion (AnnihilatorSheaf.Construction.splitSecondInclusion G H).hom.hom.left := by |
| 98 | have : Mono (AnnihilatorSheaf.Construction.splitSecondInclusion G H).hom.hom := mono_of_mono_fac |
| 99 | (show (AnnihilatorSheaf.Construction.splitSecondInclusion G H).hom.hom ≫ snd G.X H.X = 𝟙 H.X from lift_snd _ _) |
| 100 | have : IsSeparated (G ⊗ H).X.hom := by |
| 101 | change IsSeparated (Limits.pullback.fst G.X.hom H.X.hom ≫ G.X.hom) |
| 102 | infer_instance |
| 103 | exact closedSubgroupOfFiniteMono (AnnihilatorSheaf.Construction.splitSecondInclusion G H).hom.hom |
| 104 | |
| 105 | /-- The multiplicative part of an ordinary block is a finite locally free |
| 106 | closed subgroup of that block, constructed in its original coordinates. -/ |
| 107 | theorem ordinaryMultiplicativeInclusion_closed {B : Grp (Over (Spec (.of R)))} |
| 108 | {q n d r : ℕ} [NeZero q] (e : OrdinaryBlockSplitting R B q n d r) : |
| 109 | IsClosedImmersion (ordinaryMultiplicativeInclusion R e).hom.hom.left := by |
| 110 | have : IsFinite (multiplicativeOrdinaryBlock R q n d).X.hom := |
| 111 | (multiplicativeOrdinaryBlock_finiteLocallyFree R q n d).1 |
| 112 | have : IsFinite (etaleOrdinaryBlock R q n r).X.hom := |
| 113 | (etaleOrdinaryBlock_finiteLocallyFree R q n r).1 |
| 114 | have : IsClosedImmersion |
| 115 | (AnnihilatorSheaf.Construction.splitFirstInclusion (multiplicativeOrdinaryBlock R q n d) |
| 116 | (etaleOrdinaryBlock R q n r)).hom.hom.left := splitFirstInclusion_closed _ _ |
| 117 | have : IsIso e.inv.hom.hom.left := inferInstanceAs |
| 118 | (IsIso (((Grp.forget (Over (Spec (.of R)))) ⋙ Over.forget _).map e.inv)) |
| 119 | change IsClosedImmersion |
| 120 | ((AnnihilatorSheaf.Construction.splitFirstInclusion (multiplicativeOrdinaryBlock R q n d) |
| 121 | (etaleOrdinaryBlock R q n r)).hom.hom.left ≫ e.inv.hom.hom.left) |
| 122 | infer_instance |
| 123 | |
| 124 | /-- Under CartierDuality's polarization identification of the opposite block with |
| 125 | characters, the annihilator of the chosen multiplicative kernel is the |
| 126 | dual étale block. The calculation is made in the original block scheme. -/ |
| 127 | def ordinaryMultiplicativeAnnihilatorIso {B : Grp (Over (Spec (.of R)))} |
| 128 | {q n d r : ℕ} (e : OrdinaryBlockSplitting R B q n d r) : |
| 129 | CartierDuality.CharacterSheaf.Construction.Schemes.annihilatorSheaf (ordinaryMultiplicativeInclusion R e) ≅ |
| 130 | CartierDuality.CharacterSheaf.Construction.Schemes.characterSheaf (Spec (.of R)) (etaleOrdinaryBlock R q n r) := |
| 131 | AnnihilatorSheaf.Construction.annihilatorSheafIsoOfSplitting B (multiplicativeOrdinaryBlock R q n d) |
| 132 | (etaleOrdinaryBlock R q n r) e |
| 133 | |
| 134 | end |
| 135 | |
| 136 | end OAI.AlgebraicGeometry.AbelianScheme.FrobeniusKernel.OrdinaryBlocks.Construction |