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 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | https://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | This file has been modified. |
| 16 | -/ |
| 17 | import OAI.Algebra.Homology.Notation |
| 18 | import Mathlib.Algebra.Homology.Embedding.CochainComplex |
| 19 | import Mathlib.Topology.Sheaves.Flasque |
| 20 | |
| 21 | /-! # Flasque Bounded Below -/ |
| 22 | |
| 23 | namespace OAI.AlgebraicTopology.Sheaf.FlasqueBoundedBelow.TopCat.IsFlasque |
| 24 | |
| 25 | noncomputable section |
| 26 | |
| 27 | open _root_.TopCat |
| 28 | open _root_.TopCat.Sheaf |
| 29 | |
| 30 | /-! |
| 31 | # Global sections of bounded-below exact flasque complexes |
| 32 | |
| 33 | An exact bounded-below cochain complex of flasque sheaves remains exact after taking global |
| 34 | sections. The proof is elementary: starting at the lower bound, the cycle sheaves are flasque |
| 35 | by induction through their short exact sequences. Global sections are then exact on each of |
| 36 | those sequences. |
| 37 | |
| 38 | This is the acyclic-complex lemma needed to compare a bounded-below flasque resolution with a |
| 39 | termwise-injective replacement. |
| 40 | -/ |
| 41 | |
| 42 | open _root_.CategoryTheory Limits Opposite _root_.TopologicalSpace |
| 43 | |
| 44 | open _root_.TopCat.Sheaf.IsFlasque |
| 45 | |
| 46 | universe u |
| 47 | |
| 48 | variable {X : TopCat.{u}} |
| 49 | |
| 50 | namespace BoundedBelowComplex |
| 51 | |
| 52 | variable (K : CochainComplex (TopCat.Sheaf AddCommGrpCat.{u} X) ℤ) |
| 53 | |
| 54 | /-- Let `X` be a topological space. The global sections functor sends a sheaf of abelian groups `F` |
| 55 | to `F(X)` and a sheaf morphism to its map on sections over the whole space. -/ |
| 56 | def globalSectionsFunctor (X : TopCat.{u}) : |
| 57 | TopCat.Sheaf AddCommGrpCat.{u} X ⥤ AddCommGrpCat.{u} := |
| 58 | (sheafSections (Opens.grothendieckTopology X) AddCommGrpCat.{u}).obj (op (⊤ : Opens X)) |
| 59 | |
| 60 | noncomputable instance globalSectionsFunctor_additive : |
| 61 | (globalSectionsFunctor X).Additive := by |
| 62 | constructor |
| 63 | intro A B f g |
| 64 | change (((evaluation (Opens X)ᵒᵖ AddCommGrpCat.{u}).obj (op (⊤ : Opens X))).map |
| 65 | ((TopCat.Sheaf.forget AddCommGrpCat.{u} X).map (f + g))) = _ |
| 66 | rw [Functor.map_add, Functor.map_add] |
| 67 | rfl |
| 68 | |
| 69 | noncomputable instance globalSectionsFunctor_preservesFiniteLimits : |
| 70 | PreservesFiniteLimits (globalSectionsFunctor X) := by |
| 71 | let : PreservesFiniteLimits |
| 72 | ((evaluation (Opens X)ᵒᵖ AddCommGrpCat.{u}).obj (op (⊤ : Opens X))) := |
| 73 | inferInstance |
| 74 | exact comp_preservesFiniteLimits (TopCat.Sheaf.forget AddCommGrpCat.{u} X) |
| 75 | ((evaluation (Opens X)ᵒᵖ AddCommGrpCat.{u}).obj (op (⊤ : Opens X))) |
| 76 | |
| 77 | /-- Let `X` be a topological space and `K` an integer-indexed cochain complex of sheaves of abelian |
| 78 | groups on `X`. This is the complex of abelian groups with `K^n(X)` in degree `n` and |
| 79 | differentials obtained by evaluating those of `K` on the whole space. -/ |
| 80 | def globalSectionsComplex |
| 81 | (K : CochainComplex (TopCat.Sheaf AddCommGrpCat.{u} X) ℤ) : |
| 82 | CochainComplex AddCommGrpCat.{u} ℤ := |
| 83 | ((globalSectionsFunctor X).mapHomologicalComplex ℤᵘᵖ).obj K |
| 84 | |
| 85 | end BoundedBelowComplex |
| 86 | |
| 87 | end |
| 88 | |
| 89 | end OAI.AlgebraicTopology.Sheaf.FlasqueBoundedBelow.TopCat.IsFlasque |