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.Intrinsic.FamilyPullbackPoints |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Pullback.Comparisons |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.EqualBasePullbackProjections |
| 4 | |
| 5 | /-! # Family Pullback Composition -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Intrinsic.FamilyPullbackComposition |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Canonical native-family pullback isomorphisms commute with composition |
| 12 | and equality of the actual Hilbert families. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 15 | universe u |
| 16 | |
| 17 | def nativeFamilyEqIso {S : Scheme.{u}} (X : Over S) |
| 18 | {T : Over S} {F G : HilbertScheme.Presentations.Hilbert.Functor.Family X T} (h : F = G) : |
| 19 | FamilyTestPoints.nativeFamilyOver X T F ≅ FamilyTestPoints.nativeFamilyOver X T G := |
| 20 | eqToIso (congrArg (FamilyTestPoints.nativeFamilyOver X T) h) |
| 21 | |
| 22 | variable {S : Scheme.{u}} (X : Over S) {T U V : Over S} |
| 23 | |
| 24 | @[simp] |
| 25 | theorem nativeFamilyEqIso_refl (F : HilbertScheme.Presentations.Hilbert.Functor.Family X T) : |
| 26 | nativeFamilyEqIso X (rfl : F = F) = Iso.refl _ := rfl |
| 27 | |
| 28 | @[reassoc] |
| 29 | theorem nativeFamilyEqIso_hom_ambient {F G : HilbertScheme.Presentations.Hilbert.Functor.Family X T} (h : F = G) : |
| 30 | (nativeFamilyEqIso X h).hom.left ≫ G.val.subschemeι = F.val.subschemeι := by |
| 31 | subst G |
| 32 | exact Category.id_comp _ |
| 33 | |
| 34 | theorem nativeFamilyEqIso_transport_ambient |
| 35 | {F F' G G' : HilbertScheme.Presentations.Hilbert.Functor.Family X T} (hF : F = F') (hG : G = G') |
| 36 | (e : FamilyTestPoints.nativeFamilyOver X T F' ≅ FamilyTestPoints.nativeFamilyOver X T G') |
| 37 | (A : HilbertScheme.Presentations.Hilbert.Functor.ambient X T ⟶ HilbertScheme.Presentations.Hilbert.Functor.ambient X T) |
| 38 | (he : e.hom.left ≫ G'.val.subschemeι = F'.val.subschemeι ≫ A) : |
| 39 | (nativeFamilyEqIso X hF ≪≫ e ≪≫ (nativeFamilyEqIso X hG).symm).hom.left ≫ |
| 40 | G.val.subschemeι = F.val.subschemeι ≫ A := by |
| 41 | subst F' |
| 42 | subst G' |
| 43 | simpa only [nativeFamilyEqIso_refl, Iso.refl_symm, Iso.refl_trans, |
| 44 | Iso.trans_refl] using he |
| 45 | |
| 46 | theorem nativeFamilyEqIso_transport_eq |
| 47 | {F F' G G' : HilbertScheme.Presentations.Hilbert.Functor.Family X T} (hF : F = F') (hG : G = G') |
| 48 | (e' : FamilyTestPoints.nativeFamilyOver X T F' ≅ FamilyTestPoints.nativeFamilyOver X T G') |
| 49 | (e : FamilyTestPoints.nativeFamilyOver X T F ≅ FamilyTestPoints.nativeFamilyOver X T G) |
| 50 | (A : HilbertScheme.Presentations.Hilbert.Functor.ambient X T ⟶ HilbertScheme.Presentations.Hilbert.Functor.ambient X T) |
| 51 | (he' : e'.hom.left ≫ G'.val.subschemeι = F'.val.subschemeι ≫ A) |
| 52 | (he : e.hom.left ≫ G.val.subschemeι = F.val.subschemeι ≫ A) : |
| 53 | nativeFamilyEqIso X hF ≪≫ e' ≪≫ (nativeFamilyEqIso X hG).symm = e := by |
| 54 | apply Iso.ext |
| 55 | apply Over.OverMorphism.ext |
| 56 | apply (cancel_mono G.val.subschemeι).mp |
| 57 | exact (nativeFamilyEqIso_transport_ambient X hF hG e' A he').trans he.symm |
| 58 | |
| 59 | private theorem composite_diagram {C : Type*} [Category* C] |
| 60 | {A B D E F G H J : C} |
| 61 | (f : A ⟶ B) (g : B ⟶ D) (h : D ⟶ E) (q : E ⟶ F) |
| 62 | (p : F ⟶ G) (r : E ⟶ H) (s : H ⟶ G) (t : D ⟶ J) |
| 63 | (u : J ⟶ H) (v : J ⟶ G) (w : B ⟶ J) |
| 64 | (hqp : q ≫ p = r ≫ s) (hhr : h ≫ r = t ≫ u) |
| 65 | (hus : u ≫ s = v) (hgt : g ≫ t = w) : |
| 66 | (f ≫ g ≫ h ≫ q) ≫ p = f ≫ w ≫ v := by |
| 67 | simp only [Category.assoc, hqp] |
| 68 | rw [← Category.assoc h r s, hhr, Category.assoc t u s, hus, |
| 69 | ← Category.assoc g t v, hgt] |
| 70 | |
| 71 | private theorem nativeFamilyEqIso_familyMap_ambient |
| 72 | (a : U ⟶ T) (F : HilbertScheme.Presentations.Hilbert.Functor.Family X T) (G : HilbertScheme.Presentations.Hilbert.Functor.Family X U) |
| 73 | (hG : G = HilbertScheme.Presentations.Hilbert.Functor.pullbackFamily X a F) : |
| 74 | ((nativeFamilyEqIso X hG).hom.left ≫ HilbertScheme.Presentations.Hilbert.Functor.familyMap X a F.val) ≫ |
| 75 | F.val.subschemeι = G.val.subschemeι ≫ HilbertScheme.Presentations.Hilbert.Functor.ambientMap X a := by |
| 76 | exact (Category.assoc _ _ _).trans |
| 77 | ((congrArg (fun f => (nativeFamilyEqIso X hG).hom.left ≫ f) |
| 78 | (HilbertScheme.Presentations.Hilbert.Functor.family_ambient_isPullback X a F.val).w.symm).trans |
| 79 | ((Category.assoc _ _ _).symm.trans |
| 80 | (congrArg (fun f => f ≫ HilbertScheme.Presentations.Hilbert.Functor.ambientMap X a) |
| 81 | (nativeFamilyEqIso_hom_ambient X hG)))) |
| 82 | |
| 83 | private theorem equalCompositePullback_hom_fst |
| 84 | {S T U : Scheme.{u}} (F0 : Over S) |
| 85 | (a : T ⟶ S) (b : U ⟶ T) (d : U ⟶ S) (hd : b ≫ a = d) : |
| 86 | (((Over.pullbackComp b a).symm.app F0 ≪≫ |
| 87 | eqToIso (congrArg (fun f => (Over.pullback f).obj F0) hd)).hom.left) ≫ |
| 88 | pullback.fst F0.hom d = |
| 89 | pullback.fst ((Over.pullback a).obj F0).hom b ≫ pullback.fst F0.hom a := by |
| 90 | change (((Over.pullbackComp b a).inv.app F0).left ≫ |
| 91 | (eqToIso (congrArg (fun f => (Over.pullback f).obj F0) hd)).hom.left) ≫ |
| 92 | pullback.fst F0.hom d = _ |
| 93 | rw [Category.assoc, EqualBasePullbackProjections.equalBasePullback_hom_fst F0 (b ≫ a) d hd] |
| 94 | exact (((Over.forget U).mapIso ((Over.pullbackComp b a).app F0)).inv_comp_eq).mpr |
| 95 | (Pullback.Comparisons.pullbackComp_hom_fst_fst F0 a b).symm |
| 96 | |
| 97 | private theorem nativeFamilyEqPullback_hom_fst |
| 98 | (d : V ⟶ T) (F : HilbertScheme.Presentations.Hilbert.Functor.Family X T) (G : HilbertScheme.Presentations.Hilbert.Functor.Family X V) |
| 99 | (hG : G = HilbertScheme.Presentations.Hilbert.Functor.pullbackFamily X d F) : |
| 100 | (nativeFamilyEqIso X hG ≪≫ FamilyPullbackIso.nativeFamilyPullbackIso X d F).hom.left ≫ |
| 101 | pullback.fst (FamilyTestPoints.nativeFamilyOver X T F).hom d.left = |
| 102 | (nativeFamilyEqIso X hG).hom.left ≫ HilbertScheme.Presentations.Hilbert.Functor.familyMap X d F.val := by |
| 103 | simp only [Iso.trans_hom, Over.comp_left] |
| 104 | exact (Category.assoc _ _ _).trans |
| 105 | (congrArg (fun f => (nativeFamilyEqIso X hG).hom.left ≫ f) |
| 106 | (FamilyPullbackPoints.nativeFamilyPullbackIso_hom_fst X d F)) |
| 107 | |
| 108 | private theorem nativeFamilyIteratedPullback_hom_fst |
| 109 | (a : U ⟶ T) (b : V ⟶ U) (d : V ⟶ T) |
| 110 | (F : HilbertScheme.Presentations.Hilbert.Functor.Family X T) (G : HilbertScheme.Presentations.Hilbert.Functor.Family X V) |
| 111 | (hG' : G = HilbertScheme.Presentations.Hilbert.Functor.pullbackFamily X b (HilbertScheme.Presentations.Hilbert.Functor.pullbackFamily X a F)) |
| 112 | (q : (Over.pullback a.left ⋙ Over.pullback b.left).obj (FamilyTestPoints.nativeFamilyOver X T F) ≅ |
| 113 | (Over.pullback d.left).obj (FamilyTestPoints.nativeFamilyOver X T F)) |
| 114 | (hq : q.hom.left ≫ pullback.fst (FamilyTestPoints.nativeFamilyOver X T F).hom d.left = |
| 115 | pullback.fst ((Over.pullback a.left).obj (FamilyTestPoints.nativeFamilyOver X T F)).hom b.left ≫ |
| 116 | pullback.fst (FamilyTestPoints.nativeFamilyOver X T F).hom a.left) : |
| 117 | (nativeFamilyEqIso X hG' ≪≫ |
| 118 | FamilyPullbackIso.nativeFamilyPullbackIso X b (HilbertScheme.Presentations.Hilbert.Functor.pullbackFamily X a F) ≪≫ |
| 119 | (Over.pullback b.left).mapIso (FamilyPullbackIso.nativeFamilyPullbackIso X a F) ≪≫ q).hom.left ≫ |
| 120 | pullback.fst (FamilyTestPoints.nativeFamilyOver X T F).hom d.left = |
| 121 | (nativeFamilyEqIso X hG').hom.left ≫ |
| 122 | HilbertScheme.Presentations.Hilbert.Functor.familyMap X b (HilbertScheme.Presentations.Hilbert.Functor.pullbackFamily X a F).val ≫ |
| 123 | HilbertScheme.Presentations.Hilbert.Functor.familyMap X a F.val := by |
| 124 | simp only [Iso.trans_hom, Functor.mapIso_hom, Over.comp_left] |
| 125 | exact composite_diagram _ _ _ _ _ _ _ _ _ _ _ hq |
| 126 | (Pullback.Comparisons.overPullback_map_left_fst (FamilyPullbackIso.nativeFamilyPullbackIso X a F).hom b.left) |
| 127 | (FamilyPullbackPoints.nativeFamilyPullbackIso_hom_fst X a F) |
| 128 | (FamilyPullbackPoints.nativeFamilyPullbackIso_hom_fst X b (HilbertScheme.Presentations.Hilbert.Functor.pullbackFamily X a F)) |
| 129 | |
| 130 | private theorem threeSquare_cancel {C : Type*} [Category* C] |
| 131 | {A B D E F G : C} (f : A ⟶ B) (g : A ⟶ D) (b : D ⟶ B) |
| 132 | (i : B ⟶ E) [Mono i] (j : A ⟶ F) (k : D ⟶ G) |
| 133 | (d : F ⟶ E) (e : F ⟶ G) (z : G ⟶ E) |
| 134 | (hl : f ≫ i = j ≫ d) (hr : g ≫ k = j ≫ e) |
| 135 | (ha : b ≫ i = k ≫ z) (hd : d = e ≫ z) : f = g ≫ b := by |
| 136 | apply (cancel_mono i).mp |
| 137 | rw [hl, Category.assoc, ha, ← Category.assoc, hr, Category.assoc, hd] |
| 138 | |
| 139 | private theorem nativeFamilyEqIso_familyMap_factor |
| 140 | (a : U ⟶ T) (b : V ⟶ U) (d : V ⟶ T) (hd : b ≫ a = d) |
| 141 | (F : HilbertScheme.Presentations.Hilbert.Functor.Family X T) (G : HilbertScheme.Presentations.Hilbert.Functor.Family X V) |
| 142 | (hG : G = HilbertScheme.Presentations.Hilbert.Functor.pullbackFamily X d F) |
| 143 | (hG' : G = HilbertScheme.Presentations.Hilbert.Functor.pullbackFamily X b (HilbertScheme.Presentations.Hilbert.Functor.pullbackFamily X a F)) : |
| 144 | (nativeFamilyEqIso X hG).hom.left ≫ HilbertScheme.Presentations.Hilbert.Functor.familyMap X d F.val = |
| 145 | (nativeFamilyEqIso X hG').hom.left ≫ |
| 146 | HilbertScheme.Presentations.Hilbert.Functor.familyMap X b (HilbertScheme.Presentations.Hilbert.Functor.pullbackFamily X a F).val ≫ HilbertScheme.Presentations.Hilbert.Functor.familyMap X a F.val := by |
| 147 | have hd' : HilbertScheme.Presentations.Hilbert.Functor.ambientMap X d = HilbertScheme.Presentations.Hilbert.Functor.ambientMap X b ≫ |
| 148 | HilbertScheme.Presentations.Hilbert.Functor.ambientMap X a := |
| 149 | (congrArg (HilbertScheme.Presentations.Hilbert.Functor.ambientMap X) hd).symm.trans (HilbertScheme.Presentations.Hilbert.Functor.ambientMap_comp X b a) |
| 150 | have h := threeSquare_cancel _ _ _ F.val.subschemeι _ _ _ _ _ |
| 151 | (nativeFamilyEqIso_familyMap_ambient X d F G hG) |
| 152 | (nativeFamilyEqIso_familyMap_ambient X b (HilbertScheme.Presentations.Hilbert.Functor.pullbackFamily X a F) G hG') |
| 153 | (HilbertScheme.Presentations.Hilbert.Functor.family_ambient_isPullback X a F.val).w.symm hd' |
| 154 | exact h.trans (Category.assoc _ _ _) |
| 155 | |
| 156 | theorem nativeFamilyPullbackIso_factor |
| 157 | (a : U ⟶ T) (b : V ⟶ U) (d : V ⟶ T) (hd : b ≫ a = d) |
| 158 | (F : HilbertScheme.Presentations.Hilbert.Functor.Family X T) (G : HilbertScheme.Presentations.Hilbert.Functor.Family X V) |
| 159 | (hG : G = HilbertScheme.Presentations.Hilbert.Functor.pullbackFamily X d F) |
| 160 | (hG' : G = HilbertScheme.Presentations.Hilbert.Functor.pullbackFamily X b (HilbertScheme.Presentations.Hilbert.Functor.pullbackFamily X a F)) : |
| 161 | nativeFamilyEqIso X hG ≪≫ FamilyPullbackIso.nativeFamilyPullbackIso X d F = |
| 162 | nativeFamilyEqIso X hG' ≪≫ |
| 163 | FamilyPullbackIso.nativeFamilyPullbackIso X b (HilbertScheme.Presentations.Hilbert.Functor.pullbackFamily X a F) ≪≫ |
| 164 | (Over.pullback b.left).mapIso (FamilyPullbackIso.nativeFamilyPullbackIso X a F) ≪≫ |
| 165 | (Over.pullbackComp b.left a.left).symm.app (FamilyTestPoints.nativeFamilyOver X T F) ≪≫ |
| 166 | eqToIso (congrArg |
| 167 | (fun f : V.left ⟶ T.left => (Over.pullback f).obj (FamilyTestPoints.nativeFamilyOver X T F)) |
| 168 | (congrArg Over.Hom.left hd)) := by |
| 169 | let F0 := FamilyTestPoints.nativeFamilyOver X T F |
| 170 | let F1 := HilbertScheme.Presentations.Hilbert.Functor.pullbackFamily X a F |
| 171 | let q := (Over.pullbackComp b.left a.left).symm.app F0 ≪≫ |
| 172 | eqToIso (congrArg |
| 173 | (fun f : V.left ⟶ T.left => (Over.pullback f).obj F0) |
| 174 | (congrArg Over.Hom.left hd)) |
| 175 | let eL := nativeFamilyEqIso X hG ≪≫ FamilyPullbackIso.nativeFamilyPullbackIso X d F |
| 176 | let eR := nativeFamilyEqIso X hG' ≪≫ FamilyPullbackIso.nativeFamilyPullbackIso X b F1 ≪≫ |
| 177 | (Over.pullback b.left).mapIso (FamilyPullbackIso.nativeFamilyPullbackIso X a F) ≪≫ q |
| 178 | have hq := equalCompositePullback_hom_fst F0 a.left b.left d.left |
| 179 | (congrArg Over.Hom.left hd) |
| 180 | have hL := nativeFamilyEqPullback_hom_fst X d F G hG |
| 181 | have hR := nativeFamilyIteratedPullback_hom_fst X a b d F G hG' q hq |
| 182 | change eL = eR |
| 183 | apply Iso.ext |
| 184 | apply Over.OverMorphism.ext |
| 185 | apply pullback.hom_ext |
| 186 | · exact hL.trans ((nativeFamilyEqIso_familyMap_factor X a b d hd F G hG hG').trans hR.symm) |
| 187 | · exact eL.hom.w.trans eR.hom.w.symm |
| 188 | |
| 189 | theorem nativeFamilyPullbackIso_comp |
| 190 | (a : U ⟶ T) (b : V ⟶ U) (F : HilbertScheme.Presentations.Hilbert.Functor.Family X T) : |
| 191 | nativeFamilyEqIso X (HilbertScheme.Presentations.Hilbert.Functor.pullbackFamily_comp X b a F).symm ≪≫ |
| 192 | FamilyPullbackIso.nativeFamilyPullbackIso X (b ≫ a) F = |
| 193 | FamilyPullbackIso.nativeFamilyPullbackIso X b (HilbertScheme.Presentations.Hilbert.Functor.pullbackFamily X a F) ≪≫ |
| 194 | (Over.pullback b.left).mapIso (FamilyPullbackIso.nativeFamilyPullbackIso X a F) ≪≫ |
| 195 | (Over.pullbackComp b.left a.left).symm.app (FamilyTestPoints.nativeFamilyOver X T F) := by |
| 196 | simpa only [nativeFamilyEqIso_refl, eqToIso_refl, Iso.refl_trans, |
| 197 | Iso.trans_refl] using |
| 198 | nativeFamilyPullbackIso_factor X a b (b ≫ a) rfl F |
| 199 | (HilbertScheme.Presentations.Hilbert.Functor.pullbackFamily X b (HilbertScheme.Presentations.Hilbert.Functor.pullbackFamily X a F)) |
| 200 | (HilbertScheme.Presentations.Hilbert.Functor.pullbackFamily_comp X b a F).symm rfl |
| 201 | |
| 202 | end |
| 203 | |
| 204 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Intrinsic.FamilyPullbackComposition |