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 | Released under Apache 2.0 license as described in the file LICENSE. |
| 4 | This file has been modified. |
| 5 | -/ |
| 6 | import OAI.AlgebraicGeometry.ClosedImmersion.AnalyticLeftAt |
| 7 | import OAI.AlgebraicGeometry.ComplexPoint.ClosedImmersion |
| 8 | import OAI.Analysis.Foundations.SplitDerivativeNormalChart |
| 9 | |
| 10 | /-! # Normal Coordinates -/ |
| 11 | |
| 12 | namespace OAI.AlgebraicGeometry.ClosedImmersion.NormalCoordinates.ComplexPoint |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | open _root_.AlgebraicGeometry |
| 17 | |
| 18 | /-! |
| 19 | # Normal coordinates for smooth closed immersions |
| 20 | |
| 21 | The derivative projection here comes from lifted algebraic coordinate sections. The normal |
| 22 | chart is then constructed by the inverse function theorem. Finally the topological |
| 23 | embedding theorem excludes remote branches and identifies the whole local analytic support |
| 24 | with zero normal coordinate. |
| 25 | -/ |
| 26 | |
| 27 | open _root_.CategoryTheory _root_.Topology Filter |
| 28 | |
| 29 | variable (X Y : Over (Spec ↧ℂ)) |
| 30 | (i : Y ⟶ X) (m d : ℕ) |
| 31 | [SmoothOfRelativeDimension m Y.hom] [SmoothOfRelativeDimension d X.hom] |
| 32 | [IsClosedImmersion i.left] (z : ComplexPoint.Basic.ComplexSchemePoint Y) |
| 33 | |
| 34 | /-- Let `i: Y → X` be a closed immersion of smooth schemes over `ℂ`, of respective dimensions `m` |
| 35 | and `d`, and let `z ∈ Y(ℂ)`. In the chosen analytic charts, the derivative of `i` is an |
| 36 | injective complex linear map `ℂ^m → ℂ^d`. This chooses a continuous complex linear left inverse |
| 37 | `P: ℂ^d → ℂ^m`, so `P ∘ D i = id`. -/ |
| 38 | def _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.closedImmersionDerivativeProjection : (Fin d → ℂ) →L[ℂ] (Fin m → ℂ) := |
| 39 | (ComplexPoint.Basic.ComplexSchemePoint.exists_leftInverse_fderiv_inclusionInComplexCharts |
| 40 | X Y i m d z).choose |
| 41 | |
| 42 | theorem _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.closedImmersionDerivativeProjection_leftInverse : |
| 43 | (ComplexPoint.Basic.ComplexSchemePoint.closedImmersionDerivativeProjection X Y i m d z).comp |
| 44 | (fderiv ℂ (ComplexPoint.Basic.ComplexSchemePoint.inclusionInComplexCharts X Y i m d z) |
| 45 | (ComplexPoint.Basic.ComplexSchemePoint.localChart Y m z z)) = ContinuousLinearMap.id ℂ (Fin m → ℂ) := |
| 46 | (ComplexPoint.Basic.ComplexSchemePoint.exists_leftInverse_fderiv_inclusionInComplexCharts |
| 47 | X Y i m d z).choose_spec |
| 48 | |
| 49 | /-- Let `i: Y → X` be a closed immersion of smooth complex schemes of dimensions `m,d`, and let `z |
| 50 | ∈ Y(ℂ)`. In the chosen charts write `g = e_X ∘ i ∘ e_Y⁻¹` and `a = e_Y(z)`. For the chosen |
| 51 | complex-linear left inverse `P` of `Dg(a)`, this local homeomorphism `ℂ^m × ker P → ℂ^d` is |
| 52 | `(v,w) ↦ g(v)+w` near `(a,0)`. -/ |
| 53 | def _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.closedImmersionNormalChart : |
| 54 | OpenPartialHomeomorph |
| 55 | ((Fin m → ℂ) × |
| 56 | (ComplexPoint.Basic.ComplexSchemePoint.closedImmersionDerivativeProjection X Y i m d z).ker) |
| 57 | (Fin d → ℂ) := |
| 58 | (Analysis.Foundations.SplitDerivativeNormalChart.HasStrictFDerivAt.normalChart (ComplexPoint.Basic.ComplexSchemePoint.analyticAt_inclusionInComplexCharts X Y i m d z).hasStrictFDerivAt) |
| 59 | (ComplexPoint.Basic.ComplexSchemePoint.closedImmersionDerivativeProjection X Y i m d z) |
| 60 | (ComplexPoint.Basic.ComplexSchemePoint.closedImmersionDerivativeProjection_leftInverse X Y i m d z) |
| 61 | |
| 62 | @[simp] theorem _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.closedImmersionNormalChart_apply |
| 63 | (v : (Fin m → ℂ) × |
| 64 | (ComplexPoint.Basic.ComplexSchemePoint.closedImmersionDerivativeProjection X Y i m d z).ker) : |
| 65 | ComplexPoint.Basic.ComplexSchemePoint.closedImmersionNormalChart X Y i m d z v = |
| 66 | ComplexPoint.Basic.ComplexSchemePoint.inclusionInComplexCharts X Y i m d z v.1 + v.2 := rfl |
| 67 | |
| 68 | theorem _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.closedImmersionNormalChart_mem_source : |
| 69 | (ComplexPoint.Basic.ComplexSchemePoint.localChart Y m z z, 0) ∈ |
| 70 | (ComplexPoint.Basic.ComplexSchemePoint.closedImmersionNormalChart X Y i m d z).source := |
| 71 | (Analysis.Foundations.SplitDerivativeNormalChart.HasStrictFDerivAt.normalChart_mem_source (ComplexPoint.Basic.ComplexSchemePoint.analyticAt_inclusionInComplexCharts X Y i m d z).hasStrictFDerivAt) _ _ |
| 72 | |
| 73 | theorem _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.closedImmersionNormalChart_mem_target : |
| 74 | ComplexPoint.Basic.ComplexSchemePoint.localChart X d (ComplexPoint.Basic.Point.map i z) (ComplexPoint.Basic.Point.map i z) ∈ |
| 75 | (ComplexPoint.Basic.ComplexSchemePoint.closedImmersionNormalChart X Y i m d z).target := by |
| 76 | simpa only [ComplexPoint.Basic.ComplexSchemePoint.closedImmersionNormalChart, ComplexPoint.Basic.ComplexSchemePoint.inclusionInComplexCharts_at_center] using |
| 77 | (Analysis.Foundations.SplitDerivativeNormalChart.HasStrictFDerivAt.normalChart_mem_target (ComplexPoint.Basic.ComplexSchemePoint.analyticAt_inclusionInComplexCharts X Y i m d z).hasStrictFDerivAt) |
| 78 | (ComplexPoint.Basic.ComplexSchemePoint.closedImmersionDerivativeProjection X Y i m d z) |
| 79 | (ComplexPoint.Basic.ComplexSchemePoint.closedImmersionDerivativeProjection_leftInverse X Y i m d z) |
| 80 | |
| 81 | @[simp] theorem _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.closedImmersionNormalChart_symm_center : |
| 82 | (ComplexPoint.Basic.ComplexSchemePoint.closedImmersionNormalChart X Y i m d z).symm |
| 83 | (ComplexPoint.Basic.ComplexSchemePoint.localChart X d (ComplexPoint.Basic.Point.map i z) (ComplexPoint.Basic.Point.map i z)) = |
| 84 | (ComplexPoint.Basic.ComplexSchemePoint.localChart Y m z z, 0) := by |
| 85 | simpa using |
| 86 | (ComplexPoint.Basic.ComplexSchemePoint.closedImmersionNormalChart X Y i m d z).left_inv |
| 87 | (ComplexPoint.Basic.ComplexSchemePoint.closedImmersionNormalChart_mem_source X Y i m d z) |
| 88 | |
| 89 | /-- The normal space has complex dimension `d - m`. -/ |
| 90 | theorem _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.closedImmersionNormalKernel_finrank : |
| 91 | Module.finrank ℂ |
| 92 | (ComplexPoint.Basic.ComplexSchemePoint.closedImmersionDerivativeProjection X Y i m d z).ker = |
| 93 | d - m := by |
| 94 | have hdim := |
| 95 | ((Analysis.Foundations.SplitDerivativeNormalChart.ContinuousLinearMap.splitKernelEquiv (fderiv ℂ (ComplexPoint.Basic.ComplexSchemePoint.inclusionInComplexCharts X Y i m d z) |
| 96 | (ComplexPoint.Basic.ComplexSchemePoint.localChart Y m z z))) |
| 97 | (ComplexPoint.Basic.ComplexSchemePoint.closedImmersionDerivativeProjection X Y i m d z) |
| 98 | (ComplexPoint.Basic.ComplexSchemePoint.closedImmersionDerivativeProjection_leftInverse X Y i m d z)).toLinearEquiv.finrank_eq |
| 99 | simp only [Module.finrank_prod, Module.finrank_pi, Fintype.card_fin] at hdim |
| 100 | omega |
| 101 | |
| 102 | /-- Near the selected ambient point, membership in the entire image is equivalent |
| 103 | to having zero normal coordinate. The forward direction uses the induced topology |
| 104 | to exclude image points whose intrinsic parameters are outside the coordinate neighborhood. -/ |
| 105 | theorem eventually_mem_range_iff_normal_eq_zero : |
| 106 | ∀ᶠ y in 𝓝 (ComplexPoint.Basic.Point.map i z), |
| 107 | y ∈ Set.range (ComplexPoint.Basic.Point.map i) ↔ |
| 108 | ((ComplexPoint.Basic.ComplexSchemePoint.closedImmersionNormalChart X Y i m d z).symm |
| 109 | (ComplexPoint.Basic.ComplexSchemePoint.localChart X d (ComplexPoint.Basic.Point.map i z) y)).2 = 0 := by |
| 110 | let eY := ComplexPoint.Basic.ComplexSchemePoint.localChart Y m z |
| 111 | let eX := ComplexPoint.Basic.ComplexSchemePoint.localChart X d (ComplexPoint.Basic.Point.map i z) |
| 112 | let eN := ComplexPoint.Basic.ComplexSchemePoint.closedImmersionNormalChart X Y i m d z |
| 113 | let g := ComplexPoint.Basic.Point.map i |
| 114 | have hzY : z ∈ eY.source := ComplexPoint.Basic.ComplexSchemePoint.mem_localChart_source Y m z |
| 115 | have hzX : g z ∈ eX.source := ComplexPoint.Basic.ComplexSchemePoint.mem_localChart_source X d (g z) |
| 116 | have hzN : (eY z, 0) ∈ eN.source := |
| 117 | ComplexPoint.Basic.ComplexSchemePoint.closedImmersionNormalChart_mem_source X Y i m d z |
| 118 | have hzNt : eX (g z) ∈ eN.target := |
| 119 | ComplexPoint.Basic.ComplexSchemePoint.closedImmersionNormalChart_mem_target X Y i m d z |
| 120 | have hcenter : eN.symm (eX (g z)) = (eY z, 0) := |
| 121 | ComplexPoint.Basic.ComplexSchemePoint.closedImmersionNormalChart_symm_center X Y i m d z |
| 122 | have hparam : ∀ᶠ w in 𝓝 z, w ∈ eY.source ∧ (eY w, 0) ∈ eN.source := by |
| 123 | filter_upwards [eY.open_source.mem_nhds hzY, |
| 124 | ((eY.continuousAt hzY).prodMk continuousAt_const) |
| 125 | (eN.open_source.mem_nhds hzN)] with w hwY hwN |
| 126 | exact ⟨hwY, hwN⟩ |
| 127 | rw [(ComplexPoint.Basic.ComplexSchemePoint.isInducing_map_of_closedImmersion i).nhds_eq_comap z, eventually_comap] at hparam |
| 128 | have hN : ∀ᶠ y in 𝓝 (g z), eX y ∈ eN.target := |
| 129 | (eX.continuousAt hzX) (eN.open_target.mem_nhds hzNt) |
| 130 | have hc : ContinuousAt (fun y => (eN.symm (eX y)).1) (g z) := |
| 131 | ((eN.continuousAt_symm hzNt).comp (eX.continuousAt hzX)).fst |
| 132 | have hback : ∀ᶠ y in 𝓝 (g z), |
| 133 | g (eY.symm (eN.symm (eX y)).1) ∈ eX.source := by |
| 134 | have hcont : ContinuousAt (fun y => g (eY.symm (eN.symm (eX y)).1)) (g z) := by |
| 135 | apply (ComplexPoint.Basic.Point.continuous_map i).continuousAt.comp |
| 136 | apply ContinuousAt.comp _ hc |
| 137 | change ContinuousAt eY.symm (eN.symm (eX (g z))).1 |
| 138 | rw [hcenter] |
| 139 | exact eY.continuousAt_symm (eY.map_source hzY) |
| 140 | apply hcont (eX.open_source.mem_nhds _) |
| 141 | change g (eY.symm (eN.symm (eX (g z))).1) ∈ eX.source |
| 142 | rw [hcenter, eY.left_inv hzY] |
| 143 | exact hzX |
| 144 | filter_upwards [hparam, hN, hback, eX.open_source.mem_nhds hzX] with y hpre hyN hyback hyX |
| 145 | constructor |
| 146 | · rintro ⟨w, rfl⟩ |
| 147 | obtain ⟨hwY, hwN⟩ := hpre w rfl |
| 148 | have hφ : eN (eY w, 0) = eX (g w) := by |
| 149 | change eX (g (eY.symm (eY w))) + 0 = _ |
| 150 | rw [eY.left_inv hwY, add_zero] |
| 151 | have heq := eN.left_inv hwN |
| 152 | rw [hφ] at heq |
| 153 | exact congrArg Prod.snd heq |
| 154 | · intro hn |
| 155 | change (eN.symm (eX y)).2 = 0 at hn |
| 156 | refine ⟨eY.symm (eN.symm (eX y)).1, ?_⟩ |
| 157 | apply eX.injOn hyback hyX |
| 158 | have hright := eN.right_inv hyN |
| 159 | change eX (g (eY.symm (eN.symm (eX y)).1)) + (eN.symm (eX y)).2 = eX y at hright |
| 160 | rw [hn] at hright |
| 161 | simpa only [Submodule.coe_zero, add_zero] using hright |
| 162 | |
| 163 | /-- An open ambient neighborhood on which normal coordinates detect the full |
| 164 | closed-immersion image, extracted from the neighborhood assertion. -/ |
| 165 | theorem _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.exists_open_normalCriterion : |
| 166 | ∃ W : Set (ComplexPoint.Basic.ComplexSchemePoint X), IsOpen W ∧ ComplexPoint.Basic.Point.map i z ∈ W ∧ |
| 167 | ∀ y ∈ W, y ∈ Set.range (ComplexPoint.Basic.Point.map i) ↔ |
| 168 | ((ComplexPoint.Basic.ComplexSchemePoint.closedImmersionNormalChart X Y i m d z).symm |
| 169 | (ComplexPoint.Basic.ComplexSchemePoint.localChart X d (ComplexPoint.Basic.Point.map i z) y)).2 = 0 := by |
| 170 | obtain ⟨W, hWsub, hWopen, hzW⟩ := mem_nhds_iff.mp |
| 171 | (eventually_mem_range_iff_normal_eq_zero X Y i m d z) |
| 172 | exact ⟨W, hWopen, hzW, hWsub⟩ |
| 173 | |
| 174 | /-- Let `i: Y → X` be a closed immersion of smooth schemes over `ℂ`, of respective dimensions `m` |
| 175 | and `d`, and let `z ∈ Y(ℂ)`. This chart maps a neighborhood of `i(z)` in `X(ℂ)` to `ℂ^m × ker |
| 176 | P`, where `P` is a chosen left inverse of the coordinate derivative of `i`. Throughout its |
| 177 | source, membership in `i(Y(ℂ))` is equivalent to the second coordinate being zero. -/ |
| 178 | def _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.closedImmersionFlatteningChart : |
| 179 | OpenPartialHomeomorph (ComplexPoint.Basic.ComplexSchemePoint X) |
| 180 | ((Fin m → ℂ) × |
| 181 | (ComplexPoint.Basic.ComplexSchemePoint.closedImmersionDerivativeProjection X Y i m d z).ker) := |
| 182 | ((ComplexPoint.Basic.ComplexSchemePoint.localChart X d (ComplexPoint.Basic.Point.map i z)).trans |
| 183 | (ComplexPoint.Basic.ComplexSchemePoint.closedImmersionNormalChart X Y i m d z).symm).restrOpen |
| 184 | (ComplexPoint.Basic.ComplexSchemePoint.exists_open_normalCriterion X Y i m d z).choose |
| 185 | (ComplexPoint.Basic.ComplexSchemePoint.exists_open_normalCriterion X Y i m d z).choose_spec.1 |
| 186 | |
| 187 | @[simp] theorem _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.closedImmersionFlatteningChart_apply (y : ComplexPoint.Basic.ComplexSchemePoint X) : |
| 188 | ComplexPoint.Basic.ComplexSchemePoint.closedImmersionFlatteningChart X Y i m d z y = |
| 189 | (ComplexPoint.Basic.ComplexSchemePoint.closedImmersionNormalChart X Y i m d z).symm |
| 190 | (ComplexPoint.Basic.ComplexSchemePoint.localChart X d (ComplexPoint.Basic.Point.map i z) y) := rfl |
| 191 | |
| 192 | @[simp] theorem _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.closedImmersionFlatteningChart_center : |
| 193 | ComplexPoint.Basic.ComplexSchemePoint.closedImmersionFlatteningChart X Y i m d z (ComplexPoint.Basic.Point.map i z) = |
| 194 | (ComplexPoint.Basic.ComplexSchemePoint.localChart Y m z z, 0) := |
| 195 | ComplexPoint.Basic.ComplexSchemePoint.closedImmersionNormalChart_symm_center X Y i m d z |
| 196 | |
| 197 | /-- Let `i: Y → X` be a closed immersion of smooth schemes over `ℂ`, of respective dimensions `m` |
| 198 | and `d`, and let `z ∈ Y(ℂ)`. Let `P: ℂ^d → ℂ^m` be the chosen left inverse of the derivative of |
| 199 | `i` in analytic coordinates. Since `ker P` has complex dimension `d-m`, this chooses a |
| 200 | continuous complex linear equivalence `ker P ≃ ℂ^{d-m}`. -/ |
| 201 | def _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.closedImmersionNormalKernelEquiv : |
| 202 | (ComplexPoint.Basic.ComplexSchemePoint.closedImmersionDerivativeProjection X Y i m d z).ker ≃L[ℂ] |
| 203 | (Fin (d - m) → ℂ) := |
| 204 | (LinearEquiv.ofFinrankEq _ _ (by |
| 205 | simpa only [Module.finrank_pi, Fintype.card_fin] using |
| 206 | ComplexPoint.Basic.ComplexSchemePoint.closedImmersionNormalKernel_finrank X Y i m d z)).toContinuousLinearEquiv |
| 207 | |
| 208 | /-- Let `i: Y → X` be a closed immersion of smooth schemes over `ℂ`, of respective dimensions `m` |
| 209 | and `d`, and let `z ∈ Y(ℂ)`. This chart maps a neighborhood of `i(z)` in `X(ℂ)` to `ℂ^m × |
| 210 | ℂ^{d-m}`. Its second coordinate is normal to `Y`, and its zero set throughout the source is |
| 211 | exactly the image of `Y(ℂ)` there. -/ |
| 212 | def _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.closedImmersionStandardFlatteningChart : |
| 213 | OpenPartialHomeomorph (ComplexPoint.Basic.ComplexSchemePoint X) |
| 214 | ((Fin m → ℂ) × (Fin (d - m) → ℂ)) := |
| 215 | (ComplexPoint.Basic.ComplexSchemePoint.closedImmersionFlatteningChart X Y i m d z).trans |
| 216 | (((ContinuousLinearEquiv.refl ℂ (Fin m → ℂ)).prodCongr |
| 217 | (ComplexPoint.Basic.ComplexSchemePoint.closedImmersionNormalKernelEquiv X Y i m d z)).toHomeomorph.toOpenPartialHomeomorph) |
| 218 | |
| 219 | @[simp] theorem _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.closedImmersionStandardFlatteningChart_apply (y : ComplexPoint.Basic.ComplexSchemePoint X) : |
| 220 | ComplexPoint.Basic.ComplexSchemePoint.closedImmersionStandardFlatteningChart X Y i m d z y = |
| 221 | ((ComplexPoint.Basic.ComplexSchemePoint.closedImmersionFlatteningChart X Y i m d z y).1, |
| 222 | ComplexPoint.Basic.ComplexSchemePoint.closedImmersionNormalKernelEquiv X Y i m d z |
| 223 | (ComplexPoint.Basic.ComplexSchemePoint.closedImmersionFlatteningChart X Y i m d z y).2) := rfl |
| 224 | |
| 225 | @[simp] theorem _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.closedImmersionStandardFlatteningChart_source : |
| 226 | (ComplexPoint.Basic.ComplexSchemePoint.closedImmersionStandardFlatteningChart X Y i m d z).source = |
| 227 | (ComplexPoint.Basic.ComplexSchemePoint.closedImmersionFlatteningChart X Y i m d z).source := by |
| 228 | simp only [ComplexPoint.Basic.ComplexSchemePoint.closedImmersionStandardFlatteningChart, OpenPartialHomeomorph.trans_source, |
| 229 | Homeomorph.toOpenPartialHomeomorph_source, Set.preimage_univ, Set.inter_univ] |
| 230 | |
| 231 | @[simp] theorem _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.closedImmersionStandardFlatteningChart_center : |
| 232 | ComplexPoint.Basic.ComplexSchemePoint.closedImmersionStandardFlatteningChart X Y i m d z |
| 233 | (ComplexPoint.Basic.Point.map i z) = (ComplexPoint.Basic.ComplexSchemePoint.localChart Y m z z, 0) := by simp |
| 234 | |
| 235 | end |
| 236 | |
| 237 | end OAI.AlgebraicGeometry.ClosedImmersion.NormalCoordinates.ComplexPoint |