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.SheafCohomology.Cech.InjectiveResolutionSections |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.LeftExactResolution |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Single.ComplexTransport |
| 4 | |
| 5 | /-! # Open Injective Resolution -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Acyclic.OpenInjectiveResolution |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The actual augmentation into the chosen injective resolution remains |
| 12 | a quasi-isomorphism on any open with vanishing positive cohomology. -/ |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace Opposite _root_.HomologicalComplex |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option backward.isDefEq.respectTransparency.types false |
| 16 | universe u |
| 17 | variable {X : TopCat.{u}} |
| 18 | |
| 19 | def sections (U : Opens X) : Sheaf (Opens.grothendieckTopology X) AddCommGrpCat.{u} ⥤ AddCommGrpCat.{u} := |
| 20 | sheafToPresheaf (Opens.grothendieckTopology X) AddCommGrpCat.{u} ⋙ |
| 21 | (CategoryTheory.evaluation (Opens X)ᵒᵖ AddCommGrpCat.{u}).obj (op U) |
| 22 | |
| 23 | instance sections_additive (U : Opens X) : (sections U).Additive where |
| 24 | map_add := rfl |
| 25 | |
| 26 | instance sections_preservesFiniteLimits (U : Opens X) : PreservesFiniteLimits (sections U) := by |
| 27 | dsimp only [sections] |
| 28 | infer_instance |
| 29 | |
| 30 | variable (F : Sheaf (Opens.grothendieckTopology X) AddCommGrpCat.{u}) (U : Opens X) |
| 31 | |
| 32 | abbrev resolution := injectiveResolution F |
| 33 | abbrev complex := LeftExactResolution.complex (sections U) (resolution F) |
| 34 | abbrev augmentation := LeftExactResolution.augmentation (sections U) (resolution F) |
| 35 | |
| 36 | variable (hF : ∀ q, Subsingleton (CategoryTheory.Sheaf.H |
| 37 | ((AlgebraicGeometry.SheafCohomology.Cech.TopCatRestrict.TopCat.Sheaf.restrict AddCommGrpCat U.isOpenEmbedding).obj F) (q+1))) |
| 38 | |
| 39 | include hF in |
| 40 | theorem positive (n : ℕ) : (complex F U).ExactAt (n+1) := by |
| 41 | rw [HomologicalComplex.exactAt_iff' (complex F U) n (n+1) (n+2) (by simp) (by simp), |
| 42 | ShortComplex.ab_exact_iff] |
| 43 | intro x hx |
| 44 | exact AlgebraicGeometry.SheafCohomology.Cech.InjectiveResolutionSections.TopCat.Sheaf.injectiveResolution_sections_exact_succ F U hF n x hx |
| 45 | |
| 46 | include hF in |
| 47 | theorem augmentation_quasiIso : QuasiIso (augmentation F U) := by |
| 48 | constructor |
| 49 | intro n |
| 50 | cases n with |
| 51 | | zero => |
| 52 | rw [CochainComplex.quasiIsoAt₀_iff, ShortComplex.quasiIso_iff_of_zeros] |
| 53 | · refine (ShortComplex.exact_and_mono_f_iff_of_iso ?_).2 |
| 54 | ⟨LeftExactResolution.augmentation_exact (sections U) (resolution F), inferInstance⟩ |
| 55 | exact ShortComplex.isoMk (Iso.refl _) (Iso.refl _) (Iso.refl _) |
| 56 | ((Category.id_comp _).trans |
| 57 | ((LeftExactResolution.augmentation_zero (sections U) (resolution F)).symm.trans |
| 58 | (Category.comp_id _).symm)) |
| 59 | ((Category.id_comp _).trans (Category.comp_id _).symm) |
| 60 | all_goals first | rfl | exact (complex F U).shape 0 0 (by simp) |
| 61 | | succ n => |
| 62 | exact (quasiIsoAt_iff_exactAt _ (n+1) |
| 63 | (CochainComplex.exactAt_succ_single_obj _ _)).mpr (positive F U hF n) |
| 64 | |
| 65 | include hF in |
| 66 | theorem mapped_quasiIso : QuasiIso |
| 67 | (((sections U).mapHomologicalComplex (.up ℕ)).map (resolution F).ι) := by |
| 68 | have he : Single.ComplexTransport.map (sections U) (Iso.refl ((sections U).obj F)) |
| 69 | (resolution F).ι = augmentation F U := by |
| 70 | apply (CochainComplex.fromSingle₀Equiv _ _).injective |
| 71 | apply Subtype.ext |
| 72 | change (Single.ComplexTransport.map (sections U) (Iso.refl ((sections U).obj F)) |
| 73 | (resolution F).ι).f 0 = (augmentation F U).f 0 |
| 74 | rw [Single.ComplexTransport.map_zero, LeftExactResolution.augmentation_zero] |
| 75 | exact Category.id_comp _ |
| 76 | have hq := augmentation_quasiIso F U hF |
| 77 | rw [← he] at hq |
| 78 | exact quasiIso_of_comp_left |
| 79 | (Single.ComplexTransport.sourceIso (sections U) (Iso.refl ((sections U).obj F))).inv _ |
| 80 | (hφφ' := hq) |
| 81 | |
| 82 | variable {G : Sheaf (Opens.grothendieckTopology X) AddCommGrpCat.{u}} (f : F ⟶ G) |
| 83 | |
| 84 | theorem naturality : |
| 85 | ((sections U).mapHomologicalComplex (.up ℕ)).map (resolution F).ι ≫ |
| 86 | ((sections U).mapHomologicalComplex (.up ℕ)).map |
| 87 | (InjectiveResolution.desc f (resolution G) (resolution F)) = |
| 88 | ((sections U).mapHomologicalComplex (.up ℕ)).map ((CochainComplex.single₀ _).map f) ≫ |
| 89 | ((sections U).mapHomologicalComplex (.up ℕ)).map (resolution G).ι := by |
| 90 | rw [← CategoryTheory.Functor.map_comp, ← CategoryTheory.Functor.map_comp, |
| 91 | InjectiveResolution.desc_commutes] |
| 92 | |
| 93 | end |
| 94 | |
| 95 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Acyclic.OpenInjectiveResolution |