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.AnalyticLeftInverse |
| 7 | |
| 8 | /-! # Analytic Left At -/ |
| 9 | |
| 10 | namespace OAI.AlgebraicGeometry |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | open _root_.AlgebraicGeometry |
| 15 | |
| 16 | /-! |
| 17 | # Analytic local left inverses from section lifting |
| 18 | |
| 19 | -/ |
| 20 | |
| 21 | open _root_.CategoryTheory _root_.Topology _root_.TopologicalSpace Filter |
| 22 | |
| 23 | section |
| 24 | |
| 25 | universe u |
| 26 | |
| 27 | variable {X Y : Scheme.{u}} (i : Y ⟶ X) [IsClosedImmersion i] |
| 28 | |
| 29 | /-- Any family of sections on an intrinsic open lifts, after restriction, on a single |
| 30 | affine ambient neighborhood of the selected point. The lifts come from the |
| 31 | surjective closed-immersion map on affine sections. -/ |
| 32 | theorem ClosedImmersion.AnalyticLeftAt.Scheme.Hom.exists_affine_local_section_lifts |
| 33 | {J : Type*} (V : Y.Opens) (s : J → Γ(Y, V)) (y : Y) (hy : y ∈ V) : |
| 34 | ∃ (U : X.Opens) (_ : IsAffineOpen U) (hUV : i ⁻¹ᵁ U ≤ V), |
| 35 | i y ∈ U ∧ ∃ r : J → Γ(X, U), |
| 36 | ∀ j, i.app U (r j) = Y.presheaf.map (homOfLE hUV).op (s j) := by |
| 37 | obtain ⟨W, hW, hpre⟩ := i.isClosedEmbedding.isInducing.isOpen_iff.mp V.isOpen |
| 38 | have hyW : i y ∈ W := show y ∈ ⇑i ⁻¹' W from hpre ▸ hy |
| 39 | obtain ⟨_, ⟨U, hU, rfl⟩, hyU, hUW⟩ := |
| 40 | X.isBasis_affineOpens.exists_subset_of_mem_open hyW hW |
| 41 | have hUV : i ⁻¹ᵁ U ≤ V := fun z hz ↦ show z ∈ (V : Set Y) from hpre ▸ hUW hz |
| 42 | choose r hr using fun j => i.app_surjective U hU |
| 43 | (Y.presheaf.map (homOfLE hUV).op (s j)) |
| 44 | exact ⟨U, hU, hUV, hyU, r, hr⟩ |
| 45 | |
| 46 | end |
| 47 | |
| 48 | variable (X Y : Over (Spec ↧ℂ)) |
| 49 | (i : Y ⟶ X) (m d : ℕ) |
| 50 | [SmoothOfRelativeDimension m Y.hom] [SmoothOfRelativeDimension d X.hom] |
| 51 | |
| 52 | @[simp] theorem ComplexPoint.Basic.ComplexSchemePoint.inclusionInComplexCharts_at_center (z : ComplexPoint.Basic.ComplexSchemePoint Y) : |
| 53 | ComplexPoint.Basic.ComplexSchemePoint.inclusionInComplexCharts X Y i m d z |
| 54 | (ComplexPoint.Basic.ComplexSchemePoint.localChart Y m z z) = |
| 55 | ComplexPoint.Basic.ComplexSchemePoint.localChart X d (ComplexPoint.Basic.Point.map i z) (ComplexPoint.Basic.Point.map i z) := by |
| 56 | unfold ComplexPoint.Basic.ComplexSchemePoint.inclusionInComplexCharts |
| 57 | rw [(ComplexPoint.Basic.ComplexSchemePoint.localChart Y m z).left_inv (ComplexPoint.Basic.ComplexSchemePoint.mem_localChart_source Y m z)] |
| 58 | |
| 59 | /-- Analyticity is inherited from the morphism of smooth schemes. -/ |
| 60 | theorem ComplexPoint.Basic.ComplexSchemePoint.analyticAt_inclusionInComplexCharts (z : ComplexPoint.Basic.ComplexSchemePoint Y) : |
| 61 | AnalyticAt ℂ (ComplexPoint.Basic.ComplexSchemePoint.inclusionInComplexCharts X Y i m d z) |
| 62 | (ComplexPoint.Basic.ComplexSchemePoint.localChart Y m z z) := by |
| 63 | apply ComplexPoint.Basic.ComplexSchemePoint.analyticAt_localChart_symm_map Y X i m d z |
| 64 | ((ComplexPoint.Basic.ComplexSchemePoint.localChart Y m z).map_source (ComplexPoint.Basic.ComplexSchemePoint.mem_localChart_source Y m z)) |
| 65 | rw [(ComplexPoint.Basic.ComplexSchemePoint.localChart Y m z).left_inv (ComplexPoint.Basic.ComplexSchemePoint.mem_localChart_source Y m z)] |
| 66 | exact ComplexPoint.Basic.ComplexSchemePoint.mem_localChart_source X d (ComplexPoint.Basic.Point.map i z) |
| 67 | |
| 68 | /-- A smooth closed immersion has an analytic local left inverse in complex coordinates, |
| 69 | obtained by lifting the intrinsic coordinate sections. -/ |
| 70 | theorem ComplexPoint.Basic.ComplexSchemePoint.exists_analytic_localLeftInverse_of_isClosedImmersion [IsClosedImmersion i.left] |
| 71 | (z : ComplexPoint.Basic.ComplexSchemePoint Y) : |
| 72 | ∃ L : (Fin d → ℂ) → (Fin m → ℂ), |
| 73 | AnalyticAt ℂ L |
| 74 | (ComplexPoint.Basic.ComplexSchemePoint.inclusionInComplexCharts X Y i m d z |
| 75 | (ComplexPoint.Basic.ComplexSchemePoint.localChart Y m z z)) ∧ |
| 76 | (L ∘ ComplexPoint.Basic.ComplexSchemePoint.inclusionInComplexCharts X Y i m d z) =ᶠ[ |
| 77 | 𝓝 (ComplexPoint.Basic.ComplexSchemePoint.localChart Y m z z)] id := by |
| 78 | let D := ComplexPoint.Basic.ComplexSchemePoint.localEtaleCoordinates Y m z |
| 79 | have hzD : z.underlying ∈ D.ambientCoordinateOpen := by |
| 80 | simpa only [D, ComplexPoint.SmoothCoordinates.LocalEtaleCoordinates.ambientCoordinateOpen, Scheme.Opens.ι_image_top, |
| 81 | ComplexPoint.Basic.Point.overOpen, Set.mem_ofPred_eq] using |
| 82 | ComplexPoint.Basic.ComplexSchemePoint.mem_localEtaleCoordinates Y m z |
| 83 | obtain ⟨U, _hU, hUV, hzU, r, hr⟩ := (ClosedImmersion.AnalyticLeftAt.Scheme.Hom.exists_affine_local_section_lifts i.left) |
| 84 | D.ambientCoordinateOpen D.ambientCoordinateSection z.underlying hzD |
| 85 | let eY := ComplexPoint.Basic.ComplexSchemePoint.localChart Y m z |
| 86 | let eX := ComplexPoint.Basic.ComplexSchemePoint.localChart X d (ComplexPoint.Basic.Point.map i z) |
| 87 | let L : (Fin d → ℂ) → (Fin m → ℂ) := |
| 88 | fun w j => ComplexPoint.Basic.Point.evaluate U (r j) (eX.symm w) |
| 89 | have hzY : z ∈ eY.source := ComplexPoint.Basic.ComplexSchemePoint.mem_localChart_source Y m z |
| 90 | have hzX : ComplexPoint.Basic.Point.map i z ∈ eX.source := |
| 91 | ComplexPoint.Basic.ComplexSchemePoint.mem_localChart_source X d (ComplexPoint.Basic.Point.map i z) |
| 92 | have hzYt : eY z ∈ eY.target := eY.map_source hzY |
| 93 | have hzXt : eX (ComplexPoint.Basic.Point.map i z) ∈ eX.target := eX.map_source hzX |
| 94 | refine ⟨L, ?_, ?_⟩ |
| 95 | · rw [ComplexPoint.Basic.ComplexSchemePoint.inclusionInComplexCharts_at_center] |
| 96 | refine AnalyticAt.pi fun j ↦ ?_ |
| 97 | apply ComplexPoint.Basic.ComplexSchemePoint.analyticAt_localChart_symm_evaluate X d (ComplexPoint.Basic.Point.map i z) hzXt U (r j) |
| 98 | change eX.symm (eX (ComplexPoint.Basic.Point.map i z)) ∈ ComplexPoint.Basic.Point.overOpen U |
| 99 | rw [eX.left_inv hzX] |
| 100 | exact hzU |
| 101 | · have hc : ContinuousAt (fun v => ComplexPoint.Basic.Point.map i (eY.symm v)) (eY z) := |
| 102 | (ComplexPoint.Basic.Point.continuous_map i).continuousAt.comp (eY.continuousAt_symm hzYt) |
| 103 | have hX : ∀ᶠ v in 𝓝 (eY z), ComplexPoint.Basic.Point.map i (eY.symm v) ∈ eX.source := by |
| 104 | apply hc (eX.open_source.mem_nhds _) |
| 105 | change ComplexPoint.Basic.Point.map i (eY.symm (eY z)) ∈ eX.source |
| 106 | rw [eY.left_inv hzY] |
| 107 | exact hzX |
| 108 | have hU : ∀ᶠ v in 𝓝 (eY z), ComplexPoint.Basic.Point.map i (eY.symm v) ∈ ComplexPoint.Basic.Point.overOpen U := by |
| 109 | apply hc ((ComplexPoint.Basic.Point.isOpen_overOpen U).mem_nhds _) |
| 110 | change ComplexPoint.Basic.Point.map i (eY.symm (eY z)) ∈ ComplexPoint.Basic.Point.overOpen U |
| 111 | rw [eY.left_inv hzY] |
| 112 | exact hzU |
| 113 | filter_upwards [eY.open_target.mem_nhds hzYt, hX, hU] with v hvY hvX hvU |
| 114 | funext j |
| 115 | change ComplexPoint.Basic.Point.evaluate U (r j) |
| 116 | (eX.symm (eX (ComplexPoint.Basic.Point.map i (eY.symm v)))) = v j |
| 117 | rw [eX.left_inv hvX, ComplexPoint.Basic.Point.evaluate_map, hr, |
| 118 | ← ComplexPoint.Basic.Point.evaluate_res hUV (D.ambientCoordinateSection j) (eY.symm v) |
| 119 | ((ComplexPoint.Basic.Point.mem_overOpen_map_iff i _ U).mp hvU), |
| 120 | ← ComplexPoint.Basic.ComplexSchemePoint.localChart_apply_component_eq_evaluate Y m z (eY.symm v) (eY.map_target hvY) j] |
| 121 | exact congrFun (eY.right_inv hvY) j |
| 122 | |
| 123 | /-- The derivative of a smooth closed immersion has a continuous-linear left |
| 124 | inverse, obtained by differentiating the analytic local left inverse. -/ |
| 125 | theorem ComplexPoint.Basic.ComplexSchemePoint.exists_leftInverse_fderiv_inclusionInComplexCharts [IsClosedImmersion i.left] |
| 126 | (z : ComplexPoint.Basic.ComplexSchemePoint Y) : |
| 127 | ∃ P : (Fin d → ℂ) →L[ℂ] (Fin m → ℂ), |
| 128 | P.comp (fderiv ℂ (ComplexPoint.Basic.ComplexSchemePoint.inclusionInComplexCharts X Y i m d z) |
| 129 | (ComplexPoint.Basic.ComplexSchemePoint.localChart Y m z z)) = ContinuousLinearMap.id ℂ (Fin m → ℂ) := by |
| 130 | obtain ⟨L, hL, hleft⟩ := |
| 131 | ComplexPoint.Basic.ComplexSchemePoint.exists_analytic_localLeftInverse_of_isClosedImmersion X Y i m d z |
| 132 | let φ := ComplexPoint.Basic.ComplexSchemePoint.inclusionInComplexCharts X Y i m d z |
| 133 | let a := ComplexPoint.Basic.ComplexSchemePoint.localChart Y m z z |
| 134 | refine ⟨fderiv ℂ L (φ a), ?_⟩ |
| 135 | have hφ := ComplexPoint.Basic.ComplexSchemePoint.analyticAt_inclusionInComplexCharts X Y i m d z |
| 136 | have hc := hL.differentiableAt.hasFDerivAt.comp a hφ.differentiableAt.hasFDerivAt |
| 137 | exact (hc.congr_of_eventuallyEq hleft.symm).unique (hasFDerivAt_id a) |
| 138 | |
| 139 | end |
| 140 | |
| 141 | end OAI.AlgebraicGeometry |