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.ReferenceFamily.Frame.Labels |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Constant.BaseChange |
| 3 | |
| 4 | /-! # Split Frames -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.SplitFrames.LevelCover |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The split frame cover: locally constant changes of basis construct |
| 11 | actual morphisms into the frame scheme, inverse to reading its labels. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 14 | open scoped _root_.CategoryTheory.MonObj |
| 15 | |
| 16 | variable {S : Scheme} {g N : ℕ} (A : HilbertConstruction.Abelian.Schemes.AbelianScheme g S) |
| 17 | |
| 18 | theorem coefficientHom_one {G : Type*} [CommGroup G] (a : G) (ha : a ^ N = 1) : |
| 19 | Finite.Frames.LevelCover.coefficientHom a ha (1 : ZMod N) = Additive.ofMul a := by |
| 20 | unfold Finite.Frames.LevelCover.coefficientHom |
| 21 | simpa using (ZMod.lift_coe N ⟨zmultiplesHom (Additive G) (Additive.ofMul a), _⟩ (1 : ℤ)) |
| 22 | |
| 23 | theorem frameHom_standard {G : Type*} [CommGroup G] |
| 24 | (a : Fin (2 * g) → G) (ha : ∀ i, a i ^ N = 1) (j : Fin (2 * g)) : |
| 25 | Finite.Frames.LevelCover.frameHom a ha (Frame.Map.LevelCover.standardLevelVector j) = a j := by |
| 26 | simp [Finite.Frames.LevelCover.frameHom, Frame.Map.LevelCover.standardLevelVector, AddMonoidHom.toMultiplicativeLeft, |
| 27 | Pi.single_apply, apply_ite, coefficientHom_one] |
| 28 | |
| 29 | def labelsHom (T : Over S) |
| 30 | (b : LocallyConstant T.left (Frame.Labels.LevelCover.Coefficients g N ≃* Frame.Labels.LevelCover.Coefficients g N)) : |
| 31 | Frame.Labels.LevelCover.Coefficients g N →* LocallyConstant T.left (Frame.Labels.LevelCover.Coefficients g N) where |
| 32 | toFun c := b.map (fun e => e c) |
| 33 | map_one' := by apply LocallyConstant.ext; intro x; exact map_one (b x) |
| 34 | map_mul' c d := by apply LocallyConstant.ext; intro x; exact map_mul (b x) c d |
| 35 | |
| 36 | def labeledTorsionHom (α : A.FullLevel N) (T : Over S) |
| 37 | (b : LocallyConstant T.left (Frame.Labels.LevelCover.Coefficients g N ≃* Frame.Labels.LevelCover.Coefficients g N)) : |
| 38 | Frame.Labels.LevelCover.Coefficients g N →* A.torsionPoints N T := |
| 39 | ((α.hom.app (.op T)).hom).comp (labelsHom T b) |
| 40 | |
| 41 | def torsionHomTuple (T : Over S) (h : Frame.Labels.LevelCover.Coefficients g N →* A.torsionPoints N T) : |
| 42 | T ⟶ Level.Cover.LevelCover.torsionTuples A N := |
| 43 | Pi.lift (fun i => (Level.Cover.LevelCover.torsionPointsEquiv A N T).symm |
| 44 | ⟨(h (Frame.Map.LevelCover.standardLevelVector i)).val, (h (Frame.Map.LevelCover.standardLevelVector i)).property⟩) |
| 45 | |
| 46 | theorem torsionHomTuple_coordinate (T : Over S) |
| 47 | (h : Frame.Labels.LevelCover.Coefficients g N →* A.torsionPoints N T) (i : Fin (2 * g)) : |
| 48 | torsionHomTuple A T h ≫ Level.Cover.LevelCover.coordinate A N i = (h (Frame.Map.LevelCover.standardLevelVector i)).val := by |
| 49 | change Pi.lift _ ≫ (Pi.π (fun _ : Fin (2 * g) => Level.Cover.LevelCover.torsion A N) i ≫ |
| 50 | Level.Cover.LevelCover.torsionInclusion A N) = _ |
| 51 | rw [← Category.assoc, Pi.lift_comp_π] |
| 52 | exact congrArg Subtype.val ((Level.Cover.LevelCover.torsionPointsEquiv A N T).apply_symm_apply _) |
| 53 | |
| 54 | theorem torsionHomTuple_relation [NeZero N] (T : Over S) |
| 55 | (h : Frame.Labels.LevelCover.Coefficients g N →* A.torsionPoints N T) (c : Frame.Labels.LevelCover.Coefficients g N) : |
| 56 | torsionHomTuple A T h ≫ Level.Cover.LevelCover.relation A N c.toAdd = (h c).val := by |
| 57 | calc |
| 58 | _ = ∏ i, (torsionHomTuple A T h ≫ Level.Cover.LevelCover.coordinate A N i) ^ (c.toAdd i).val := by |
| 59 | change A.pointsPullback (torsionHomTuple A T h) (∏ i, _) = _ |
| 60 | rw [map_prod] |
| 61 | simp only [map_pow, HilbertConstruction.Abelian.Schemes.AbelianScheme.pointsPullback_apply] |
| 62 | _ = ∏ i, (h (Frame.Map.LevelCover.standardLevelVector i)).val ^ (c.toAdd i).val := by |
| 63 | simp only [torsionHomTuple_coordinate] |
| 64 | _ = (h c).val := by |
| 65 | have hc : c = ∏ i, Frame.Map.LevelCover.standardLevelVector (N := N) i ^ (c.toAdd i).val := |
| 66 | Frame.Map.LevelCover.level_vector_decomposition c.toAdd |
| 67 | simpa only [map_pow, MonoidHom.coe_comp, Function.comp_apply, Subgroup.subtype_apply] using |
| 68 | (map_prod ((A.torsionPoints N T).subtype.comp h) _ _).symm.trans |
| 69 | (congrArg (fun d => (h d).val) hc.symm) |
| 70 | |
| 71 | theorem labeledTorsionHom_pullback_injective (α : A.FullLevel N) (T : Over S) |
| 72 | (b : LocallyConstant T.left (Frame.Labels.LevelCover.Coefficients g N ≃* Frame.Labels.LevelCover.Coefficients g N)) |
| 73 | {U : Over S} [Nonempty U.left] (j : U ⟶ T) : |
| 74 | Function.Injective ((A.torsionPullback N j).comp (labeledTorsionHom A α T b)) := by |
| 75 | intro c d h |
| 76 | have hn (e : Frame.Labels.LevelCover.Coefficients g N) := |
| 77 | ConcreteCategory.congr_hom (α.hom.naturality j.op) (labelsHom T b e) |
| 78 | have heq : α.hom.app (.op U) |
| 79 | ((labelsHom T b c).comap ⟨j.left, j.left.continuous⟩) = |
| 80 | α.hom.app (.op U) ((labelsHom T b d).comap ⟨j.left, j.left.continuous⟩) := |
| 81 | (hn c).trans (h.trans (hn d).symm) |
| 82 | have hlc := (α.app (.op U)).groupIsoToMulEquiv.injective heq |
| 83 | let u : U.left := Classical.choice inferInstance |
| 84 | exact (b (j.left u)).injective (congrArg (fun v : LocallyConstant U.left _ => v u) hlc) |
| 85 | |
| 86 | theorem labeledTuple_mem_frame [NeZero N] (α : A.FullLevel N) (T : Over S) |
| 87 | (b : LocallyConstant T.left (Frame.Labels.LevelCover.Coefficients g N ≃* Frame.Labels.LevelCover.Coefficients g N)) (t : T.left) : |
| 88 | (torsionHomTuple A T (labeledTorsionHom A α T b)).left t ∈ Level.Cover.LevelCover.frameOpen A N := by |
| 89 | change (torsionHomTuple A T (labeledTorsionHom A α T b)).left t ∈ |
| 90 | (Level.Cover.LevelCover.frameOpen A N : Set (Level.Cover.LevelCover.torsionTuples A N).left) |
| 91 | unfold Level.Cover.LevelCover.frameOpen |
| 92 | rw [TopologicalSpace.Opens.coe_iInf] |
| 93 | apply Set.mem_iInter.mpr |
| 94 | intro c |
| 95 | by_cases hc : c = 0 |
| 96 | · simp [hc] |
| 97 | · rw [iInf_pos hc] |
| 98 | change (torsionHomTuple A T (labeledTorsionHom A α T b)).left t ∉ |
| 99 | Set.range (Level.Cover.LevelCover.relationZeroInclusion A N c).left |
| 100 | apply Frame.Map.LevelCover.tuple_avoids_relation A _ c ?_ t |
| 101 | intro U _ j hz |
| 102 | have hr := torsionHomTuple_relation A T (labeledTorsionHom A α T b) (Multiplicative.ofAdd c) |
| 103 | change torsionHomTuple A T (labeledTorsionHom A α T b) ≫ Level.Cover.LevelCover.relation A N c = _ at hr |
| 104 | rw [Category.assoc, hr] at hz |
| 105 | have hz' : (A.torsionPullback N j).comp (labeledTorsionHom A α T b) |
| 106 | (Multiplicative.ofAdd c) = 1 := Subtype.ext hz |
| 107 | have heq := labeledTorsionHom_pullback_injective A α T b j |
| 108 | (hz'.trans (map_one _).symm) |
| 109 | exact hc (congrArg Multiplicative.toAdd heq) |
| 110 | |
| 111 | def frameMapOfLabels [NeZero N] (α : A.FullLevel N) (T : Over S) |
| 112 | (b : LocallyConstant T.left (Frame.Labels.LevelCover.Coefficients g N ≃* Frame.Labels.LevelCover.Coefficients g N)) : |
| 113 | T ⟶ Level.Cover.LevelCover.frameScheme A N := by |
| 114 | let q := torsionHomTuple A T (labeledTorsionHom A α T b) |
| 115 | have h : Set.range q.left ⊆ Set.range (Level.Cover.LevelCover.frameInclusion A N).left := by |
| 116 | rintro _ ⟨t, rfl⟩ |
| 117 | change q.left t ∈ Set.range (Level.Cover.LevelCover.frameOpen A N).ι |
| 118 | rw [Scheme.Opens.range_ι] |
| 119 | exact labeledTuple_mem_frame A α T b t |
| 120 | let f := IsOpenImmersion.lift (Level.Cover.LevelCover.frameInclusion A N).left q.left h |
| 121 | have hf : f ≫ (Level.Cover.LevelCover.frameInclusion A N).left = q.left := IsOpenImmersion.lift_fac _ _ h |
| 122 | refine Over.homMk f ?_ |
| 123 | change f ≫ (Level.Cover.LevelCover.frameInclusion A N).left ≫ (Level.Cover.LevelCover.torsionTuples A N).hom = T.hom |
| 124 | rw [← Category.assoc, hf] |
| 125 | exact q.w |
| 126 | |
| 127 | @[simp] theorem frameMapOfLabels_forget [NeZero N] (α : A.FullLevel N) (T : Over S) |
| 128 | (b : LocallyConstant T.left (Frame.Labels.LevelCover.Coefficients g N ≃* Frame.Labels.LevelCover.Coefficients g N)) : |
| 129 | frameMapOfLabels A α T b ≫ Level.Cover.LevelCover.frameInclusion A N = |
| 130 | torsionHomTuple A T (labeledTorsionHom A α T b) := by |
| 131 | apply Over.OverMorphism.ext |
| 132 | exact IsOpenImmersion.lift_fac _ _ _ |
| 133 | |
| 134 | theorem frameTorsionHom_frameMapOfLabels [NeZero N] (α : A.FullLevel N) (T : Over S) |
| 135 | (b : LocallyConstant T.left (Frame.Labels.LevelCover.Coefficients g N ≃* Frame.Labels.LevelCover.Coefficients g N)) |
| 136 | (c : Frame.Labels.LevelCover.Coefficients g N) : |
| 137 | Frame.Labels.LevelCover.frameTorsionHom A T (frameMapOfLabels A α T b) c = labeledTorsionHom A α T b c := by |
| 138 | apply Subtype.ext |
| 139 | rw [Frame.Labels.LevelCover.frameTorsionHom_val, frameMapOfLabels_forget, torsionHomTuple_relation] |
| 140 | |
| 141 | @[simp] theorem frameChangeLabels_frameMapOfLabels [NeZero N] (α : A.FullLevel N) (T : Over S) |
| 142 | (b : LocallyConstant T.left (Frame.Labels.LevelCover.Coefficients g N ≃* Frame.Labels.LevelCover.Coefficients g N)) : |
| 143 | Frame.Labels.LevelCover.frameChangeLabels A α T (frameMapOfLabels A α T b) = b := by |
| 144 | apply LocallyConstant.ext |
| 145 | intro t |
| 146 | apply MulEquiv.ext |
| 147 | intro c |
| 148 | have h : Frame.Labels.LevelCover.frameChangeHom A α T (frameMapOfLabels A α T b) c = labelsHom T b c := by |
| 149 | change α.inv.app (.op T) (Frame.Labels.LevelCover.frameTorsionHom A T (frameMapOfLabels A α T b) c) = _ |
| 150 | rw [frameTorsionHom_frameMapOfLabels] |
| 151 | exact (α.app (.op T)).groupIsoToMulEquiv.symm_apply_apply _ |
| 152 | exact congrArg (fun d : LocallyConstant T.left _ => d t) h |
| 153 | |
| 154 | theorem labeledTorsionHom_frameChangeLabels [NeZero N] (α : A.FullLevel N) |
| 155 | (T : Over S) (f : T ⟶ Level.Cover.LevelCover.frameScheme A N) (c : Frame.Labels.LevelCover.Coefficients g N) : |
| 156 | labeledTorsionHom A α T (Frame.Labels.LevelCover.frameChangeLabels A α T f) c = Frame.Labels.LevelCover.frameTorsionHom A T f c := by |
| 157 | have h : labelsHom T (Frame.Labels.LevelCover.frameChangeLabels A α T f) c = Frame.Labels.LevelCover.frameChangeHom A α T f c := by |
| 158 | apply LocallyConstant.ext |
| 159 | intro t |
| 160 | rfl |
| 161 | change α.hom.app (.op T) (labelsHom T (Frame.Labels.LevelCover.frameChangeLabels A α T f) c) = _ |
| 162 | rw [h] |
| 163 | exact (α.app (.op T)).groupIsoToMulEquiv.apply_symm_apply _ |
| 164 | |
| 165 | @[simp] theorem frameMapOfLabels_frameChangeLabels [NeZero N] (α : A.FullLevel N) |
| 166 | (T : Over S) (f : T ⟶ Level.Cover.LevelCover.frameScheme A N) : |
| 167 | frameMapOfLabels A α T (Frame.Labels.LevelCover.frameChangeLabels A α T f) = f := by |
| 168 | suffices h : frameMapOfLabels A α T (Frame.Labels.LevelCover.frameChangeLabels A α T f) ≫ Level.Cover.LevelCover.frameInclusion A N = |
| 169 | f ≫ Level.Cover.LevelCover.frameInclusion A N by |
| 170 | apply Over.OverMorphism.ext |
| 171 | apply (cancel_mono (Level.Cover.LevelCover.frameInclusion A N).left).mp |
| 172 | exact congrArg (fun q => q.left) h |
| 173 | rw [frameMapOfLabels_forget] |
| 174 | apply Pi.hom_ext |
| 175 | intro i |
| 176 | apply (Level.Cover.LevelCover.torsionPointsEquiv A N T).injective |
| 177 | apply Subtype.ext |
| 178 | change torsionHomTuple A T (labeledTorsionHom A α T (Frame.Labels.LevelCover.frameChangeLabels A α T f)) ≫ |
| 179 | Level.Cover.LevelCover.coordinate A N i = (f ≫ Level.Cover.LevelCover.frameInclusion A N) ≫ Level.Cover.LevelCover.coordinate A N i |
| 180 | rw [torsionHomTuple_coordinate, labeledTorsionHom_frameChangeLabels] |
| 181 | change Finite.Frames.LevelCover.frameHom _ _ (Frame.Map.LevelCover.standardLevelVector i) = _ |
| 182 | rw [frameHom_standard] |
| 183 | exact (Category.assoc _ _ _).symm |
| 184 | |
| 185 | /-- On a trivialized base the frame scheme represents locally constant |
| 186 | changes of basis, with explicit mutually inverse constructions. -/ |
| 187 | def splitFramePointsEquiv [NeZero N] (α : A.FullLevel N) (T : Over S) : |
| 188 | (T ⟶ Level.Cover.LevelCover.frameScheme A N) ≃ |
| 189 | LocallyConstant T.left (Frame.Labels.LevelCover.Coefficients g N ≃* Frame.Labels.LevelCover.Coefficients g N) where |
| 190 | toFun := Frame.Labels.LevelCover.frameChangeLabels A α T |
| 191 | invFun := frameMapOfLabels A α T |
| 192 | left_inv := frameMapOfLabels_frameChangeLabels A α T |
| 193 | right_inv := frameChangeLabels_frameMapOfLabels A α T |
| 194 | |
| 195 | theorem frameChangeLabels_natural [NeZero N] (α : A.FullLevel N) {T U : Over S} |
| 196 | (j : U ⟶ T) (f : T ⟶ Level.Cover.LevelCover.frameScheme A N) : |
| 197 | Frame.Labels.LevelCover.frameChangeLabels A α U (j ≫ f) = |
| 198 | (Frame.Labels.LevelCover.frameChangeLabels A α T f).comap ⟨j.left, j.left.continuous⟩ := by |
| 199 | apply LocallyConstant.ext |
| 200 | intro u |
| 201 | apply MulEquiv.ext |
| 202 | intro c |
| 203 | exact congrArg (fun d : LocallyConstant U.left _ => d u) |
| 204 | (Frame.Labels.LevelCover.frameChangeHom_natural A α j f c) |
| 205 | |
| 206 | /-- The pointwise equivalences are natural, so they establish the |
| 207 | universal property of the split frame scheme on all test schemes. -/ |
| 208 | def splitFrameRepresentable [NeZero N] (α : A.FullLevel N) : |
| 209 | (HilbertConstruction.Constant.GroupMaps.constantGroupFunctor S (Frame.Labels.LevelCover.Coefficients g N ≃* Frame.Labels.LevelCover.Coefficients g N) ⋙ |
| 210 | forget GrpCat).RepresentableBy (Level.Cover.LevelCover.frameScheme A N) where |
| 211 | homEquiv := splitFramePointsEquiv A α _ |
| 212 | homEquiv_comp j f := frameChangeLabels_natural A α j f |
| 213 | |
| 214 | def constantFrameRepresentable : |
| 215 | (HilbertConstruction.Constant.GroupMaps.constantGroupFunctor S (Frame.Labels.LevelCover.Coefficients g N ≃* Frame.Labels.LevelCover.Coefficients g N) ⋙ |
| 216 | forget GrpCat).RepresentableBy |
| 217 | (HilbertConstruction.ConstantScheme.Iff.constantScheme S (Frame.Labels.LevelCover.Coefficients g N ≃* Frame.Labels.LevelCover.Coefficients g N)) where |
| 218 | homEquiv := HilbertConstruction.ConstantScheme.Iff.constantSchemePointsEquiv S _ _ |
| 219 | homEquiv_comp _ _ := rfl |
| 220 | |
| 221 | /-- The actual split frame scheme is the disjoint union indexed by |
| 222 | automorphisms of the finite standard level module. -/ |
| 223 | def splitFrameSchemeIso [NeZero N] (α : A.FullLevel N) : |
| 224 | Level.Cover.LevelCover.frameScheme A N ≅ HilbertConstruction.ConstantScheme.Iff.constantScheme S (Frame.Labels.LevelCover.Coefficients g N ≃* Frame.Labels.LevelCover.Coefficients g N) := |
| 225 | (splitFrameRepresentable A α).uniqueUpToIso constantFrameRepresentable |
| 226 | |
| 227 | /-- The frame scheme parametrizes all full levels on every actual |
| 228 | pullback of A, not just changes of basis on its original base. -/ |
| 229 | def fullLevelParameterEquiv [NeZero N] (α : A.FullLevel N) (T : Over S) : |
| 230 | (T ⟶ Level.Cover.LevelCover.frameScheme A N) ≃ (A.pullback T.hom).FullLevel N := |
| 231 | (splitFramePointsEquiv A α T).trans |
| 232 | ((HilbertConstruction.Constant.GroupIsomorphisms.constantGroupIsoEquiv (S := T.left) (G := Frame.Labels.LevelCover.Coefficients g N) |
| 233 | (H := Frame.Labels.LevelCover.Coefficients g N)).symm.trans (Level.Data.framesEquivAut (α.pullback T.hom)).symm) |
| 234 | |
| 235 | @[simp] theorem fullLevelParameterEquiv_apply [NeZero N] (α : A.FullLevel N) |
| 236 | (T : Over S) (f : T ⟶ Level.Cover.LevelCover.frameScheme A N) : |
| 237 | fullLevelParameterEquiv A α T f = Frame.Labels.LevelCover.fullLevelFromFrame A α T f := rfl |
| 238 | |
| 239 | /-- Existence and uniqueness of the classifying map for every full level |
| 240 | on a test pullback, proved from the explicit label equivalences. -/ |
| 241 | theorem fullLevel_unique_classifying_map [NeZero N] (α : A.FullLevel N) (T : Over S) |
| 242 | (β : (A.pullback T.hom).FullLevel N) : |
| 243 | ∃! f : T ⟶ Level.Cover.LevelCover.frameScheme A N, Frame.Labels.LevelCover.fullLevelFromFrame A α T f = β := by |
| 244 | let e := fullLevelParameterEquiv A α T |
| 245 | refine ⟨e.symm β, e.apply_symm_apply β, ?_⟩ |
| 246 | intro f hf |
| 247 | exact e.injective (hf.trans (e.apply_symm_apply β).symm) |
| 248 | |
| 249 | /-- The split frame-cover construction is compatible with arbitrary |
| 250 | base change via the constant-scheme presentation. -/ |
| 251 | def splitFrameBaseChangeIso [NeZero N] (α : A.FullLevel N) {S' : Scheme} (u : S' ⟶ S) : |
| 252 | Level.Cover.LevelCover.frameScheme (A.pullback u) N ≅ (Over.pullback u).obj (Level.Cover.LevelCover.frameScheme A N) := |
| 253 | splitFrameSchemeIso (A.pullback u) (α.pullback u) ≪≫ |
| 254 | HilbertConstruction.Constant.BaseChange.constantSchemeBaseChangeIso u (Frame.Labels.LevelCover.Coefficients g N ≃* Frame.Labels.LevelCover.Coefficients g N) ≪≫ |
| 255 | (Over.pullback u).mapIso (splitFrameSchemeIso A α).symm |
| 256 | |
| 257 | /-- Completed split relative-level bridge: an actual finite etale |
| 258 | surjective scheme, a universal full level, and its classifying equivalence |
| 259 | on all base schemes. -/ |
| 260 | theorem finite_etale_fullLevel_cover [NeZero N] (α : A.FullLevel N) : |
| 261 | IsFinite (Level.Cover.LevelCover.frameScheme A N).hom ∧ Etale (Level.Cover.LevelCover.frameScheme A N).hom ∧ |
| 262 | Surjective (Level.Cover.LevelCover.frameScheme A N).hom ∧ |
| 263 | ∀ (T : Over S) (β : (A.pullback T.hom).FullLevel N), |
| 264 | ∃! f : T ⟶ Level.Cover.LevelCover.frameScheme A N, Frame.Labels.LevelCover.fullLevelFromFrame A α T f = β := by |
| 265 | obtain ⟨hf, he, hs⟩ := Frame.Finiteness.LevelCover.frameScheme_split_cover A α |
| 266 | exact ⟨hf, he, hs, fullLevel_unique_classifying_map A α⟩ |
| 267 | |
| 268 | end |
| 269 | |
| 270 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.SplitFrames.LevelCover |