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 | |
| 16 | This file has been modified. |
| 17 | -/ |
| 18 | |
| 19 | import Mathlib.AlgebraicGeometry.Scheme |
| 20 | |
| 21 | import HodgeConjecture.Mathlib.CategoryTheory.ConcreteCategory.Notation |
| 22 | |
| 23 | namespace OAI.AlgebraicGeometry.Over.Basic |
| 24 | |
| 25 | open _root_.AlgebraicGeometry |
| 26 | |
| 27 | /-! |
| 28 | # Algebra structure on section |
| 29 | |
| 30 | When working with schemes over a fixed ring, the section rings of the scheme have a natural |
| 31 | algebra structure that is not currently in Mathlib. We make this an `instance_reducible` def |
| 32 | instead of an instance to avoid a possible diamond with the instance in |
| 33 | `Mathlib.AlgebraicGeometry.Group.Affine`. |
| 34 | -/ |
| 35 | |
| 36 | section |
| 37 | |
| 38 | open _root_.CategoryTheory |
| 39 | |
| 40 | section |
| 41 | |
| 42 | /-- The algebra structure on section rings of a scheme over an affine variety. -/ |
| 43 | @[instance_reducible] |
| 44 | noncomputable def overSpecAlgebra {R : Type*} [CommRing R] (X : Over (Spec ↧R)) (U : X.left.Opens) : |
| 45 | Algebra R Γ(X.left, U) := |
| 46 | (X.hom.appLE ⊤ U (by simp)).hom.comp (Scheme.ΓSpecIso ↧R).inv.hom |>.toAlgebra |
| 47 | |
| 48 | end |
| 49 | |
| 50 | end |
| 51 | |
| 52 | end OAI.AlgebraicGeometry.Over.Basic |