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.AlgebraicGeometry.ComplexPoint.Basic |
| 18 | import OAI.CategoryTheory.ConcreteCategory.Notation |
| 19 | import OAI.Topology.Algebra.IsOpenUnits |
| 20 | |
| 21 | /-! # Basic Ne -/ |
| 22 | |
| 23 | namespace OAI.AlgebraicGeometry.ComplexPoint |
| 24 | |
| 25 | open _root_.AlgebraicGeometry |
| 26 | |
| 27 | /-! |
| 28 | # Points over a commutative ring, and analytification |
| 29 | |
| 30 | -/ |
| 31 | |
| 32 | /-! ### Constructions used only in proofs -/ |
| 33 | |
| 34 | section |
| 35 | |
| 36 | open _root_.CategoryTheory _root_.Topology |
| 37 | open scoped CommRingCat.HomTopology |
| 38 | |
| 39 | variable (R : Type) [CommRing R] |
| 40 | |
| 41 | /-- A projective complex scheme is Noetherian. -/ |
| 42 | theorem BasicNe.isNoetherian_of_isProjective (X : Over (Spec ↧ℂ)) |
| 43 | [Foundations.ProjectiveSpaceIs.IsProjective X.hom] : IsNoetherian X.left where |
| 44 | toIsLocallyNoetherian := LocallyOfFiniteType.isLocallyNoetherian X.hom |
| 45 | toCompactSpace := QuasiCompact.compactSpace_of_compactSpace X.hom |
| 46 | |
| 47 | variable {R} |
| 48 | |
| 49 | variable {K : Type} [Field K] {X : Over (Spec ↧K)} |
| 50 | |
| 51 | /-- Over a field, a `K`-point is a scheme point together with an embedding of its residue field. |
| 52 | |
| 53 | This refines `stalkData`: the stalk homomorphism out of a local ring into a field factors through |
| 54 | the residue field. -/ |
| 55 | noncomputable def Basic.Point.residueData (z : Basic.Point K X) : |
| 56 | Σ x : X.left, X.left.residueField x ⟶ ↧K := |
| 57 | Scheme.SpecToEquivOfField K X.left z.left |
| 58 | |
| 59 | end |
| 60 | |
| 61 | open _root_.CategoryTheory _root_.Topology |
| 62 | open scoped CommRingCat.HomTopology |
| 63 | |
| 64 | variable (R : Type) [CommRing R] |
| 65 | |
| 66 | variable {R} |
| 67 | |
| 68 | section IsLocalRing |
| 69 | |
| 70 | variable [IsLocalRing R] {X : Over (Spec ↧R)} |
| 71 | |
| 72 | variable [TopologicalSpace R] |
| 73 | |
| 74 | variable [ContinuousMul R] [IsOpenUnits R] |
| 75 | |
| 76 | /-- The `R`-points over a scheme open form an analytic open set. -/ |
| 77 | lemma Basic.Point.isOpen_overOpen (U : X.left.Opens) : |
| 78 | IsOpen (Basic.Point.overOpen U : Set (Basic.Point R X)) := by |
| 79 | simpa using Basic.Point.isOpen_overOpen_inter_preimage U 0 Set.univ isOpen_univ |
| 80 | |
| 81 | end IsLocalRing |
| 82 | |
| 83 | variable {K : Type} [Field K] {X : Over (Spec ↧K)} |
| 84 | |
| 85 | /-- Over a field, a `K`-point belongs to a principal open exactly when its defining function is |
| 86 | nonzero there. -/ |
| 87 | lemma Basic.Point.mem_overOpen_basicOpen_iff_evaluate_ne_zero {U : X.left.Opens} (s : Γ(X.left, U)) |
| 88 | (z : Basic.Point K X) (hz : z ∈ Basic.Point.overOpen U) : |
| 89 | z ∈ Basic.Point.overOpen (X.left.basicOpen s) ↔ Basic.Point.evaluate U s z ≠ 0 := by |
| 90 | rw [Basic.Point.mem_overOpen_basicOpen_iff_isUnit_evaluate s z hz, isUnit_iff_ne_zero] |
| 91 | |
| 92 | /-- Over a field, a regular function on a principal open of an affine open is a quotient |
| 93 | of regular functions on the whole affine open. -/ |
| 94 | lemma Basic.Point.exists_evaluate_basicOpen_eq_div {U : X.left.Opens} (hU : IsAffineOpen U) (f : Γ(X.left, U)) |
| 95 | (t : Γ(X.left, X.left.basicOpen f)) : |
| 96 | ∃ (k : ℕ) (a : Γ(X.left, U)), ∀ z : Basic.Point K X, |
| 97 | z ∈ Basic.Point.overOpen (X.left.basicOpen f) → |
| 98 | Basic.Point.evaluate (X.left.basicOpen f) t z = Basic.Point.evaluate U a z / Basic.Point.evaluate U f z ^ k := by |
| 99 | obtain ⟨k, a, h⟩ := |
| 100 | Basic.Point.exists_evaluate_basicOpen_eq_inverse_mul (X := X) hU f t |
| 101 | exact ⟨k, a, fun z hz ↦ by rw [h z hz, Ring.inverse_eq_inv', div_eq_inv_mul]⟩ |
| 102 | |
| 103 | end OAI.AlgebraicGeometry.ComplexPoint |