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