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.Open.RepresentationLifts |
| 2 | import Mathlib.AlgebraicGeometry.Gluing |
| 3 | import Mathlib.AlgebraicGeometry.Limits |
| 4 | import Mathlib.CategoryTheory.Limits.Constructions.Over.Basic |
| 5 | |
| 6 | /-! # Representation Atlas Is -/ |
| 7 | |
| 8 | namespace OAI |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | namespace AlgebraicGeometry.AbelianModuli.ReferenceFamily |
| 13 | |
| 14 | /-! The triple-overlap maps of local representations, with their |
| 15 | cocycle identity proved by the actual universal values. -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite |
| 18 | |
| 19 | variable {S : Scheme.{0}} {F : (Over S)ᵒᵖ ⥤ Type} {U V W : S.Opens} |
| 20 | (D : Open.Representations.OpenRepresentation F U) (E : Open.Representations.OpenRepresentation F V) |
| 21 | (G : Open.Representations.OpenRepresentation F W) |
| 22 | |
| 23 | def Open.Representations.OpenRepresentation.tripleLift {T : Over S} (f : T ⟶ D.overlap E) (g : T ⟶ D.overlap G) : |
| 24 | T ⟶ E.overlap G := |
| 25 | E.overlapLift G (f ≫ D.comparison E ≫ E.inclusion D) (fun t => by |
| 26 | have h := D.overlap_mapsTo_right G (g.left t) |
| 27 | exact (congrArg (fun q : T.left ⟶ S => q t) g.w) ▸ h) |
| 28 | |
| 29 | @[reassoc] |
| 30 | theorem Open.Representations.OpenRepresentation.tripleLift_inclusion {T : Over S} (f : T ⟶ D.overlap E) (g : T ⟶ D.overlap G) : |
| 31 | D.tripleLift E G f g ≫ E.inclusion G = f ≫ D.comparison E ≫ E.inclusion D := |
| 32 | E.overlapLift_inclusion G _ _ |
| 33 | |
| 34 | def Open.Representations.OpenRepresentation.tripleMap : pullback (D.inclusion E) (D.inclusion G) ⟶ |
| 35 | pullback (E.inclusion G) (E.inclusion D) := |
| 36 | pullback.lift (D.tripleLift E G (pullback.fst _ _) (pullback.snd _ _)) |
| 37 | (pullback.fst _ _ ≫ D.comparison E) (by |
| 38 | rw [Open.Representations.OpenRepresentation.tripleLift_inclusion, Category.assoc]) |
| 39 | |
| 40 | @[reassoc] |
| 41 | theorem Open.Representations.OpenRepresentation.tripleMap_snd : D.tripleMap E G ≫ pullback.snd _ _ = |
| 42 | pullback.fst _ _ ≫ D.comparison E := pullback.lift_snd _ _ _ |
| 43 | |
| 44 | @[reassoc] |
| 45 | theorem Open.Representations.OpenRepresentation.tripleMap_fst_inclusion : D.tripleMap E G ≫ pullback.fst _ _ ≫ E.inclusion G = |
| 46 | pullback.fst _ _ ≫ D.comparison E ≫ E.inclusion D := by |
| 47 | rw [← Category.assoc, Open.Representations.OpenRepresentation.tripleMap, pullback.lift_fst, Open.Representations.OpenRepresentation.tripleLift_inclusion] |
| 48 | |
| 49 | theorem Open.Representations.OpenRepresentation.tripleMap_value {T : Over S} |
| 50 | (f : T ⟶ pullback (D.inclusion E) (D.inclusion G)) : |
| 51 | F.map (f ≫ D.tripleMap E G ≫ pullback.fst _ _ ≫ E.inclusion G).op E.sectionValue = |
| 52 | F.map (f ≫ pullback.fst _ _ ≫ D.inclusion E).op D.sectionValue := by |
| 53 | rw [Open.Representations.OpenRepresentation.tripleMap_fst_inclusion] |
| 54 | simp only [op_comp, F.map_comp, types_comp_apply, Open.Representations.OpenRepresentation.comparison_value] |
| 55 | |
| 56 | theorem Open.Representations.OpenRepresentation.tripleMap_cocycle : |
| 57 | D.tripleMap E G ≫ E.tripleMap G D ≫ G.tripleMap D E = 𝟙 _ := by |
| 58 | apply (cancel_mono (pullback.fst (D.inclusion E) (D.inclusion G))).mp |
| 59 | apply (cancel_mono (D.inclusion E)).mp |
| 60 | apply D.hom_ext |
| 61 | simp only [Category.assoc, Category.id_comp] |
| 62 | rw [← Category.assoc (D.tripleMap E G), Open.Representations.OpenRepresentation.tripleMap_value, |
| 63 | Category.assoc, Open.Representations.OpenRepresentation.tripleMap_value] |
| 64 | simpa only [Category.id_comp] using D.tripleMap_value E G (𝟙 _) |
| 65 | |
| 66 | end AlgebraicGeometry.AbelianModuli.ReferenceFamily |
| 67 | |
| 68 | namespace AlgebraicGeometry.AbelianModuli.ReferenceFamily.RepresentationAtlasIs.RepresentationAtlas |
| 69 | open _root_.CategoryTheory |
| 70 | open _root_.CategoryTheory.Limits |
| 71 | open _root_.AlgebraicGeometry |
| 72 | section |
| 73 | |
| 74 | /-! The actual scheme atlas obtained from local representations on arbitrary |
| 75 | tests. The transition maps and cocycle are constructed, rather than inputs. -/ |
| 76 | |
| 77 | open Opposite |
| 78 | |
| 79 | variable {S : Scheme.{0}} {F : (Over S)ᵒᵖ ⥤ Type} {I : Type} {U : I → S.Opens} |
| 80 | (D : ∀ i, Open.Representations.OpenRepresentation F (U i)) |
| 81 | |
| 82 | def glueDataOver : CategoryTheory.GlueData (Over S) where |
| 83 | J := I |
| 84 | U i := (D i).space |
| 85 | V p := (D p.1).overlap (D p.2) |
| 86 | f i j := (D i).inclusion (D j) |
| 87 | t i j := (D i).comparison (D j) |
| 88 | t_id i := (D i).comparison_self |
| 89 | t' i j k := (D i).tripleMap (D j) (D k) |
| 90 | t_fac i j k := (D i).tripleMap_snd (D j) (D k) |
| 91 | cocycle i j k := (D i).tripleMap_cocycle (D j) (D k) |
| 92 | |
| 93 | def glueData : Scheme.GlueData where |
| 94 | toGlueData := (glueDataOver D).mapGlueData (Over.forget S) |
| 95 | f_open i j := (D i).inclusion_open (D j) |
| 96 | |
| 97 | def scheme : Scheme := (glueData D).glued |
| 98 | |
| 99 | def chart (i : I) : (D i).space.left ⟶ scheme D := (glueData D).ι i |
| 100 | |
| 101 | instance chart_open (i : I) : IsOpenImmersion (chart D i) := |
| 102 | Scheme.GlueData.ι_isOpenImmersion (glueData D) i |
| 103 | |
| 104 | def structureMap : scheme D ⟶ S := by |
| 105 | fapply Multicoequalizer.desc |
| 106 | · exact fun i => (D i).space.hom |
| 107 | rintro ⟨i, j⟩ |
| 108 | change ((D i).inclusion (D j)).left ≫ (D i).space.hom = |
| 109 | (((D i).comparison (D j)).left ≫ ((D j).inclusion (D i)).left) ≫ (D j).space.hom |
| 110 | rw [Category.assoc, ((D i).inclusion (D j)).w, ((D j).inclusion (D i)).w, |
| 111 | ((D i).comparison (D j)).w] |
| 112 | |
| 113 | @[reassoc] |
| 114 | theorem chart_structureMap (i : I) : chart D i ≫ structureMap D = (D i).space.hom := |
| 115 | Multicoequalizer.π_desc _ _ _ _ _ |
| 116 | |
| 117 | def over : Over S := Over.mk (structureMap D) |
| 118 | |
| 119 | def chartOver (i : I) : (D i).space ⟶ over D := |
| 120 | Over.homMk (chart D i) (chart_structureMap D i) |
| 121 | |
| 122 | theorem charts_cover (z : scheme D) : ∃ i, ∃ x : (D i).space.left, chart D i x = z := |
| 123 | (glueData D).ι_jointly_surjective z |
| 124 | |
| 125 | def openCover : (scheme D).OpenCover := (glueData D).openCover |
| 126 | |
| 127 | theorem chart_intersection (i j : I) : |
| 128 | IsPullback ((D i).inclusion (D j)).left |
| 129 | (((D i).comparison (D j)).left ≫ ((D j).inclusion (D i)).left) |
| 130 | (chart D i) (chart D j) := |
| 131 | IsPullback.of_isLimit ((glueData D).vPullbackConeIsLimit i j) |
| 132 | |
| 133 | theorem chart_glue (i j : I) : |
| 134 | ((D i).comparison (D j)).left ≫ ((D j).inclusion (D i)).left ≫ chart D j = |
| 135 | ((D i).inclusion (D j)).left ≫ chart D i := (glueData D).glue_condition i j |
| 136 | |
| 137 | end |
| 138 | |
| 139 | section |
| 140 | |
| 141 | /-! Each glued parameter chart is the full inverse image of its base open. -/ |
| 142 | |
| 143 | open Opposite |
| 144 | |
| 145 | variable {S : Scheme.{0}} {F : (Over S)ᵒᵖ ⥤ Type} {I : Type} {U : I → S.Opens} |
| 146 | (D : ∀ i, Open.Representations.OpenRepresentation F (U i)) |
| 147 | |
| 148 | theorem chart_range (i : I) : Set.range (chart D i) = |
| 149 | (structureMap D) ⁻¹' (U i : Set S) := by |
| 150 | ext z |
| 151 | constructor |
| 152 | · rintro ⟨x, rfl⟩ |
| 153 | change structureMap D (chart D i x) ∈ U i |
| 154 | have h : structureMap D (chart D i x) = (D i).space.hom x := |
| 155 | congrArg (fun q : (D i).space.left ⟶ S => q x) (chart_structureMap D i) |
| 156 | exact h ▸ (D i).mapsTo x |
| 157 | · intro hz |
| 158 | obtain ⟨j, x, rfl⟩ := charts_cover D z |
| 159 | have hx : (D j).space.hom x ∈ U i := by |
| 160 | have h : structureMap D (chart D j x) = (D j).space.hom x := |
| 161 | congrArg (fun q : (D j).space.left ⟶ S => q x) (chart_structureMap D j) |
| 162 | exact h ▸ hz |
| 163 | let y : ((D j).overlap (D i)).left := ⟨x, hx⟩ |
| 164 | refine ⟨((D i).inclusion (D j)).left (((D j).comparison (D i)).left y), ?_⟩ |
| 165 | exact congrArg (fun q : ((D j).overlap (D i)).left ⟶ scheme D => q y) |
| 166 | (chart_glue D j i) |
| 167 | |
| 168 | theorem chart_opensRange (i : I) : (chart D i).opensRange = structureMap D ⁻¹ᵁ U i := |
| 169 | TopologicalSpace.Opens.coe_inj.mp (chart_range D i) |
| 170 | |
| 171 | def chartBase (i : I) : (D i).space.left ⟶ (U i).toScheme := |
| 172 | IsOpenImmersion.lift (U i).ι (D i).space.hom (by |
| 173 | rw [Scheme.Opens.range_ι] |
| 174 | rintro _ ⟨x, rfl⟩ |
| 175 | exact (D i).mapsTo x) |
| 176 | |
| 177 | @[reassoc] |
| 178 | theorem chartBase_ι (i : I) : chartBase D i ≫ (U i).ι = (D i).space.hom := |
| 179 | IsOpenImmersion.lift_fac _ _ _ |
| 180 | |
| 181 | theorem chart_isPullback (i : I) : |
| 182 | IsPullback (chartBase D i) (chart D i) (U i).ι (structureMap D) := by |
| 183 | refine ⟨⟨by rw [chartBase_ι, chart_structureMap]⟩, |
| 184 | ⟨PullbackCone.IsLimit.mk _ ?_ ?_ ?_ ?_⟩⟩ |
| 185 | · intro c |
| 186 | apply IsOpenImmersion.lift (chart D i) c.snd |
| 187 | rw [chart_range] |
| 188 | rintro _ ⟨x, rfl⟩ |
| 189 | change structureMap D (c.snd x) ∈ U i |
| 190 | have h : structureMap D (c.snd x) = (U i).ι (c.fst x) := |
| 191 | congrArg (fun q : c.pt ⟶ S => q x) c.condition.symm |
| 192 | exact h ▸ (c.fst x).property |
| 193 | · intro c |
| 194 | rw [← cancel_mono (U i).ι, Category.assoc, chartBase_ι, |
| 195 | ← chart_structureMap D i, IsOpenImmersion.lift_fac_assoc, c.condition] |
| 196 | · intro c |
| 197 | exact IsOpenImmersion.lift_fac _ _ _ |
| 198 | · intro c m _ h2 |
| 199 | apply (cancel_mono (chart D i)).mp |
| 200 | rw [IsOpenImmersion.lift_fac] |
| 201 | exact h2 |
| 202 | |
| 203 | end |
| 204 | |
| 205 | /-! The actual local universal values agree on every test of the glued |
| 206 | atlas intersection, by the constructed cartesian intersection square. -/ |
| 207 | |
| 208 | open Opposite |
| 209 | |
| 210 | variable {S : Scheme.{0}} {F : (Over S)ᵒᵖ ⥤ Type} {I : Type} {U : I → S.Opens} |
| 211 | (D : ∀ i, Open.Representations.OpenRepresentation F (U i)) |
| 212 | |
| 213 | theorem chart_intersection_over (i j : I) : |
| 214 | IsPullback ((D i).inclusion (D j)) |
| 215 | ((D i).comparison (D j) ≫ (D j).inclusion (D i)) (chartOver D i) (chartOver D j) := by |
| 216 | apply IsPullback.of_map_of_faithful (Over.forget S) |
| 217 | exact chart_intersection D i j |
| 218 | |
| 219 | theorem localValues_match (i j : I) {T : Over S} (f : T ⟶ (D i).space) (g : T ⟶ (D j).space) |
| 220 | (h : f ≫ chartOver D i = g ≫ chartOver D j) : |
| 221 | F.map f.op (D i).sectionValue = F.map g.op (D j).sectionValue := by |
| 222 | let H := chart_intersection_over D i j |
| 223 | let q := H.lift f g h |
| 224 | have hf : q ≫ (D i).inclusion (D j) = f := H.lift_fst f g h |
| 225 | have hg : q ≫ (D i).comparison (D j) ≫ (D j).inclusion (D i) = g := H.lift_snd f g h |
| 226 | rw [← hf, ← hg] |
| 227 | simp only [op_comp, F.map_comp, types_comp_apply, Open.Representations.OpenRepresentation.comparison_value] |
| 228 | |
| 229 | end AlgebraicGeometry.AbelianModuli.ReferenceFamily.RepresentationAtlasIs.RepresentationAtlas |
| 230 | |
| 231 | end |
| 232 | |
| 233 | end OAI |