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.NormalCoordinatesAt |
| 7 | import OAI.AlgebraicTopology.LocalHomology.HolomorphicNormalTransition |
| 8 | |
| 9 | /-! # Holomorphic Charts -/ |
| 10 | |
| 11 | namespace OAI.AlgebraicGeometry |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | open _root_.AlgebraicGeometry |
| 16 | open _root_.OpenPartialHomeomorph |
| 17 | |
| 18 | /-! |
| 19 | # Holomorphic support-flattening charts |
| 20 | |
| 21 | Restricting to the open loci where a normal coordinate change and its inverse are analytic |
| 22 | upgrades centerwise analyticity to analyticity throughout each selected chart. All coordinate |
| 23 | changes come from the smooth closed immersion constructed earlier. |
| 24 | -/ |
| 25 | |
| 26 | open _root_.CategoryTheory _root_.Topology Filter |
| 27 | |
| 28 | namespace ClosedImmersion.HolomorphicCharts.OpenPartialHomeomorph |
| 29 | |
| 30 | variable {E F : Type*} [NormedAddCommGroup E] [NormedSpace ℂ E] |
| 31 | [NormedAddCommGroup F] [NormedSpace ℂ F] [CompleteSpace E] [CompleteSpace F] |
| 32 | (e : OpenPartialHomeomorph E F) |
| 33 | |
| 34 | /-- Let `E` and `F` be complex Banach spaces and `e` a homeomorphism between open subsets of them. |
| 35 | This is the open set of points `x` in the source where `e` is complex analytic at `x` and its |
| 36 | inverse is complex analytic at `e(x)`. -/ |
| 37 | def biAnalyticLocus : Set E := |
| 38 | {x | AnalyticAt ℂ e x} ∩ (e.source ∩ e ⁻¹' {y | AnalyticAt ℂ e.symm y}) |
| 39 | |
| 40 | theorem biAnalyticLocus_isOpen : IsOpen (biAnalyticLocus e) := |
| 41 | (isOpen_analyticAt ℂ e).inter (e.isOpen_inter_preimage (isOpen_analyticAt ℂ e.symm)) |
| 42 | |
| 43 | /-- Let `E` and `F` be complex Banach spaces and `e` a homeomorphism between open subsets. Restrict |
| 44 | its source to those `x` where both `e` at `x` and `e⁻¹` at `e(x)` are complex analytic. This is |
| 45 | the resulting homeomorphism between open subsets, analytic in both directions. -/ |
| 46 | def biAnalyticRestrict : OpenPartialHomeomorph E F := |
| 47 | e.restrOpen (biAnalyticLocus e) (biAnalyticLocus_isOpen e) |
| 48 | |
| 49 | end ClosedImmersion.HolomorphicCharts.OpenPartialHomeomorph |
| 50 | |
| 51 | open OAI.AlgebraicTopology.Singular |
| 52 | |
| 53 | variable (X Y : Over (Spec ↧ℂ)) |
| 54 | (i : Y ⟶ X) (m d : ℕ) |
| 55 | [SmoothOfRelativeDimension m Y.hom] [SmoothOfRelativeDimension d X.hom] |
| 56 | [IsClosedImmersion i.left] (z : ComplexPoint.Basic.ComplexSchemePoint Y) |
| 57 | |
| 58 | /-- Let `i: Y → X` be a closed immersion of smooth schemes over `ℂ`, of respective dimensions `m` |
| 59 | and `d`, and let `z ∈ Y(ℂ)`. Let `P` be the chosen left inverse of the coordinate derivative of |
| 60 | `i`. This continuous complex linear equivalence `ℂ^m × ker P ≃ ℂ^m × ℂ^{d-m}` leaves the first |
| 61 | coordinate fixed and uses a chosen basis on the normal space `ker P`. -/ |
| 62 | def ComplexPoint.Basic.ComplexSchemePoint.closedImmersionNormalCoordinatesLinearEquiv : |
| 63 | ((Fin m → ℂ) × |
| 64 | (ComplexPoint.Basic.ComplexSchemePoint.closedImmersionDerivativeProjection X Y i m d z).ker) ≃L[ℂ] |
| 65 | ((Fin m → ℂ) × (Fin (d - m) → ℂ)) := |
| 66 | (ContinuousLinearEquiv.refl ℂ (Fin m → ℂ)).prodCongr |
| 67 | (ComplexPoint.Basic.ComplexSchemePoint.closedImmersionNormalKernelEquiv X Y i m d z) |
| 68 | |
| 69 | /-- Let `i: Y → X` be a closed immersion of smooth complex schemes of dimensions `m,d`, and let `z |
| 70 | ∈ Y(ℂ)`. In the chosen analytic charts write `g = e_X ∘ i ∘ e_Y⁻¹` and `a = e_Y(z)`. Choose a |
| 71 | complex linear left inverse `P` of `Dg(a)`. This local homeomorphism from `ℂ^d` to `ℂ^m × |
| 72 | ℂ^{d-m}` inverts `(v,w) ↦ g(v)+w` near `(a,0)` and identifies `ker P` with `ℂ^{d-m}` using a |
| 73 | chosen basis. -/ |
| 74 | def ComplexPoint.Basic.ComplexSchemePoint.closedImmersionNormalCoordinateChange : |
| 75 | OpenPartialHomeomorph (Fin d → ℂ) ((Fin m → ℂ) × (Fin (d - m) → ℂ)) := |
| 76 | (ComplexPoint.Basic.ComplexSchemePoint.closedImmersionNormalChart X Y i m d z).symm.trans |
| 77 | (ComplexPoint.Basic.ComplexSchemePoint.closedImmersionNormalCoordinatesLinearEquiv X Y i m d z).toHomeomorph.toOpenPartialHomeomorph |
| 78 | |
| 79 | /-- Let `i: Y → X` be a closed immersion of smooth schemes over `ℂ`, of respective dimensions `m` |
| 80 | and `d`, and let `z ∈ Y(ℂ)`. This chart maps a neighborhood of `i(z)` in `X(ℂ)` into `ℂ^m × |
| 81 | ℂ^{d-m}`, with the image of `Y(ℂ)` equal to the zero set of the normal coordinate on the source. |
| 82 | The coordinate change from an ambient analytic chart and its inverse are holomorphic throughout |
| 83 | their domains. -/ |
| 84 | def ComplexPoint.Basic.ComplexSchemePoint.closedImmersionHolomorphicFlatteningChart : |
| 85 | OpenPartialHomeomorph (ComplexPoint.Basic.ComplexSchemePoint X) |
| 86 | ((Fin m → ℂ) × (Fin (d - m) → ℂ)) := |
| 87 | ((ComplexPoint.Basic.ComplexSchemePoint.localChart X d (ComplexPoint.Basic.Point.map i z)).trans |
| 88 | (ClosedImmersion.HolomorphicCharts.OpenPartialHomeomorph.biAnalyticRestrict |
| 89 | (ComplexPoint.Basic.ComplexSchemePoint.closedImmersionNormalCoordinateChange X Y i m d z))).restrOpen |
| 90 | (ComplexPoint.Basic.ComplexSchemePoint.closedImmersionStandardFlatteningChart X Y i m d z).source |
| 91 | (ComplexPoint.Basic.ComplexSchemePoint.closedImmersionStandardFlatteningChart X Y i m d z).open_source |
| 92 | |
| 93 | end |
| 94 | |
| 95 | end OAI.AlgebraicGeometry |