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