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.AlgebraicTopology.LocalHomology.ChartFundamentalClassInvariance |
| 7 | import OAI.AlgebraicTopology.LocalHomology.ChartFundamentalClassGenerator |
| 8 | import Mathlib.Analysis.Calculus.FDeriv.Prod |
| 9 | |
| 10 | /-! # Holomorphic Normal Transition -/ |
| 11 | |
| 12 | namespace OAI.AlgebraicTopology.LocalHomology.HolomorphicNormalTransition.Singular |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | /-! |
| 17 | # The normal derivative of a support-preserving holomorphic transition |
| 18 | |
| 19 | Preservation of the zero-normal plane forces the tangent-to-normal derivative block to |
| 20 | vanish. Differentiating the local inverse identity then constructs inverse normal blocks. |
| 21 | Invertibility and orientation preservation of the normal map both follow from the given |
| 22 | holomorphic support-preserving coordinate transition. |
| 23 | -/ |
| 24 | |
| 25 | open _root_.Topology Filter _root_.CategoryTheory |
| 26 | |
| 27 | section GeneralNormal |
| 28 | |
| 29 | variable {E N : Type} [NormedAddCommGroup E] [NormedSpace ℂ E] |
| 30 | [NormedAddCommGroup N] [NormedSpace ℂ N] |
| 31 | |
| 32 | /-- Let `E,N` be complex normed vector spaces and `A: E × N → E × N` a continuous complex-linear |
| 33 | map. Its normal block is the continuous linear map `N → N` given by `v ↦ (A(0,v)).2`, the second |
| 34 | component of `A` on the second summand. -/ |
| 35 | def normalBlock (A : (E × N) →L[ℂ] (E × N)) : N →L[ℂ] N := |
| 36 | (ContinuousLinearMap.snd ℂ E N).comp (A.comp (ContinuousLinearMap.inr ℂ E N)) |
| 37 | |
| 38 | @[simp] theorem normalBlock_apply (A : (E × N) →L[ℂ] (E × N)) (v : N) : |
| 39 | normalBlock A v = (A (0, v)).2 := rfl |
| 40 | |
| 41 | /-- Differentiating preservation of the zero-normal plane kills the mixed derivative. -/ |
| 42 | theorem normal_tangent_derivative_eq_zero {f : (E × N) → (E × N)} |
| 43 | {A : (E × N) →L[ℂ] (E × N)} {a : E} |
| 44 | (hf : HasFDerivAt f A (a, 0)) |
| 45 | (hplane : ∀ᶠ v in 𝓝 a, (f (v, 0)).2 = 0) (v : E) : (A (v, 0)).2 = 0 := by |
| 46 | have hc := (ContinuousLinearMap.snd ℂ E N).hasFDerivAt.comp a |
| 47 | (hf.comp a (ContinuousLinearMap.inl ℂ E N).hasFDerivAt) |
| 48 | have hp : (fun v : E => (f (v, 0)).2) =ᶠ[𝓝 a] fun _ => (0 : N) := hplane |
| 49 | have heq := (hc.congr_of_eventuallyEq hp.symm).unique (hasFDerivAt_const (0 : N) a) |
| 50 | exact DFunLike.congr_fun heq v |
| 51 | |
| 52 | /-- The normal blocks inherit a left inverse from a split ambient derivative |
| 53 | when the inverse derivative preserves the tangent plane. -/ |
| 54 | theorem normalBlock_leftInverse (A B : (E × N) →L[ℂ] (E × N)) |
| 55 | (hBA : B.comp A = ContinuousLinearMap.id ℂ (E × N)) |
| 56 | (hBT : ∀ v : E, (B (v, 0)).2 = 0) : |
| 57 | Function.LeftInverse (normalBlock B) (normalBlock A) := by |
| 58 | intro v |
| 59 | have h := congrArg Prod.snd (DFunLike.congr_fun hBA (0, v)) |
| 60 | have hs : A (0, v) = ((A (0, v)).1, 0) + (0, (A (0, v)).2) := by simp |
| 61 | change (B (A (0, v))).2 = v at h |
| 62 | rw [hs, map_add, Prod.snd_add, hBT, zero_add] at h |
| 63 | exact h |
| 64 | |
| 65 | variable (e : OpenPartialHomeomorph (E × N) (E × N)) (a : E) |
| 66 | (ha : (a, 0) ∈ e.source) |
| 67 | (hplane : ∀ p ∈ e.source, (e p).2 = 0 ↔ p.2 = 0) |
| 68 | (he : AnalyticAt ℂ e (a, 0)) (hei : AnalyticAt ℂ e.symm (e (a, 0))) |
| 69 | |
| 70 | omit [NormedSpace ℂ E] [NormedSpace ℂ N] in |
| 71 | include ha hplane in |
| 72 | theorem normalTransition_center_normal : (e (a, 0)).2 = 0 := |
| 73 | (hplane (a, 0) ha).mpr rfl |
| 74 | |
| 75 | include ha hplane he in |
| 76 | theorem normalTransition_tangent_derivative (v : E) : |
| 77 | (fderiv ℂ e (a, 0) (v, 0)).2 = 0 := by |
| 78 | apply normal_tangent_derivative_eq_zero he.differentiableAt.hasFDerivAt |
| 79 | filter_upwards [(continuousAt_id.prodMk continuousAt_const) |
| 80 | (e.open_source.mem_nhds ha)] with w hw |
| 81 | exact (hplane (w, 0) hw).mpr rfl |
| 82 | |
| 83 | include ha hplane hei in |
| 84 | theorem normalTransition_inverse_tangent_derivative (v : E) : |
| 85 | (fderiv ℂ e.symm (e (a, 0)) (v, 0)).2 = 0 := by |
| 86 | have hcenter : e (a, 0) = ((e (a, 0)).1, (0 : N)) := |
| 87 | Prod.ext rfl (normalTransition_center_normal e a ha hplane) |
| 88 | have hder := hei.differentiableAt.hasFDerivAt |
| 89 | rw [hcenter] at hder |
| 90 | have htarget : ((e (a, 0)).1, (0 : N)) ∈ e.target := hcenter ▸ e.map_source ha |
| 91 | have hzero : ∀ᶠ w in 𝓝 (e (a, 0)).1, (e.symm (w, 0)).2 = 0 := by |
| 92 | filter_upwards [(continuousAt_id.prodMk continuousAt_const) |
| 93 | (e.open_target.mem_nhds htarget)] with w hw |
| 94 | change (w, 0) ∈ e.target at hw |
| 95 | apply (hplane (e.symm (w, 0)) (e.map_target hw)).mp |
| 96 | rw [e.right_inv hw] |
| 97 | simpa only [← hcenter] using normal_tangent_derivative_eq_zero hder hzero v |
| 98 | |
| 99 | include ha he hei in |
| 100 | theorem normalTransition_derivative_leftInverse : |
| 101 | (fderiv ℂ e.symm (e (a, 0))).comp (fderiv ℂ e (a, 0)) = |
| 102 | ContinuousLinearMap.id ℂ (E × N) := by |
| 103 | have h := hei.differentiableAt.hasFDerivAt.comp (a, (0 : N)) he.differentiableAt.hasFDerivAt |
| 104 | have hi : (e.symm ∘ e) =ᶠ[𝓝 (a, (0 : N))] id := e.eventually_left_inverse ha |
| 105 | exact (h.congr_of_eventuallyEq hi.symm).unique (hasFDerivAt_id _) |
| 106 | |
| 107 | include ha he hei in |
| 108 | theorem normalTransition_derivative_rightInverse : |
| 109 | (fderiv ℂ e (a, 0)).comp (fderiv ℂ e.symm (e (a, 0))) = |
| 110 | ContinuousLinearMap.id ℂ (E × N) := by |
| 111 | have hder : HasFDerivAt e (fderiv ℂ e (a, 0)) (e.symm (e (a, 0))) := by |
| 112 | rw [e.left_inv ha] |
| 113 | exact he.differentiableAt.hasFDerivAt |
| 114 | have h := hder.comp (e (a, 0)) hei.differentiableAt.hasFDerivAt |
| 115 | have hi : (e ∘ e.symm) =ᶠ[𝓝 (e (a, (0 : N)))] id := e.eventually_right_inverse' ha |
| 116 | exact (h.congr_of_eventuallyEq hi.symm).unique (hasFDerivAt_id _) |
| 117 | |
| 118 | /-- Let `e` be a local homeomorphism of `E × N`, where `E,N` are complex normed vector spaces, |
| 119 | preserving the locus `N = 0`. Suppose `e` and its inverse are analytic at `(a,0)` and `e(a,0)`. |
| 120 | This continuous complex-linear equivalence on `N` is `v ↦ (De_(a,0)(0,v)).2`; its inverse is the |
| 121 | same block of the derivative of `e⁻¹` at `e(a,0)`. -/ |
| 122 | def normalTransitionDerivativeEquiv : N ≃L[ℂ] N where |
| 123 | toLinearEquiv := |
| 124 | { toLinearMap := normalBlock (fderiv ℂ e (a, 0)) |
| 125 | invFun := normalBlock (fderiv ℂ e.symm (e (a, 0))) |
| 126 | left_inv := normalBlock_leftInverse _ _ |
| 127 | (normalTransition_derivative_leftInverse e a ha he hei) |
| 128 | (normalTransition_inverse_tangent_derivative e a ha hplane hei) |
| 129 | right_inv := normalBlock_leftInverse _ _ |
| 130 | (normalTransition_derivative_rightInverse e a ha he hei) |
| 131 | (normalTransition_tangent_derivative e a ha hplane he) } |
| 132 | continuous_toFun := (normalBlock (fderiv ℂ e (a, 0))).continuous |
| 133 | continuous_invFun := (normalBlock (fderiv ℂ e.symm (e (a, 0)))).continuous |
| 134 | |
| 135 | @[simp] theorem normalTransitionDerivativeEquiv_apply (v : N) : |
| 136 | normalTransitionDerivativeEquiv e a ha hplane he hei v = |
| 137 | (fderiv ℂ e (a, 0) (0, v)).2 := rfl |
| 138 | |
| 139 | /-- The map on a transverse normal fiber has the normal derivative. -/ |
| 140 | theorem normalTransition_hasFDerivAt : |
| 141 | HasFDerivAt (fun v : N => (e (a, v)).2) |
| 142 | (normalTransitionDerivativeEquiv e a ha hplane he hei).toContinuousLinearMap 0 := by |
| 143 | have h := (ContinuousLinearMap.snd ℂ E N).hasFDerivAt.comp (0 : N) |
| 144 | (he.differentiableAt.hasFDerivAt.comp (0 : N) (hasFDerivAt_prodMk_right a 0)) |
| 145 | convert h using 1 <;> rfl |
| 146 | |
| 147 | end GeneralNormal |
| 148 | |
| 149 | variable {E : Type} [NormedAddCommGroup E] [NormedSpace ℂ E] |
| 150 | |
| 151 | variable (c : ℕ) |
| 152 | (e : OpenPartialHomeomorph (E × (Fin c → ℂ)) (E × (Fin c → ℂ))) (a : E) |
| 153 | (ha : (a, 0) ∈ e.source) |
| 154 | (hplane : ∀ p ∈ e.source, (e p).2 = 0 ↔ p.2 = 0) |
| 155 | (he : AnalyticAt ℂ e (a, 0)) (hei : AnalyticAt ℂ e.symm (e (a, 0))) |
| 156 | |
| 157 | /-- Let `E` be a complex normed vector space and `e` a local coordinate change on `E × ℂ^c`. Fix `a |
| 158 | ∈ E`. This function `ℂ^c → ℂ^c` sends `v` to the normal component `(e(a,v)).2`. Its geometric |
| 159 | domain is the set of `v` for which `(a,v)` lies in the source of `e`. -/ |
| 160 | def normalTransitionMap (v : Fin c → ℂ) : Fin c → ℂ := (e (a, v)).2 |
| 161 | |
| 162 | /-- Only normal parameters whose full points are in the transition domain are used. -/ |
| 163 | def normalTransitionDomain : Set (Fin c → ℂ) := {v | (a, v) ∈ e.source} |
| 164 | |
| 165 | omit [NormedSpace ℂ E] in |
| 166 | theorem normalTransitionDomain_isOpen : IsOpen (normalTransitionDomain c e a) := |
| 167 | e.open_source.preimage (continuous_const.prodMk continuous_id) |
| 168 | |
| 169 | omit [NormedSpace ℂ E] in |
| 170 | include ha hplane in |
| 171 | @[simp] theorem normalTransitionMap_zero : normalTransitionMap c e a 0 = 0 := |
| 172 | normalTransition_center_normal e a ha hplane |
| 173 | |
| 174 | omit [NormedSpace ℂ E] in |
| 175 | theorem normalTransitionMap_continuousOn : |
| 176 | ContinuousOn (normalTransitionMap c e a) (normalTransitionDomain c e a) := |
| 177 | (e.continuousOn.comp (continuous_const.prodMk continuous_id).continuousOn |
| 178 | (fun _ hv => hv)).snd |
| 179 | |
| 180 | include ha hplane he hei in |
| 181 | /-- The normal map preserves the exactly normalized complex class on a sufficiently small |
| 182 | normal neighborhood. -/ |
| 183 | theorem exists_open_normalTransition_localClass_invariance : |
| 184 | ∃ (W : Set (Fin c → ℂ)) (hW : W ⊆ normalTransitionDomain c e a) |
| 185 | (hne : ∀ v, v ∈ W → v ≠ 0 → normalTransitionMap c e a v ≠ 0), |
| 186 | IsOpen W ∧ 0 ∈ W ∧ |
| 187 | ∀ z : Singular.Cohomology.RelativeHomology ℚ (Singular.RelativePairExcision.neighborhoodPointComplementPair W 0) (2 * c), |
| 188 | Singular.CohomologyTo.relativeHomologyMap ℚ (2 * c) (Singular.RelativePairExcision.neighborhoodPointComplementPairMap W 0) z = |
| 189 | ComplexClass.Singular.standardComplexLocalClass ℚ c → |
| 190 | Singular.CohomologyTo.relativeHomologyMap ℚ (2 * c) |
| 191 | (ComplexClassDifferentiableInvariance.Singular.complexNeighborhoodPuncturedPairMapOf c W (normalTransitionMap c e a) |
| 192 | ((normalTransitionMap_continuousOn c e a).mono hW) |
| 193 | hne) z = ComplexClass.Singular.standardComplexLocalClass ℚ c := by |
| 194 | let L := normalTransitionDerivativeEquiv e a ha hplane he hei |
| 195 | let A := ChartFundamentalClassInvariance.Singular.complexMatrixOfContinuousLinearMap c L.toContinuousLinearMap |
| 196 | have hA : A.det ≠ 0 := |
| 197 | ChartFundamentalClassInvariance.Singular.complexMatrixOfContinuousLinearMap_det_ne_zero c L.toContinuousLinearMap L.injective |
| 198 | have hAL : (A.mulVecLin.toContinuousLinearMap : (Fin c → ℂ) →L[ℂ] (Fin c → ℂ)) = |
| 199 | L.toContinuousLinearMap := |
| 200 | ContinuousLinearMap.ext fun v => |
| 201 | ChartFundamentalClassInvariance.Singular.complexMatrixOfContinuousLinearMap_mulVec c L.toContinuousLinearMap v |
| 202 | apply ComplexClassDifferentiableInvariance.Singular.exists_open_complexDifferentiable_localClass_invariance c A hA |
| 203 | (normalTransitionDomain c e a) (normalTransitionDomain_isOpen c e a) ha |
| 204 | (normalTransitionMap c e a) (normalTransitionMap_continuousOn c e a) |
| 205 | (normalTransitionMap_zero c e a ha hplane) |
| 206 | rw [hAL] |
| 207 | exact normalTransition_hasFDerivAt e a ha hplane he hei |
| 208 | |
| 209 | end |
| 210 | |
| 211 | end OAI.AlgebraicTopology.LocalHomology.HolomorphicNormalTransition.Singular |