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 Mathlib.Analysis.Calculus.InverseFunctionTheorem.FDeriv |
| 7 | import Mathlib.Analysis.Calculus.FDeriv.Add |
| 8 | import Mathlib.Analysis.Calculus.FDeriv.Prod |
| 9 | import Mathlib.Analysis.Normed.Module.FiniteDimension |
| 10 | |
| 11 | /-! # Split Derivative Normal Chart -/ |
| 12 | |
| 13 | namespace OAI.Analysis.Foundations.SplitDerivativeNormalChart |
| 14 | |
| 15 | noncomputable section |
| 16 | |
| 17 | open _root_.ContinuousLinearMap |
| 18 | open _root_.HasStrictFDerivAt |
| 19 | |
| 20 | /-! |
| 21 | # Normal coordinates from a split derivative |
| 22 | |
| 23 | A map with a split injective strict derivative extends to a local coordinate map |
| 24 | by adding vectors in the kernel of a left inverse. This is an application of the inverse |
| 25 | function theorem, not an assumed flattening equivalence. The zero-normal slice is exactly |
| 26 | the original parametrization on the coordinate domain. Identifying that slice |
| 27 | with an entire geometric support additionally requires a local embedding assertion. |
| 28 | -/ |
| 29 | |
| 30 | open _root_.Topology |
| 31 | |
| 32 | namespace ContinuousLinearMap |
| 33 | |
| 34 | variable {𝕜 E F : Type*} [NontriviallyNormedField 𝕜] [CompleteSpace 𝕜] |
| 35 | [NormedAddCommGroup E] [NormedSpace 𝕜 E] |
| 36 | [NormedAddCommGroup F] [NormedSpace 𝕜 F] |
| 37 | [FiniteDimensional 𝕜 E] [FiniteDimensional 𝕜 F] |
| 38 | |
| 39 | /-- Let `E,F` be finite-dimensional normed vector spaces over a complete nontrivially normed field |
| 40 | `𝕜`. If continuous linear maps `A: E → F` and `P: F → E` satisfy `P ∘ A = id`, this continuous |
| 41 | linear equivalence `E × ker(P) ≅ F` sends `(v,n)` to `A(v)+n`. Its inverse sends `y` to |
| 42 | `(P(y),y-A(P(y)))`. -/ |
| 43 | def splitKernelEquiv (A : E →L[𝕜] F) (P : F →L[𝕜] E) |
| 44 | (h : P.comp A = ContinuousLinearMap.id 𝕜 E) : (E × P.ker) ≃L[𝕜] F := |
| 45 | LinearEquiv.toContinuousLinearEquiv |
| 46 | { toFun := fun z => A z.1 + z.2 |
| 47 | invFun := fun y => (P y, ⟨y - A (P y), by |
| 48 | have hPA : P (A (P y)) = P y := DFunLike.congr_fun h (P y) |
| 49 | change P (y - A (P y)) = 0 |
| 50 | rw [map_sub, hPA, sub_self]⟩) |
| 51 | left_inv := by |
| 52 | intro z |
| 53 | have hPA : P (A z.1) = z.1 := DFunLike.congr_fun h z.1 |
| 54 | have hz : P (z.2 : F) = 0 := z.2.property |
| 55 | ext <;> simp [hPA, hz] |
| 56 | right_inv := by intro y; dsimp; abel |
| 57 | map_add' := by intros; simp only [Prod.fst_add, Prod.snd_add, map_add, |
| 58 | Submodule.coe_add]; abel |
| 59 | map_smul' := by intros; simp } |
| 60 | |
| 61 | @[simp] theorem splitKernelEquiv_apply (A : E →L[𝕜] F) (P : F →L[𝕜] E) |
| 62 | (h : P.comp A = ContinuousLinearMap.id 𝕜 E) (z : E × P.ker) : |
| 63 | (splitKernelEquiv A) P h z = A z.1 + z.2 := rfl |
| 64 | |
| 65 | @[simp] theorem splitKernelEquiv_symm_fst (A : E →L[𝕜] F) (P : F →L[𝕜] E) |
| 66 | (h : P.comp A = ContinuousLinearMap.id 𝕜 E) (y : F) : |
| 67 | (((splitKernelEquiv A) P h).symm y).1 = P y := rfl |
| 68 | |
| 69 | end ContinuousLinearMap |
| 70 | |
| 71 | namespace HasStrictFDerivAt |
| 72 | |
| 73 | variable {𝕜 E F : Type*} [NontriviallyNormedField 𝕜] [CompleteSpace 𝕜] |
| 74 | [NormedAddCommGroup E] [NormedSpace 𝕜 E] [CompleteSpace E] |
| 75 | [NormedAddCommGroup F] [NormedSpace 𝕜 F] |
| 76 | [FiniteDimensional 𝕜 E] [FiniteDimensional 𝕜 F] |
| 77 | {f : E → F} {A : E →L[𝕜] F} {a : E} |
| 78 | |
| 79 | local instance splitNormalKernelComplete (P : F →L[𝕜] E) : CompleteSpace P.ker := |
| 80 | FiniteDimensional.complete 𝕜 P.ker |
| 81 | |
| 82 | omit [CompleteSpace E] in |
| 83 | /-- Adding normal vectors makes the split injective derivative invertible. -/ |
| 84 | theorem add_kernel (hf : HasStrictFDerivAt f A a) (P : F →L[𝕜] E) |
| 85 | (h : P.comp A = ContinuousLinearMap.id 𝕜 E) : |
| 86 | HasStrictFDerivAt (fun z : E × P.ker => f z.1 + z.2) |
| 87 | ((SplitDerivativeNormalChart.ContinuousLinearMap.splitKernelEquiv A) P h).toContinuousLinearMap (a, 0) := by |
| 88 | have h1 := hf.comp (a, (0 : P.ker)) |
| 89 | (ContinuousLinearMap.fst 𝕜 E P.ker).hasStrictFDerivAt |
| 90 | have h2 := P.ker.subtypeL.hasStrictFDerivAt.comp |
| 91 | (a, (0 : P.ker)) (ContinuousLinearMap.snd 𝕜 E P.ker).hasStrictFDerivAt |
| 92 | convert h1.add h2 using 1 <;> rfl |
| 93 | |
| 94 | /-- Let `E,F` be finite-dimensional normed vector spaces over a complete nontrivially normed field |
| 95 | `𝕜`. Suppose `f: E → F` has strict derivative `A` at `a`, with continuous linear left inverse |
| 96 | `P`. This local homeomorphism from `E × ker(P)` to `F` is given near `(a,0)` by `(v,n) ↦ |
| 97 | f(v)+n`. Its local inverse is supplied by the inverse function theorem. -/ |
| 98 | def normalChart (hf : HasStrictFDerivAt f A a) (P : F →L[𝕜] E) |
| 99 | (h : P.comp A = ContinuousLinearMap.id 𝕜 E) : |
| 100 | OpenPartialHomeomorph (E × P.ker) F := |
| 101 | ((add_kernel hf) P h).toOpenPartialHomeomorph _ |
| 102 | |
| 103 | @[simp] theorem normalChart_apply (hf : HasStrictFDerivAt f A a) (P : F →L[𝕜] E) |
| 104 | (h : P.comp A = ContinuousLinearMap.id 𝕜 E) (z : E × P.ker) : |
| 105 | (normalChart hf) P h z = f z.1 + z.2 := rfl |
| 106 | |
| 107 | /-- The selected point belongs to the coordinate domain. -/ |
| 108 | theorem normalChart_mem_source (hf : HasStrictFDerivAt f A a) (P : F →L[𝕜] E) |
| 109 | (h : P.comp A = ContinuousLinearMap.id 𝕜 E) : |
| 110 | (a, 0) ∈ ((normalChart hf) P h).source := |
| 111 | ((add_kernel hf) P h).mem_toOpenPartialHomeomorph_source |
| 112 | |
| 113 | /-- The selected image point belongs to the ambient coordinate neighborhood. -/ |
| 114 | theorem normalChart_mem_target (hf : HasStrictFDerivAt f A a) (P : F →L[𝕜] E) |
| 115 | (h : P.comp A = ContinuousLinearMap.id 𝕜 E) : |
| 116 | f a ∈ ((normalChart hf) P h).target := by |
| 117 | simpa using ((normalChart hf) P h).map_source ((normalChart_mem_source hf) P h) |
| 118 | |
| 119 | /-- Inverse normal coordinates send every parametrized point in the coordinate domain |
| 120 | to precisely its tangent parameter and zero normal coordinate. -/ |
| 121 | theorem normalChart_symm_apply (hf : HasStrictFDerivAt f A a) (P : F →L[𝕜] E) |
| 122 | (h : P.comp A = ContinuousLinearMap.id 𝕜 E) (v : E) |
| 123 | (hv : (v, 0) ∈ ((normalChart hf) P h).source) : |
| 124 | ((normalChart hf) P h).symm (f v) = (v, 0) := by |
| 125 | simpa using ((normalChart hf) P h).left_inv hv |
| 126 | |
| 127 | /-- On its ambient target, zero normal coordinate is equivalent to membership in the |
| 128 | image of the zero-normal part of the coordinate domain. -/ |
| 129 | theorem normalChart_normal_eq_zero_iff (hf : HasStrictFDerivAt f A a) (P : F →L[𝕜] E) |
| 130 | (h : P.comp A = ContinuousLinearMap.id 𝕜 E) (y : F) |
| 131 | (hy : y ∈ ((normalChart hf) P h).target) : |
| 132 | (((normalChart hf) P h).symm y).2 = 0 ↔ |
| 133 | ∃ v : E, (v, 0) ∈ ((normalChart hf) P h).source ∧ f v = y := by |
| 134 | let e := (normalChart hf) P h |
| 135 | constructor |
| 136 | · intro hn |
| 137 | change (e.symm y).2 = 0 at hn |
| 138 | refine ⟨(e.symm y).1, ?_, ?_⟩ |
| 139 | · simpa only [← hn] using e.map_target hy |
| 140 | · have hright := e.right_inv hy |
| 141 | change f (e.symm y).1 + (e.symm y).2 = y at hright |
| 142 | rw [hn] at hright |
| 143 | simpa only [Submodule.coe_zero, add_zero] using hright |
| 144 | · rintro ⟨v, hv, rfl⟩ |
| 145 | rw [(normalChart_symm_apply hf) P h v hv] |
| 146 | |
| 147 | end HasStrictFDerivAt |
| 148 | |
| 149 | end |
| 150 | |
| 151 | end OAI.Analysis.Foundations.SplitDerivativeNormalChart |