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 Mathlib.CategoryTheory.Sites.ConstantSheaf |
| 18 | import Mathlib.Topology.Sheaves.Abelian |
| 19 | |
| 20 | /-! # Constant -/ |
| 21 | |
| 22 | namespace OAI.AlgebraicTopology.Sheaf.Constant |
| 23 | |
| 24 | noncomputable section |
| 25 | |
| 26 | open _root_.TopCat |
| 27 | open _root_.TopCat.Presheaf |
| 28 | open _root_.TopCat.Sheaf |
| 29 | |
| 30 | /-! |
| 31 | # Constant presheaves and sheaves of additive groups on a topological space |
| 32 | |
| 33 | `CategoryTheory.constantSheaf` sheafifies the constant presheaf on a site. This file |
| 34 | specialises the constant presheaf and its sheafification to the site of open subsets of a |
| 35 | topological space with values in additive groups. Each has notation for the two ways the value |
| 36 | is given: as an object `A: AddCommGrpCat`, written `𝓒ᵖ[X; A]` and `𝓒[X; A]`, and as a type `R` |
| 37 | carrying an `AddCommGroup` instance — a field, a ring, `ℤ` — written `𝓒ᵖ(X; R)` and `𝓒(X; R)`. |
| 38 | -/ |
| 39 | |
| 40 | open _root_.CategoryTheory _root_.TopologicalSpace |
| 41 | |
| 42 | universe u |
| 43 | |
| 44 | namespace TopCat.Presheaf |
| 45 | |
| 46 | variable (X : TopCat.{u}) |
| 47 | |
| 48 | /-- Let `X` be a topological space and `A` an abelian group. The constant presheaf assigns `A` to |
| 49 | every open subset of `X`, including the empty set, and the identity homomorphism to every |
| 50 | inclusion. -/ |
| 51 | abbrev const (A : AddCommGrpCat.{u}) : TopCat.Presheaf AddCommGrpCat.{u} X := |
| 52 | (Functor.const (Opens X)ᵒᵖ).obj A |
| 53 | |
| 54 | @[inherit_doc Constant.TopCat.Presheaf.const] |
| 55 | notation3 "𝓒ᵖ[" X "; " A "]" => OAI.AlgebraicTopology.Sheaf.Constant.TopCat.Presheaf.const X A |
| 56 | |
| 57 | /-- The constant presheaf on `X` with value the additive group of `R`. -/ |
| 58 | notation3 "𝓒ᵖ(" X "; " R ")" => OAI.AlgebraicTopology.Sheaf.Constant.TopCat.Presheaf.const X (AddCommGrpCat.of R) |
| 59 | |
| 60 | end TopCat.Presheaf |
| 61 | |
| 62 | namespace TopCat |
| 63 | |
| 64 | variable (X : TopCat.{u}) |
| 65 | |
| 66 | /-- Let `X` be a topological space. This functor sends an abelian group `A` to the sheaf of locally |
| 67 | constant functions from open subsets of `X` to `A`, obtained by sheafifying the constant |
| 68 | presheaf. Group homomorphisms act by postcomposition on these functions. -/ |
| 69 | abbrev constantFunctor : |
| 70 | AddCommGrpCat.{u} ⥤ CategoryTheory.Sheaf (Opens.grothendieckTopology X) AddCommGrpCat.{u} := |
| 71 | CategoryTheory.constantSheaf (Opens.grothendieckTopology X) AddCommGrpCat.{u} |
| 72 | |
| 73 | /-- Let `X` be a topological space and `A` an abelian group. The constant sheaf `A_X` assigns to |
| 74 | each open `U` the group of locally constant functions `U → A`, with pointwise addition and |
| 75 | restriction of functions. It is defined by sheafifying the constant presheaf. -/ |
| 76 | abbrev const (A : AddCommGrpCat.{u}) : TopCat.Sheaf AddCommGrpCat.{u} X := |
| 77 | (constantFunctor X).obj A |
| 78 | |
| 79 | @[inherit_doc Constant.TopCat.const] |
| 80 | notation3 "𝓒[" X "; " A "]" => OAI.AlgebraicTopology.Sheaf.Constant.TopCat.const X A |
| 81 | |
| 82 | /-- The constant sheaf on `X` with value the additive group of `R`. -/ |
| 83 | notation3 "𝓒(" X "; " R ")" => OAI.AlgebraicTopology.Sheaf.Constant.TopCat.const X (AddCommGrpCat.of R) |
| 84 | |
| 85 | end TopCat |
| 86 | |
| 87 | end |
| 88 | |
| 89 | end OAI.AlgebraicTopology.Sheaf.Constant |