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.Directed.Gluing |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Level.RigidityLocallyNoetherian |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Moduli.BaseSquareIsomorphism |
| 4 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.ParameterPullbackLevelCoherence |
| 5 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.RecoveryFromPullbackIso |
| 6 | |
| 7 | /-! # Polarized Scheme Gluing -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Directed.PolarizedSchemeGluing |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! At full level at least three, original polarized chart isomorphisms |
| 14 | supply coherent Cartesian diagrams for both abelian schemes. The coherence |
| 15 | is proved from original full-level rigidity over the Noetherian chart |
| 16 | bases; it is not supplied as a descent assumption. -/ |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 19 | universe u |
| 20 | |
| 21 | attribute [local instance] Gluing.nativePullbackGroup |
| 22 | |
| 23 | private theorem total_composition {C : Type*} [Category* C] |
| 24 | {A B P Q R T U : C} |
| 25 | (a : A ⟶ B) (b : B ⟶ P) (c : P ⟶ Q) (d : Q ⟶ U) |
| 26 | (p : P ⟶ R) (q : R ⟶ U) (r : B ⟶ T) (s : T ⟶ R) |
| 27 | (hc : c ≫ d = p ≫ q) (hb : b ≫ p = r ≫ s) : |
| 28 | ((a ≫ b) ≫ c) ≫ d = (a ≫ r) ≫ (s ≫ q) := by |
| 29 | rw [Category.assoc, hc, ← Category.assoc, ← Category.assoc, Category.assoc a b p, |
| 30 | hb] |
| 31 | simp only [Category.assoc] |
| 32 | |
| 33 | namespace LevelPreservingIso |
| 34 | variable {S T V : Scheme.{u}} {g N : ℕ} {δ : Fin g → ℕ} |
| 35 | {A : PolarizationData.PolarizedAbelianWithFullLevel g δ N S} |
| 36 | {B : PolarizationData.PolarizedAbelianWithFullLevel g δ N T} |
| 37 | {E : PolarizationData.PolarizedAbelianWithFullLevel g δ N V} |
| 38 | |
| 39 | /-- The actual total-space morphism associated to a family isomorphism. -/ |
| 40 | def _root_.OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Moduli.Isomorphisms.LevelPreservingIso.abelianTotal (f : S ⟶ T) (e : Moduli.Isomorphisms.LevelPreservingIso A (B.pullback f)) : |
| 41 | A.abelian.scheme.left ⟶ B.abelian.scheme.left := |
| 42 | e.abelian.hom.left ≫ pullback.fst B.abelian.scheme.hom f |
| 43 | |
| 44 | def _root_.OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Moduli.Isomorphisms.LevelPreservingIso.dualTotal (f : S ⟶ T) (e : Moduli.Isomorphisms.LevelPreservingIso A (B.pullback f)) : |
| 45 | A.dual.abelian.scheme.left ⟶ B.dual.abelian.scheme.left := |
| 46 | e.dual.hom.left ≫ pullback.fst B.dual.abelian.scheme.hom f |
| 47 | |
| 48 | theorem _root_.OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Moduli.Isomorphisms.LevelPreservingIso.abelianTotal_congr (f h : S ⟶ T) (w : f = h) |
| 49 | (e : Moduli.Isomorphisms.LevelPreservingIso A (B.pullback f)) : |
| 50 | Moduli.Isomorphisms.LevelPreservingIso.abelianTotal h (e.trans (Moduli.Isomorphisms.LevelPreservingIso.ofEqualBaseMaps B f h w)) = Moduli.Isomorphisms.LevelPreservingIso.abelianTotal f e := by |
| 51 | subst h |
| 52 | change (e.abelian.hom.left ≫ 𝟙 _) ≫ pullback.fst B.abelian.scheme.hom f = |
| 53 | e.abelian.hom.left ≫ pullback.fst B.abelian.scheme.hom f |
| 54 | rw [Category.comp_id] |
| 55 | |
| 56 | theorem _root_.OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Moduli.Isomorphisms.LevelPreservingIso.dualTotal_congr (f h : S ⟶ T) (w : f = h) |
| 57 | (e : Moduli.Isomorphisms.LevelPreservingIso A (B.pullback f)) : |
| 58 | Moduli.Isomorphisms.LevelPreservingIso.dualTotal h (e.trans (Moduli.Isomorphisms.LevelPreservingIso.ofEqualBaseMaps B f h w)) = Moduli.Isomorphisms.LevelPreservingIso.dualTotal f e := by |
| 59 | subst h |
| 60 | change (e.dual.hom.left ≫ 𝟙 _) ≫ pullback.fst B.dual.abelian.scheme.hom f = |
| 61 | e.dual.hom.left ≫ pullback.fst B.dual.abelian.scheme.hom f |
| 62 | rw [Category.comp_id] |
| 63 | |
| 64 | theorem _root_.OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Moduli.Isomorphisms.LevelPreservingIso.abelianTotal_identity : |
| 65 | Moduli.Isomorphisms.LevelPreservingIso.abelianTotal (𝟙 S) (Moduli.Isomorphisms.LevelPreservingIso.pullbackId A).symm = 𝟙 A.abelian.scheme.left := by |
| 66 | change A.abelian.pullbackIdIso.inv.left ≫ pullback.fst A.abelian.scheme.hom (𝟙 S) = _ |
| 67 | rw [← A.abelian.pullbackIdIso_hom_left, ← Over.comp_left, Iso.inv_hom_id, Over.id_left] |
| 68 | |
| 69 | theorem _root_.OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Moduli.Isomorphisms.LevelPreservingIso.dualTotal_identity : |
| 70 | Moduli.Isomorphisms.LevelPreservingIso.dualTotal (𝟙 S) (Moduli.Isomorphisms.LevelPreservingIso.pullbackId A).symm = 𝟙 A.dual.abelian.scheme.left := by |
| 71 | change A.dual.abelian.pullbackIdIso.inv.left ≫ |
| 72 | pullback.fst A.dual.abelian.scheme.hom (𝟙 S) = _ |
| 73 | rw [← A.dual.abelian.pullbackIdIso_hom_left, ← Over.comp_left, Iso.inv_hom_id, Over.id_left] |
| 74 | |
| 75 | theorem _root_.OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Moduli.Isomorphisms.LevelPreservingIso.abelianTotal_composition (f : S ⟶ T) (h : T ⟶ V) |
| 76 | (e : Moduli.Isomorphisms.LevelPreservingIso A (B.pullback f)) |
| 77 | (d : Moduli.Isomorphisms.LevelPreservingIso B (E.pullback h)) : |
| 78 | Moduli.Isomorphisms.LevelPreservingIso.abelianTotal (f ≫ h) ((e.trans (d.pullback f)).trans (Moduli.Isomorphisms.LevelPreservingIso.pullbackComp E h f)) = |
| 79 | Moduli.Isomorphisms.LevelPreservingIso.abelianTotal f e ≫ Moduli.Isomorphisms.LevelPreservingIso.abelianTotal h d := |
| 80 | total_composition _ _ _ _ _ _ _ _ |
| 81 | (E.abelian.pullbackCompIso_inv_left_fst h f) |
| 82 | (Pullback.Comparisons.overPullback_map_left_fst d.abelian.hom f) |
| 83 | |
| 84 | theorem _root_.OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Moduli.Isomorphisms.LevelPreservingIso.dualTotal_composition (f : S ⟶ T) (h : T ⟶ V) |
| 85 | (e : Moduli.Isomorphisms.LevelPreservingIso A (B.pullback f)) |
| 86 | (d : Moduli.Isomorphisms.LevelPreservingIso B (E.pullback h)) : |
| 87 | Moduli.Isomorphisms.LevelPreservingIso.dualTotal (f ≫ h) ((e.trans (d.pullback f)).trans (Moduli.Isomorphisms.LevelPreservingIso.pullbackComp E h f)) = |
| 88 | Moduli.Isomorphisms.LevelPreservingIso.dualTotal f e ≫ Moduli.Isomorphisms.LevelPreservingIso.dualTotal h d := |
| 89 | total_composition _ _ _ _ _ _ _ _ |
| 90 | (E.dual.abelian.pullbackCompIso_inv_left_fst h f) |
| 91 | (Pullback.Comparisons.overPullback_map_left_fst d.dual.hom f) |
| 92 | |
| 93 | end LevelPreservingIso |
| 94 | |
| 95 | /-- Recovering a specified native pullback isomorphism from its own |
| 96 | Cartesian total-space square returns the original isomorphism. -/ |
| 97 | theorem cartesianAmbientOverIso_of_iso {S T : Scheme.{u}} (f : S ⟶ T) |
| 98 | {X : Over S} {Y : Over T} (e : X ≅ (Over.pullback f).obj Y) : |
| 99 | ClosedFamily.PullbackRecoveryIso.cartesianAmbientOverIso (e.hom.left ≫ pullback.fst Y.hom f) f |
| 100 | (RecoveryFromPullbackIso.schemeRecovery_isPullback_of_overIso f e) = e := by |
| 101 | apply Iso.ext |
| 102 | apply Over.OverMorphism.ext |
| 103 | apply pullback.hom_ext |
| 104 | · exact (RecoveryFromPullbackIso.schemeRecovery_isPullback_of_overIso f e).isoPullback_hom_fst |
| 105 | · exact (ClosedFamily.PullbackRecoveryIso.cartesianAmbientOverIso (e.hom.left ≫ pullback.fst Y.hom f) f |
| 106 | (RecoveryFromPullbackIso.schemeRecovery_isPullback_of_overIso f e)).hom.w.trans e.hom.w.symm |
| 107 | |
| 108 | private theorem cartesianAmbientOverIso_of_iso_group {S T : Scheme.{u}} (f : S ⟶ T) |
| 109 | {X : Over S} {Y : Over T} [GrpObj X] [GrpObj Y] |
| 110 | (e : X ≅ (Over.pullback f).obj Y) [IsMonHom e.hom] : |
| 111 | IsMonHom (ClosedFamily.PullbackRecoveryIso.cartesianAmbientOverIso (e.hom.left ≫ pullback.fst Y.hom f) f |
| 112 | (RecoveryFromPullbackIso.schemeRecovery_isPullback_of_overIso f e)).hom := by |
| 113 | rw [cartesianAmbientOverIso_of_iso] |
| 114 | infer_instance |
| 115 | |
| 116 | namespace DirectedPolarizedSchemeGluing |
| 117 | variable {S : Scheme.{u}} (C : S.OpenCover.{u}) |
| 118 | [Category C.I₀] [C.LocallyDirected] [Small.{u} C.I₀] [Quiver.IsThin C.I₀] |
| 119 | [∀ i, IsLocallyNoetherian (C.X i)] {g N : ℕ} {δ : Fin g → ℕ} |
| 120 | (F : ∀ i, PolarizationData.PolarizedAbelianWithFullLevel g δ N (C.X i)) (hN : 3 ≤ N) |
| 121 | (e : ∀ {i j : C.I₀} (f : i ⟶ j), Moduli.Isomorphisms.LevelPreservingIso (F i) ((F j).pullback (C.trans f))) |
| 122 | |
| 123 | private def identityComparison (i : C.I₀) : |
| 124 | Moduli.Isomorphisms.LevelPreservingIso (F i) ((F i).pullback (C.trans (𝟙 i))) := |
| 125 | (Moduli.Isomorphisms.LevelPreservingIso.pullbackId (F i)).symm.trans |
| 126 | (Moduli.Isomorphisms.LevelPreservingIso.ofEqualBaseMaps (F i) (𝟙 (C.X i)) (C.trans (𝟙 i)) (C.trans_id i).symm) |
| 127 | |
| 128 | private def compositeComparison {i j k : C.I₀} (f : i ⟶ j) (h : j ⟶ k) : |
| 129 | Moduli.Isomorphisms.LevelPreservingIso (F i) ((F k).pullback (C.trans (f ≫ h))) := |
| 130 | (((e f).trans ((e h).pullback (C.trans f))).trans |
| 131 | (Moduli.Isomorphisms.LevelPreservingIso.pullbackComp (F k) (C.trans h) (C.trans f))).trans |
| 132 | (Moduli.Isomorphisms.LevelPreservingIso.ofEqualBaseMaps (F k) (C.trans f ≫ C.trans h) |
| 133 | (C.trans (f ≫ h)) (C.trans_comp f h).symm) |
| 134 | |
| 135 | include hN in |
| 136 | omit [Small.{u} C.I₀] [Quiver.IsThin C.I₀] in |
| 137 | private theorem identity_eq (i : C.I₀) : e (𝟙 i) = identityComparison C F i := by |
| 138 | let := Level.RigidityLocallyNoetherian.polarizedIsomorphisms_subsingleton_of_locallyNoetherian |
| 139 | (F i) ((F i).pullback (C.trans (𝟙 i))) hN |
| 140 | exact Subsingleton.elim _ _ |
| 141 | |
| 142 | include hN in |
| 143 | omit [Small.{u} C.I₀] [Quiver.IsThin C.I₀] in |
| 144 | private theorem composite_eq {i j k : C.I₀} (f : i ⟶ j) (h : j ⟶ k) : |
| 145 | e (f ≫ h) = compositeComparison C F e f h := by |
| 146 | let := Level.RigidityLocallyNoetherian.polarizedIsomorphisms_subsingleton_of_locallyNoetherian |
| 147 | (F i) ((F k).pullback (C.trans (f ≫ h))) hN |
| 148 | exact Subsingleton.elim _ _ |
| 149 | |
| 150 | /-- Abelian total spaces with their original Cartesian group transitions. -/ |
| 151 | def abelianData : Gluing.DirectedAbelianGluingData C g where |
| 152 | family i := (F i).abelian |
| 153 | transition f := Moduli.Isomorphisms.LevelPreservingIso.abelianTotal (C.trans f) (e f) |
| 154 | transition_id i := by |
| 155 | rw [identity_eq C F hN e i] |
| 156 | exact (Moduli.Isomorphisms.LevelPreservingIso.abelianTotal_congr _ _ _ _).trans |
| 157 | (Moduli.Isomorphisms.LevelPreservingIso.abelianTotal_identity (A := F i)) |
| 158 | transition_comp f h := by |
| 159 | rw [composite_eq C F hN e f h] |
| 160 | exact (Moduli.Isomorphisms.LevelPreservingIso.abelianTotal_congr _ _ _ _).trans |
| 161 | (Moduli.Isomorphisms.LevelPreservingIso.abelianTotal_composition (C.trans f) (C.trans h) (e f) (e h)) |
| 162 | cartesian f := RecoveryFromPullbackIso.schemeRecovery_isPullback_of_overIso (C.trans f) (e f).abelian |
| 163 | group {i j} f := by |
| 164 | let ef : (F i).abelian.scheme ≅ (Over.pullback (C.trans f)).obj (F j).abelian.scheme := |
| 165 | (e f).abelian |
| 166 | let : IsMonHom ef.hom := (e f).abelianGroup |
| 167 | exact cartesianAmbientOverIso_of_iso_group (C.trans f) ef |
| 168 | |
| 169 | /-- The dual total spaces glue separately with the original dual group maps. -/ |
| 170 | def dualData : Gluing.DirectedAbelianGluingData C g where |
| 171 | family i := (F i).dual.abelian |
| 172 | transition f := Moduli.Isomorphisms.LevelPreservingIso.dualTotal (C.trans f) (e f) |
| 173 | transition_id i := by |
| 174 | rw [identity_eq C F hN e i] |
| 175 | exact (Moduli.Isomorphisms.LevelPreservingIso.dualTotal_congr _ _ _ _).trans |
| 176 | (Moduli.Isomorphisms.LevelPreservingIso.dualTotal_identity (A := F i)) |
| 177 | transition_comp f h := by |
| 178 | rw [composite_eq C F hN e f h] |
| 179 | exact (Moduli.Isomorphisms.LevelPreservingIso.dualTotal_congr _ _ _ _).trans |
| 180 | (Moduli.Isomorphisms.LevelPreservingIso.dualTotal_composition (C.trans f) (C.trans h) (e f) (e h)) |
| 181 | cartesian f := RecoveryFromPullbackIso.schemeRecovery_isPullback_of_overIso (C.trans f) (e f).dual |
| 182 | group {i j} f := by |
| 183 | let ef : (F i).dual.abelian.scheme ≅ (Over.pullback (C.trans f)).obj (F j).dual.abelian.scheme := |
| 184 | (e f).dual |
| 185 | let : IsMonHom ef.hom := (e f).dualGroup |
| 186 | exact cartesianAmbientOverIso_of_iso_group (C.trans f) ef |
| 187 | |
| 188 | def abelian : Abelian.Schemes.AbelianScheme g S := (abelianData C F hN e).abelian |
| 189 | |
| 190 | def dualAbelian : Abelian.Schemes.AbelianScheme g S := (dualData C F hN e).abelian |
| 191 | |
| 192 | def abelianChartIso (i : C.I₀) : (F i).abelian.scheme ≅ ((DirectedPolarizedSchemeGluing.abelian C F hN e).pullback (C.f i)).scheme := |
| 193 | (abelianData C F hN e).chartIso i |
| 194 | |
| 195 | def dualChartIso (i : C.I₀) : (F i).dual.abelian.scheme ≅ ((dualAbelian C F hN e).pullback (C.f i)).scheme := |
| 196 | (dualData C F hN e).chartIso i |
| 197 | |
| 198 | instance abelianChartIso_group (i : C.I₀) : IsMonHom (abelianChartIso C F hN e i).hom := |
| 199 | (abelianData C F hN e).chartIso_preservesGroup i |
| 200 | |
| 201 | instance dualChartIso_group (i : C.I₀) : IsMonHom (dualChartIso C F hN e i).hom := |
| 202 | (dualData C F hN e).chartIso_preservesGroup i |
| 203 | |
| 204 | end DirectedPolarizedSchemeGluing |
| 205 | |
| 206 | end |
| 207 | |
| 208 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Directed.PolarizedSchemeGluing |