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.Finiteness |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Constant.GroupIsomorphisms |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Level.BaseChange |
| 4 | import OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Level.Data |
| 5 | |
| 6 | /-! # Labels -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Frame.Labels.LevelCover |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Over a chosen torsion trivialization, the universal independent frame |
| 13 | gives a locally constant change of basis. The invertibility is proved by |
| 14 | testing relations on nonempty open subschemes. -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 17 | open scoped _root_.CategoryTheory.MonObj _root_.Topology |
| 18 | |
| 19 | abbrev Coefficients (g N : ℕ) := Multiplicative (Fin (2 * g) → ZMod N) |
| 20 | |
| 21 | theorem coefficients_pow {g N : ℕ} (c : Coefficients g N) : c ^ N = 1 := by |
| 22 | apply Multiplicative.toAdd.injective |
| 23 | change N • c.toAdd = 0 |
| 24 | ext i |
| 25 | simp [nsmul_eq_mul] |
| 26 | |
| 27 | variable {S : Scheme} {g N : ℕ} (A : HilbertConstruction.Abelian.Schemes.AbelianScheme g S) |
| 28 | |
| 29 | def frameSectionHom (T : Over S) (f : T ⟶ Level.Cover.LevelCover.frameScheme A N) : |
| 30 | Coefficients g N →* (T ⟶ A.scheme) := |
| 31 | ReferenceFamily.Finite.Frames.LevelCover.frameHom (fun i => f ≫ Level.Cover.LevelCover.frameInclusion A N ≫ Level.Cover.LevelCover.coordinate A N i) |
| 32 | (fun i => by rw [← MonObj.comp_pow, Level.Cover.LevelCover.frame_coordinate_pow, MonObj.comp_one]) |
| 33 | |
| 34 | theorem frameSectionHom_torsion (T : Over S) (f : T ⟶ Level.Cover.LevelCover.frameScheme A N) |
| 35 | (c : Coefficients g N) : frameSectionHom A T f c ^ N = 1 := |
| 36 | (map_pow (frameSectionHom A T f) c N).symm.trans |
| 37 | ((congrArg (frameSectionHom A T f) (coefficients_pow c)).trans (map_one _)) |
| 38 | |
| 39 | def frameTorsionHom (T : Over S) (f : T ⟶ Level.Cover.LevelCover.frameScheme A N) : |
| 40 | Coefficients g N →* A.torsionPoints N T where |
| 41 | toFun c := ⟨frameSectionHom A T f c, frameSectionHom_torsion A T f c⟩ |
| 42 | map_one' := Subtype.ext (map_one (frameSectionHom A T f)) |
| 43 | map_mul' c d := Subtype.ext (map_mul (frameSectionHom A T f) c d) |
| 44 | |
| 45 | theorem frameTorsionHom_val [NeZero N] (T : Over S) (f : T ⟶ Level.Cover.LevelCover.frameScheme A N) |
| 46 | (c : Coefficients g N) : |
| 47 | (frameTorsionHom A T f c).val = (f ≫ Level.Cover.LevelCover.frameInclusion A N) ≫ Level.Cover.LevelCover.relation A N c.toAdd := by |
| 48 | change ReferenceFamily.Finite.Frames.LevelCover.frameHom _ _ (Multiplicative.ofAdd c.toAdd) = _ |
| 49 | rw [ReferenceFamily.Finite.Frames.LevelCover.frameHom_apply] |
| 50 | change _ = A.pointsPullback (f ≫ Level.Cover.LevelCover.frameInclusion A N) (∏ i, Level.Cover.LevelCover.coordinate A N i ^ (c.toAdd i).val) |
| 51 | rw [map_prod] |
| 52 | simp only [map_pow, HilbertConstruction.Abelian.Schemes.AbelianScheme.pointsPullback_apply, Category.assoc] |
| 53 | |
| 54 | theorem frameTorsionHom_natural [NeZero N] {T U : Over S} |
| 55 | (j : U ⟶ T) (f : T ⟶ Level.Cover.LevelCover.frameScheme A N) (c : Coefficients g N) : |
| 56 | A.torsionPullback N j (frameTorsionHom A T f c) = frameTorsionHom A U (j ≫ f) c := by |
| 57 | apply Subtype.ext |
| 58 | change j ≫ (frameTorsionHom A T f c).val = (frameTorsionHom A U (j ≫ f) c).val |
| 59 | rw [frameTorsionHom_val, frameTorsionHom_val] |
| 60 | simp only [Category.assoc] |
| 61 | |
| 62 | def frameChangeHom (α : A.FullLevel N) (T : Over S) (f : T ⟶ Level.Cover.LevelCover.frameScheme A N) : |
| 63 | Coefficients g N →* LocallyConstant T.left (Coefficients g N) := |
| 64 | ((α.inv.app (.op T)).hom).comp (frameTorsionHom A T f) |
| 65 | |
| 66 | theorem frameChangeHom_natural [NeZero N] (α : A.FullLevel N) {T U : Over S} |
| 67 | (j : U ⟶ T) (f : T ⟶ Level.Cover.LevelCover.frameScheme A N) (c : Coefficients g N) : |
| 68 | frameChangeHom A α U (j ≫ f) c = |
| 69 | (frameChangeHom A α T f c).comap ⟨j.left, j.left.continuous⟩ := by |
| 70 | have h := ConcreteCategory.congr_hom (α.inv.naturality j.op) (frameTorsionHom A T f c) |
| 71 | change α.inv.app (.op U) (A.torsionPullback N j (frameTorsionHom A T f c)) = _ at h |
| 72 | rw [frameTorsionHom_natural] at h |
| 73 | exact h |
| 74 | |
| 75 | def frameChangeAt (α : A.FullLevel N) (T : Over S) (f : T ⟶ Level.Cover.LevelCover.frameScheme A N) (t : T.left) : |
| 76 | Coefficients g N →* Coefficients g N := |
| 77 | (LocallyConstant.evalMonoidHom t).comp (frameChangeHom A α T f) |
| 78 | |
| 79 | /-- Independence on every nonempty test forces the change-of-basis |
| 80 | matrix at each ordinary scheme point to be injective. -/ |
| 81 | theorem frameChangeAt_injective [NeZero N] (α : A.FullLevel N) |
| 82 | (T : Over S) (f : T ⟶ Level.Cover.LevelCover.frameScheme A N) (t : T.left) : |
| 83 | Function.Injective (frameChangeAt A α T f t) := by |
| 84 | apply (MonoidHom.ker_eq_bot_iff _).mp |
| 85 | apply le_antisymm ?_ bot_le |
| 86 | intro c hc |
| 87 | change c = 1 |
| 88 | by_contra hne |
| 89 | let d := frameChangeHom A α T f c |
| 90 | let O : T.left.Opens := ⟨{x | d x = 1}, d.isLocallyConstant.isOpen_fiber 1⟩ |
| 91 | let U : Over S := Over.mk (O.ι ≫ T.hom) |
| 92 | let j : U ⟶ T := Over.homMk O.ι rfl |
| 93 | have ht : t ∈ O := hc |
| 94 | have : Nonempty U.left := ⟨⟨t, ht⟩⟩ |
| 95 | have hz : frameChangeHom A α U (j ≫ f) c = 1 := by |
| 96 | rw [frameChangeHom_natural] |
| 97 | apply LocallyConstant.ext |
| 98 | intro x |
| 99 | exact x.property |
| 100 | have hz' : frameTorsionHom A U (j ≫ f) c = 1 := by |
| 101 | apply ((α.app (.op U)).symm.groupIsoToMulEquiv).injective |
| 102 | exact hz.trans (map_one _).symm |
| 103 | have hrel := congrArg Subtype.val hz' |
| 104 | rw [frameTorsionHom_val] at hrel |
| 105 | exact Level.Cover.LevelCover.frame_relations_nonzero A N U (j ≫ f) c.toAdd |
| 106 | (fun h => hne (Multiplicative.toAdd.injective h)) hrel |
| 107 | |
| 108 | def frameChangeEquiv [NeZero N] (α : A.FullLevel N) (T : Over S) |
| 109 | (f : T ⟶ Level.Cover.LevelCover.frameScheme A N) (t : T.left) : Coefficients g N ≃* Coefficients g N := |
| 110 | MulEquiv.ofBijective (frameChangeAt A α T f t) |
| 111 | ((Finite.injective_iff_bijective).mp (frameChangeAt_injective A α T f t)) |
| 112 | |
| 113 | /-- The changes of basis vary locally constantly, including on |
| 114 | disconnected and nonreduced schemes. -/ |
| 115 | def frameChangeLabels [NeZero N] (α : A.FullLevel N) (T : Over S) |
| 116 | (f : T ⟶ Level.Cover.LevelCover.frameScheme A N) : |
| 117 | LocallyConstant T.left (Coefficients g N ≃* Coefficients g N) where |
| 118 | toFun := frameChangeEquiv A α T f |
| 119 | isLocallyConstant := by |
| 120 | apply (IsLocallyConstant.iff_eventually_eq _).mpr |
| 121 | intro t |
| 122 | have h : ∀ᶠ u in 𝓝 t, ∀ c : Coefficients g N, |
| 123 | frameChangeHom A α T f c u = frameChangeHom A α T f c t := |
| 124 | Filter.eventually_all.mpr (fun c => |
| 125 | (frameChangeHom A α T f c).isLocallyConstant.eventually_eq t) |
| 126 | exact h.mono (fun _ hu => MulEquiv.ext hu) |
| 127 | |
| 128 | /-- A map into the frame scheme constructs a full level on the actual |
| 129 | base-changed abelian scheme, using the proved invertible label change. -/ |
| 130 | def fullLevelFromFrame [NeZero N] (α : A.FullLevel N) (T : Over S) |
| 131 | (f : T ⟶ Level.Cover.LevelCover.frameScheme A N) : (A.pullback T.hom).FullLevel N := |
| 132 | HilbertConstruction.Constant.GroupIsomorphisms.constantGroupIsoOfLabels (frameChangeLabels A α T f) ≪≫ α.pullback T.hom |
| 133 | |
| 134 | def identityTestOver (T : Over S) : Over S := |
| 135 | (Over.map T.hom).obj (Over.mk (𝟙 T.left)) |
| 136 | |
| 137 | def identityTestTo (T : Over S) : identityTestOver T ⟶ T := |
| 138 | Over.homMk (𝟙 T.left) (by simp [identityTestOver]) |
| 139 | |
| 140 | /-- Reconstructed full levels send every constant coefficient vector to |
| 141 | the section defined by the original frame, after the actual pullback |
| 142 | identification. This is a compatibility theorem, not constructor data. -/ |
| 143 | theorem fullLevelFromFrame_coefficients [NeZero N] (α : A.FullLevel N) |
| 144 | (T : Over S) (f : T ⟶ Level.Cover.LevelCover.frameScheme A N) (c : Coefficients g N) : |
| 145 | A.torsionBaseChangeEquiv T.hom (Over.mk (𝟙 T.left)) N |
| 146 | ((fullLevelFromFrame A α T f).hom.app (.op (Over.mk (𝟙 T.left))) |
| 147 | (LocallyConstant.const T.left c)) = |
| 148 | A.torsionPullback N (identityTestTo T) (frameTorsionHom A T f c) := by |
| 149 | let e := A.torsionBaseChangeEquiv T.hom (Over.mk (𝟙 T.left)) N |
| 150 | let β := HilbertConstruction.Constant.GroupIsomorphisms.constantGroupIsoOfLabels (frameChangeLabels A α T f) |
| 151 | have hlabels : β.hom.app (.op (Over.mk (𝟙 T.left))) (LocallyConstant.const T.left c) = |
| 152 | frameChangeHom A α T f c := by |
| 153 | apply LocallyConstant.ext |
| 154 | intro x |
| 155 | rfl |
| 156 | change e (e.symm (α.hom.app (.op (identityTestOver T)) |
| 157 | (β.hom.app (.op (Over.mk (𝟙 T.left))) (LocallyConstant.const T.left c)))) = _ |
| 158 | refine (e.apply_symm_apply _).trans ?_ |
| 159 | refine (congrArg (fun d => α.hom.app (.op (identityTestOver T)) d) hlabels).trans ?_ |
| 160 | have hn := ConcreteCategory.congr_hom (α.hom.naturality (identityTestTo T).op) |
| 161 | (frameChangeHom A α T f c) |
| 162 | have hid : (frameChangeHom A α T f c).comap |
| 163 | ⟨(identityTestTo T).left, (identityTestTo T).left.continuous⟩ = |
| 164 | frameChangeHom A α T f c := by ext x; rfl |
| 165 | change α.hom.app (.op (identityTestOver T)) |
| 166 | ((frameChangeHom A α T f c).comap |
| 167 | ⟨(identityTestTo T).left, (identityTestTo T).left.continuous⟩) = |
| 168 | A.torsionPullback N (identityTestTo T) |
| 169 | (α.hom.app (.op T) (frameChangeHom A α T f c)) at hn |
| 170 | rw [hid] at hn |
| 171 | have hcancel : α.hom.app (.op T) (frameChangeHom A α T f c) = frameTorsionHom A T f c := |
| 172 | (α.app (.op T)).groupIsoToMulEquiv.apply_symm_apply _ |
| 173 | exact hn.trans (congrArg (A.torsionPullback N (identityTestTo T)) hcancel) |
| 174 | |
| 175 | /-- In particular the finite etale frame scheme has its constructed |
| 176 | universal full level whenever the torsion is trivialized on the base. -/ |
| 177 | def universalSplitFrameLevel [NeZero N] (α : A.FullLevel N) : |
| 178 | (A.pullback (Level.Cover.LevelCover.frameScheme A N).hom).FullLevel N := |
| 179 | fullLevelFromFrame A α (Level.Cover.LevelCover.frameScheme A N) (𝟙 _) |
| 180 | |
| 181 | /-- A full-level isomorphism is determined by its constant sections on |
| 182 | the base. Naturality and locally constant decomposition handle all tests. -/ |
| 183 | theorem fullLevel_ext_on_constants (α β : A.FullLevel N) |
| 184 | (h : ∀ c : Coefficients g N, |
| 185 | α.hom.app (.op (Over.mk (𝟙 S))) (LocallyConstant.const S c) = |
| 186 | β.hom.app (.op (Over.mk (𝟙 S))) (LocallyConstant.const S c)) : α = β := by |
| 187 | apply (Level.Data.framesEquivAut α).injective |
| 188 | apply Iso.ext |
| 189 | apply HilbertConstruction.Constant.GroupMaps.constantGroupMap_ext |
| 190 | intro s |
| 191 | apply MonoidHom.ext |
| 192 | intro c |
| 193 | change LocallyConstant.toFun |
| 194 | (α.inv.app (.op (Over.mk (𝟙 S))) |
| 195 | (α.hom.app (.op (Over.mk (𝟙 S))) (LocallyConstant.const S c))) s = |
| 196 | LocallyConstant.toFun |
| 197 | (α.inv.app (.op (Over.mk (𝟙 S))) |
| 198 | (β.hom.app (.op (Over.mk (𝟙 S))) (LocallyConstant.const S c))) s |
| 199 | exact congrArg (fun v => LocallyConstant.toFun (α.inv.app (.op (Over.mk (𝟙 S))) v) s) (h c) |
| 200 | |
| 201 | /-- Reconstruction is independent of the initially chosen trivialization. |
| 202 | This compatibility is needed when the split constructions are descended. -/ |
| 203 | theorem fullLevelFromFrame_independent [NeZero N] (α β : A.FullLevel N) |
| 204 | (T : Over S) (f : T ⟶ Level.Cover.LevelCover.frameScheme A N) : |
| 205 | fullLevelFromFrame A α T f = fullLevelFromFrame A β T f := by |
| 206 | apply fullLevel_ext_on_constants |
| 207 | intro c |
| 208 | apply (A.torsionBaseChangeEquiv T.hom (Over.mk (𝟙 T.left)) N).injective |
| 209 | exact (fullLevelFromFrame_coefficients A α T f c).trans |
| 210 | (fullLevelFromFrame_coefficients A β T f c).symm |
| 211 | |
| 212 | end |
| 213 | |
| 214 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Frame.Labels.LevelCover |