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.CartierDuality.SheafCharacterComparison |
| 2 | import OAI.AlgebraicGeometry.AbelianScheme.CartierDuality.SheafBaseChange |
| 3 | import OAI.AlgebraicGeometry.AbelianScheme.CartierDuality.SheafQuotients |
| 4 | import Mathlib.Algebra.Category.Grp.EpiMono |
| 5 | |
| 6 | /-! # Represented Morphisms -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianScheme.CartierDuality.RepresentedMorphisms |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! |
| 13 | # CartierDuality: morphisms between native group schemes and their commutative fppf sheaves |
| 14 | -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 17 | open scoped _root_.CategoryTheory.MonObj _root_.CategoryTheory.Obj |
| 18 | |
| 19 | attribute [local instance] Over.cartesianMonoidalCategory |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace Construction.Schemes |
| 24 | |
| 25 | /-- The represented commutative fppf-sheaf construction is fully |
| 26 | faithful on native commutative group schemes. -/ |
| 27 | def representedFppfAbHomEquiv {S : Scheme.{u}} (G H : Grp (Over S)) |
| 28 | [IsCommMonObj G.X] [IsCommMonObj H.X] : |
| 29 | (G ⟶ H) ≃ (CommutativeSheavesAb.Construction.Schemes.representedFppfAb S G ⟶ CommutativeSheavesAb.Construction.Schemes.representedFppfAb S H) := |
| 30 | yonedaGrpFullyFaithful.homEquiv.trans |
| 31 | (((CommGrpCat.fullyFaithfulForget₂ToGrp.whiskeringRight (Over S)ᵒᵖ).homEquiv |
| 32 | (X := CharacterGroupSheaf.Construction.Schemes.commGroupPoints S G) (Y := CharacterGroupSheaf.Construction.Schemes.commGroupPoints S H)).symm.trans |
| 33 | ((((show CommGrpCat.uliftFunctor.{u + 1, u}.FullyFaithful from |
| 34 | CommGrpCat.uliftFunctorFullyFaithful).whiskeringRight (Over S)ᵒᵖ).homEquiv |
| 35 | (X := CharacterGroupSheaf.Construction.Schemes.commGroupPoints S G) (Y := CharacterGroupSheaf.Construction.Schemes.commGroupPoints S H)).trans |
| 36 | ((fullyFaithfulSheafToPresheaf (Scheme.fppfTopology.over S) CommGrpCat.{u + 1}).homEquiv |
| 37 | (X := CommutativeSheavesAb.Construction.Schemes.representedFppfAb S G) (Y := CommutativeSheavesAb.Construction.Schemes.representedFppfAb S H)).symm)) |
| 38 | |
| 39 | /-- The represented commutative sheaf morphism of a native group morphism. -/ |
| 40 | def representedFppfAbMap {S : Scheme.{u}} {G H : Grp (Over S)} |
| 41 | [IsCommMonObj G.X] [IsCommMonObj H.X] (f : G ⟶ H) : |
| 42 | CommutativeSheavesAb.Construction.Schemes.representedFppfAb S G ⟶ CommutativeSheavesAb.Construction.Schemes.representedFppfAb S H := |
| 43 | representedFppfAbHomEquiv G H f |
| 44 | |
| 45 | /-- The represented morphism acts by the original native morphism on points. -/ |
| 46 | theorem representedFppfAbMap_apply {S : Scheme.{u}} {G H : Grp (Over S)} |
| 47 | [IsCommMonObj G.X] [IsCommMonObj H.X] (f : G ⟶ H) (T : Over S) (x : T ⟶ G.X) : |
| 48 | (representedFppfAbMap f).hom.app (Opposite.op T) (ULift.up x) = |
| 49 | ULift.up (x ≫ f.hom.hom) := rfl |
| 50 | |
| 51 | /-- The represented sheaf morphisms preserve native identities. -/ |
| 52 | theorem representedFppfAbMap_id {S : Scheme.{u}} (G : Grp (Over S)) [IsCommMonObj G.X] : |
| 53 | representedFppfAbMap (𝟙 G) = 𝟙 (CommutativeSheavesAb.Construction.Schemes.representedFppfAb S G) := by |
| 54 | apply (sheafToPresheaf (Scheme.fppfTopology.over S) CommGrpCat.{u + 1}).map_injective |
| 55 | apply NatTrans.ext |
| 56 | funext T |
| 57 | apply CommGrpCat.hom_ext |
| 58 | apply MonoidHom.ext |
| 59 | rintro ⟨x⟩ |
| 60 | exact congrArg ULift.up (Category.comp_id x) |
| 61 | |
| 62 | /-- The represented sheaf morphisms preserve native composition. -/ |
| 63 | theorem representedFppfAbMap_comp {S : Scheme.{u}} {G H K : Grp (Over S)} |
| 64 | [IsCommMonObj G.X] [IsCommMonObj H.X] [IsCommMonObj K.X] (f : G ⟶ H) (g : H ⟶ K) : |
| 65 | representedFppfAbMap (f ≫ g) = representedFppfAbMap f ≫ representedFppfAbMap g := by |
| 66 | apply (sheafToPresheaf (Scheme.fppfTopology.over S) CommGrpCat.{u + 1}).map_injective |
| 67 | apply NatTrans.ext |
| 68 | funext T |
| 69 | apply CommGrpCat.hom_ext |
| 70 | apply MonoidHom.ext |
| 71 | rintro ⟨x⟩ |
| 72 | exact congrArg ULift.up (Category.assoc x f.hom.hom g.hom.hom).symm |
| 73 | |
| 74 | /-- Forgetting the commutative group law gives the original represented |
| 75 | map of type-valued fppf sheaves. -/ |
| 76 | theorem representedFppfAbMap_forget {S : Scheme.{u}} {G H : Grp (Over S)} |
| 77 | [IsCommMonObj G.X] [IsCommMonObj H.X] (f : G ⟶ H) : |
| 78 | (sheafCompose (Scheme.fppfTopology.over S) (forget CommGrpCat.{u + 1})).map |
| 79 | (representedFppfAbMap f) = |
| 80 | (Scheme.fppfTopology.over S).uliftYoneda.map f.hom.hom := rfl |
| 81 | |
| 82 | /-- A monomorphism of represented commutative fppf sheaves is a |
| 83 | monomorphism of the underlying native schemes over the base. -/ |
| 84 | theorem representedFppfAbMap_mono_underlying {S : Scheme.{u}} {G H : Grp (Over S)} |
| 85 | [IsCommMonObj G.X] [IsCommMonObj H.X] (f : G ⟶ H) [Mono (representedFppfAbMap f)] : |
| 86 | Mono f.hom.hom := by |
| 87 | constructor |
| 88 | intro T x y hxy |
| 89 | have hm : Mono ((representedFppfAbMap f).hom.app (Opposite.op T)) := inferInstance |
| 90 | have he : ULift.up.{u + 1} x = ULift.up.{u + 1} y := |
| 91 | (CommGrpCat.mono_iff_injective ((representedFppfAbMap f).hom.app (Opposite.op T))).mp hm |
| 92 | ((representedFppfAbMap_apply f T x).trans |
| 93 | ((congrArg ULift.up hxy).trans (representedFppfAbMap_apply f T y).symm)) |
| 94 | exact congrArg ULift.down he |
| 95 | |
| 96 | /-- A native group monomorphism gives a monomorphism of the actual |
| 97 | represented commutative fppf sheaves. -/ |
| 98 | theorem representedFppfAbMap_mono {S : Scheme.{u}} {G H : Grp (Over S)} |
| 99 | [IsCommMonObj G.X] [IsCommMonObj H.X] (f : G ⟶ H) [Mono f.hom.hom] : |
| 100 | Mono (representedFppfAbMap f) := by |
| 101 | constructor |
| 102 | intro Z a b hab |
| 103 | apply (sheafToPresheaf (Scheme.fppfTopology.over S) CommGrpCat.{u + 1}).map_injective |
| 104 | apply NatTrans.ext |
| 105 | funext T |
| 106 | apply CommGrpCat.hom_ext |
| 107 | apply MonoidHom.ext |
| 108 | intro x |
| 109 | apply ULift.ext |
| 110 | apply (cancel_mono f.hom.hom).mp |
| 111 | exact congrArg ULift.down (congrArg |
| 112 | (fun c : Z ⟶ CommutativeSheavesAb.Construction.Schemes.representedFppfAb S H => c.hom.app T x) hab) |
| 113 | |
| 114 | /-- A finite represented subgroup of a separated group scheme is a |
| 115 | closed subgroup scheme, including in the nonreduced case. -/ |
| 116 | theorem representedFppfAbMap_closedImmersion {S : Scheme.{u}} {G H : Grp (Over S)} |
| 117 | [IsCommMonObj G.X] [IsCommMonObj H.X] [IsFinite G.X.hom] [IsSeparated H.X.hom] |
| 118 | (f : G ⟶ H) [Mono (representedFppfAbMap f)] : IsClosedImmersion f.hom.hom.left := by |
| 119 | let : Mono f.hom.hom := representedFppfAbMap_mono_underlying f |
| 120 | let : IsFinite (f.hom.hom.left ≫ H.X.hom) := f.hom.hom.w.symm ▸ inferInstanceAs (IsFinite G.X.hom) |
| 121 | let : IsFinite f.hom.hom.left := IsFinite.of_comp f.hom.hom.left H.X.hom |
| 122 | exact (IsClosedImmersion.iff_isFinite_and_mono f.hom.hom.left).mpr ⟨inferInstance, inferInstance⟩ |
| 123 | |
| 124 | end Construction.Schemes |
| 125 | |
| 126 | end |
| 127 | |
| 128 | end OAI.AlgebraicGeometry.AbelianScheme.CartierDuality.RepresentedMorphisms |