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 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | https://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | This file has been modified. |
| 16 | -/ |
| 17 | import OAI.AlgebraicTopology.LocalHomology.ComplexClassDifferentiableInvariance |
| 18 | import Mathlib.Analysis.Calculus.FDeriv.Add |
| 19 | import Mathlib.Analysis.Calculus.FDeriv.Analytic |
| 20 | import Mathlib.Analysis.Calculus.FDeriv.Comp |
| 21 | import Mathlib.Analysis.Calculus.FDeriv.Linear |
| 22 | |
| 23 | /-! # Chart Fundamental Class Invariance -/ |
| 24 | |
| 25 | namespace OAI.AlgebraicTopology.LocalHomology.ChartFundamentalClassInvariance.Singular |
| 26 | |
| 27 | noncomputable section |
| 28 | |
| 29 | /-! |
| 30 | # Chart-local class invariance under a differentiable transition germ |
| 31 | |
| 32 | This file turns the local nonlinear degree calculation into a chart-comparison theorem. For two |
| 33 | complex charts through the same point, their compressed inverse-chart embeddings determine an |
| 34 | open partial homeomorphism of `ℂᵈ`. If its derivative at the model origin is injective |
| 35 | and complex linear, the two explicitly normalized chart-local homology classes agree. |
| 36 | |
| 37 | The proof constructs the overlap neighborhood, uses point excision to lift the standard class, |
| 38 | and proves the factorization through the transition as an equality of maps of topological |
| 39 | pairs. |
| 40 | -/ |
| 41 | |
| 42 | open _root_.CategoryTheory _root_.Topology Filter Set Asymptotics |
| 43 | |
| 44 | variable {M : Type} [TopologicalSpace M] |
| 45 | variable (d : ℕ) |
| 46 | |
| 47 | /-! ## Complex derivatives of the radial chart compression -/ |
| 48 | |
| 49 | lemma hasFDerivAt_univUnitBall_formula_normed : |
| 50 | HasFDerivAt (fun x : Fin d → ℂ ↦ (√(1 + ‖x‖ ^ 2))⁻¹ • x) |
| 51 | (ContinuousLinearMap.id ℂ (Fin d → ℂ)) 0 := by |
| 52 | rw [hasFDerivAt_iff_isLittleO, isLittleO_iff] |
| 53 | intro ε hε |
| 54 | have ha : Tendsto (fun x : Fin d → ℂ ↦ (√(1 + ‖x‖ ^ 2))⁻¹) (nhds 0) (nhds 1) := by |
| 55 | have hac : ContinuousAt (fun x : Fin d → ℂ ↦ (√(1 + ‖x‖ ^ 2))⁻¹) 0 := by |
| 56 | apply ContinuousAt.inv₀ |
| 57 | · fun_prop |
| 58 | · norm_num |
| 59 | have hzero : (√(1 + ‖(0 : Fin d → ℂ)‖ ^ 2))⁻¹ = (1 : ℝ) := by norm_num |
| 60 | change Tendsto (fun x : Fin d → ℂ ↦ (√(1 + ‖x‖ ^ 2))⁻¹) (nhds 0) |
| 61 | (nhds ((√(1 + ‖(0 : Fin d → ℂ)‖ ^ 2))⁻¹)) at hac |
| 62 | rw [hzero] at hac |
| 63 | exact hac |
| 64 | have hsmall : ∀ᶠ x : Fin d → ℂ in nhds 0, |
| 65 | |(√(1 + ‖x‖ ^ (2 : ℕ)))⁻¹ - 1| < ε := by |
| 66 | have hball := ha.eventually (Metric.ball_mem_nhds (1 : ℝ) hε) |
| 67 | filter_upwards [hball] with x hx |
| 68 | simpa only [Metric.mem_ball, Real.dist_eq] using hx |
| 69 | filter_upwards [hsmall] with x hx |
| 70 | norm_num |
| 71 | calc |
| 72 | ‖(√(1 + ‖x‖ ^ (2 : ℕ)))⁻¹ • x - x‖ = |
| 73 | ‖((√(1 + ‖x‖ ^ (2 : ℕ)))⁻¹ - 1) • x‖ := by rw [sub_smul, one_smul] |
| 74 | _ = |(√(1 + ‖x‖ ^ (2 : ℕ)))⁻¹ - 1| * ‖x‖ := by |
| 75 | rw [norm_smul, Real.norm_eq_abs] |
| 76 | _ ≤ ε * ‖x‖ := mul_le_mul_of_nonneg_right hx.le (norm_nonneg x) |
| 77 | |
| 78 | /-- The positive-radius radial chart compression has derivative `r · id` at the model origin. |
| 79 | The statement is complex differentiability at the origin alone. -/ |
| 80 | lemma hasFDerivAt_univBall_complex (c : Fin d → ℂ) (r : ℝ) (hr : 0 < r) : |
| 81 | HasFDerivAt (OpenPartialHomeomorph.univBall c r : |
| 82 | (Fin d → ℂ) → (Fin d → ℂ)) |
| 83 | ((r : ℂ) • ContinuousLinearMap.id ℂ (Fin d → ℂ)) 0 := by |
| 84 | rw [OpenPartialHomeomorph.univBall, dite_eq_left hr] |
| 85 | apply ((hasFDerivAt_univUnitBall_formula_normed d).const_smul (r : ℂ)).add_const c |
| 86 | |>.congr_of_eventuallyEq |
| 87 | filter_upwards [] with y |
| 88 | change r • OpenPartialHomeomorph.univUnitBall y + c = |
| 89 | (r : ℂ) • ((√(1 + ‖y‖ ^ 2))⁻¹ • y) + c |
| 90 | rw [OpenPartialHomeomorph.univUnitBall_apply] |
| 91 | all_goals rfl |
| 92 | |
| 93 | /-- The matrix of a complex continuous-linear endomorphism in the standard basis of a pi space. -/ |
| 94 | def complexMatrixOfContinuousLinearMap |
| 95 | (L : (Fin d → ℂ) →L[ℂ] (Fin d → ℂ)) : Matrix (Fin d) (Fin d) ℂ := |
| 96 | LinearMap.toMatrix' L.toLinearMap |
| 97 | |
| 98 | @[simp] |
| 99 | lemma complexMatrixOfContinuousLinearMap_mulVec |
| 100 | (L : (Fin d → ℂ) →L[ℂ] (Fin d → ℂ)) (v : Fin d → ℂ) : |
| 101 | (complexMatrixOfContinuousLinearMap d L).mulVec v = L v := |
| 102 | LinearMap.toMatrix'_mulVec L.toLinearMap v |
| 103 | |
| 104 | lemma complexMatrixOfContinuousLinearMap_det_ne_zero |
| 105 | (L : (Fin d → ℂ) →L[ℂ] (Fin d → ℂ)) (hL : Function.Injective L) : |
| 106 | (complexMatrixOfContinuousLinearMap d L).det ≠ 0 := by |
| 107 | let A := complexMatrixOfContinuousLinearMap d L |
| 108 | have hAinj : Function.Injective A.mulVec := by |
| 109 | intro x y hxy |
| 110 | apply hL |
| 111 | simpa only [A, complexMatrixOfContinuousLinearMap_mulVec] using hxy |
| 112 | have hAunit : IsUnit A := Matrix.mulVec_injective_iff_isUnit.mp hAinj |
| 113 | exact (A.isUnit_iff_isUnit_det.mp hAunit).ne_zero |
| 114 | |
| 115 | /-- The coordinate transition between the two compressed inverse-chart embeddings used to define |
| 116 | `localClassOfChart`. -/ |
| 117 | def compressedChartTransition |
| 118 | (e e' : OpenPartialHomeomorph M (Fin d → ℂ)) (x : M) |
| 119 | (hx : x ∈ e.source) (hx' : x ∈ e'.source) : |
| 120 | OpenPartialHomeomorph (Fin d → ℂ) (Fin d → ℂ) := |
| 121 | (ChartFundamentalClass.Singular.chartModelEmbedding d e x hx).trans (ChartFundamentalClass.Singular.chartModelEmbedding d e' x hx').symm |
| 122 | |
| 123 | @[simp] |
| 124 | lemma compressedChartTransition_zero |
| 125 | (e e' : OpenPartialHomeomorph M (Fin d → ℂ)) (x : M) |
| 126 | (hx : x ∈ e.source) (hx' : x ∈ e'.source) : |
| 127 | compressedChartTransition d e e' x hx hx' 0 = 0 := by |
| 128 | change (ChartFundamentalClass.Singular.chartModelEmbedding d e' x hx').symm |
| 129 | (ChartFundamentalClass.Singular.chartModelEmbedding d e x hx 0) = 0 |
| 130 | have hleft := (ChartFundamentalClass.Singular.chartModelEmbedding d e' x hx').left_inv |
| 131 | (show 0 ∈ (ChartFundamentalClass.Singular.chartModelEmbedding d e' x hx').source by |
| 132 | rw [ChartFundamentalClass.Singular.chartModelEmbedding_source] |
| 133 | trivial) |
| 134 | simpa only [ChartFundamentalClass.Singular.chartModelEmbedding_zero] using hleft |
| 135 | |
| 136 | end |
| 137 | |
| 138 | end OAI.AlgebraicTopology.LocalHomology.ChartFundamentalClassInvariance.Singular |