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.DivisorClass.Chern.Complex.SheafForget |
| 2 | import OAI.AlgebraicTopology.DeRham.Comparison.RationalSheafForget |
| 3 | import OAI.AlgebraicTopology.Cohomology.Singular.SheafQuasiIso |
| 4 | import Mathlib.CategoryTheory.Sites.PreservesSheafification |
| 5 | |
| 6 | /-! # Module Sheafification Forget -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.DivisorClass.Chern.ModuleSheafificationForget |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Canonical sheafification comparison when module scalars are forgotten. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace |
| 15 | open OAI.AlgebraicTopology.Cohomology.Singular.SheafQuasiIso |
| 16 | |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | set_option backward.isDefEq.respectTransparency.types false |
| 19 | set_option backward.defeqAttrib.useBackward true |
| 20 | |
| 21 | variable (R : Type) [Ring R] (X : TopCat.{0}) |
| 22 | |
| 23 | instance moduleForget_preservesSheafification : |
| 24 | (Opens.grothendieckTopology X).PreservesSheafification (forget₂ (ModuleCat.{0} R) AddCommGrpCat.{0}) where |
| 25 | le {P Q} f hf := by |
| 26 | obtain ⟨hi, hs⟩ := ((Opens.grothendieckTopology X).W_iff_isLocallyBijective f).mp hf |
| 27 | apply ((Opens.grothendieckTopology X).W_iff_isLocallyBijective _).mpr |
| 28 | constructor |
| 29 | · exact ⟨fun x y h => hi.equalizerSieve_mem x y h⟩ |
| 30 | · exact ⟨fun s => hs.imageSieve_mem s⟩ |
| 31 | |
| 32 | instance moduleForgetSheaf_additive : |
| 33 | (sheafCompose (Opens.grothendieckTopology X) (forget₂ (ModuleCat.{0} R) AddCommGrpCat.{0})).Additive where |
| 34 | map_add := rfl |
| 35 | |
| 36 | def moduleForgetSheafificationIso (P : X.Presheaf (ModuleCat.{0} R)) : |
| 37 | (presheafToSheaf (Opens.grothendieckTopology X) AddCommGrpCat.{0}).obj |
| 38 | (P ⋙ forget₂ (ModuleCat.{0} R) AddCommGrpCat.{0}) ≅ |
| 39 | (sheafCompose (Opens.grothendieckTopology X) (forget₂ (ModuleCat.{0} R) AddCommGrpCat.{0})).obj |
| 40 | ((presheafToSheaf (Opens.grothendieckTopology X) (ModuleCat.{0} R)).obj P) := |
| 41 | (sheafComposeNatIso (Opens.grothendieckTopology X) (forget₂ (ModuleCat.{0} R) AddCommGrpCat.{0}) |
| 42 | (sheafificationAdjunction (Opens.grothendieckTopology X) (ModuleCat.{0} R)) |
| 43 | (sheafificationAdjunction (Opens.grothendieckTopology X) AddCommGrpCat.{0})).app P |
| 44 | |
| 45 | theorem moduleForgetSheafificationIso_unit (P : X.Presheaf (ModuleCat.{0} R)) : |
| 46 | CategoryTheory.toSheafify (Opens.grothendieckTopology X) |
| 47 | (P ⋙ forget₂ (ModuleCat.{0} R) AddCommGrpCat.{0}) ≫ (moduleForgetSheafificationIso R X P).hom.hom = |
| 48 | Functor.whiskerRight (CategoryTheory.toSheafify (Opens.grothendieckTopology X) P) |
| 49 | (forget₂ (ModuleCat.{0} R) AddCommGrpCat.{0}) := |
| 50 | sheafComposeNatTrans_fac _ _ _ _ _ |
| 51 | |
| 52 | def moduleForgetPresheafComplex (K : CochainComplex (X.Presheaf (ModuleCat.{0} R)) ℕ) : |
| 53 | CochainComplex (X.Presheaf AddCommGrpCat.{0}) ℕ := |
| 54 | (((Functor.whiskeringRight (Opens X)ᵒᵖ (ModuleCat.{0} R) AddCommGrpCat.{0}).obj |
| 55 | (forget₂ (ModuleCat.{0} R) AddCommGrpCat.{0})).mapHomologicalComplex (.up ℕ)).obj K |
| 56 | |
| 57 | def moduleForgetSheafComplex (K : CochainComplex (TopCat.Sheaf (ModuleCat.{0} R) X) ℕ) : |
| 58 | CochainComplex (TopCat.Sheaf AddCommGrpCat.{0} X) ℕ := |
| 59 | ((sheafCompose (Opens.grothendieckTopology X) |
| 60 | (forget₂ (ModuleCat.{0} R) AddCommGrpCat.{0})).mapHomologicalComplex (.up ℕ)).obj K |
| 61 | |
| 62 | def abelianSheafifiedCochainComplex (K : CochainComplex (X.Presheaf AddCommGrpCat.{0}) ℕ) : |
| 63 | CochainComplex (TopCat.Sheaf AddCommGrpCat.{0} X) ℕ := |
| 64 | ((presheafToSheaf (Opens.grothendieckTopology X) AddCommGrpCat.{0}).mapHomologicalComplex (.up ℕ)).obj K |
| 65 | |
| 66 | def moduleForgetSheafificationComplexIso (K : CochainComplex (X.Presheaf (ModuleCat.{0} R)) ℕ) : |
| 67 | abelianSheafifiedCochainComplex X (moduleForgetPresheafComplex R X K) ≅ |
| 68 | moduleForgetSheafComplex R X (AlgebraicTopology.Cohomology.Singular.SheafQuasiIso.sheafifiedCochainComplex K) := |
| 69 | HomologicalComplex.Hom.isoOfComponents (fun n => moduleForgetSheafificationIso R X (K.X n)) (by |
| 70 | intro i j _ |
| 71 | exact ((sheafComposeNatIso (Opens.grothendieckTopology X) (forget₂ (ModuleCat.{0} R) AddCommGrpCat.{0}) |
| 72 | (sheafificationAdjunction (Opens.grothendieckTopology X) (ModuleCat.{0} R)) |
| 73 | (sheafificationAdjunction (Opens.grothendieckTopology X) AddCommGrpCat.{0})).hom.naturality (K.d i j)).symm) |
| 74 | |
| 75 | theorem moduleForgetSheafificationComplexIso_f_unit |
| 76 | (K : CochainComplex (X.Presheaf (ModuleCat.{0} R)) ℕ) (n : ℕ) : |
| 77 | CategoryTheory.toSheafify (Opens.grothendieckTopology X) |
| 78 | ((moduleForgetPresheafComplex R X K).X n) ≫ |
| 79 | ((moduleForgetSheafificationComplexIso R X K).hom.f n).hom = |
| 80 | Functor.whiskerRight (CategoryTheory.toSheafify (Opens.grothendieckTopology X) (K.X n)) |
| 81 | (forget₂ (ModuleCat.{0} R) AddCommGrpCat.{0}) := |
| 82 | moduleForgetSheafificationIso_unit R X (K.X n) |
| 83 | |
| 84 | end |
| 85 | |
| 86 | end OAI.AlgebraicGeometry.DivisorClass.Chern.ModuleSheafificationForget |