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.Constant.GroupMaps |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.ConstantScheme |
| 3 | import Mathlib.LinearAlgebra.FiniteDimensional.Basic |
| 4 | |
| 5 | /-! # Etale Subgroups -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianScheme.FrobeniusKernel.EtaleSubgroups.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | Actual finite étale group schemes used for the chosen active étale lines. |
| 13 | The schemes are disjoint unions of the base; their group structure and |
| 14 | subgroup maps are reconstructed from all locally constant test sections. |
| 15 | These models are used only for the étale ordinary factors. |
| 16 | -/ |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 19 | open scoped _root_.CategoryTheory.MonObj |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | def etaleGroupRepresentable (S : Scheme.{u}) (G : Type u) [Group G] : |
| 24 | (AbelianModuli.HilbertConstruction.Constant.GroupMaps.constantGroupFunctor S G ⋙ forget GrpCat).RepresentableBy (AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantScheme S G) where |
| 25 | homEquiv := AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantSchemePointsEquiv S G _ |
| 26 | homEquiv_comp h t := by |
| 27 | apply LocallyConstant.ext |
| 28 | intro x |
| 29 | rfl |
| 30 | |
| 31 | /-- The native finite constant group scheme for an étale label group. -/ |
| 32 | def etaleGroupScheme (S : Scheme.{u}) (G : Type u) [Group G] : Grp (Over S) := by |
| 33 | letI : GrpObj (AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantScheme S G) := GrpObj.ofRepresentableBy (AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantScheme S G) |
| 34 | (AbelianModuli.HilbertConstruction.Constant.GroupMaps.constantGroupFunctor S G) (etaleGroupRepresentable S G) |
| 35 | exact Grp.mk (AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantScheme S G) |
| 36 | |
| 37 | def etaleGroupPointIso (S : Scheme.{u}) (G : Type u) [Group G] : |
| 38 | yonedaGrp.obj (etaleGroupScheme S G) ≅ AbelianModuli.HilbertConstruction.Constant.GroupMaps.constantGroupFunctor S G := |
| 39 | yonedaGrpObjIsoOfRepresentableBy (AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantScheme S G) |
| 40 | (AbelianModuli.HilbertConstruction.Constant.GroupMaps.constantGroupFunctor S G) (etaleGroupRepresentable S G) |
| 41 | |
| 42 | instance etaleGroupScheme_finite (S : Scheme.{u}) (G : Type u) [Group G] [Finite G] : |
| 43 | IsFinite (etaleGroupScheme S G).X.hom := AbelianModuli.HilbertConstruction.Finite.ConstantScheme.constantScheme_finite |
| 44 | |
| 45 | instance etaleGroupScheme_etale (S : Scheme.{u}) (G : Type u) [Group G] : |
| 46 | Etale (etaleGroupScheme S G).X.hom := AbelianModuli.HilbertConstruction.Level.Scheme.constantScheme_etale S G |
| 47 | |
| 48 | /-- A homomorphism of étale labels induces an actual group-scheme map. -/ |
| 49 | def etaleGroupMap (S : Scheme.{u}) {G H : Type u} [Group G] [Group H] (f : G →* H) : |
| 50 | etaleGroupScheme S G ⟶ etaleGroupScheme S H := |
| 51 | (yonedaGrpFullyFaithful (C := Over S)).preimage |
| 52 | ((etaleGroupPointIso S G).hom ≫ |
| 53 | AbelianModuli.HilbertConstruction.Constant.GroupMaps.constantGroupMapOfLabels (LocallyConstant.const S f) ≫ (etaleGroupPointIso S H).inv) |
| 54 | |
| 55 | theorem etaleGroupMap_sections (S : Scheme.{u}) {G H : Type u} [Group G] [Group H] |
| 56 | (f : G →* H) (T : Over S) (a : T ⟶ (etaleGroupScheme S G).X) (x : T.left) : |
| 57 | LocallyConstant.toFun ((etaleGroupPointIso S H).hom.app (.op T) |
| 58 | (a ≫ (etaleGroupMap S f).hom.hom)) x = |
| 59 | f (LocallyConstant.toFun ((etaleGroupPointIso S G).hom.app (.op T) a) x) := by |
| 60 | have h := (yonedaGrpFullyFaithful (C := Over S)).map_preimage |
| 61 | ((etaleGroupPointIso S G).hom ≫ |
| 62 | AbelianModuli.HilbertConstruction.Constant.GroupMaps.constantGroupMapOfLabels (LocallyConstant.const S f) ≫ (etaleGroupPointIso S H).inv) |
| 63 | have hc := congrArg (fun α => α ≫ (etaleGroupPointIso S H).hom) h |
| 64 | simp only [Category.assoc, Iso.inv_hom_id, Category.comp_id] at hc |
| 65 | have ha := congrArg (fun α => (α.app (.op T)).hom a) hc |
| 66 | exact congrArg (fun c : LocallyConstant T.left H => c x) ha |
| 67 | |
| 68 | theorem etaleGroupMap_mono (S : Scheme.{u}) {G H : Type u} [Group G] [Group H] |
| 69 | (f : G →* H) (hf : Function.Injective f) : Mono (etaleGroupMap S f).hom.hom where |
| 70 | right_cancellation a b hab := by |
| 71 | apply ((etaleGroupPointIso S G).app (.op _)).groupIsoToMulEquiv.injective |
| 72 | apply LocallyConstant.ext |
| 73 | intro x |
| 74 | apply hf |
| 75 | exact (etaleGroupMap_sections S f _ a x).symm.trans |
| 76 | ((congrArg (fun c => LocallyConstant.toFun |
| 77 | ((etaleGroupPointIso S H).hom.app (.op _) c) x) hab).trans |
| 78 | (etaleGroupMap_sections S f _ b x)) |
| 79 | |
| 80 | /-- The active étale q-torsion plane has its literal rank-two label space. -/ |
| 81 | abbrev ActiveEtalePlane (q : ℕ) := Fin 2 → ZMod q |
| 82 | |
| 83 | /-- Lines are actual submodules, with each submodule occurring once. -/ |
| 84 | def ActiveEtaleLine (q : ℕ) [Fact q.Prime] := |
| 85 | {L : Submodule (ZMod q) (ActiveEtalePlane q) // Module.finrank (ZMod q) L = 1} |
| 86 | |
| 87 | instance activeEtaleLine_finite (q : ℕ) [Fact q.Prime] : Finite (ActiveEtaleLine q) := by |
| 88 | unfold ActiveEtaleLine |
| 89 | infer_instance |
| 90 | |
| 91 | def activeEtaleLineLabels (q : ℕ) [Fact q.Prime] (L : ActiveEtaleLine q) : |
| 92 | Multiplicative L.val →* Multiplicative (ActiveEtalePlane q) where |
| 93 | toFun x := Multiplicative.ofAdd x.toAdd.val |
| 94 | map_one' := rfl |
| 95 | map_mul' _ _ := rfl |
| 96 | |
| 97 | theorem activeEtaleLineLabels_injective (q : ℕ) [Fact q.Prime] (L : ActiveEtaleLine q) : |
| 98 | Function.Injective (activeEtaleLineLabels q L) := by |
| 99 | intro x y h |
| 100 | apply Multiplicative.toAdd.injective |
| 101 | apply Subtype.ext |
| 102 | exact congrArg Multiplicative.toAdd h |
| 103 | |
| 104 | /-- Finite injective label maps give closed embeddings of actual schemes. -/ |
| 105 | theorem etaleGroupMap_closed (S : Scheme.{u}) {G H : Type u} [Group G] [Group H] |
| 106 | [Finite G] [Finite H] (f : G →* H) (hf : Function.Injective f) : |
| 107 | IsClosedImmersion (etaleGroupMap S f).hom.hom.left := by |
| 108 | let a := (etaleGroupMap S f).hom.hom |
| 109 | have : Mono a := etaleGroupMap_mono S f hf |
| 110 | have : IsFinite (a.left ≫ (etaleGroupScheme S H).X.hom) := |
| 111 | (congrArg IsFinite a.w).mpr (etaleGroupScheme_finite S G) |
| 112 | have : IsFinite a.left := IsFinite.of_comp a.left (etaleGroupScheme S H).X.hom |
| 113 | exact (IsClosedImmersion.iff_isFinite_and_mono a.left).mpr ⟨inferInstance, inferInstance⟩ |
| 114 | |
| 115 | def liftedActiveEtaleLineLabels (q : ℕ) [Fact q.Prime] (L : ActiveEtaleLine q) : |
| 116 | ULift.{u} (Multiplicative L.val) →* ULift.{u} (Multiplicative (ActiveEtalePlane q)) where |
| 117 | toFun x := ⟨activeEtaleLineLabels q L x.down⟩ |
| 118 | map_one' := by apply ULift.ext; exact (activeEtaleLineLabels q L).map_one |
| 119 | map_mul' x y := by apply ULift.ext; exact (activeEtaleLineLabels q L).map_mul x.down y.down |
| 120 | |
| 121 | theorem liftedActiveEtaleLineLabels_injective (q : ℕ) [Fact q.Prime] |
| 122 | (L : ActiveEtaleLine q) : Function.Injective (liftedActiveEtaleLineLabels.{u} q L) := by |
| 123 | intro x y h |
| 124 | apply ULift.ext |
| 125 | apply activeEtaleLineLabels_injective q L |
| 126 | exact congrArg ULift.down h |
| 127 | |
| 128 | def activeEtalePlaneScheme (S : Scheme.{u}) (q : ℕ) : Grp (Over S) := |
| 129 | etaleGroupScheme S (ULift.{u} (Multiplicative (ActiveEtalePlane q))) |
| 130 | |
| 131 | def activeEtaleLineScheme (S : Scheme.{u}) (q : ℕ) [Fact q.Prime] |
| 132 | (L : ActiveEtaleLine q) : Grp (Over S) := |
| 133 | etaleGroupScheme S (ULift.{u} (Multiplicative L.val)) |
| 134 | |
| 135 | /-- The chosen line is embedded in the active étale q-torsion plane. -/ |
| 136 | def activeEtaleLineEmbedding (S : Scheme.{u}) (q : ℕ) [Fact q.Prime] |
| 137 | (L : ActiveEtaleLine q) : activeEtaleLineScheme S q L ⟶ activeEtalePlaneScheme S q := |
| 138 | etaleGroupMap S (liftedActiveEtaleLineLabels q L) |
| 139 | |
| 140 | theorem activeEtaleLineEmbedding_closed (S : Scheme.{u}) (q : ℕ) [Fact q.Prime] |
| 141 | (L : ActiveEtaleLine q) : IsClosedImmersion (activeEtaleLineEmbedding S q L).hom.hom.left := |
| 142 | etaleGroupMap_closed S (liftedActiveEtaleLineLabels q L) |
| 143 | (liftedActiveEtaleLineLabels_injective q L) |
| 144 | |
| 145 | theorem activeEtaleLineScheme_finiteLocallyFree (S : Scheme.{u}) (q : ℕ) [Fact q.Prime] |
| 146 | (L : ActiveEtaleLine q) : |
| 147 | IsFinite (activeEtaleLineScheme S q L).X.hom ∧ |
| 148 | Flat (activeEtaleLineScheme S q L).X.hom ∧ |
| 149 | LocallyOfFinitePresentation (activeEtaleLineScheme S q L).X.hom := by |
| 150 | have : Etale (activeEtaleLineScheme S q L).X.hom := etaleGroupScheme_etale S _ |
| 151 | exact ⟨etaleGroupScheme_finite S _, inferInstance, inferInstance⟩ |
| 152 | |
| 153 | end |
| 154 | |
| 155 | end OAI.AlgebraicGeometry.AbelianScheme.FrobeniusKernel.EtaleSubgroups.Construction |