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.Module.SheafUniverses |
| 2 | import Mathlib.Algebra.Homology.Functor |
| 3 | import Mathlib.CategoryTheory.Sites.GlobalSections |
| 4 | import Mathlib.CategoryTheory.Adjunction.Additive |
| 5 | import Mathlib.CategoryTheory.Linear.Yoneda |
| 6 | |
| 7 | /-! # Constant Sheaf -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.Crystalline.Cohomology.ConstantSheaf.ConstantSheafSections |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! The constant rank-one sheaf represents actual global sections, linearly and naturally. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory Limits Opposite |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | variable (R : Type u) [CommRing R] (X : TopCat.{u}) |
| 20 | |
| 21 | abbrev Sheaves := Sheaf (Opens.grothendieckTopology X) (ModuleCat.{u} R) |
| 22 | |
| 23 | abbrev coefficient : Sheaves R X := |
| 24 | (constantSheaf (Opens.grothendieckTopology X) (ModuleCat.{u} R)).obj (ModuleCat.of R R) |
| 25 | |
| 26 | def equiv (F : Sheaves R X) : (coefficient R X ⟶ F) ≃ F.obj.obj (op ⊤) := |
| 27 | ((constantSheafAdj (Opens.grothendieckTopology X) (ModuleCat.{u} R) |
| 28 | isTerminalTop).homEquiv (ModuleCat.of R R) F).trans |
| 29 | ((ModuleCat.homLinearEquiv (R := R) (S := R)).toEquiv.trans |
| 30 | (LinearMap.ringLmapEquivSelf R R _).toEquiv) |
| 31 | |
| 32 | theorem equiv_apply (F : Sheaves R X) (f : coefficient R X ⟶ F) : |
| 33 | equiv R X F f = ((constantSheafAdj (Opens.grothendieckTopology X) (ModuleCat.{u} R) |
| 34 | isTerminalTop).homEquiv (ModuleCat.of R R) F f) 1 := rfl |
| 35 | |
| 36 | def linearEquiv (F : Sheaves R X) : (coefficient R X ⟶ F) ≃ₗ[R] F.obj.obj (op ⊤) where |
| 37 | toEquiv := equiv R X F |
| 38 | map_add' f g := by |
| 39 | change equiv R X F (f + g) = equiv R X F f + equiv R X F g |
| 40 | simp only [equiv_apply, Adjunction.homEquiv_unit] |
| 41 | rfl |
| 42 | map_smul' r f := by |
| 43 | change equiv R X F (r • f) = r • equiv R X F f |
| 44 | simp only [equiv_apply, Adjunction.homEquiv_unit] |
| 45 | rfl |
| 46 | |
| 47 | theorem naturality {F G : Sheaves R X} (f : coefficient R X ⟶ F) (g : F ⟶ G) : |
| 48 | linearEquiv R X G (f ≫ g) = g.hom.app (op ⊤) (linearEquiv R X F f) := by |
| 49 | let adj := constantSheafAdj (Opens.grothendieckTopology X) (ModuleCat.{u} R) isTerminalTop |
| 50 | change (adj.homEquiv _ G (f ≫ g)) 1 = _ |
| 51 | rw [adj.homEquiv_naturality_right] |
| 52 | rfl |
| 53 | |
| 54 | def complexIso {ι : Type} (c : ComplexShape ι) (K : HomologicalComplex (Sheaves R X) c) : |
| 55 | ((((linearCoyoneda R (Sheaves R X)).obj (op (coefficient R X))).mapHomologicalComplex c).obj K) ≅ |
| 56 | ((((sheafSections (Opens.grothendieckTopology X) (ModuleCat.{u} R)).obj |
| 57 | (op ⊤)).mapHomologicalComplex c).obj K) := |
| 58 | HomologicalComplex.Hom.isoOfComponents |
| 59 | (fun n => (linearEquiv R X (K.X n)).toModuleIso) |
| 60 | (fun i j _ => by |
| 61 | ext f |
| 62 | exact naturality R X f (K.d i j)) |
| 63 | |
| 64 | end |
| 65 | |
| 66 | end OAI.AlgebraicGeometry.Crystalline.Cohomology.ConstantSheaf.ConstantSheafSections |