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.ClosedImmersion.ResidueField |
| 18 | import OAI.AlgebraicGeometry.ComplexPoint.AffineSpace |
| 19 | import OAI.CategoryTheory.ConcreteCategory.Notation |
| 20 | import Mathlib.AlgebraicGeometry.AlgClosed.Basic |
| 21 | import Mathlib.Analysis.Complex.Polynomial.Basic |
| 22 | |
| 23 | /-! # Closed Immersion -/ |
| 24 | |
| 25 | namespace OAI.AlgebraicGeometry.ComplexPoint |
| 26 | |
| 27 | open _root_.AlgebraicGeometry |
| 28 | |
| 29 | /-! |
| 30 | # Complex points of a closed subscheme |
| 31 | |
| 32 | This file describes the complex points of a closed subscheme of a complex scheme. The local |
| 33 | lifting of sections proved in |
| 34 | `HodgeConjecture.Lemmas.AlgebraicGeometry.ClosedImmersion.ResidueField` identifies the analytic |
| 35 | subbasis of the closed subscheme with the subbasis induced from the ambient scheme. Its analytic |
| 36 | image is the set of complex points supported on the closed subscheme, which is closed, so a closed |
| 37 | immersion induces a closed topological embedding on complex points. |
| 38 | -/ |
| 39 | |
| 40 | open _root_.CategoryTheory Opposite _root_.TopologicalSpace _root_.Topology |
| 41 | |
| 42 | variable {X Y : Over (Spec ↧ℂ)} |
| 43 | |
| 44 | /-- A monomorphism of schemes induces an injection on complex points. -/ |
| 45 | lemma Basic.ComplexSchemePoint.map_injective_of_mono (i : X ⟶ Y) [Mono i] : |
| 46 | Function.Injective (ComplexPoint.Basic.Point.map i) := fun _ _ h ↦ (cancel_mono i).mp h |
| 47 | |
| 48 | variable {A B : Over (Spec ↧ℂ)} (i : A ⟶ B) |
| 49 | |
| 50 | /-- The analytic image of a closed immersion consists exactly of the complex points supported |
| 51 | on its scheme-theoretic image. -/ |
| 52 | lemma Basic.ComplexSchemePoint.range_map_of_closedImmersion [IsClosedImmersion i.left] : |
| 53 | Set.range (ComplexPoint.Basic.Point.map i) = |
| 54 | {y : ComplexPoint.Basic.ComplexSchemePoint B | y.underlying ∈ Set.range i.left} := by |
| 55 | ext y |
| 56 | constructor |
| 57 | · rintro ⟨x, rfl⟩ |
| 58 | exact ⟨x.underlying, (ComplexPoint.Basic.Point.underlying_map i x).symm⟩ |
| 59 | · rintro ⟨x, hx⟩ |
| 60 | change i.left x = y.residueData.1 at hx |
| 61 | let φ : A.left.residueField x ⟶ ↧ℂ := |
| 62 | (ClosedImmersion.ResidueField.IsClosedImmersion.residueFieldIso x).inv ≫ |
| 63 | (B.left.residueFieldCongr hx).hom ≫ y.residueData.2 |
| 64 | let zHom : Spec ↧ℂ ⟶ A.left := |
| 65 | (Scheme.SpecToEquivOfField ℂ A.left).symm ⟨x, φ⟩ |
| 66 | have hzmap : zHom ≫ i.left = y.left := by |
| 67 | dsimp only [zHom] |
| 68 | rw [Scheme.SpecToEquivOfField_symm_apply, Category.assoc, |
| 69 | ← Scheme.Hom.SpecMap_residueFieldMap_fromSpecResidueField] |
| 70 | rw [← Category.assoc, ← Spec.map_comp] |
| 71 | dsimp [φ] |
| 72 | rw [← ClosedImmersion.ResidueField.IsClosedImmersion.residueFieldIso_hom, |
| 73 | Iso.hom_inv_id_assoc, Spec.map_comp, Category.assoc, |
| 74 | Scheme.residueFieldCongr_fromSpecResidueField] |
| 75 | exact (Scheme.SpecToEquivOfField ℂ B.left).symm_apply_apply y.left |
| 76 | have hz : zHom ≫ A.hom = 𝟙 _ := by |
| 77 | rw [← Over.w i, ← Category.assoc, hzmap] |
| 78 | exact Over.w y |
| 79 | exact ⟨Over.homMk zHom hz, Over.OverMorphism.ext hzmap⟩ |
| 80 | |
| 81 | /-- The analytic image of a closed immersion is closed. -/ |
| 82 | lemma Basic.ComplexSchemePoint.isClosed_range_map_of_closedImmersion [IsClosedImmersion i.left] : |
| 83 | @IsClosed (ComplexPoint.Basic.ComplexSchemePoint B) ComplexPoint.Basic.Point.analyticTopology |
| 84 | (Set.range (ComplexPoint.Basic.Point.map i)) := by |
| 85 | rw [ComplexPoint.Basic.ComplexSchemePoint.range_map_of_closedImmersion i] |
| 86 | apply isOpen_compl_iff.mp |
| 87 | let U : B.left.Opens := |
| 88 | ⟨(Set.range i.left)ᶜ, i.left.isClosedEmbedding.isClosed_range.isOpen_compl⟩ |
| 89 | have h : IsOpen (ComplexPoint.Basic.Point.overOpen U : Set (ComplexPoint.Basic.ComplexSchemePoint B)) := |
| 90 | ComplexPoint.Basic.Point.isOpen_overOpen (X := B) U |
| 91 | convert h using 1 |
| 92 | ext y |
| 93 | simp [ComplexPoint.Basic.Point.overOpen, U] |
| 94 | |
| 95 | /-- A subbasic analytic open of a closed subscheme is open in the topology induced from the |
| 96 | ambient analytic space. -/ |
| 97 | lemma Basic.ComplexSchemePoint.isOpen_induced_chartSubbasic [IsClosedImmersion i.left] |
| 98 | (U : B.left.Opens) (s : Γ(A.left, i.left ⁻¹ᵁ U)) (O : Set ℂ) (hO : IsOpen O) : |
| 99 | @IsOpen (ComplexPoint.Basic.ComplexSchemePoint A) |
| 100 | (TopologicalSpace.induced (ComplexPoint.Basic.Point.map i) ComplexPoint.Basic.Point.analyticTopology) |
| 101 | (ComplexPoint.Basic.Point.overOpen (i.left ⁻¹ᵁ U) ∩ ComplexPoint.Basic.Point.evaluate (i.left ⁻¹ᵁ U) s ⁻¹' O) := by |
| 102 | let : TopologicalSpace (ComplexPoint.Basic.ComplexSchemePoint A) := |
| 103 | TopologicalSpace.induced (ComplexPoint.Basic.Point.map i) ComplexPoint.Basic.Point.analyticTopology |
| 104 | rw [isOpen_iff_forall_mem_open] |
| 105 | rintro z ⟨hzU, hzO⟩ |
| 106 | obtain ⟨V, hVU, ⟨r, hr⟩, hzV⟩ := |
| 107 | ClosedImmersion.ResidueField.IsClosedImmersion.exists_local_ambient_lift U s z.underlying hzU |
| 108 | let T : Set (ComplexPoint.Basic.ComplexSchemePoint B) := |
| 109 | ComplexPoint.Basic.Point.overOpen V ∩ ComplexPoint.Basic.Point.evaluate V r ⁻¹' O |
| 110 | refine ⟨ComplexPoint.Basic.Point.map i ⁻¹' T, ?_, ?_, ?_⟩ |
| 111 | · rintro w ⟨hwV, hwO⟩ |
| 112 | have hwV' : w.underlying ∈ i.left ⁻¹ᵁ V := |
| 113 | (ComplexPoint.Basic.Point.mem_overOpen_map_iff i w V).mp hwV |
| 114 | have hpre : i.left ⁻¹ᵁ V ≤ i.left ⁻¹ᵁ U := |
| 115 | leOfHom ((Opens.map i.left.base).map hVU) |
| 116 | refine ⟨hpre hwV', ?_⟩ |
| 117 | have hmap := ComplexPoint.Basic.Point.evaluate_map i V r w |
| 118 | change ComplexPoint.Basic.Point.evaluate (X := B) V r _ = |
| 119 | ComplexPoint.Basic.Point.evaluate (X := A) (i.left ⁻¹ᵁ V) (i.left.app V r) w at hmap |
| 120 | rw [hr] at hmap |
| 121 | have hres := ComplexPoint.Basic.Point.evaluate_res (X := A) |
| 122 | (U := i.left ⁻¹ᵁ U) (V := i.left ⁻¹ᵁ V) hpre s w hwV' |
| 123 | have hsection : |
| 124 | (((TopCat.Presheaf.pushforward CommRingCat i.left.base).obj A.left.presheaf).map hVU.op) s = |
| 125 | A.left.presheaf.map (homOfLE hpre).op s := rfl |
| 126 | rw [hsection] at hmap |
| 127 | change ComplexPoint.Basic.Point.evaluate (i.left ⁻¹ᵁ U) s w ∈ O |
| 128 | rw [hres] |
| 129 | exact hmap ▸ hwO |
| 130 | · exact (ComplexPoint.Basic.Point.isOpen_overOpen_inter_preimage (X := B) V r O hO).preimage |
| 131 | continuous_induced_dom |
| 132 | · refine ⟨?_, ?_⟩ |
| 133 | · exact (ComplexPoint.Basic.Point.mem_overOpen_map_iff i z V).mpr hzV |
| 134 | · have hmap := ComplexPoint.Basic.Point.evaluate_map i V r z |
| 135 | change ComplexPoint.Basic.Point.evaluate (X := B) V r _ = |
| 136 | ComplexPoint.Basic.Point.evaluate (X := A) (i.left ⁻¹ᵁ V) (i.left.app V r) z at hmap |
| 137 | rw [hr] at hmap |
| 138 | have hpre : i.left ⁻¹ᵁ V ≤ i.left ⁻¹ᵁ U := |
| 139 | leOfHom ((Opens.map i.left.base).map hVU) |
| 140 | have hres := ComplexPoint.Basic.Point.evaluate_res (X := A) |
| 141 | (U := i.left ⁻¹ᵁ U) (V := i.left ⁻¹ᵁ V) hpre s z hzV |
| 142 | have hsection : |
| 143 | (((TopCat.Presheaf.pushforward CommRingCat i.left.base).obj A.left.presheaf).map hVU.op) s = |
| 144 | A.left.presheaf.map (homOfLE hpre).op s := rfl |
| 145 | rw [hsection] at hmap |
| 146 | change ComplexPoint.Basic.Point.evaluate V r (ComplexPoint.Basic.Point.map i z) ∈ O |
| 147 | rw [hmap] |
| 148 | exact hres ▸ hzO |
| 149 | |
| 150 | /-- Every generator of the analytic topology on a closed subscheme is open for the topology |
| 151 | induced from the ambient analytic space. -/ |
| 152 | lemma Basic.ComplexSchemePoint.analyticSubbasis_isOpen_induced [IsClosedImmersion i.left] |
| 153 | {W : Set (ComplexPoint.Basic.ComplexSchemePoint A)} (hW : W ∈ ComplexPoint.Basic.Point.analyticSubbasis) : |
| 154 | @IsOpen (ComplexPoint.Basic.ComplexSchemePoint A) |
| 155 | (TopologicalSpace.induced (ComplexPoint.Basic.Point.map i) ComplexPoint.Basic.Point.analyticTopology) W := by |
| 156 | obtain ⟨U, s, O, hO, rfl⟩ := hW |
| 157 | obtain ⟨q, hq, hpre⟩ := |
| 158 | i.left.isClosedEmbedding.isInducing.isOpen_iff.mp U.isOpen |
| 159 | let Q : B.left.Opens := ⟨q, hq⟩ |
| 160 | have hQU : i.left ⁻¹ᵁ Q = U := Opens.ext hpre |
| 161 | subst U |
| 162 | exact ComplexPoint.Basic.ComplexSchemePoint.isOpen_induced_chartSubbasic i Q s O hO |
| 163 | |
| 164 | /-- A closed immersion induces the subspace topology on complex points. -/ |
| 165 | lemma Basic.ComplexSchemePoint.isInducing_map_of_closedImmersion [IsClosedImmersion i.left] : |
| 166 | @IsInducing (ComplexPoint.Basic.ComplexSchemePoint A) (ComplexPoint.Basic.ComplexSchemePoint B) |
| 167 | ComplexPoint.Basic.Point.analyticTopology ComplexPoint.Basic.Point.analyticTopology (ComplexPoint.Basic.Point.map i) := by |
| 168 | rw [isInducing_iff] |
| 169 | apply le_antisymm |
| 170 | · exact continuous_iff_le_induced.mp (ComplexPoint.Basic.Point.continuous_map i) |
| 171 | · rw [show (ComplexPoint.Basic.Point.analyticTopology : TopologicalSpace (ComplexPoint.Basic.ComplexSchemePoint A)) = |
| 172 | .generateFrom ComplexPoint.Basic.Point.analyticSubbasis from ComplexPoint.Basic.Point.analyticTopology_eq_generateFrom] |
| 173 | exact le_generateFrom_iff_subset_isOpen.mpr fun _ hW ↦ |
| 174 | ComplexPoint.Basic.ComplexSchemePoint.analyticSubbasis_isOpen_induced i hW |
| 175 | |
| 176 | /-- A closed immersion induces a topological embedding on complex points. -/ |
| 177 | lemma Basic.ComplexSchemePoint.isEmbedding_map_of_closedImmersion [IsClosedImmersion i.left] : |
| 178 | @IsEmbedding (ComplexPoint.Basic.ComplexSchemePoint A) (ComplexPoint.Basic.ComplexSchemePoint B) |
| 179 | ComplexPoint.Basic.Point.analyticTopology ComplexPoint.Basic.Point.analyticTopology (ComplexPoint.Basic.Point.map i) := by |
| 180 | let : Mono i := Over.mono_of_mono_left i |
| 181 | exact ⟨ComplexPoint.Basic.ComplexSchemePoint.isInducing_map_of_closedImmersion i, ComplexPoint.Basic.ComplexSchemePoint.map_injective_of_mono i⟩ |
| 182 | |
| 183 | /-- A closed immersion induces a closed topological embedding on complex points. -/ |
| 184 | lemma Basic.ComplexSchemePoint.isClosedEmbedding_map_of_closedImmersion [IsClosedImmersion i.left] : |
| 185 | @IsClosedEmbedding (ComplexPoint.Basic.ComplexSchemePoint A) (ComplexPoint.Basic.ComplexSchemePoint B) |
| 186 | ComplexPoint.Basic.Point.analyticTopology ComplexPoint.Basic.Point.analyticTopology (ComplexPoint.Basic.Point.map i) := by |
| 187 | exact ⟨ComplexPoint.Basic.ComplexSchemePoint.isEmbedding_map_of_closedImmersion i, ComplexPoint.Basic.ComplexSchemePoint.isClosed_range_map_of_closedImmersion i⟩ |
| 188 | |
| 189 | end OAI.AlgebraicGeometry.ComplexPoint |