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 | import OAI.NumberTheory.Quaternion.Arithmetic.LocalExpDerivative |
| 2 | import OAI.NumberTheory.ArithmeticGroups.Lattices.Infinitesimal.Action |
| 3 | import Mathlib.Analysis.Analytic.Order |
| 4 | import OAI.NumberTheory.ArithmeticGroups.Lattices.CoordinateIdeal |
| 5 | |
| 6 | /-! # Local Exp Integration -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.Quaternion.Arithmetic.LocalExpIntegration |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | section |
| 13 | |
| 14 | /-! Polynomial functions along local exponential curves. All derivative |
| 15 | identities are asserted only where the exponential series converges. -/ |
| 16 | |
| 17 | open scoped Classical _root_.Matrix.Norms.Operator |
| 18 | open _root_.MvPolynomial NormedSpace Filter _root_.Topology |
| 19 | |
| 20 | variable {K : Type} [NontriviallyNormedField K] [CharZero K] [CompleteSpace K] {n : ℕ} |
| 21 | |
| 22 | local instance localExpPolynomialMatrixComplete : |
| 23 | @CompleteSpace (Matrix (Fin n) (Fin n) K) |
| 24 | (inferInstance : NormedRing (Matrix (Fin n) (Fin n) K)).toUniformSpace := |
| 25 | FiniteDimensional.complete K _ |
| 26 | |
| 27 | def localExponentialPolynomial (A : Matrix (Fin n) (Fin n) K) |
| 28 | (p : ArithmeticGroups.Lattices.Algebraic.CoordinatePolynomial n K) : K → K := |
| 29 | fun t => eval (fun ij => exp (t • A) ij.1 ij.2) p |
| 30 | |
| 31 | def localMatrixEntryCLM (i j : Fin n) : Matrix (Fin n) (Fin n) K →L[K] K := |
| 32 | (show Matrix (Fin n) (Fin n) K →ₗ[K] K from |
| 33 | { toFun := fun M => M i j |
| 34 | map_add' := fun _ _ => rfl |
| 35 | map_smul' := fun _ _ => rfl }).toContinuousLinearMap |
| 36 | |
| 37 | theorem local_matrix_exp_entry_hasDerivAt |
| 38 | (hr : 0 < (expSeries K (Matrix (Fin n) (Fin n) K)).radius) |
| 39 | (A : Matrix (Fin n) (Fin n) K) (t : K) |
| 40 | (ht : t • A ∈ Metric.eball 0 (expSeries K (Matrix (Fin n) (Fin n) K)).radius) |
| 41 | (i j : Fin n) : |
| 42 | HasDerivAt (fun s : K => exp (s • A) i j) ((exp (t • A) * A) i j) t := by |
| 43 | convert! (localMatrixEntryCLM (K := K) i j).hasFDerivAt.comp_hasDerivAt t |
| 44 | (LocalExpDerivative.local_exp_smul_hasDerivAt hr A t ht) |
| 45 | |
| 46 | theorem local_matrix_exp_entry_analyticAt (A : Matrix (Fin n) (Fin n) K) (t : K) |
| 47 | (ht : t • A ∈ Metric.eball 0 (expSeries K (Matrix (Fin n) (Fin n) K)).radius) |
| 48 | (i j : Fin n) : AnalyticAt K (fun s : K => exp (s • A) i j) t := by |
| 49 | have hs : AnalyticAt K (fun s : K => s • A) t := analyticAt_id.smul analyticAt_const |
| 50 | have he : AnalyticAt K (fun s : K => exp (s • A)) t := |
| 51 | (analyticAt_exp_of_mem_ball (t • A) ht).comp (f := fun s : K => s • A) hs |
| 52 | exact ((localMatrixEntryCLM i j).analyticAt _).comp (f := fun s : K => exp (s • A)) he |
| 53 | |
| 54 | theorem localExponentialPolynomial_hasDerivAt |
| 55 | (hr : 0 < (expSeries K (Matrix (Fin n) (Fin n) K)).radius) |
| 56 | (A : Matrix (Fin n) (Fin n) K) (p : ArithmeticGroups.Lattices.Algebraic.CoordinatePolynomial n K) (t : K) |
| 57 | (ht : t • A ∈ Metric.eball 0 (expSeries K (Matrix (Fin n) (Fin n) K)).radius) : |
| 58 | HasDerivAt (localExponentialPolynomial A p) |
| 59 | (localExponentialPolynomial A (ArithmeticGroups.Lattices.Infinitesimal.Action.Construction.rightInfinitesimal A p) t) t := by |
| 60 | induction p using MvPolynomial.induction_on with |
| 61 | | C c => |
| 62 | unfold localExponentialPolynomial |
| 63 | simpa using hasDerivAt_const t c |
| 64 | | add p q hp hq => |
| 65 | unfold localExponentialPolynomial at hp hq ⊢ |
| 66 | simpa only [map_add, Pi.add_def] using hp.add hq |
| 67 | | mul_X p ij hp => |
| 68 | obtain ⟨i, j⟩ := ij |
| 69 | have hX := local_matrix_exp_entry_hasDerivAt hr A t ht i j |
| 70 | unfold localExponentialPolynomial at hp ⊢ |
| 71 | convert! hp.mul hX using 1 |
| 72 | · simp only [map_mul, eval_X] |
| 73 | rfl |
| 74 | · simp only [Derivation.leibniz, smul_eq_mul, |
| 75 | ArithmeticGroups.Lattices.Infinitesimal.Action.Construction.rightInfinitesimal_X, map_add, map_mul, map_sum, eval_X, eval_C, Matrix.mul_apply] |
| 76 | ring |
| 77 | |
| 78 | theorem localExponentialPolynomial_analyticAt (A : Matrix (Fin n) (Fin n) K) |
| 79 | (p : ArithmeticGroups.Lattices.Algebraic.CoordinatePolynomial n K) (t : K) |
| 80 | (ht : t • A ∈ Metric.eball 0 (expSeries K (Matrix (Fin n) (Fin n) K)).radius) : |
| 81 | AnalyticAt K (localExponentialPolynomial A p) t := by |
| 82 | induction p using MvPolynomial.induction_on with |
| 83 | | C c => |
| 84 | unfold localExponentialPolynomial |
| 85 | simpa using (analyticAt_const (𝕜 := K) (v := c)) |
| 86 | | add p q hp hq => |
| 87 | unfold localExponentialPolynomial at hp hq ⊢ |
| 88 | simpa only [map_add, Pi.add_def] using hp.add hq |
| 89 | | mul_X p ij hp => |
| 90 | obtain ⟨i, j⟩ := ij |
| 91 | unfold localExponentialPolynomial at hp ⊢ |
| 92 | simpa only [map_mul, eval_X, Pi.mul_def] using |
| 93 | hp.mul (local_matrix_exp_entry_analyticAt A t ht i j) |
| 94 | |
| 95 | theorem localExponentialPolynomial_deriv_eventually |
| 96 | (hr : 0 < (expSeries K (Matrix (Fin n) (Fin n) K)).radius) |
| 97 | (A : Matrix (Fin n) (Fin n) K) (p : ArithmeticGroups.Lattices.Algebraic.CoordinatePolynomial n K) : |
| 98 | deriv (localExponentialPolynomial A p) =ᶠ[𝓝 0] |
| 99 | localExponentialPolynomial A (ArithmeticGroups.Lattices.Infinitesimal.Action.Construction.rightInfinitesimal A p) := by |
| 100 | have hnear : ∀ᶠ t : K in 𝓝 0, |
| 101 | t • A ∈ Metric.eball 0 (expSeries K (Matrix (Fin n) (Fin n) K)).radius := |
| 102 | LocalExpDerivative.local_exp_smul_eventually_mem_ball hr A |
| 103 | filter_upwards [hnear] with t ht |
| 104 | exact (localExponentialPolynomial_hasDerivAt hr A p t ht).deriv |
| 105 | |
| 106 | theorem localExponentialPolynomial_iteratedDeriv_eventually |
| 107 | (hr : 0 < (expSeries K (Matrix (Fin n) (Fin n) K)).radius) |
| 108 | (A : Matrix (Fin n) (Fin n) K) (p : ArithmeticGroups.Lattices.Algebraic.CoordinatePolynomial n K) (r : ℕ) : |
| 109 | iteratedDeriv r (localExponentialPolynomial A p) =ᶠ[𝓝 0] |
| 110 | localExponentialPolynomial A ((ArithmeticGroups.Lattices.Infinitesimal.Action.Construction.rightInfinitesimal A)^[r] p) := by |
| 111 | induction r generalizing p with |
| 112 | | zero => exact Filter.EventuallyEq.rfl |
| 113 | | succ r hr' => |
| 114 | rw [iteratedDeriv_succ', Function.iterate_succ_apply] |
| 115 | exact ((localExponentialPolynomial_deriv_eventually hr A p).iteratedDeriv r).trans (hr' _) |
| 116 | |
| 117 | end |
| 118 | |
| 119 | /-! Infinitesimal ideal preservation integrates to group membership near |
| 120 | zero over any complete normed field with positive exponential radius. -/ |
| 121 | |
| 122 | open scoped Classical _root_.Matrix.Norms.Operator |
| 123 | open _root_.MvPolynomial NormedSpace Set Filter _root_.Topology |
| 124 | |
| 125 | variable {K : Type} [NontriviallyNormedField K] [CharZero K] [CompleteSpace K] {n : ℕ} |
| 126 | |
| 127 | theorem analytic_eventually_zero_of_iteratedDeriv_zero |
| 128 | {f : K → K} (hf : AnalyticAt K f 0) |
| 129 | (hzero : ∀ r, iteratedDeriv r f 0 = 0) : f =ᶠ[𝓝 0] 0 := by |
| 130 | apply analyticOrderAt_eq_top.mp |
| 131 | rw [ENat.eq_top_iff_forall_ge] |
| 132 | intro r |
| 133 | exact (natCast_le_analyticOrderAt_iff_iteratedDeriv_eq_zero hf).mpr (fun i _ => hzero i) |
| 134 | |
| 135 | omit [CharZero K] [CompleteSpace K] in |
| 136 | theorem local_iterate_infinitesimal_mem_ideal (G : ArithmeticGroups.Lattices.Algebraic.MatrixAlgebraicGroup K n) |
| 137 | {A : Matrix (Fin n) (Fin n) K} (hA : A ∈ ArithmeticGroups.Lattices.Infinitesimal.Action.Construction.infinitesimalStabilizer G) |
| 138 | {p : ArithmeticGroups.Lattices.Algebraic.CoordinatePolynomial n K} (hp : p ∈ ArithmeticGroups.Lattices.VanishingIdeal.Construction.coordinateVanishingIdeal G) (r : ℕ) : |
| 139 | (ArithmeticGroups.Lattices.Infinitesimal.Action.Construction.rightInfinitesimal A)^[r] p ∈ ArithmeticGroups.Lattices.VanishingIdeal.Construction.coordinateVanishingIdeal G := by |
| 140 | induction r with |
| 141 | | zero => exact hp |
| 142 | | succ r hr => |
| 143 | rw [Function.iterate_succ_apply'] |
| 144 | exact (ArithmeticGroups.Lattices.Infinitesimal.Action.Construction.mem_infinitesimalStabilizer G A).mp hA _ hr |
| 145 | |
| 146 | omit [CharZero K] [CompleteSpace K] in |
| 147 | theorem localExponentialPolynomial_zero (A : Matrix (Fin n) (Fin n) K) |
| 148 | (p : ArithmeticGroups.Lattices.Algebraic.CoordinatePolynomial n K) : |
| 149 | localExponentialPolynomial A p 0 = ArithmeticGroups.Lattices.Algebraic.evaluateMatrix (RingHom.id K) (1 : ArithmeticGroups.Lattices.Algebraic.SL n K) p := by |
| 150 | simp only [localExponentialPolynomial, zero_smul, exp_zero, ArithmeticGroups.Lattices.Algebraic.evaluateMatrix] |
| 151 | rfl |
| 152 | |
| 153 | theorem localExponentialPolynomial_eventually_zero |
| 154 | (hr : 0 < (expSeries K (Matrix (Fin n) (Fin n) K)).radius) |
| 155 | (G : ArithmeticGroups.Lattices.Algebraic.MatrixAlgebraicGroup K n) {A : Matrix (Fin n) (Fin n) K} |
| 156 | (hA : A ∈ ArithmeticGroups.Lattices.Infinitesimal.Action.Construction.infinitesimalStabilizer G) |
| 157 | {p : ArithmeticGroups.Lattices.Algebraic.CoordinatePolynomial n K} (hp : p ∈ ArithmeticGroups.Lattices.VanishingIdeal.Construction.coordinateVanishingIdeal G) : |
| 158 | localExponentialPolynomial A p =ᶠ[𝓝 0] 0 := by |
| 159 | apply analytic_eventually_zero_of_iteratedDeriv_zero |
| 160 | (localExponentialPolynomial_analyticAt A p 0 (by simpa using hr)) |
| 161 | intro r |
| 162 | rw [(localExponentialPolynomial_iteratedDeriv_eventually hr A p r).eq_of_nhds, |
| 163 | localExponentialPolynomial_zero] |
| 164 | exact local_iterate_infinitesimal_mem_ideal G hA hp r K (RingHom.id K) (1 : G.RationalPoints) |
| 165 | |
| 166 | theorem local_infinitesimal_exp_eventually_mem |
| 167 | (hr : 0 < (expSeries K (Matrix (Fin n) (Fin n) K)).radius) |
| 168 | (G : ArithmeticGroups.Lattices.Algebraic.MatrixAlgebraicGroup K n) {A : Matrix (Fin n) (Fin n) K} |
| 169 | (hA : A ∈ ArithmeticGroups.Lattices.Infinitesimal.Action.Construction.infinitesimalStabilizer G) : |
| 170 | ∀ᶠ t : K in 𝓝 0, |
| 171 | exp (t • A) ∈ range (fun g : G.RationalPoints => (g.val : Matrix (Fin n) (Fin n) K)) := by |
| 172 | obtain ⟨S, hS⟩ := ArithmeticGroups.Lattices.VanishingIdeal.Construction.vanishingIdeal_finitely_generated G |
| 173 | have hnear : ∀ᶠ t : K in 𝓝 0, ∀ p ∈ S, localExponentialPolynomial A p t = 0 := by |
| 174 | apply S.eventually_all.mpr |
| 175 | intro p hp |
| 176 | apply localExponentialPolynomial_eventually_zero hr G hA |
| 177 | rw [← hS] |
| 178 | exact Ideal.subset_span hp |
| 179 | filter_upwards [hnear] with t ht |
| 180 | let e : ArithmeticGroups.Lattices.Algebraic.CoordinatePolynomial n K →+* K := eval (fun ij => exp (t • A) ij.1 ij.2) |
| 181 | have hker : ArithmeticGroups.Lattices.VanishingIdeal.Construction.coordinateVanishingIdeal G ≤ RingHom.ker e := by |
| 182 | rw [← hS] |
| 183 | exact Ideal.span_le.mpr ht |
| 184 | have hdet : (exp (t • A)).det = 1 := by |
| 185 | have hz := hker (ArithmeticGroups.Lattices.CoordinateIdeal.Construction.definingIdeal_le_vanishingIdeal G |
| 186 | (Ideal.subset_span (mem_insert (ArithmeticGroups.Lattices.CoordinateIdeal.Construction.determinantEquation K n) G.equations))) |
| 187 | change eval₂Hom (RingHom.id K) (fun ij => exp (t • A) ij.1 ij.2) |
| 188 | (ArithmeticGroups.Lattices.CoordinateIdeal.Construction.determinantEquation K n) = 0 at hz |
| 189 | rw [ArithmeticGroups.Lattices.CoordinateIdeal.Construction.eval_determinantEquation] at hz |
| 190 | exact sub_eq_zero.mp hz |
| 191 | let g : ArithmeticGroups.Lattices.Algebraic.SL n K := ⟨exp (t • A), hdet⟩ |
| 192 | have hg : g ∈ G.subgroup K (RingHom.id K) := by |
| 193 | apply (G.mem_iff K (RingHom.id K) g).mpr |
| 194 | intro p hp |
| 195 | exact hker (ArithmeticGroups.Lattices.VanishingIdeal.Construction.equations_subset_vanishingIdeal G hp) |
| 196 | exact ⟨⟨g, hg⟩, rfl⟩ |
| 197 | |
| 198 | end |
| 199 | |
| 200 | end OAI.NumberTheory.Quaternion.Arithmetic.LocalExpIntegration |