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.Properties |
| 20 | import Mathlib.Order.KrullDimension |
| 21 | |
| 22 | namespace OAI.AlgebraicGeometry.Foundations.GenericPoint |
| 23 | |
| 24 | open _root_.AlgebraicGeometry |
| 25 | |
| 26 | /-! |
| 27 | # The generic point of an integral scheme |
| 28 | |
| 29 | A point of an integral scheme has coheight zero exactly when it is the generic point. |
| 30 | -/ |
| 31 | |
| 32 | section |
| 33 | |
| 34 | section |
| 35 | |
| 36 | /-- A codimension-zero point of an integral scheme is its generic point. -/ |
| 37 | lemma eq_genericPoint_of_coheight_zero {X : Scheme} [IsIntegral X] (x : X) |
| 38 | (hx : Order.coheight x = 0) : x = genericPoint X := by |
| 39 | apply inseparable_iff_eq.mp |
| 40 | rw [inseparable_iff_specializes_and] |
| 41 | exact ⟨Order.coheight_eq_zero.mp hx le_top, genericPoint_specializes x⟩ |
| 42 | |
| 43 | end |
| 44 | |
| 45 | end |
| 46 | |
| 47 | end OAI.AlgebraicGeometry.Foundations.GenericPoint |