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 | /- |
| 2 | Copyright 2026 The Formal Conjectures Authors. |
| 3 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | you may not use this file except in compliance with the License. |
| 5 | You may obtain a copy of the License at |
| 6 | https://www.apache.org/licenses/LICENSE-2.0 |
| 7 | Unless required by applicable law or agreed to in writing, software |
| 8 | distributed under the License is distributed on an "AS IS" BASIS, |
| 9 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 10 | See the License for the specific language governing permissions and |
| 11 | limitations under the License. |
| 12 | This file has been modified. |
| 13 | -/ |
| 14 | import OAI.AlgebraicTopology.Singular.SheafChainStalk |
| 15 | |
| 16 | /-! # Homology Section -/ |
| 17 | |
| 18 | namespace OAI.AlgebraicTopology.Sheaf.HomologySection.Singular |
| 19 | |
| 20 | noncomputable section |
| 21 | |
| 22 | /-! |
| 23 | # Sections of the homology sheaf from relative homology |
| 24 | |
| 25 | Exact sheafification sends presheaf homology to the homology sheaf. The unit |
| 26 | therefore sends a relative singular homology class on an open support to a section of |
| 27 | the homology sheaf. The germ comparison records the restriction to local relative |
| 28 | homology, which is essential for preserving normalized fundamental classes. |
| 29 | -/ |
| 30 | |
| 31 | open _root_.CategoryTheory Limits _root_.TopologicalSpace _root_.HomologicalComplex Opposite |
| 32 | |
| 33 | universe u |
| 34 | |
| 35 | variable (R : Type u) [CommRing R] (X : TopCat.{u}) |
| 36 | |
| 37 | /-- The stalk functor with its domain displayed as a functor category, to align the |
| 38 | canonical additive structures used in functor-category homology comparisons. -/ |
| 39 | abbrev additivePresheafStalkFunctor (x : X) : |
| 40 | ((Opens X)ᵒᵖ ⥤ AddCommGrpCat.{u}) ⥤ AddCommGrpCat.{u} := |
| 41 | TopCat.Presheaf.stalkFunctor AddCommGrpCat.{u} x |
| 42 | |
| 43 | instance additivePresheafStalkFunctor_additive (x : X) : |
| 44 | (additivePresheafStalkFunctor X x).Additive where |
| 45 | map_add := (TopCat.Presheaf.stalkFunctor AddCommGrpCat.{u} x).map_add |
| 46 | |
| 47 | /-- The exact sheaf stalk functor, with the categorical sheaf domain displayed. -/ |
| 48 | abbrev additiveSheafStalkFunctor (x : X) : |
| 49 | CategoryTheory.Sheaf (Opens.grothendieckTopology X) AddCommGrpCat.{u} ⥤ |
| 50 | AddCommGrpCat.{u} := |
| 51 | TopCat.Sheaf.forget AddCommGrpCat.{u} X ⋙ TopCat.Presheaf.stalkFunctor AddCommGrpCat.{u} x |
| 52 | |
| 53 | instance additiveSheafStalkFunctor_additive (x : X) : |
| 54 | (additiveSheafStalkFunctor X x).Additive where |
| 55 | map_add := (TopCat.Sheaf.forget AddCommGrpCat.{u} X ⋙ |
| 56 | TopCat.Presheaf.stalkFunctor AddCommGrpCat.{u} x).map_add |
| 57 | |
| 58 | instance additiveSheafStalkFunctor_preservesFiniteColimits (x : X) : |
| 59 | PreservesFiniteColimits (additiveSheafStalkFunctor X x) := by |
| 60 | change PreservesFiniteColimits (TopCat.Sheaf.forget AddCommGrpCat.{u} X ⋙ |
| 61 | TopCat.Presheaf.stalkFunctor AddCommGrpCat.{u} x) |
| 62 | infer_instance |
| 63 | |
| 64 | instance additiveSheafStalkFunctor_preservesFiniteLimits (x : X) : |
| 65 | PreservesFiniteLimits (additiveSheafStalkFunctor X x) := by |
| 66 | change PreservesFiniteLimits (TopCat.Sheaf.forget AddCommGrpCat.{u} X ⋙ |
| 67 | TopCat.Presheaf.stalkFunctor AddCommGrpCat.{u} x) |
| 68 | infer_instance |
| 69 | |
| 70 | set_option backward.isDefEq.respectTransparency false in |
| 71 | set_option backward.defeqAttrib.useBackward true in |
| 72 | /-- Sheafification leaves stalks unchanged, naturally in the additive presheaf. -/ |
| 73 | def additivePresheafStalkSheafificationIso (x : X) : |
| 74 | additivePresheafStalkFunctor X x ≅ |
| 75 | presheafToSheaf (Opens.grothendieckTopology X) AddCommGrpCat.{u} ⋙ |
| 76 | additiveSheafStalkFunctor X x := |
| 77 | NatIso.ofComponents (fun P ↦ by |
| 78 | letI := TopCat.Presheaf.stalkFunctor_map_unit_toSheafify_isIso x AddCommGrpCat.{u} P |
| 79 | exact asIso ((TopCat.Presheaf.stalkFunctor AddCommGrpCat.{u} x).map |
| 80 | (toSheafify (Opens.grothendieckTopology X) P))) (by |
| 81 | intro P Q f |
| 82 | change (TopCat.Presheaf.stalkFunctor AddCommGrpCat.{u} x).map f ≫ |
| 83 | (TopCat.Presheaf.stalkFunctor AddCommGrpCat.{u} x).map (toSheafify _ Q) = |
| 84 | (TopCat.Presheaf.stalkFunctor AddCommGrpCat.{u} x).map (toSheafify _ P) ≫ |
| 85 | (TopCat.Presheaf.stalkFunctor AddCommGrpCat.{u} x).map (sheafifyMap _ f) |
| 86 | simpa only [Functor.map_comp] using |
| 87 | (TopCat.Presheaf.stalkFunctor AddCommGrpCat.{u} x).congr_map |
| 88 | (toSheafify_naturality (Opens.grothendieckTopology X) f)) |
| 89 | |
| 90 | instance additivePresheafStalkFunctor_preservesFiniteLimits (x : X) : |
| 91 | PreservesFiniteLimits (additivePresheafStalkFunctor X x) := |
| 92 | preservesFiniteLimits_of_natIso (additivePresheafStalkSheafificationIso X x).symm |
| 93 | |
| 94 | instance additivePresheafStalkFunctor_preservesFiniteColimits (x : X) : |
| 95 | PreservesFiniteColimits (additivePresheafStalkFunctor X x) := |
| 96 | inferInstanceAs (PreservesFiniteColimits (TopCat.Presheaf.stalkFunctor AddCommGrpCat.{u} x)) |
| 97 | |
| 98 | end |
| 99 | |
| 100 | end OAI.AlgebraicTopology.Sheaf.HomologySection.Singular |