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.PolarizedSchemeGluing |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Polarization.OpenDescent |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Isogeny.TargetTransport |
| 4 | |
| 5 | /-! # Polarization Isogeny Gluing -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Directed.PolarizationIsogenyGluing.DirectedPolarizedSchemeGluing |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The original polarization arrows glue between the two effectively |
| 12 | glued abelian schemes. Their finite-flat isogeny structure and full kernel |
| 13 | type are retained, before constructing the global Poincare line. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 16 | universe u |
| 17 | |
| 18 | private theorem polarization_total_square {C : Type*} [Category* C] |
| 19 | {X Y X' Y' U V : C} (a : X ⟶ X') (b : Y ⟶ Y') (p : X ⟶ Y) (q : X' ⟶ Y') |
| 20 | (r : X' ⟶ U) (s : Y' ⟶ V) (h : U ⟶ V) |
| 21 | (hp : p ≫ b = a ≫ q) (hq : q ≫ s = r ≫ h) : |
| 22 | (a ≫ r) ≫ h = p ≫ (b ≫ s) := by |
| 23 | rw [Category.assoc, ← hq, ← Category.assoc, ← hp, Category.assoc] |
| 24 | |
| 25 | private theorem polarization_cocone_square {C : Type*} [Category* C] |
| 26 | {X Y X' Y' Z : C} (a : X ⟶ X') (b : Y ⟶ Y') (p : X ⟶ Y) (q : X' ⟶ Y') |
| 27 | (i : Y ⟶ Z) (j : Y' ⟶ Z) (hp : a ≫ q = p ≫ b) (hb : b ≫ j = i) : |
| 28 | a ≫ (q ≫ j) = (p ≫ i) ≫ 𝟙 Z := by |
| 29 | rw [← Category.assoc, hp, Category.assoc, hb, Category.comp_id] |
| 30 | |
| 31 | private theorem polarization_base_square {C : Type*} [Category* C] |
| 32 | {X Y U V T S : C} (a : X ⟶ U) (b : Y ⟶ V) (p : X ⟶ Y) (q : U ⟶ V) |
| 33 | (u : U ⟶ S) (v : V ⟶ S) (x : X ⟶ T) (y : Y ⟶ T) (t : T ⟶ S) |
| 34 | (hp : a ≫ q = p ≫ b) (hb : b ≫ v = y ≫ t) (hxy : p ≫ y = x) |
| 35 | (ha : a ≫ u = x ≫ t) : a ≫ (q ≫ v) = a ≫ u := by |
| 36 | calc |
| 37 | a ≫ (q ≫ v) = (a ≫ q) ≫ v := (Category.assoc _ _ _).symm |
| 38 | _ = (p ≫ b) ≫ v := congrArg (fun f => f ≫ v) hp |
| 39 | _ = p ≫ (b ≫ v) := Category.assoc _ _ _ |
| 40 | _ = p ≫ (y ≫ t) := congrArg (fun f => p ≫ f) hb |
| 41 | _ = (p ≫ y) ≫ t := (Category.assoc _ _ _).symm |
| 42 | _ = x ≫ t := congrArg (fun f => f ≫ t) hxy |
| 43 | _ = a ≫ u := ha.symm |
| 44 | |
| 45 | private theorem polarization_first_projection {C : Type*} [Category* C] |
| 46 | {X Y U V G H : C} (a : X ⟶ U) (b : Y ⟶ V) (p : X ⟶ Y) (q : U ⟶ V) |
| 47 | (u : U ⟶ G) (v : V ⟶ H) (i : X ⟶ G) (j : Y ⟶ H) (w : G ⟶ H) |
| 48 | (ha : a ≫ u = i) (hb : b ≫ v = j) (hq : q ≫ v = u ≫ w) |
| 49 | (hw : i ≫ w = p ≫ j) : (a ≫ q) ≫ v = (p ≫ b) ≫ v := by |
| 50 | rw [Category.assoc, hq, ← Category.assoc, ha, hw, Category.assoc, hb] |
| 51 | |
| 52 | private theorem polarization_solve_square {C : Type*} [Category* C] |
| 53 | {X Y U V : C} (a : X ≅ U) (p : X ⟶ Y) (b : Y ⟶ V) (q : U ⟶ V) |
| 54 | (h : a.hom ≫ q = p ≫ b) : q = (a.inv ≫ p) ≫ b := by |
| 55 | calc |
| 56 | q = a.inv ≫ (a.hom ≫ q) := by rw [a.inv_hom_id_assoc] |
| 57 | _ = a.inv ≫ (p ≫ b) := congrArg (fun f => a.inv ≫ f) h |
| 58 | _ = (a.inv ≫ p) ≫ b := (Category.assoc _ _ _).symm |
| 59 | |
| 60 | variable {S : Scheme.{u}} (C : S.OpenCover.{u}) |
| 61 | [Category C.I₀] [C.LocallyDirected] [Small.{u} C.I₀] [Quiver.IsThin C.I₀] |
| 62 | [∀ i, IsLocallyNoetherian (C.X i)] {g N : ℕ} {δ : Fin g → ℕ} |
| 63 | (F : ∀ i, PolarizationData.PolarizedAbelianWithFullLevel g δ N (C.X i)) (hN : 3 ≤ N) |
| 64 | (e : ∀ {i j : C.I₀} (f : i ⟶ j), Moduli.Isomorphisms.LevelPreservingIso (F i) ((F j).pullback (C.trans f))) |
| 65 | |
| 66 | local notation "DA" => OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Directed.PolarizedSchemeGluing.DirectedPolarizedSchemeGluing.abelianData C F hN e |
| 67 | local notation "DB" => OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Directed.PolarizedSchemeGluing.DirectedPolarizedSchemeGluing.dualData C F hN e |
| 68 | local notation "A" => OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Directed.PolarizedSchemeGluing.DirectedPolarizedSchemeGluing.abelian C F hN e |
| 69 | local notation "B" => OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Directed.PolarizedSchemeGluing.DirectedPolarizedSchemeGluing.dualAbelian C F hN e |
| 70 | |
| 71 | omit [Small.{u, u} C.I₀] [Quiver.IsThin C.I₀] in |
| 72 | theorem polarizationTotal_natural {i j : C.I₀} (f : i ⟶ j) : |
| 73 | (DA).transition f ≫ (F j).polarization.isogeny.hom.left = |
| 74 | (F i).polarization.isogeny.hom.left ≫ (DB).transition f := by |
| 75 | let a : (F i).abelian.scheme.left ⟶ pullback (F j).abelian.scheme.hom (C.trans f) := |
| 76 | (e f).abelian.hom.left |
| 77 | let b : (F i).dual.abelian.scheme.left ⟶ pullback (F j).dual.abelian.scheme.hom (C.trans f) := |
| 78 | (e f).dual.hom.left |
| 79 | let q : pullback (F j).abelian.scheme.hom (C.trans f) ⟶ |
| 80 | pullback (F j).dual.abelian.scheme.hom (C.trans f) := |
| 81 | ((Over.pullback (C.trans f)).map (F j).polarization.isogeny.hom).left |
| 82 | have hp : (F i).polarization.isogeny.hom.left ≫ b = a ≫ q := |
| 83 | congrArg Over.Hom.left (e f).polarization |
| 84 | exact polarization_total_square a b (F i).polarization.isogeny.hom.left q |
| 85 | (pullback.fst (F j).abelian.scheme.hom (C.trans f)) |
| 86 | (pullback.fst (F j).dual.abelian.scheme.hom (C.trans f)) |
| 87 | (F j).polarization.isogeny.hom.left hp |
| 88 | (Pullback.Comparisons.overPullback_map_left_fst (F j).polarization.isogeny.hom (C.trans f)) |
| 89 | |
| 90 | def polarizationCocone : Cocone (DA).schemeData.functor where |
| 91 | pt := (B).scheme.left |
| 92 | ι := |
| 93 | { app i := (F i).polarization.isogeny.hom.left ≫ (DB).chartMap i |
| 94 | naturality i j f := by |
| 95 | let a : (F i).abelian.scheme.left ⟶ (F j).abelian.scheme.left := (DA).transition f |
| 96 | let b : (F i).dual.abelian.scheme.left ⟶ (F j).dual.abelian.scheme.left := (DB).transition f |
| 97 | let ci : (F i).dual.abelian.scheme.left ⟶ (B).scheme.left := (DB).chartMap i |
| 98 | let cj : (F j).dual.abelian.scheme.left ⟶ (B).scheme.left := (DB).chartMap j |
| 99 | exact polarization_cocone_square a b (F i).polarization.isogeny.hom.left |
| 100 | (F j).polarization.isogeny.hom.left ci cj |
| 101 | (polarizationTotal_natural C F hN e f) ((DB).chartMap_transition f) } |
| 102 | |
| 103 | def polarizationSchemeMap : (A).scheme.left ⟶ (B).scheme.left := |
| 104 | colimit.desc (DA).schemeData.functor (polarizationCocone C F hN e) |
| 105 | |
| 106 | theorem polarizationSchemeMap_chart (i : C.I₀) : |
| 107 | (DA).chartMap i ≫ polarizationSchemeMap C F hN e = |
| 108 | (F i).polarization.isogeny.hom.left ≫ (DB).chartMap i := |
| 109 | colimit.ι_desc (F := (DA).schemeData.functor) (polarizationCocone C F hN e) i |
| 110 | |
| 111 | def polarizationMap : (A).scheme ⟶ (B).scheme := |
| 112 | Over.homMk (polarizationSchemeMap C F hN e) (by |
| 113 | apply colimit.hom_ext (F := (DA).schemeData.functor) |
| 114 | intro i |
| 115 | let a : (F i).abelian.scheme.left ⟶ (A).scheme.left := (DA).chartMap i |
| 116 | let b : (F i).dual.abelian.scheme.left ⟶ (B).scheme.left := (DB).chartMap i |
| 117 | exact polarization_base_square a b (F i).polarization.isogeny.hom.left |
| 118 | (polarizationSchemeMap C F hN e) (A).scheme.hom (B).scheme.hom |
| 119 | (F i).abelian.scheme.hom (F i).dual.abelian.scheme.hom (C.f i) |
| 120 | (polarizationSchemeMap_chart C F hN e i) ((DB).chartMap_over i) |
| 121 | (F i).polarization.isogeny.hom.w ((DA).chartMap_over i)) |
| 122 | |
| 123 | theorem polarizationMap_chart (i : C.I₀) : |
| 124 | (PolarizedSchemeGluing.DirectedPolarizedSchemeGluing.abelianChartIso C F hN e i).hom ≫ (Over.pullback (C.f i)).map (polarizationMap C F hN e) = |
| 125 | (F i).polarization.isogeny.hom ≫ (PolarizedSchemeGluing.DirectedPolarizedSchemeGluing.dualChartIso C F hN e i).hom := by |
| 126 | apply Over.OverMorphism.ext |
| 127 | apply pullback.hom_ext |
| 128 | · let a : (F i).abelian.scheme.left ⟶ pullback (A).scheme.hom (C.f i) := |
| 129 | (PolarizedSchemeGluing.DirectedPolarizedSchemeGluing.abelianChartIso C F hN e i).hom.left |
| 130 | let b : (F i).dual.abelian.scheme.left ⟶ pullback (B).scheme.hom (C.f i) := |
| 131 | (PolarizedSchemeGluing.DirectedPolarizedSchemeGluing.dualChartIso C F hN e i).hom.left |
| 132 | let q : pullback (A).scheme.hom (C.f i) ⟶ pullback (B).scheme.hom (C.f i) := |
| 133 | ((Over.pullback (C.f i)).map (polarizationMap C F hN e)).left |
| 134 | let ci : (F i).abelian.scheme.left ⟶ (A).scheme.left := (DA).chartMap i |
| 135 | let cj : (F i).dual.abelian.scheme.left ⟶ (B).scheme.left := (DB).chartMap i |
| 136 | exact polarization_first_projection a b (F i).polarization.isogeny.hom.left q |
| 137 | (pullback.fst (A).scheme.hom (C.f i)) (pullback.fst (B).scheme.hom (C.f i)) |
| 138 | ci cj (polarizationSchemeMap C F hN e) ((DA).chartIso_fst i) ((DB).chartIso_fst i) |
| 139 | (Pullback.Comparisons.overPullback_map_left_fst (polarizationMap C F hN e) (C.f i)) |
| 140 | (polarizationSchemeMap_chart C F hN e i) |
| 141 | · exact ((PolarizedSchemeGluing.DirectedPolarizedSchemeGluing.abelianChartIso C F hN e i).hom ≫ |
| 142 | (Over.pullback (C.f i)).map (polarizationMap C F hN e)).w.trans |
| 143 | ((F i).polarization.isogeny.hom ≫ (PolarizedSchemeGluing.DirectedPolarizedSchemeGluing.dualChartIso C F hN e i).hom).w.symm |
| 144 | |
| 145 | def localIsogeny (i : C.I₀) : Abelian.Schemes.AbelianScheme.Isogeny ((A).pullback (C.f i)) ((B).pullback (C.f i)) := |
| 146 | ((F i).polarization.isogeny.familyTransport (PolarizedSchemeGluing.DirectedPolarizedSchemeGluing.abelianChartIso C F hN e i)).targetTransport |
| 147 | (PolarizedSchemeGluing.DirectedPolarizedSchemeGluing.dualChartIso C F hN e i) |
| 148 | |
| 149 | theorem localIsogeny_type (i : C.I₀) : (localIsogeny C F hN e i).HasPolarizationType δ := |
| 150 | ((F i).polarization.kernelType.familyTransport (PolarizedSchemeGluing.DirectedPolarizedSchemeGluing.abelianChartIso C F hN e i)).targetTransport |
| 151 | (PolarizedSchemeGluing.DirectedPolarizedSchemeGluing.dualChartIso C F hN e i) |
| 152 | |
| 153 | theorem polarizationMap_pullback (i : C.I₀) : |
| 154 | (Over.pullback (C.f i)).map (polarizationMap C F hN e) = (localIsogeny C F hN e i).hom := |
| 155 | polarization_solve_square (PolarizedSchemeGluing.DirectedPolarizedSchemeGluing.abelianChartIso C F hN e i) (F i).polarization.isogeny.hom |
| 156 | (PolarizedSchemeGluing.DirectedPolarizedSchemeGluing.dualChartIso C F hN e i).hom ((Over.pullback (C.f i)).map (polarizationMap C F hN e)) |
| 157 | (polarizationMap_chart C F hN e i) |
| 158 | |
| 159 | def isogeny : Abelian.Schemes.AbelianScheme.Isogeny A B := by |
| 160 | let p := polarizationMap C F hN e |
| 161 | let : IsMonHom p := MonoidHomOpenLocality.isMonHom_of_openCover p C (fun i => |
| 162 | (polarizationMap_pullback C F hN e i).symm ▸ (localIsogeny C F hN e i).preservesGroup) |
| 163 | let : IsZariskiLocalAtTarget (@IsFinite : MorphismProperty Scheme.{u}) := |
| 164 | @HasAffineProperty.instIsZariskiLocalAtTarget _ _ |
| 165 | IsFinite.instHasAffinePropertyAndIsAffineFiniteCarrierObjOppositeOpensCarrierCarrierCommRingCatPresheafOpOpensTopHomAppTop |
| 166 | let : IsZariskiLocalAtTarget (@Flat : MorphismProperty Scheme.{u}) := |
| 167 | HasRingHomProperty.instIsZariskiLocalAtTarget (P := @Flat) (Q := RingHom.Flat) |
| 168 | exact |
| 169 | { hom := p |
| 170 | preservesGroup := inferInstance |
| 171 | finite := HilbertConstruction.Over.MorphismPropertyOpenDescent.overMorphism_property_of_openCover p C (@IsFinite) (fun i => |
| 172 | (congrArg Over.Hom.left (polarizationMap_pullback C F hN e i)).symm ▸ |
| 173 | (localIsogeny C F hN e i).finite) |
| 174 | flat := HilbertConstruction.Over.MorphismPropertyOpenDescent.overMorphism_property_of_openCover p C (@Flat) (fun i => |
| 175 | (congrArg Over.Hom.left (polarizationMap_pullback C F hN e i)).symm ▸ |
| 176 | (localIsogeny C F hN e i).flat) |
| 177 | surjective := HilbertConstruction.Over.MorphismPropertyOpenDescent.overMorphism_property_of_openCover p C (@Surjective) (fun i => |
| 178 | (congrArg Over.Hom.left (polarizationMap_pullback C F hN e i)).symm ▸ |
| 179 | (localIsogeny C F hN e i).surjective) } |
| 180 | |
| 181 | theorem isogeny_type : (DirectedPolarizedSchemeGluing.isogeny C F hN e).HasPolarizationType δ := by |
| 182 | apply Abelian.Schemes.AbelianScheme.Isogeny.hasPolarizationType_of_openCover _ δ C |
| 183 | intro i |
| 184 | have he : (DirectedPolarizedSchemeGluing.isogeny C F hN e).pullback (C.f i) = localIsogeny C F hN e i := |
| 185 | Isogeny.ParameterPullback.isogeny_eq_of_hom_eq (polarizationMap_pullback C F hN e i) |
| 186 | exact he.symm ▸ localIsogeny_type C F hN e i |
| 187 | |
| 188 | end |
| 189 | |
| 190 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Directed.PolarizationIsogenyGluing.DirectedPolarizedSchemeGluing |