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.BasicNe |
| 18 | import OAI.AlgebraicGeometry.ComplexPoint.AffineSpace |
| 19 | import OAI.CategoryTheory.ConcreteCategory.Notation |
| 20 | import Mathlib.Logic.Equiv.PartialEquiv |
| 21 | |
| 22 | /-! # Affine Scheme -/ |
| 23 | |
| 24 | namespace OAI.AlgebraicGeometry.ComplexPoint |
| 25 | |
| 26 | noncomputable section |
| 27 | |
| 28 | open _root_.AlgebraicGeometry |
| 29 | |
| 30 | /-! |
| 31 | # Complex points of affine schemes |
| 32 | |
| 33 | The complex points of `Spec R` are canonically homeomorphic to the space of complex algebra |
| 34 | homomorphisms from `R` to `ℂ`, equipped with the topology of pointwise convergence. The proof of |
| 35 | continuity in the reverse direction uses the localization description of regular functions on |
| 36 | principal opens. |
| 37 | -/ |
| 38 | |
| 39 | open _root_.CategoryTheory _root_.Topology |
| 40 | |
| 41 | variable (R : Type) [CommRing R] [Algebra ℂ R] |
| 42 | |
| 43 | /-- The topology of pointwise convergence on complex algebra homomorphisms. -/ |
| 44 | noncomputable instance Basic.ComplexSchemePoint.affineAlgebraHomTopology : TopologicalSpace (R →ₐ[ℂ] ℂ) := |
| 45 | TopologicalSpace.induced (fun φ : R →ₐ[ℂ] ℂ ↦ (φ : R → ℂ)) inferInstance |
| 46 | |
| 47 | /-- The structure morphism of an affine complex scheme. -/ |
| 48 | abbrev Basic.ComplexSchemePoint.affineSpecStructureMap : Spec ↧R ⟶ Spec ↧ℂ := |
| 49 | Spec.map (CommRingCat.ofHom (algebraMap ℂ R)) |
| 50 | |
| 51 | /-- Complex points of `Spec R` correspond to complex algebra homomorphisms from `R` to `ℂ`. -/ |
| 52 | def Basic.ComplexSchemePoint.affineSpecEquiv : |
| 53 | Basic.ComplexSchemePoint (Over.mk (Basic.ComplexSchemePoint.affineSpecStructureMap R)) ≃ (R →ₐ[ℂ] ℂ) where |
| 54 | toFun z := |
| 55 | { toRingHom := (Spec.homEquiv z.left).hom |
| 56 | commutes' c := by |
| 57 | have hz := congrArg Spec.preimage (Over.w z) |
| 58 | have hr : CommRingCat.ofHom (algebraMap ℂ R) ≫ Spec.preimage z.left = |
| 59 | 𝟙 (CommRingCat.of ℂ) := by |
| 60 | simpa [Basic.ComplexSchemePoint.affineSpecStructureMap, Spec.preimage_comp] using hz |
| 61 | exact DFunLike.congr_fun (congrArg CommRingCat.Hom.hom hr) c } |
| 62 | invFun φ := Over.homMk (Spec.map (CommRingCat.ofHom φ.toRingHom)) (by |
| 63 | change Spec.map (CommRingCat.ofHom φ.toRingHom) ≫ |
| 64 | Spec.map (CommRingCat.ofHom (algebraMap ℂ R)) = 𝟙 (Spec ↧ℂ) |
| 65 | rw [← Spec.map_comp, ← Spec.map_id] |
| 66 | congr 1 |
| 67 | ext c |
| 68 | exact φ.commutes c) |
| 69 | left_inv z := Over.OverMorphism.ext (Spec.map_preimage z.left) |
| 70 | right_inv φ := by |
| 71 | ext r |
| 72 | simp [Spec.homEquiv_apply] |
| 73 | |
| 74 | lemma Basic.ComplexSchemePoint.affineSpecEquiv_apply |
| 75 | (z : Basic.ComplexSchemePoint (Over.mk (Basic.ComplexSchemePoint.affineSpecStructureMap R))) (r : R) : |
| 76 | Basic.ComplexSchemePoint.affineSpecEquiv R z r = |
| 77 | Basic.Point.evaluate ⊤ ((Scheme.ΓSpecIso ↧R).inv r) z := by |
| 78 | rw [Basic.ComplexSchemePoint.evaluate_top_eq_appTop] |
| 79 | change (Spec.preimage z.left).hom r = |
| 80 | (Scheme.ΓSpecIso ↧ℂ).hom (z.left.appTop ((Scheme.ΓSpecIso ↧R).inv r)) |
| 81 | have h := Scheme.ΓSpecIso_naturality (Spec.preimage z.left) |
| 82 | have h' := DFunLike.congr_fun (congrArg CommRingCat.Hom.hom h) |
| 83 | ((Scheme.ΓSpecIso ↧R).inv r) |
| 84 | simpa using h'.symm |
| 85 | |
| 86 | lemma Basic.ComplexSchemePoint.evaluate_affineSpecEquiv_symm_top (s : Γ(Spec ↧R, ⊤)) (φ : R →ₐ[ℂ] ℂ) : |
| 87 | Basic.Point.evaluate ⊤ s ((Basic.ComplexSchemePoint.affineSpecEquiv R).symm φ) = |
| 88 | φ ((Scheme.ΓSpecIso ↧R).hom s) := by |
| 89 | calc |
| 90 | Basic.Point.evaluate ⊤ s ((Basic.ComplexSchemePoint.affineSpecEquiv R).symm φ) = |
| 91 | Basic.Point.evaluate ⊤ ((Scheme.ΓSpecIso ↧R).inv |
| 92 | ((Scheme.ΓSpecIso ↧R).hom s)) ((Basic.ComplexSchemePoint.affineSpecEquiv R).symm φ) := by simp |
| 93 | _ = Basic.ComplexSchemePoint.affineSpecEquiv R ((Basic.ComplexSchemePoint.affineSpecEquiv R).symm φ) |
| 94 | ((Scheme.ΓSpecIso ↧R).hom s) := |
| 95 | (Basic.ComplexSchemePoint.affineSpecEquiv_apply R _ _).symm |
| 96 | _ = φ ((Scheme.ΓSpecIso ↧R).hom s) := by simp |
| 97 | |
| 98 | lemma Basic.ComplexSchemePoint.continuous_affineAlgebraHom_apply (r : R) : |
| 99 | Continuous (fun φ : R →ₐ[ℂ] ℂ ↦ φ r) := |
| 100 | (continuous_apply r).comp continuous_induced_dom |
| 101 | |
| 102 | lemma Basic.ComplexSchemePoint.continuous_affineSpecEquiv : |
| 103 | @Continuous |
| 104 | (Basic.ComplexSchemePoint (Over.mk (Basic.ComplexSchemePoint.affineSpecStructureMap R))) |
| 105 | (R →ₐ[ℂ] ℂ) Basic.Point.analyticTopology (Basic.ComplexSchemePoint.affineAlgebraHomTopology R) |
| 106 | (Basic.ComplexSchemePoint.affineSpecEquiv R) := by |
| 107 | rw [continuous_induced_rng] |
| 108 | exact continuous_pi fun r ↦ by |
| 109 | simpa only [Function.comp_apply, Basic.ComplexSchemePoint.affineSpecEquiv_apply] using |
| 110 | Basic.ComplexSchemePoint.continuous_evaluate_top (X := Over.mk (Basic.ComplexSchemePoint.affineSpecStructureMap R)) |
| 111 | ((Scheme.ΓSpecIso ↧R).inv r) |
| 112 | |
| 113 | lemma Basic.ComplexSchemePoint.isOpen_affineSpecEquiv_symm_preimage_overOpen_basicOpen |
| 114 | (s : Γ(Spec ↧R, ⊤)) : |
| 115 | IsOpen ((Basic.ComplexSchemePoint.affineSpecEquiv R).symm ⁻¹' |
| 116 | Basic.Point.overOpen ((Spec ↧R).basicOpen s)) := by |
| 117 | rw [show (Basic.ComplexSchemePoint.affineSpecEquiv R).symm ⁻¹' |
| 118 | Basic.Point.overOpen ((Spec ↧R).basicOpen s) = |
| 119 | {φ | φ ((Scheme.ΓSpecIso ↧R).hom s) ≠ 0} by |
| 120 | ext φ |
| 121 | exact (Basic.Point.mem_overOpen_basicOpen_iff_evaluate_ne_zero |
| 122 | (X := Over.mk (Basic.ComplexSchemePoint.affineSpecStructureMap R)) (U := ⊤) |
| 123 | s ((Basic.ComplexSchemePoint.affineSpecEquiv R).symm φ) trivial).trans |
| 124 | (Iff.of_eq (congrArg (· ≠ 0) (Basic.ComplexSchemePoint.evaluate_affineSpecEquiv_symm_top R s φ)))] |
| 125 | exact isOpen_ne_fun |
| 126 | (Basic.ComplexSchemePoint.continuous_affineAlgebraHom_apply R ((Scheme.ΓSpecIso ↧R).hom s)) |
| 127 | continuous_const |
| 128 | |
| 129 | /-- On an affine scheme, evaluation of a section on a principal open is locally a quotient of |
| 130 | evaluations of global sections. -/ |
| 131 | lemma Basic.ComplexSchemePoint.exists_evaluate_affine_basicOpen_eq_div {X : Over (Spec ↧ℂ)} [IsAffine X.left] |
| 132 | (f : Γ(X.left, ⊤)) (t : Γ(X.left, X.left.basicOpen f)) : |
| 133 | ∃ (k : ℕ) (a : Γ(X.left, ⊤)), |
| 134 | ∀ z : Basic.ComplexSchemePoint X, z ∈ Basic.Point.overOpen (X.left.basicOpen f) → |
| 135 | Basic.Point.evaluate (X.left.basicOpen f) t z = Basic.Point.evaluate ⊤ a z / Basic.Point.evaluate ⊤ f z ^ k := |
| 136 | Basic.Point.exists_evaluate_basicOpen_eq_div (X := X) (isAffineOpen_top X.left) f t |
| 137 | |
| 138 | lemma Basic.ComplexSchemePoint.exists_evaluate_affineSpec_basicOpen_eq_div |
| 139 | (f : Γ(Spec ↧R, ⊤)) |
| 140 | (t : Γ(Spec ↧R, (Spec ↧R).basicOpen f)) : |
| 141 | ∃ (k : ℕ) (a : Γ(Spec ↧R, ⊤)), |
| 142 | ∀ z : Basic.ComplexSchemePoint (Over.mk (Basic.ComplexSchemePoint.affineSpecStructureMap R)), |
| 143 | z ∈ Basic.Point.overOpen ((Spec ↧R).basicOpen f) → |
| 144 | Basic.Point.evaluate ((Spec ↧R).basicOpen f) t z = |
| 145 | Basic.Point.evaluate ⊤ a z / Basic.Point.evaluate ⊤ f z ^ k := by |
| 146 | let : IsAffine (Over.mk (Basic.ComplexSchemePoint.affineSpecStructureMap R)).left := |
| 147 | inferInstanceAs (IsAffine (Spec ↧R)) |
| 148 | exact Basic.ComplexSchemePoint.exists_evaluate_affine_basicOpen_eq_div (X := Over.mk (Basic.ComplexSchemePoint.affineSpecStructureMap R)) f t |
| 149 | |
| 150 | lemma Basic.ComplexSchemePoint.continuousOn_evaluate_affineSpec_basicOpen_equiv_symm |
| 151 | (f : Γ(Spec ↧R, ⊤)) |
| 152 | (t : Γ(Spec ↧R, (Spec ↧R).basicOpen f)) : |
| 153 | ContinuousOn |
| 154 | (fun φ : R →ₐ[ℂ] ℂ ↦ Basic.Point.evaluate ((Spec ↧R).basicOpen f) t |
| 155 | ((Basic.ComplexSchemePoint.affineSpecEquiv R).symm φ)) |
| 156 | ((Basic.ComplexSchemePoint.affineSpecEquiv R).symm ⁻¹' |
| 157 | Basic.Point.overOpen ((Spec ↧R).basicOpen f)) := by |
| 158 | obtain ⟨k, a, h⟩ := Basic.ComplexSchemePoint.exists_evaluate_affineSpec_basicOpen_eq_div R f t |
| 159 | have ha : Continuous (fun φ : R →ₐ[ℂ] ℂ ↦ |
| 160 | Basic.Point.evaluate ⊤ a ((Basic.ComplexSchemePoint.affineSpecEquiv R).symm φ)) := by |
| 161 | simpa only [Basic.ComplexSchemePoint.evaluate_affineSpecEquiv_symm_top] using |
| 162 | Basic.ComplexSchemePoint.continuous_affineAlgebraHom_apply R ((Scheme.ΓSpecIso ↧R).hom a) |
| 163 | have hf : Continuous (fun φ : R →ₐ[ℂ] ℂ ↦ |
| 164 | Basic.Point.evaluate ⊤ f ((Basic.ComplexSchemePoint.affineSpecEquiv R).symm φ)) := by |
| 165 | simpa only [Basic.ComplexSchemePoint.evaluate_affineSpecEquiv_symm_top] using |
| 166 | Basic.ComplexSchemePoint.continuous_affineAlgebraHom_apply R ((Scheme.ΓSpecIso ↧R).hom f) |
| 167 | have hrat : ContinuousOn |
| 168 | (fun φ : R →ₐ[ℂ] ℂ ↦ Basic.Point.evaluate ⊤ a ((Basic.ComplexSchemePoint.affineSpecEquiv R).symm φ) / |
| 169 | Basic.Point.evaluate ⊤ f ((Basic.ComplexSchemePoint.affineSpecEquiv R).symm φ) ^ k) |
| 170 | ((Basic.ComplexSchemePoint.affineSpecEquiv R).symm ⁻¹' |
| 171 | Basic.Point.overOpen ((Spec ↧R).basicOpen f)) := |
| 172 | ha.continuousOn.div (hf.pow k).continuousOn fun φ hφ ↦ |
| 173 | pow_ne_zero k ((Basic.Point.mem_overOpen_basicOpen_iff_evaluate_ne_zero |
| 174 | (X := Over.mk (Basic.ComplexSchemePoint.affineSpecStructureMap R)) (U := ⊤) f _ trivial).mp hφ) |
| 175 | exact hrat.congr fun φ hφ ↦ h _ hφ |
| 176 | |
| 177 | lemma Basic.ComplexSchemePoint.continuous_affineSpecEquiv_symm : |
| 178 | @Continuous (R →ₐ[ℂ] ℂ) |
| 179 | (Basic.ComplexSchemePoint (Over.mk (Basic.ComplexSchemePoint.affineSpecStructureMap R))) |
| 180 | (Basic.ComplexSchemePoint.affineAlgebraHomTopology R) Basic.Point.analyticTopology (Basic.ComplexSchemePoint.affineSpecEquiv R).symm := by |
| 181 | rw [Basic.Point.continuous_iff_analyticSubbasis] |
| 182 | rintro W ⟨U, s, V, hV, rfl⟩ |
| 183 | apply isOpen_iff_forall_mem_open.mpr |
| 184 | rintro φ ⟨hφU, hφV⟩ |
| 185 | obtain ⟨f, hfU, hφf⟩ := |
| 186 | (isAffineOpen_top (Spec ↧R)).exists_basicOpen_le |
| 187 | ⟨((Basic.ComplexSchemePoint.affineSpecEquiv R).symm φ).underlying, hφU⟩ trivial |
| 188 | let t := (Spec ↧R).presheaf.map (homOfLE hfU).op s |
| 189 | let N := (Basic.ComplexSchemePoint.affineSpecEquiv R).symm ⁻¹' |
| 190 | Basic.Point.overOpen ((Spec ↧R).basicOpen f) ∩ |
| 191 | (fun ψ : R →ₐ[ℂ] ℂ ↦ Basic.Point.evaluate ((Spec ↧R).basicOpen f) t |
| 192 | ((Basic.ComplexSchemePoint.affineSpecEquiv R).symm ψ)) ⁻¹' V |
| 193 | have hNopen : IsOpen N := |
| 194 | (Basic.ComplexSchemePoint.continuousOn_evaluate_affineSpec_basicOpen_equiv_symm R f t).isOpen_inter_preimage |
| 195 | (Basic.ComplexSchemePoint.isOpen_affineSpecEquiv_symm_preimage_overOpen_basicOpen R f) hV |
| 196 | refine ⟨N, ?_, hNopen, ?_⟩ |
| 197 | · rintro ψ ⟨hψf, hψV⟩ |
| 198 | have hψU : (Basic.ComplexSchemePoint.affineSpecEquiv R).symm ψ ∈ Basic.Point.overOpen U := hfU hψf |
| 199 | refine ⟨hψU, ?_⟩ |
| 200 | change Basic.Point.evaluate U s ((Basic.ComplexSchemePoint.affineSpecEquiv R).symm ψ) ∈ V |
| 201 | rwa [Basic.Point.evaluate_res hfU s _ hψf] |
| 202 | · refine ⟨hφf, ?_⟩ |
| 203 | change Basic.Point.evaluate ((Spec ↧R).basicOpen f) t |
| 204 | ((Basic.ComplexSchemePoint.affineSpecEquiv R).symm φ) ∈ V |
| 205 | exact (congrArg (fun c ↦ c ∈ V) (Basic.Point.evaluate_res hfU s _ hφf)).mp hφV |
| 206 | |
| 207 | /-- The complex points of `Spec R` are homeomorphic to the complex algebra homomorphisms |
| 208 | from `R` to `ℂ`, with their topology of pointwise convergence. -/ |
| 209 | def Basic.ComplexSchemePoint.affineSpecHomeomorph : |
| 210 | @Homeomorph |
| 211 | (Basic.ComplexSchemePoint (Over.mk (Basic.ComplexSchemePoint.affineSpecStructureMap R))) |
| 212 | (R →ₐ[ℂ] ℂ) Basic.Point.analyticTopology (Basic.ComplexSchemePoint.affineAlgebraHomTopology R) where |
| 213 | toEquiv := Basic.ComplexSchemePoint.affineSpecEquiv R |
| 214 | continuous_toFun := Basic.ComplexSchemePoint.continuous_affineSpecEquiv R |
| 215 | continuous_invFun := Basic.ComplexSchemePoint.continuous_affineSpecEquiv_symm R |
| 216 | |
| 217 | variable {A B : Type} [CommRing A] [CommRing B] [Algebra ℂ A] [Algebra ℂ B] |
| 218 | |
| 219 | lemma Basic.ComplexSchemePoint.specMap_comp_affineSpecStructureMap (g : A →ₐ[ℂ] B) : |
| 220 | Spec.map (CommRingCat.ofHom g.toRingHom) ≫ Basic.ComplexSchemePoint.affineSpecStructureMap A = |
| 221 | Basic.ComplexSchemePoint.affineSpecStructureMap B := by |
| 222 | rw [← Spec.map_comp] |
| 223 | congr 1 |
| 224 | ext c |
| 225 | exact g.commutes c |
| 226 | |
| 227 | /-- The map on complex points contravariantly associated to a complex algebra homomorphism. -/ |
| 228 | def Basic.ComplexSchemePoint.affineSpecComplexPointMap (g : A →ₐ[ℂ] B) : |
| 229 | Basic.ComplexSchemePoint (Over.mk (Basic.ComplexSchemePoint.affineSpecStructureMap B)) → |
| 230 | Basic.ComplexSchemePoint (Over.mk (Basic.ComplexSchemePoint.affineSpecStructureMap A)) := |
| 231 | Basic.Point.map (Over.homMk (Spec.map (CommRingCat.ofHom g.toRingHom)) |
| 232 | (Basic.ComplexSchemePoint.specMap_comp_affineSpecStructureMap g)) |
| 233 | |
| 234 | /-- Under the affine-point equivalence, an affine scheme map acts by precomposition of algebra |
| 235 | homomorphisms. -/ |
| 236 | lemma Basic.ComplexSchemePoint.affineSpecEquiv_affineSpecComplexPointMap (g : A →ₐ[ℂ] B) |
| 237 | (z : Basic.ComplexSchemePoint (Over.mk (Basic.ComplexSchemePoint.affineSpecStructureMap B))) : |
| 238 | Basic.ComplexSchemePoint.affineSpecEquiv A (Basic.ComplexSchemePoint.affineSpecComplexPointMap g z) = |
| 239 | (Basic.ComplexSchemePoint.affineSpecEquiv B z).comp g := by |
| 240 | ext a |
| 241 | simp [Basic.ComplexSchemePoint.affineSpecComplexPointMap, Basic.Point.map, Basic.ComplexSchemePoint.affineSpecEquiv, Spec.preimage_comp] |
| 242 | |
| 243 | end |
| 244 | |
| 245 | end OAI.AlgebraicGeometry.ComplexPoint |