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.Lemmas.AlgebraicGeometry.ComplexPoint.Basic |
| 20 | import HodgeConjecture.Mathlib.CategoryTheory.ConcreteCategory.Notation |
| 21 | |
| 22 | namespace OAI.AlgebraicGeometry.ComplexPoint.Open |
| 23 | |
| 24 | open _root_.AlgebraicGeometry |
| 25 | |
| 26 | /-! |
| 27 | # Complex points of open subschemes |
| 28 | |
| 29 | Analytification respects restriction to an open subscheme. More precisely, complex points of an |
| 30 | open subscheme are canonically homeomorphic to the corresponding open subspace of the complex |
| 31 | points of the ambient scheme. In particular, an open immersion of this form induces an open |
| 32 | embedding on complex points. |
| 33 | -/ |
| 34 | |
| 35 | section |
| 36 | |
| 37 | open _root_.CategoryTheory _root_.Topology |
| 38 | |
| 39 | section |
| 40 | section |
| 41 | |
| 42 | open _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point |
| 43 | |
| 44 | noncomputable section |
| 45 | |
| 46 | variable (X : Over (Spec ↧ℂ)) (U : X.left.Opens) |
| 47 | |
| 48 | /-- An open subscheme with its induced complex structure. -/ |
| 49 | abbrev _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.openScheme : Over (Spec ↧ℂ) := |
| 50 | Over.mk (U.ι ≫ X.hom) |
| 51 | |
| 52 | /-- The inclusion of an open subscheme as a morphism over `Spec ℂ`. -/ |
| 53 | abbrev _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.openInclusion : |
| 54 | _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.openScheme X U ⟶ X := |
| 55 | Over.homMk U.ι rfl |
| 56 | |
| 57 | /-- The image of a complex point lying in `U` is contained in the image of its inclusion. -/ |
| 58 | lemma _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.point_range_subset (z : _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint X) (hz : z ∈ _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.overOpen U) : |
| 59 | Set.range z.left ⊆ Set.range U.ι := by |
| 60 | rintro y ⟨x, rfl⟩ |
| 61 | rw [Scheme.Opens.range_ι] |
| 62 | have hx : x = IsLocalRing.closedPoint ℂ := Subsingleton.elim (α := Spec ↧ℂ) _ _ |
| 63 | subst x |
| 64 | exact hz |
| 65 | |
| 66 | /-- A complex point in an open set factors through the corresponding open subscheme. -/ |
| 67 | def _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.liftToOpen (z : _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint X) (hz : z ∈ _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.overOpen U) : |
| 68 | Spec ↧ℂ ⟶ U.toScheme := |
| 69 | IsOpenImmersion.lift U.ι z.left (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.point_range_subset X U z hz) |
| 70 | |
| 71 | @[reassoc (attr := simp)] |
| 72 | lemma _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.liftToOpen_fac (z : _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint X) (hz : z ∈ _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.overOpen U) : |
| 73 | _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.liftToOpen X U z hz ≫ U.ι = z.left := |
| 74 | IsOpenImmersion.lift_fac _ _ _ |
| 75 | |
| 76 | /-- A point of `X` lying in `U`, regarded as a complex point of the open subscheme `U`. -/ |
| 77 | def _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.asOpenPoint (z : _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint X) (hz : z ∈ _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.overOpen U) : |
| 78 | _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.openScheme X U) := |
| 79 | Over.homMk (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.liftToOpen X U z hz) (by |
| 80 | change _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.liftToOpen X U z hz ≫ (U.ι ≫ X.hom) = 𝟙 _ |
| 81 | rw [← Category.assoc, _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.liftToOpen_fac] |
| 82 | exact Over.w z) |
| 83 | |
| 84 | /-- Complex points of an open subscheme are the ambient complex points lying in the open. -/ |
| 85 | def _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.openEquiv : |
| 86 | _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.openScheme X U) ≃ |
| 87 | {z : _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint X // z ∈ _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.overOpen U} where |
| 88 | toFun z := ⟨_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.map (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.openInclusion X U) z, by |
| 89 | change (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.map (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.openInclusion X U) z).underlying ∈ U |
| 90 | rw [_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.underlying_map] |
| 91 | exact z.underlying.property⟩ |
| 92 | invFun z := _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.asOpenPoint X U z.1 z.2 |
| 93 | left_inv z := by |
| 94 | apply Over.OverMorphism.ext |
| 95 | symm |
| 96 | apply IsOpenImmersion.lift_uniq U.ι (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.map (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.openInclusion X U) z).left |
| 97 | simp [_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.map] |
| 98 | right_inv z := Subtype.ext (Over.OverMorphism.ext (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.liftToOpen_fac X U z.1 z.2)) |
| 99 | |
| 100 | @[simp] |
| 101 | lemma _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.openEquiv_coe (z : _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.openScheme X U)) : |
| 102 | (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.openEquiv X U z).1 = _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.map (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.openInclusion X U) z := |
| 103 | rfl |
| 104 | |
| 105 | /-- The map from an open subscheme to its ambient open subspace is continuous. -/ |
| 106 | lemma _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.continuous_openEquiv : |
| 107 | @Continuous |
| 108 | (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.openScheme X U)) |
| 109 | {z : _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint X // z ∈ _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.overOpen U} |
| 110 | _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.analyticTopology (TopologicalSpace.induced Subtype.val _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.analyticTopology) |
| 111 | (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.openEquiv X U) := |
| 112 | @Continuous.subtype_mk |
| 113 | (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint X) |
| 114 | (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.openScheme X U)) |
| 115 | _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.analyticTopology _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.analyticTopology |
| 116 | (fun z ↦ z ∈ _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.overOpen U) (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.map (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.openInclusion X U)) |
| 117 | (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.continuous_map (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.openInclusion X U)) _ |
| 118 | |
| 119 | /-- Evaluation is unchanged when both a point and a section are transported across equal opens. -/ |
| 120 | lemma _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.evaluate_eq {Y : Over (Spec ↧ℂ)} |
| 121 | {V W : Y.left.Opens} (e : V = W) (t : Γ(Y.left, V)) (z : _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint Y) : |
| 122 | _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.evaluate V t z = _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.evaluate W (Y.left.presheaf.map (eqToHom e.symm).op t) z := by aesop |
| 123 | |
| 124 | /-- Evaluation commutes with the equivalence between an open subscheme and its ambient open. -/ |
| 125 | lemma _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.evaluate_openEquiv {V : U.toScheme.Opens} (t : Γ(U.toScheme, V)) |
| 126 | (z : _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.openScheme X U)) : |
| 127 | _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.evaluate (U.ι ''ᵁ V) ((U.ι.appIso V).inv t) (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.map (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.openInclusion X U) z) = |
| 128 | _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.evaluate V t z := by |
| 129 | rw [_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.evaluate_map] |
| 130 | let e : U.ι ⁻¹ᵁ U.ι ''ᵁ V = V := U.ι.preimage_image_eq V |
| 131 | let q := U.ι.app (U.ι ''ᵁ V) ((U.ι.appIso V).inv t) |
| 132 | have hq : q = U.toScheme.presheaf.map (eqToHom e).op t := by |
| 133 | change ((U.ι.appIso V).inv ≫ U.ι.app (U.ι ''ᵁ V)) t = _ |
| 134 | rw [U.ι.appIso_inv_app] |
| 135 | calc |
| 136 | _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.evaluate (U.ι ⁻¹ᵁ U.ι ''ᵁ V) q z = |
| 137 | _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.evaluate V (U.toScheme.presheaf.map (eqToHom e.symm).op q) z := |
| 138 | _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.evaluate_eq (Y := _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.openScheme X U) e q z |
| 139 | _ = _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.evaluate V t z := by |
| 140 | congr 2 |
| 141 | rw [hq] |
| 142 | change (U.toScheme.presheaf.map (eqToHom e).op ≫ |
| 143 | U.toScheme.presheaf.map (eqToHom e.symm).op) t = t |
| 144 | rw [← Functor.map_comp] |
| 145 | simp |
| 146 | rfl |
| 147 | |
| 148 | /-- The inverse map from the ambient open subspace is continuous. -/ |
| 149 | lemma _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.continuous_openEquiv_symm : |
| 150 | @Continuous |
| 151 | {z : _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint X // z ∈ _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.overOpen U} |
| 152 | (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.openScheme X U)) |
| 153 | (TopologicalSpace.induced Subtype.val _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.analyticTopology) _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.analyticTopology |
| 154 | (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.openEquiv X U).symm := by |
| 155 | rw [_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.continuous_iff_analyticSubbasis] |
| 156 | rintro W ⟨V, t, O, hO, rfl⟩ |
| 157 | let A : Set (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint X) := _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.overOpen (U.ι ''ᵁ V) ∩ |
| 158 | _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.evaluate (U.ι ''ᵁ V) ((U.ι.appIso V).inv t) ⁻¹' O |
| 159 | have hA : @IsOpen (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint X) _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.analyticTopology A := |
| 160 | _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.isOpen_overOpen_inter_preimage _ _ _ hO |
| 161 | rw [show (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.openEquiv X U).symm ⁻¹' |
| 162 | (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.overOpen V ∩ _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.evaluate V t ⁻¹' O) = Subtype.val ⁻¹' A by |
| 163 | ext y |
| 164 | let z := (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.openEquiv X U).symm y |
| 165 | have hy : _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.openEquiv X U z = y := |
| 166 | (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.openEquiv X U).apply_symm_apply y |
| 167 | rw [← hy] |
| 168 | simp only [Set.mem_preimage, Equiv.symm_apply_apply, Set.mem_inter_iff] |
| 169 | change (z ∈ _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.overOpen V ∧ _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.evaluate V t z ∈ O) ↔ |
| 170 | (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.map (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.openInclusion X U) z ∈ _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.overOpen (U.ι ''ᵁ V) ∧ |
| 171 | _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.evaluate (U.ι ''ᵁ V) ((U.ι.appIso V).inv t) (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.map (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.openInclusion X U) z) ∈ O) |
| 172 | rw [_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.evaluate_openEquiv] |
| 173 | exact and_congr_left' (by simp [_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.overOpen])] |
| 174 | exact @isOpen_induced |
| 175 | {z : _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint X // z ∈ _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.overOpen U} |
| 176 | (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint X) _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.analyticTopology Subtype.val A hA |
| 177 | |
| 178 | /-- Analytification of an open subscheme is the corresponding analytic open subspace. -/ |
| 179 | def _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.openHomeomorph : |
| 180 | @Homeomorph |
| 181 | (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.openScheme X U)) |
| 182 | {z : _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint X // z ∈ _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.overOpen U} |
| 183 | _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.analyticTopology (TopologicalSpace.induced Subtype.val _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.analyticTopology) where |
| 184 | toEquiv := _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.openEquiv X U |
| 185 | continuous_toFun := _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.continuous_openEquiv X U |
| 186 | continuous_invFun := _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.continuous_openEquiv_symm X U |
| 187 | |
| 188 | /-- Inclusion of an open subscheme induces an open embedding on complex points. -/ |
| 189 | lemma _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.isOpenEmbedding_map_open : |
| 190 | IsOpenEmbedding (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.map (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.openInclusion X U) : |
| 191 | _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.openScheme X U) → _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint X) := by |
| 192 | have hU : IsOpen (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.overOpen U : Set (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint X)) := _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.isOpen_overOpen (X := X) U |
| 193 | have h := hU.isOpenEmbedding_subtypeVal.comp (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.openHomeomorph X U).isOpenEmbedding |
| 194 | simpa [Function.comp_def, _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.openHomeomorph, _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.openEquiv] using h |
| 195 | |
| 196 | end |
| 197 | |
| 198 | |
| 199 | end |
| 200 | end |
| 201 | |
| 202 | end |
| 203 | |
| 204 | end OAI.AlgebraicGeometry.ComplexPoint.Open |