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.PELModuli.IntegralModel.Reduced.OpenRepresentationLifts |
| 2 | import Mathlib.AlgebraicGeometry.Gluing |
| 3 | import Mathlib.AlgebraicGeometry.Limits |
| 4 | import Mathlib.CategoryTheory.Limits.Constructions.Over.Basic |
| 5 | |
| 6 | /-! # Representation Atlas -/ |
| 7 | |
| 8 | namespace OAI |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | namespace AlgebraicGeometry.PELModuli.IntegralModel.Reduced |
| 13 | |
| 14 | /-! The triple-overlap maps of reduced local representations, with their |
| 15 | cocycle identity proved by the actual universal values. -/ |
| 16 | |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | set_option backward.isDefEq.respectTransparency.types false |
| 19 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite |
| 20 | |
| 21 | variable {S : Scheme.{0}} {F : (Over S)ᵒᵖ ⥤ Type} {U V W : S.Opens} |
| 22 | (D : OpenRepresentations.ReducedOpenRepresentation F U) (E : OpenRepresentations.ReducedOpenRepresentation F V) |
| 23 | (G : OpenRepresentations.ReducedOpenRepresentation F W) |
| 24 | |
| 25 | def OpenRepresentations.ReducedOpenRepresentation.tripleLift {T : Over S} (f : T ⟶ D.overlap E) (g : T ⟶ D.overlap G) : |
| 26 | T ⟶ E.overlap G := |
| 27 | E.overlapLift G (f ≫ D.comparison E ≫ E.inclusion D) (fun t => by |
| 28 | have h := D.overlap_mapsTo_right G (g.left t) |
| 29 | exact (congrArg (fun q : T.left ⟶ S => q t) g.w) ▸ h) |
| 30 | |
| 31 | @[reassoc] |
| 32 | theorem OpenRepresentations.ReducedOpenRepresentation.tripleLift_inclusion {T : Over S} (f : T ⟶ D.overlap E) (g : T ⟶ D.overlap G) : |
| 33 | D.tripleLift E G f g ≫ E.inclusion G = f ≫ D.comparison E ≫ E.inclusion D := |
| 34 | E.overlapLift_inclusion G _ _ |
| 35 | |
| 36 | def OpenRepresentations.ReducedOpenRepresentation.tripleMap : pullback (D.inclusion E) (D.inclusion G) ⟶ |
| 37 | pullback (E.inclusion G) (E.inclusion D) := |
| 38 | pullback.lift (D.tripleLift E G (pullback.fst _ _) (pullback.snd _ _)) |
| 39 | (pullback.fst _ _ ≫ D.comparison E) (by |
| 40 | rw [OpenRepresentations.ReducedOpenRepresentation.tripleLift_inclusion, Category.assoc]) |
| 41 | |
| 42 | @[reassoc] |
| 43 | theorem OpenRepresentations.ReducedOpenRepresentation.tripleMap_snd : D.tripleMap E G ≫ pullback.snd _ _ = |
| 44 | pullback.fst _ _ ≫ D.comparison E := pullback.lift_snd _ _ _ |
| 45 | |
| 46 | @[reassoc] |
| 47 | theorem OpenRepresentations.ReducedOpenRepresentation.tripleMap_fst_inclusion : D.tripleMap E G ≫ pullback.fst _ _ ≫ E.inclusion G = |
| 48 | pullback.fst _ _ ≫ D.comparison E ≫ E.inclusion D := by |
| 49 | rw [← Category.assoc, OpenRepresentations.ReducedOpenRepresentation.tripleMap, pullback.lift_fst, OpenRepresentations.ReducedOpenRepresentation.tripleLift_inclusion] |
| 50 | |
| 51 | theorem OpenRepresentations.ReducedOpenRepresentation.tripleMap_value {T : Over S} |
| 52 | (f : T ⟶ pullback (D.inclusion E) (D.inclusion G)) : |
| 53 | F.map (f ≫ D.tripleMap E G ≫ pullback.fst _ _ ≫ E.inclusion G).op E.sectionValue = |
| 54 | F.map (f ≫ pullback.fst _ _ ≫ D.inclusion E).op D.sectionValue := by |
| 55 | rw [OpenRepresentations.ReducedOpenRepresentation.tripleMap_fst_inclusion] |
| 56 | simp only [op_comp, F.map_comp, types_comp_apply, OpenRepresentations.ReducedOpenRepresentation.comparison_value] |
| 57 | |
| 58 | instance OpenRepresentations.ReducedOpenRepresentation.triple_reduced : IsReduced (pullback (D.inclusion E) (D.inclusion G)).left := by |
| 59 | let p := pullback.fst (D.inclusion E) (D.inclusion G) |
| 60 | have : IsOpenImmersion p.left := MorphismProperty.of_isPullback |
| 61 | ((IsPullback.of_hasPullback (D.inclusion E) (D.inclusion G)).map (Over.forget S)).flip |
| 62 | (D.inclusion_open G) |
| 63 | exact isReduced_of_isOpenImmersion p.left |
| 64 | |
| 65 | theorem OpenRepresentations.ReducedOpenRepresentation.tripleMap_cocycle : |
| 66 | D.tripleMap E G ≫ E.tripleMap G D ≫ G.tripleMap D E = 𝟙 _ := by |
| 67 | apply (cancel_mono (pullback.fst (D.inclusion E) (D.inclusion G))).mp |
| 68 | apply (cancel_mono (D.inclusion E)).mp |
| 69 | apply D.hom_ext |
| 70 | simp only [Category.assoc, Category.id_comp] |
| 71 | rw [← Category.assoc (D.tripleMap E G), OpenRepresentations.ReducedOpenRepresentation.tripleMap_value, |
| 72 | Category.assoc, OpenRepresentations.ReducedOpenRepresentation.tripleMap_value] |
| 73 | simpa only [Category.id_comp] using D.tripleMap_value E G (𝟙 _) |
| 74 | |
| 75 | end AlgebraicGeometry.PELModuli.IntegralModel.Reduced |
| 76 | |
| 77 | namespace AlgebraicGeometry.PELModuli.IntegralModel.Reduced.RepresentationAtlas |
| 78 | section |
| 79 | |
| 80 | /-! The actual scheme atlas obtained from local representations on reduced |
| 81 | tests. The transition maps and cocycle are constructed, rather than inputs. -/ |
| 82 | |
| 83 | set_option backward.isDefEq.respectTransparency false |
| 84 | set_option backward.isDefEq.respectTransparency.types false |
| 85 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite |
| 86 | |
| 87 | namespace ReducedRepresentationAtlas |
| 88 | variable {S : Scheme.{0}} {F : (Over S)ᵒᵖ ⥤ Type} {I : Type} {U : I → S.Opens} |
| 89 | (D : ∀ i, OpenRepresentations.ReducedOpenRepresentation F (U i)) |
| 90 | |
| 91 | def glueDataOver : CategoryTheory.GlueData (Over S) where |
| 92 | J := I |
| 93 | U i := (D i).space |
| 94 | V p := (D p.1).overlap (D p.2) |
| 95 | f i j := (D i).inclusion (D j) |
| 96 | t i j := (D i).comparison (D j) |
| 97 | t_id i := (D i).comparison_self |
| 98 | t' i j k := (D i).tripleMap (D j) (D k) |
| 99 | t_fac i j k := (D i).tripleMap_snd (D j) (D k) |
| 100 | cocycle i j k := (D i).tripleMap_cocycle (D j) (D k) |
| 101 | |
| 102 | def glueData : Scheme.GlueData where |
| 103 | toGlueData := (glueDataOver D).mapGlueData (Over.forget S) |
| 104 | f_open i j := (D i).inclusion_open (D j) |
| 105 | |
| 106 | def scheme : Scheme := (glueData D).glued |
| 107 | |
| 108 | def chart (i : I) : (D i).space.left ⟶ scheme D := (glueData D).ι i |
| 109 | |
| 110 | instance chart_open (i : I) : IsOpenImmersion (chart D i) := |
| 111 | Scheme.GlueData.ι_isOpenImmersion (glueData D) i |
| 112 | |
| 113 | def structureMap : scheme D ⟶ S := by |
| 114 | fapply Multicoequalizer.desc |
| 115 | · exact fun i => (D i).space.hom |
| 116 | rintro ⟨i, j⟩ |
| 117 | change ((D i).inclusion (D j)).left ≫ (D i).space.hom = |
| 118 | (((D i).comparison (D j)).left ≫ ((D j).inclusion (D i)).left) ≫ (D j).space.hom |
| 119 | rw [Category.assoc, ((D i).inclusion (D j)).w, ((D j).inclusion (D i)).w, |
| 120 | ((D i).comparison (D j)).w] |
| 121 | |
| 122 | @[reassoc] |
| 123 | theorem chart_structureMap (i : I) : chart D i ≫ structureMap D = (D i).space.hom := |
| 124 | Multicoequalizer.π_desc _ _ _ _ _ |
| 125 | |
| 126 | def over : Over S := Over.mk (structureMap D) |
| 127 | |
| 128 | def chartOver (i : I) : (D i).space ⟶ over D := |
| 129 | Over.homMk (chart D i) (chart_structureMap D i) |
| 130 | |
| 131 | theorem charts_cover (z : scheme D) : ∃ i, ∃ x : (D i).space.left, chart D i x = z := |
| 132 | (glueData D).ι_jointly_surjective z |
| 133 | |
| 134 | def openCover : (scheme D).OpenCover := (glueData D).openCover |
| 135 | |
| 136 | instance reduced : IsReduced (scheme D) := by |
| 137 | have (i : I) : IsReduced ((ReducedRepresentationAtlas.openCover D).X i) := (D i).reduced |
| 138 | exact IsReduced.of_openCover (scheme D) (𝒰 := ReducedRepresentationAtlas.openCover D) |
| 139 | |
| 140 | theorem chart_intersection (i j : I) : |
| 141 | IsPullback ((D i).inclusion (D j)).left |
| 142 | (((D i).comparison (D j)).left ≫ ((D j).inclusion (D i)).left) |
| 143 | (chart D i) (chart D j) := |
| 144 | IsPullback.of_isLimit ((glueData D).vPullbackConeIsLimit i j) |
| 145 | |
| 146 | theorem chart_glue (i j : I) : |
| 147 | ((D i).comparison (D j)).left ≫ ((D j).inclusion (D i)).left ≫ chart D j = |
| 148 | ((D i).inclusion (D j)).left ≫ chart D i := (glueData D).glue_condition i j |
| 149 | |
| 150 | end ReducedRepresentationAtlas |
| 151 | |
| 152 | end |
| 153 | |
| 154 | section |
| 155 | |
| 156 | /-! Each glued parameter chart is the full inverse image of its base open. -/ |
| 157 | |
| 158 | set_option backward.isDefEq.respectTransparency false |
| 159 | set_option backward.isDefEq.respectTransparency.types false |
| 160 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite |
| 161 | |
| 162 | namespace ReducedRepresentationAtlas |
| 163 | variable {S : Scheme.{0}} {F : (Over S)ᵒᵖ ⥤ Type} {I : Type} {U : I → S.Opens} |
| 164 | (D : ∀ i, OpenRepresentations.ReducedOpenRepresentation F (U i)) |
| 165 | |
| 166 | theorem chart_range (i : I) : Set.range (chart D i) = |
| 167 | (structureMap D) ⁻¹' (U i : Set S) := by |
| 168 | ext z |
| 169 | constructor |
| 170 | · rintro ⟨x, rfl⟩ |
| 171 | change structureMap D (chart D i x) ∈ U i |
| 172 | have h : structureMap D (chart D i x) = (D i).space.hom x := |
| 173 | congrArg (fun q : (D i).space.left ⟶ S => q x) (chart_structureMap D i) |
| 174 | exact h ▸ (D i).mapsTo x |
| 175 | · intro hz |
| 176 | obtain ⟨j, x, rfl⟩ := charts_cover D z |
| 177 | have hx : (D j).space.hom x ∈ U i := by |
| 178 | have h : structureMap D (chart D j x) = (D j).space.hom x := |
| 179 | congrArg (fun q : (D j).space.left ⟶ S => q x) (chart_structureMap D j) |
| 180 | exact h ▸ hz |
| 181 | let y : ((D j).overlap (D i)).left := ⟨x, hx⟩ |
| 182 | refine ⟨((D i).inclusion (D j)).left (((D j).comparison (D i)).left y), ?_⟩ |
| 183 | exact congrArg (fun q : ((D j).overlap (D i)).left ⟶ scheme D => q y) |
| 184 | (chart_glue D j i) |
| 185 | |
| 186 | theorem chart_opensRange (i : I) : (chart D i).opensRange = structureMap D ⁻¹ᵁ U i := |
| 187 | TopologicalSpace.Opens.coe_inj.mp (chart_range D i) |
| 188 | |
| 189 | def chartBase (i : I) : (D i).space.left ⟶ (U i).toScheme := |
| 190 | IsOpenImmersion.lift (U i).ι (D i).space.hom (by |
| 191 | rw [Scheme.Opens.range_ι] |
| 192 | rintro _ ⟨x, rfl⟩ |
| 193 | exact (D i).mapsTo x) |
| 194 | |
| 195 | @[reassoc] |
| 196 | theorem chartBase_ι (i : I) : chartBase D i ≫ (U i).ι = (D i).space.hom := |
| 197 | IsOpenImmersion.lift_fac _ _ _ |
| 198 | |
| 199 | theorem chart_isPullback (i : I) : |
| 200 | IsPullback (chartBase D i) (chart D i) (U i).ι (structureMap D) := by |
| 201 | refine ⟨⟨by rw [chartBase_ι, chart_structureMap]⟩, |
| 202 | ⟨PullbackCone.IsLimit.mk _ ?_ ?_ ?_ ?_⟩⟩ |
| 203 | · intro c |
| 204 | apply IsOpenImmersion.lift (chart D i) c.snd |
| 205 | rw [chart_range] |
| 206 | rintro _ ⟨x, rfl⟩ |
| 207 | change structureMap D (c.snd x) ∈ U i |
| 208 | have h : structureMap D (c.snd x) = (U i).ι (c.fst x) := |
| 209 | congrArg (fun q : c.pt ⟶ S => q x) c.condition.symm |
| 210 | exact h ▸ (c.fst x).property |
| 211 | · intro c |
| 212 | rw [← cancel_mono (U i).ι, Category.assoc, chartBase_ι, |
| 213 | ← chart_structureMap D i, IsOpenImmersion.lift_fac_assoc, c.condition] |
| 214 | · intro c |
| 215 | exact IsOpenImmersion.lift_fac _ _ _ |
| 216 | · intro c m _ h2 |
| 217 | apply (cancel_mono (chart D i)).mp |
| 218 | rw [IsOpenImmersion.lift_fac] |
| 219 | exact h2 |
| 220 | |
| 221 | end ReducedRepresentationAtlas |
| 222 | |
| 223 | end |
| 224 | |
| 225 | /-! Once a global universal value restricts to the local universal values, |
| 226 | its classifier is bijective on every reduced test contained in a base chart. -/ |
| 227 | |
| 228 | set_option backward.isDefEq.respectTransparency false |
| 229 | set_option backward.isDefEq.respectTransparency.types false |
| 230 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 231 | |
| 232 | namespace ReducedRepresentationAtlas |
| 233 | variable {S : Scheme.{0}} {F : (Over S)ᵒᵖ ⥤ Type} {I : Type} {U : I → S.Opens} |
| 234 | (D : ∀ i, OpenRepresentations.ReducedOpenRepresentation F (U i)) |
| 235 | |
| 236 | instance chartOver_mono (i : I) : Mono (chartOver D i) := |
| 237 | (Over.forget S).mono_of_mono_map (show Mono (chartOver D i).left from inferInstanceAs (Mono (chart D i))) |
| 238 | |
| 239 | def factorToChart (i : I) {T : Over S} (hT : ∀ t : T.left, T.hom t ∈ U i) |
| 240 | (f : T ⟶ over D) : T ⟶ (D i).space := by |
| 241 | have hr : Set.range f.left ⊆ Set.range (chart D i) := by |
| 242 | rw [chart_range] |
| 243 | rintro _ ⟨t, rfl⟩ |
| 244 | change structureMap D (f.left t) ∈ U i |
| 245 | have ht : structureMap D (f.left t) = T.hom t := congrArg (fun q : T.left ⟶ S => q t) f.w |
| 246 | exact ht ▸ hT t |
| 247 | let q := IsOpenImmersion.lift (chart D i) f.left hr |
| 248 | refine Over.homMk q ?_ |
| 249 | rw [← chart_structureMap D i, IsOpenImmersion.lift_fac_assoc] |
| 250 | exact f.w |
| 251 | |
| 252 | theorem factorToChart_chart (i : I) {T : Over S} (hT : ∀ t : T.left, T.hom t ∈ U i) |
| 253 | (f : T ⟶ over D) : factorToChart D i hT f ≫ chartOver D i = f := by |
| 254 | apply Over.OverMorphism.ext |
| 255 | exact IsOpenImmersion.lift_fac _ _ _ |
| 256 | |
| 257 | def chartHomEquiv (i : I) (T : Over S) (hT : ∀ t : T.left, T.hom t ∈ U i) : |
| 258 | (T ⟶ over D) ≃ (T ⟶ (D i).space) where |
| 259 | toFun := factorToChart D i hT |
| 260 | invFun f := f ≫ chartOver D i |
| 261 | left_inv := factorToChart_chart D i hT |
| 262 | right_inv f := (cancel_mono (chartOver D i)).mp (factorToChart_chart D i hT (f ≫ chartOver D i)) |
| 263 | |
| 264 | theorem classifies_on_base_open (u : F.obj (op (over D))) (i : I) |
| 265 | (hu : F.map (chartOver D i).op u = (D i).sectionValue) |
| 266 | (T : Over S) [IsReduced T.left] (hT : ∀ t : T.left, T.hom t ∈ U i) : |
| 267 | Function.Bijective (fun f : T ⟶ over D => F.map f.op u) := by |
| 268 | have hb := ((D i).classifies T hT).comp (chartHomEquiv D i T hT).bijective |
| 269 | convert hb using 1 |
| 270 | funext f |
| 271 | change F.map f.op u = F.map (factorToChart D i hT f).op (D i).sectionValue |
| 272 | rw [← hu, ← F.map_comp_apply] |
| 273 | exact congrArg (fun q : T ⟶ over D => F.map q.op u) (factorToChart_chart D i hT f).symm |
| 274 | |
| 275 | end ReducedRepresentationAtlas |
| 276 | |
| 277 | end AlgebraicGeometry.PELModuli.IntegralModel.Reduced.RepresentationAtlas |
| 278 | |
| 279 | end |
| 280 | |
| 281 | end OAI |