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.NumberTheory.PadicHodge.IntegralComparison.Acyclic.OpenInjectiveResolution |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.CohomologyConcentration |
| 3 | import OAI.AlgebraicGeometry.Comparison.Betti.Complex.Extension |
| 4 | |
| 5 | /-! # Shifted Open Injective Resolution -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.ShiftedOpenInjectiveResolution |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The original single coefficient sheaf maps to its chosen injective |
| 12 | resolution shifted into the same nonnegative degree. On acyclic opens |
| 13 | this actual map is a quasi-isomorphism, naturally for coefficient maps. -/ |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace Opposite _root_.HomologicalComplex |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | set_option backward.isDefEq.respectTransparency.types false |
| 17 | universe u |
| 18 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Acyclic.OpenInjectiveResolution |
| 19 | variable {X : TopCat.{u}} (F : Sheaf (Opens.grothendieckTopology X) AddCommGrpCat.{u}) (c : ℕ) |
| 20 | |
| 21 | abbrev shape := CohomologyConcentration.shift c |
| 22 | |
| 23 | def complex := (Acyclic.OpenInjectiveResolution.resolution F).cocomplex.extend (shape c) |
| 24 | |
| 25 | def sourceIso : ((CochainComplex.single₀ _).obj F).extend (shape c) ≅ |
| 26 | (single _ (.up ℕ) c).obj F := |
| 27 | extendSingleIso (shape c) F 0 c (by simp [shape, CohomologyConcentration.shift]) |
| 28 | |
| 29 | def augmentation : (single _ (.up ℕ) c).obj F ⟶ complex F c := |
| 30 | (sourceIso F c).inv ≫ extendMap (Acyclic.OpenInjectiveResolution.resolution F).ι (shape c) |
| 31 | |
| 32 | variable {G : Sheaf (Opens.grothendieckTopology X) AddCommGrpCat.{u}} (f : F ⟶ G) |
| 33 | |
| 34 | def map : complex F c ⟶ complex G c := |
| 35 | extendMap (InjectiveResolution.desc f (Acyclic.OpenInjectiveResolution.resolution G) (Acyclic.OpenInjectiveResolution.resolution F)) (shape c) |
| 36 | |
| 37 | theorem sourceIso_naturality : |
| 38 | (sourceIso F c).inv ≫ extendMap ((CochainComplex.single₀ _).map f) (shape c) = |
| 39 | (single _ (.up ℕ) c).map f ≫ (sourceIso G c).inv := by |
| 40 | apply from_single_hom_ext |
| 41 | simp only [comp_f, sourceIso, extendSingleIso_inv_f, |
| 42 | extendMap_f _ _ (show (shape c).f 0 = c by simp [shape, CohomologyConcentration.shift]), |
| 43 | single_map_f_self, Category.assoc, Iso.inv_hom_id_assoc] |
| 44 | |
| 45 | theorem naturality : augmentation F c ≫ ShiftedOpenInjectiveResolution.map F c f = |
| 46 | (single _ (.up ℕ) c).map f ≫ augmentation G c := by |
| 47 | dsimp only [augmentation, ShiftedOpenInjectiveResolution.map] |
| 48 | rw [Category.assoc, ← extendMap_comp, InjectiveResolution.desc_commutes, |
| 49 | extendMap_comp, ← Category.assoc, sourceIso_naturality, Category.assoc] |
| 50 | |
| 51 | private theorem flasque_of_iso |
| 52 | {P Q : Sheaf (Opens.grothendieckTopology X) AddCommGrpCat.{u}} |
| 53 | (e : P ≅ Q) [TopCat.Sheaf.IsFlasque Q] : TopCat.Sheaf.IsFlasque P where |
| 54 | epi {U V} j := by |
| 55 | have h : Epi (P.obj.map j ≫ e.hom.hom.app V) := by |
| 56 | rw [e.hom.hom.naturality] |
| 57 | infer_instance |
| 58 | exact (epi_comp_iff_of_isIso (P.obj.map j) (e.hom.hom.app V)).mp h |
| 59 | |
| 60 | theorem term_flasque (q : ℕ) : TopCat.Sheaf.IsFlasque ((complex F c).X q) := by |
| 61 | classical |
| 62 | by_cases h : ∃ i, (shape c).f i = q |
| 63 | · obtain ⟨i, hi⟩ := h |
| 64 | let : TopCat.Sheaf.IsFlasque ((Acyclic.OpenInjectiveResolution.resolution F).cocomplex.X i) := |
| 65 | @AlgebraicGeometry.SheafCohomology.Cech.Compat.TopCat.Sheaf.IsFlasque.of_injective X _ ((Acyclic.OpenInjectiveResolution.resolution F).injective i) |
| 66 | exact flasque_of_iso ((Acyclic.OpenInjectiveResolution.resolution F).cocomplex.extendXIso (shape c) hi) |
| 67 | · have hz : IsZero ((complex F c).X q) := |
| 68 | (Acyclic.OpenInjectiveResolution.resolution F).cocomplex.isZero_extend_X (shape c) q (fun i hi => h ⟨i, hi⟩) |
| 69 | constructor |
| 70 | intro U V j |
| 71 | exact ((Acyclic.OpenInjectiveResolution.sections V.unop).map_isZero hz).epi (((complex F c).X q).obj.map j) |
| 72 | |
| 73 | variable (U : Opens X) |
| 74 | (hF : ∀ q, Subsingleton (CategoryTheory.Sheaf.H |
| 75 | ((AlgebraicGeometry.SheafCohomology.Cech.TopCatRestrict.TopCat.Sheaf.restrict AddCommGrpCat U.isOpenEmbedding).obj F) (q+1))) |
| 76 | |
| 77 | include hF in |
| 78 | theorem sections_quasiIso : QuasiIso |
| 79 | (((Acyclic.OpenInjectiveResolution.sections U).mapHomologicalComplex (.up ℕ)).map (augmentation F c)) := by |
| 80 | let : QuasiIso (((Acyclic.OpenInjectiveResolution.sections U).mapHomologicalComplex (.up ℕ)).map (Acyclic.OpenInjectiveResolution.resolution F).ι) := |
| 81 | Acyclic.OpenInjectiveResolution.mapped_quasiIso F U hF |
| 82 | have hq : QuasiIso |
| 83 | (((Acyclic.OpenInjectiveResolution.sections U).mapHomologicalComplex (.up ℕ)).map (extendMap (Acyclic.OpenInjectiveResolution.resolution F).ι (shape c)) ≫ |
| 84 | (AlgebraicGeometry.Comparison.Betti.Complex.Extension.mapExtendIso (Acyclic.OpenInjectiveResolution.sections U) (shape c) (Acyclic.OpenInjectiveResolution.resolution F).cocomplex).hom) := by |
| 85 | rw [AlgebraicGeometry.Comparison.Betti.Complex.Extension.mapExtendIso_naturality] |
| 86 | infer_instance |
| 87 | have : QuasiIso |
| 88 | (((Acyclic.OpenInjectiveResolution.sections U).mapHomologicalComplex (.up ℕ)).map (extendMap (Acyclic.OpenInjectiveResolution.resolution F).ι (shape c))) := |
| 89 | quasiIso_of_comp_right _ |
| 90 | (AlgebraicGeometry.Comparison.Betti.Complex.Extension.mapExtendIso (Acyclic.OpenInjectiveResolution.sections U) (shape c) (Acyclic.OpenInjectiveResolution.resolution F).cocomplex).hom |
| 91 | (hφφ' := hq) |
| 92 | dsimp only [augmentation] |
| 93 | rw [CategoryTheory.Functor.map_comp] |
| 94 | infer_instance |
| 95 | |
| 96 | end |
| 97 | |
| 98 | end OAI.NumberTheory.PadicHodge.IntegralComparison.ShiftedOpenInjectiveResolution |