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