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.Topology.KrullDimension |
| 18 | import OAI.Topology.Foundations.KrullDimension |
| 19 | |
| 20 | /-! # Basic -/ |
| 21 | |
| 22 | namespace OAI.Topology.Dimension.Basic.TopologicalSpace |
| 23 | |
| 24 | noncomputable section |
| 25 | |
| 26 | open _root_.TopologicalSpace |
| 27 | |
| 28 | /-! |
| 29 | # The dimension of an irreducible topological space |
| 30 | -/ |
| 31 | |
| 32 | /-- Let `X` be an irreducible topological space. Its dimension is the supremum of the lengths of |
| 33 | strict chains of nonempty irreducible closed subsets, converted to a natural number. A chain of |
| 34 | `r+1` subsets has length `r`. This conversion returns `0` when the Krull dimension is infinite; |
| 35 | irreducibility excludes the empty-space case. -/ |
| 36 | @[nolint unusedArguments] |
| 37 | def dim (X : Type*) [TopologicalSpace X] [IrreducibleSpace X] : ℕ := |
| 38 | ((topologicalKrullDim X).unbotD 0).toNat |
| 39 | |
| 40 | end |
| 41 | |
| 42 | end OAI.Topology.Dimension.Basic.TopologicalSpace |