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.Finite.ParameterDescent |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Pullback.Comparisons |
| 3 | |
| 4 | /-! # Base Change Comparisons -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel.Group.BaseChangeComparisons.GroupBaseChange |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! Group-scheme coherence for arbitrary iterated base change, including |
| 13 | the exact finite-extension/complex-embedding comparison used in IntegralModel. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 16 | open scoped _root_.CategoryTheory.MonObj _root_.CategoryTheory.Obj |
| 17 | |
| 18 | variable {S S' S'' : Scheme} (H : Over S) [GrpObj H] |
| 19 | |
| 20 | def compositeMonIso (f : S' ⟶ S) (h : S'' ⟶ S') : |
| 21 | Mon.mk ((Over.pullback (h ≫ f)).obj H) ≅ |
| 22 | Mon.mk ((Over.pullback h).obj ((Over.pullback f).obj H)) := |
| 23 | (Functor.mapMonNatIso (Over.pullbackComp h f)).app (Mon.mk H) ≪≫ |
| 24 | (Functor.mapMonCompIso (F := Over.pullback f) (G := Over.pullback h)).app (Mon.mk H) |
| 25 | |
| 26 | def compositeIso (f : S' ⟶ S) (h : S'' ⟶ S') : |
| 27 | (Over.pullback (h ≫ f)).obj H ≅ (Over.pullback h).obj ((Over.pullback f).obj H) := |
| 28 | (Over.pullbackComp h f).app H |
| 29 | |
| 30 | theorem compositeMonIso_hom (f : S' ⟶ S) (h : S'' ⟶ S') : |
| 31 | (compositeMonIso H f h).hom.hom = (compositeIso H f h).hom := by |
| 32 | change (Over.pullbackComp h f).hom.app H ≫ 𝟙 _ = _ |
| 33 | exact Category.comp_id _ |
| 34 | |
| 35 | instance compositeIso_isMonHom (f : S' ⟶ S) (h : S'' ⟶ S') : |
| 36 | IsMonHom (compositeIso H f h).hom := by |
| 37 | rw [← compositeMonIso_hom H f h] |
| 38 | exact inferInstanceAs (IsMonHom (compositeMonIso H f h).hom.hom) |
| 39 | |
| 40 | instance compositeIso_inv_isMonHom (f : S' ⟶ S) (h : S'' ⟶ S') : |
| 41 | IsMonHom (compositeIso H f h).inv := by infer_instance |
| 42 | |
| 43 | omit [GrpObj H] in |
| 44 | theorem compositeIso_hom (f : S' ⟶ S) (h : S'' ⟶ S') : |
| 45 | (compositeIso H f h).hom = (Over.pullbackComp h f).hom.app H := rfl |
| 46 | |
| 47 | omit [GrpObj H] in |
| 48 | theorem compositeIso_inv_fst (f : S' ⟶ S) (h : S'' ⟶ S') : |
| 49 | (compositeIso H f h).inv.left ≫ pullback.fst H.hom (h ≫ f) = |
| 50 | pullback.fst (pullback.snd H.hom f) h ≫ pullback.fst H.hom f := by |
| 51 | let e := (Over.forget S'').mapIso (compositeIso H f h) |
| 52 | apply e.inv_comp_eq.mpr |
| 53 | have he : e.hom = ((Over.pullbackComp h f).hom.app H).left := |
| 54 | congrArg Over.Hom.left (compositeIso_hom H f h) |
| 55 | exact ((congrArg (fun a => a ≫ pullback.fst (pullback.snd H.hom f) h ≫ |
| 56 | pullback.fst H.hom f) he).trans (AbelianModuli.HilbertConstruction.Pullback.Comparisons.pullbackComp_hom_fst_fst H f h)).symm |
| 57 | |
| 58 | def congrMap (f g : S' ⟶ S) (w : f = g) : (Over.pullback f).obj H ⟶ (Over.pullback g).obj H := |
| 59 | Over.homMk (pullback.lift (pullback.fst H.hom f) (pullback.snd H.hom f) |
| 60 | ((pullback.condition).trans (congrArg (fun a => pullback.snd H.hom f ≫ a) w))) |
| 61 | (pullback.lift_snd _ _ _) |
| 62 | |
| 63 | omit [GrpObj H] in |
| 64 | theorem congrMap_self (f : S' ⟶ S) : congrMap H f f rfl = 𝟙 _ := by |
| 65 | apply Over.OverMorphism.ext |
| 66 | apply pullback.hom_ext |
| 67 | · exact (pullback.lift_fst _ _ _).trans (Category.id_comp _).symm |
| 68 | · exact (pullback.lift_snd _ _ _).trans (Category.id_comp _).symm |
| 69 | |
| 70 | omit [GrpObj H] in |
| 71 | theorem congrMap_inverse (f g : S' ⟶ S) (w : f = g) : |
| 72 | congrMap H f g w ≫ congrMap H g f w.symm = 𝟙 _ := by |
| 73 | apply Over.OverMorphism.ext |
| 74 | apply pullback.hom_ext <;> |
| 75 | simp only [Over.comp_left, congrMap, Over.homMk_left, Category.assoc, |
| 76 | pullback.lift_fst, pullback.lift_snd, Over.id_left, Category.id_comp] |
| 77 | |
| 78 | def congrIso (f g : S' ⟶ S) (w : f = g) : (Over.pullback f).obj H ≅ (Over.pullback g).obj H := |
| 79 | ⟨congrMap H f g w, congrMap H g f w.symm, |
| 80 | congrMap_inverse H f g w, congrMap_inverse H g f w.symm⟩ |
| 81 | |
| 82 | instance congrIso_isMonHom (f g : S' ⟶ S) (w : f = g) : IsMonHom (congrIso H f g w).hom := by |
| 83 | cases w |
| 84 | change IsMonHom (congrMap H f f rfl) |
| 85 | rw [congrMap_self H f] |
| 86 | infer_instance |
| 87 | |
| 88 | omit [GrpObj H] in |
| 89 | theorem congrIso_fst (f g : S' ⟶ S) (w : f = g) : |
| 90 | (congrIso H f g w).hom.left ≫ pullback.fst H.hom g = pullback.fst H.hom f := |
| 91 | pullback.lift_fst _ _ _ |
| 92 | |
| 93 | def iteratedIso (f : S' ⟶ S) (h : S'' ⟶ S') (g : S'' ⟶ S) (w : h ≫ f = g) : |
| 94 | (Over.pullback h).obj ((Over.pullback f).obj H) ≅ (Over.pullback g).obj H := |
| 95 | (compositeIso H f h).symm ≪≫ congrIso H (h ≫ f) g w |
| 96 | |
| 97 | instance iteratedIso_isMonHom (f : S' ⟶ S) (h : S'' ⟶ S') (g : S'' ⟶ S) (w : h ≫ f = g) : |
| 98 | IsMonHom (iteratedIso H f h g w).hom := by |
| 99 | change IsMonHom ((compositeIso H f h).inv ≫ (congrIso H (h ≫ f) g w).hom) |
| 100 | infer_instance |
| 101 | |
| 102 | omit [GrpObj H] in |
| 103 | theorem iteratedIso_fst (f : S' ⟶ S) (h : S'' ⟶ S') (g : S'' ⟶ S) (w : h ≫ f = g) : |
| 104 | (iteratedIso H f h g w).hom.left ≫ pullback.fst H.hom g = |
| 105 | pullback.fst (pullback.snd H.hom f) h ≫ pullback.fst H.hom f := |
| 106 | (Category.assoc _ _ _).trans |
| 107 | ((congrArg (fun a => (compositeIso H f h).inv.left ≫ a) (congrIso_fst H _ _ w)).trans |
| 108 | (compositeIso_inv_fst H f h)) |
| 109 | |
| 110 | omit [GrpObj H] in |
| 111 | theorem iteratedIso_hom_inv_id (f : S' ⟶ S) (h : S'' ⟶ S') (g : S'' ⟶ S) (w : h ≫ f = g) : |
| 112 | (iteratedIso H f h g w).hom ≫ (iteratedIso H f h g w).inv = 𝟙 _ := |
| 113 | (iteratedIso H f h g w).hom_inv_id |
| 114 | |
| 115 | omit [GrpObj H] in |
| 116 | theorem iteratedIso_inv_hom_id (f : S' ⟶ S) (h : S'' ⟶ S') (g : S'' ⟶ S) (w : h ≫ f = g) : |
| 117 | (iteratedIso H f h g w).inv ≫ (iteratedIso H f h g w).hom = 𝟙 _ := |
| 118 | (iteratedIso H f h g w).inv_hom_id |
| 119 | |
| 120 | variable {K : Type} [Field K] [NumberField K] {κ : K →+* ℂ} |
| 121 | |
| 122 | theorem arithmeticComplexBaseEq (B : Base.ArithmeticBaseExtension K κ) : |
| 123 | Spec.map (CommRingCat.ofHom B.embedding) ≫ B.fieldExtension = Spec.map (CommRingCat.ofHom κ) := |
| 124 | B.complexFieldMap.w |
| 125 | |
| 126 | def arithmeticComplexIso (B : Base.ArithmeticBaseExtension K κ) (H : Over (Spec (.of K))) : |
| 127 | (Over.pullback (Spec.map (CommRingCat.ofHom B.embedding))).obj |
| 128 | ((Over.pullback B.fieldExtension).obj H) ≅ |
| 129 | (Over.pullback (Spec.map (CommRingCat.ofHom κ))).obj H := |
| 130 | iteratedIso H B.fieldExtension (Spec.map (CommRingCat.ofHom B.embedding)) |
| 131 | (Spec.map (CommRingCat.ofHom κ)) (arithmeticComplexBaseEq B) |
| 132 | |
| 133 | instance arithmeticComplexIso_isMonHom (B : Base.ArithmeticBaseExtension K κ) |
| 134 | (H : Over (Spec (.of K))) [GrpObj H] : IsMonHom (arithmeticComplexIso B H).hom := |
| 135 | iteratedIso_isMonHom H B.fieldExtension (Spec.map (CommRingCat.ofHom B.embedding)) |
| 136 | (Spec.map (CommRingCat.ofHom κ)) (arithmeticComplexBaseEq B) |
| 137 | |
| 138 | theorem arithmeticComplexIso_fst (B : Base.ArithmeticBaseExtension K κ) |
| 139 | (H : Over (Spec (.of K))) : |
| 140 | (arithmeticComplexIso B H).hom.left ≫ pullback.fst H.hom (Spec.map (CommRingCat.ofHom κ)) = |
| 141 | pullback.fst (pullback.snd H.hom B.fieldExtension) (Spec.map (CommRingCat.ofHom B.embedding)) ≫ |
| 142 | pullback.fst H.hom B.fieldExtension := |
| 143 | iteratedIso_fst H B.fieldExtension (Spec.map (CommRingCat.ofHom B.embedding)) |
| 144 | (Spec.map (CommRingCat.ofHom κ)) (arithmeticComplexBaseEq B) |
| 145 | |
| 146 | theorem arithmeticComplexIso_hom_inv_id (B : Base.ArithmeticBaseExtension K κ) |
| 147 | (H : Over (Spec (.of K))) : |
| 148 | (arithmeticComplexIso B H).hom ≫ (arithmeticComplexIso B H).inv = 𝟙 _ := |
| 149 | iteratedIso_hom_inv_id H B.fieldExtension (Spec.map (CommRingCat.ofHom B.embedding)) |
| 150 | (Spec.map (CommRingCat.ofHom κ)) (arithmeticComplexBaseEq B) |
| 151 | |
| 152 | theorem arithmeticComplexIso_inv_hom_id (B : Base.ArithmeticBaseExtension K κ) |
| 153 | (H : Over (Spec (.of K))) : |
| 154 | (arithmeticComplexIso B H).inv ≫ (arithmeticComplexIso B H).hom = 𝟙 _ := |
| 155 | iteratedIso_inv_hom_id H B.fieldExtension (Spec.map (CommRingCat.ofHom B.embedding)) |
| 156 | (Spec.map (CommRingCat.ofHom κ)) (arithmeticComplexBaseEq B) |
| 157 | |
| 158 | end |
| 159 | |
| 160 | /-! Natural versions of the explicit pullback comparisons. Their components |
| 161 | are the native pullback maps, avoiding transports through chosen limits. -/ |
| 162 | |
| 163 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 164 | |
| 165 | variable {S T U : Scheme} |
| 166 | |
| 167 | def congrNatIso (f g : T ⟶ S) (w : f = g) : Over.pullback f ≅ Over.pullback g := |
| 168 | NatIso.ofComponents (fun X => congrIso X f g w) (by |
| 169 | intro X Y a |
| 170 | cases w |
| 171 | change (Over.pullback f).map a ≫ congrMap Y f f rfl = |
| 172 | congrMap X f f rfl ≫ (Over.pullback f).map a |
| 173 | rw [congrMap_self, congrMap_self, Category.comp_id, Category.id_comp]) |
| 174 | |
| 175 | def iteratedNatIso (f : T ⟶ S) (h : U ⟶ T) (g : U ⟶ S) (w : h ≫ f = g) : |
| 176 | Over.pullback f ⋙ Over.pullback h ≅ Over.pullback g := |
| 177 | (Over.pullbackComp h f).symm ≪≫ congrNatIso (h ≫ f) g w |
| 178 | |
| 179 | theorem iteratedNatIso_hom_app (f : T ⟶ S) (h : U ⟶ T) (g : U ⟶ S) |
| 180 | (w : h ≫ f = g) (X : Over S) : |
| 181 | ((iteratedNatIso f h g w).app X).hom = (iteratedIso X f h g w).hom := rfl |
| 182 | |
| 183 | end |
| 184 | |
| 185 | end OAI.AlgebraicGeometry.PELModuli.IntegralModel.Group.BaseChangeComparisons.GroupBaseChange |