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.Comparison.Betti.Complex.SheafCohomology |
| 2 | import OAI.AlgebraicGeometry.SheafCohomology.Cech.ComparisonNaturality |
| 3 | |
| 4 | /-! # Cech -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Comparison.Betti.Complex.Cech |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Acyclic-cover Čech comparison for complex coefficient sheaves, natural in their actual maps. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.CategoryTheory.Abelian _root_.TopologicalSpace |
| 13 | |
| 14 | variable {X : TopCat.{0}} {ι : Type} (U : ι → Opens X) |
| 15 | |
| 16 | abbrev ComplexSheaves (X : TopCat.{0}) := Sheaf (Opens.grothendieckTopology X) (ModuleCat.{0} ℂ) |
| 17 | |
| 18 | local instance : HasExt.{1} (ComplexSheaves X) := HasExt.standard _ |
| 19 | |
| 20 | def additiveSheaf (P : ComplexSheaves X) : Sheaf (Opens.grothendieckTopology X) AddCommGrpCat.{0} := |
| 21 | (sheafCompose (Opens.grothendieckTopology X) (forget₂ (ModuleCat.{0} ℂ) AddCommGrpCat.{0})).obj P |
| 22 | |
| 23 | def additiveMap {P Q : ComplexSheaves X} (f : P ⟶ Q) : additiveSheaf P ⟶ additiveSheaf Q := |
| 24 | (sheafCompose (Opens.grothendieckTopology X) (forget₂ (ModuleCat.{0} ℂ) AddCommGrpCat.{0})).map f |
| 25 | |
| 26 | def cohomology (P : ComplexSheaves X) (q : ℕ) : AddCommGrpCat.{0} := |
| 27 | ((cechComplexFunctor U).obj (additiveSheaf P).obj).homology q |
| 28 | |
| 29 | def cohomologyMap {P Q : ComplexSheaves X} (f : P ⟶ Q) (q : ℕ) : |
| 30 | cohomology U P q ⟶ cohomology U Q q := |
| 31 | HomologicalComplex.homologyMap ((cechComplexFunctor U).map (additiveMap f).hom) q |
| 32 | |
| 33 | abbrev complexExt (P : ComplexSheaves X) (q : ℕ) := |
| 34 | Ext.{1} ((constantSheaf (Opens.grothendieckTopology X) (ModuleCat.{0} ℂ)).obj |
| 35 | (ModuleCat.of ℂ ℂ)) P q |
| 36 | |
| 37 | def additiveComparison (hU : iSup U = ⊤) (P : ComplexSheaves X) |
| 38 | (hP : SheafCohomology.Cech.VerticalComparison.TopCat.Sheaf.CechIntersectionsAcyclic U (additiveSheaf P)) (q : ℕ) : |
| 39 | cohomology U P (q + 1) ≅ (Sheaf.functorH (Opens.grothendieckTopology X) (q + 1)).obj |
| 40 | (additiveSheaf P) := |
| 41 | SheafCohomology.Cech.Comparison.TopCat.Sheaf.cechHomologySuccIsoOfAcyclicIntersections U (additiveSheaf P) hU hP q |
| 42 | |
| 43 | def comparison (hU : iSup U = ⊤) (P : ComplexSheaves X) |
| 44 | (hP : SheafCohomology.Cech.VerticalComparison.TopCat.Sheaf.CechIntersectionsAcyclic U (additiveSheaf P)) (q : ℕ) : |
| 45 | complexExt P (q + 1) ≃+ cohomology U P (q + 1) := |
| 46 | (SheafCohomology.complexSheafCohomologyForgetEquiv X P (q + 1)).trans |
| 47 | (additiveComparison U hU P hP q).symm.addCommGroupIsoToAddEquiv |
| 48 | |
| 49 | theorem inverse_square {A B C D : AddCommGrpCat.{0}} |
| 50 | (e : A ≅ B) (e' : C ≅ D) (f : A ⟶ C) (g : B ⟶ D) |
| 51 | (h : f ≫ e'.hom = e.hom ≫ g) : g ≫ e'.inv = e.inv ≫ f := by |
| 52 | rw [e'.comp_inv_eq, Category.assoc, h] |
| 53 | simp only [Iso.inv_hom_id_assoc] |
| 54 | |
| 55 | theorem additiveComparison_naturality (hU : iSup U = ⊤) {P Q : ComplexSheaves X} (f : P ⟶ Q) |
| 56 | (hP : SheafCohomology.Cech.VerticalComparison.TopCat.Sheaf.CechIntersectionsAcyclic U (additiveSheaf P)) |
| 57 | (hQ : SheafCohomology.Cech.VerticalComparison.TopCat.Sheaf.CechIntersectionsAcyclic U (additiveSheaf Q)) (q : ℕ) : |
| 58 | cohomologyMap U f (q + 1) ≫ (additiveComparison U hU Q hQ q).hom = |
| 59 | (additiveComparison U hU P hP q).hom ≫ |
| 60 | (Sheaf.functorH (Opens.grothendieckTopology X) (q + 1)).map (additiveMap f) := |
| 61 | SheafCohomology.Cech.ComparisonNaturality.TopCat.Sheaf.cechHomologySuccIsoOfAcyclicIntersections_naturality U (additiveMap f) hU hP hQ q |
| 62 | |
| 63 | theorem additiveComparison_inv_naturality (hU : iSup U = ⊤) {P Q : ComplexSheaves X} (f : P ⟶ Q) |
| 64 | (hP : SheafCohomology.Cech.VerticalComparison.TopCat.Sheaf.CechIntersectionsAcyclic U (additiveSheaf P)) |
| 65 | (hQ : SheafCohomology.Cech.VerticalComparison.TopCat.Sheaf.CechIntersectionsAcyclic U (additiveSheaf Q)) (q : ℕ) |
| 66 | (x : Sheaf.H.{0} (additiveSheaf P) (q + 1)) : |
| 67 | (additiveComparison U hU Q hQ q).inv |
| 68 | (x.comp (Ext.mk₀ (additiveMap f)) (Nat.add_zero _)) = |
| 69 | cohomologyMap U f (q + 1) ((additiveComparison U hU P hP q).inv x) := by |
| 70 | let H := Sheaf.functorH (Opens.grothendieckTopology X) (q + 1) |
| 71 | have hi := inverse_square (additiveComparison U hU P hP q) (additiveComparison U hU Q hQ q) |
| 72 | (cohomologyMap U f (q + 1)) (H.map (additiveMap f)) |
| 73 | (additiveComparison_naturality U hU f hP hQ q) |
| 74 | have hx := congrArg |
| 75 | (fun g : H.obj (additiveSheaf P) ⟶ cohomology U Q (q + 1) => g.hom x) hi |
| 76 | exact hx |
| 77 | |
| 78 | theorem comparison_naturality (hU : iSup U = ⊤) {P Q : ComplexSheaves X} (f : P ⟶ Q) |
| 79 | (hP : SheafCohomology.Cech.VerticalComparison.TopCat.Sheaf.CechIntersectionsAcyclic U (additiveSheaf P)) |
| 80 | (hQ : SheafCohomology.Cech.VerticalComparison.TopCat.Sheaf.CechIntersectionsAcyclic U (additiveSheaf Q)) (q : ℕ) |
| 81 | (x : complexExt P (q + 1)) : |
| 82 | comparison U hU Q hQ q (x.comp (Ext.mk₀ f) (Nat.add_zero _)) = |
| 83 | cohomologyMap U f (q + 1) (comparison U hU P hP q x) := by |
| 84 | have hn := SheafCohomology.complexSheafCohomologyForgetEquiv_naturality X f (q + 1) x |
| 85 | exact (congrArg (fun z => (additiveComparison U hU Q hQ q).inv z) hn).trans |
| 86 | (additiveComparison_inv_naturality U hU f hP hQ q |
| 87 | (SheafCohomology.complexSheafCohomologyForgetEquiv X P (q + 1) x)) |
| 88 | |
| 89 | end |
| 90 | |
| 91 | end OAI.AlgebraicGeometry.Comparison.Betti.Complex.Cech |