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.ArithmeticGroups.Lattices.Infinitesimal.Action |
| 2 | |
| 3 | /-! # Exponential Polynomial -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.ArithmeticGroups.Lattices.ExponentialPolynomial.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Polynomial functions along matrix exponential curves and their |
| 10 | infinitesimal derivatives. -/ |
| 11 | |
| 12 | open scoped Classical _root_.Matrix.Norms.Operator |
| 13 | open _root_.MvPolynomial NormedSpace |
| 14 | |
| 15 | variable {k : Type} [RCLike k] {n : ℕ} |
| 16 | |
| 17 | def exponentialPolynomial (A : Matrix (Fin n) (Fin n) k) |
| 18 | (p : Algebraic.CoordinatePolynomial n k) : k → k := |
| 19 | fun t => MvPolynomial.eval (fun ij => exp (t • A) ij.1 ij.2) p |
| 20 | |
| 21 | def matrixEntryCLM (i j : Fin n) : Matrix (Fin n) (Fin n) k →L[k] k := |
| 22 | (show Matrix (Fin n) (Fin n) k →ₗ[k] k from |
| 23 | { toFun := fun M => M i j |
| 24 | map_add' := fun _ _ => rfl |
| 25 | map_smul' := fun _ _ => rfl }).toContinuousLinearMap |
| 26 | |
| 27 | theorem matrix_exp_entry_hasDerivAt (A : Matrix (Fin n) (Fin n) k) |
| 28 | (t : k) (i j : Fin n) : |
| 29 | HasDerivAt (fun s : k => exp (s • A) i j) ((exp (t • A) * A) i j) t := by |
| 30 | exact (matrixEntryCLM i j).hasFDerivAt.comp_hasDerivAt t |
| 31 | (hasDerivAt_exp_smul_const A t) |
| 32 | |
| 33 | theorem matrix_exp_entry_analyticAt (A : Matrix (Fin n) (Fin n) k) |
| 34 | (t : k) (i j : Fin n) : |
| 35 | AnalyticAt k (fun s : k => exp (s • A) i j) t := by |
| 36 | have hs : AnalyticAt k (fun s : k => s • A) t := |
| 37 | (analyticAt_id (𝕜 := k) (z := t)).smul analyticAt_const |
| 38 | have he : AnalyticAt k (fun s : k => exp (s • A)) t := |
| 39 | (NormedSpace.exp_analytic (𝕂 := k) (t • A)).comp (f := fun s : k => s • A) hs |
| 40 | exact ((matrixEntryCLM i j).analyticAt _).comp (f := fun s : k => exp (s • A)) he |
| 41 | |
| 42 | theorem exponentialPolynomial_hasDerivAt (A : Matrix (Fin n) (Fin n) k) |
| 43 | (p : Algebraic.CoordinatePolynomial n k) (t : k) : |
| 44 | HasDerivAt (exponentialPolynomial A p) |
| 45 | (exponentialPolynomial A (Infinitesimal.Action.Construction.rightInfinitesimal A p) t) t := by |
| 46 | induction p using MvPolynomial.induction_on with |
| 47 | | C c => |
| 48 | unfold exponentialPolynomial |
| 49 | simpa using (hasDerivAt_const t c) |
| 50 | | add p q hp hq => |
| 51 | unfold exponentialPolynomial at hp hq ⊢ |
| 52 | simpa only [map_add, Pi.add_def] using hp.add hq |
| 53 | | mul_X p ij hp => |
| 54 | obtain ⟨i, j⟩ := ij |
| 55 | have hX := matrix_exp_entry_hasDerivAt A t i j |
| 56 | unfold exponentialPolynomial at hp ⊢ |
| 57 | convert! hp.mul hX using 1 |
| 58 | · simp only [map_mul, eval_X] |
| 59 | rfl |
| 60 | · simp only [Derivation.leibniz, smul_eq_mul, |
| 61 | Infinitesimal.Action.Construction.rightInfinitesimal_X, map_add, map_mul, map_sum, eval_X, eval_C, Matrix.mul_apply] |
| 62 | ring |
| 63 | |
| 64 | theorem exponentialPolynomial_analyticAt (A : Matrix (Fin n) (Fin n) k) |
| 65 | (p : Algebraic.CoordinatePolynomial n k) (t : k) : |
| 66 | AnalyticAt k (exponentialPolynomial A p) t := by |
| 67 | induction p using MvPolynomial.induction_on with |
| 68 | | C c => |
| 69 | unfold exponentialPolynomial |
| 70 | simpa using (analyticAt_const (𝕜 := k) (v := c)) |
| 71 | | add p q hp hq => |
| 72 | unfold exponentialPolynomial at hp hq ⊢ |
| 73 | simpa only [map_add, Pi.add_def] using hp.add hq |
| 74 | | mul_X p ij hp => |
| 75 | obtain ⟨i, j⟩ := ij |
| 76 | unfold exponentialPolynomial at hp ⊢ |
| 77 | simpa only [map_mul, eval_X, Pi.mul_def] using hp.mul (matrix_exp_entry_analyticAt A t i j) |
| 78 | |
| 79 | theorem exponentialPolynomial_deriv (A : Matrix (Fin n) (Fin n) k) |
| 80 | (p : Algebraic.CoordinatePolynomial n k) : |
| 81 | deriv (exponentialPolynomial A p) = exponentialPolynomial A (Infinitesimal.Action.Construction.rightInfinitesimal A p) := by |
| 82 | funext t |
| 83 | exact (exponentialPolynomial_hasDerivAt A p t).deriv |
| 84 | |
| 85 | theorem exponentialPolynomial_iteratedDeriv (A : Matrix (Fin n) (Fin n) k) |
| 86 | (p : Algebraic.CoordinatePolynomial n k) (r : ℕ) : |
| 87 | iteratedDeriv r (exponentialPolynomial A p) = |
| 88 | exponentialPolynomial A ((Infinitesimal.Action.Construction.rightInfinitesimal A)^[r] p) := by |
| 89 | induction r generalizing p with |
| 90 | | zero => rfl |
| 91 | | succ r hr => |
| 92 | rw [iteratedDeriv_succ', exponentialPolynomial_deriv, hr, Function.iterate_succ_apply] |
| 93 | |
| 94 | end |
| 95 | |
| 96 | end OAI.NumberTheory.ArithmeticGroups.Lattices.ExponentialPolynomial.Construction |