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 Mathlib |
| 2 | |
| 3 | /-! # Matrix Smoothness -/ |
| 4 | |
| 5 | namespace OAI.RepresentationTheory.Theta.Adelic.MatrixSmoothness |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Smooth finite matrix operations in the actual elementwise topology. -/ |
| 10 | |
| 11 | open scoped Classical _root_.Matrix.Norms.Elementwise |
| 12 | |
| 13 | variable {I : Type*} [Fintype I] [DecidableEq I] |
| 14 | |
| 15 | theorem matrix_determinant_contDiff : ContDiff ℝ ⊤ (Matrix.det : Matrix I I ℂ → ℂ) := by |
| 16 | change ContDiff ℝ ⊤ (fun M : Matrix I I ℂ => M.det) |
| 17 | simp only [Matrix.det_apply'] |
| 18 | fun_prop |
| 19 | |
| 20 | theorem matrix_adjugate_contDiff : ContDiff ℝ ⊤ (Matrix.adjugate : Matrix I I ℂ → Matrix I I ℂ) := by |
| 21 | apply contDiff_pi.mpr |
| 22 | intro i |
| 23 | apply contDiff_pi.mpr |
| 24 | intro j |
| 25 | simp only [Matrix.adjugate_apply] |
| 26 | apply matrix_determinant_contDiff.comp |
| 27 | apply contDiff_pi.mpr |
| 28 | intro k |
| 29 | apply contDiff_pi.mpr |
| 30 | intro l |
| 31 | simp only [Matrix.updateRow_apply] |
| 32 | split_ifs <;> fun_prop |
| 33 | |
| 34 | variable {V : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V] {s : Set V} |
| 35 | |
| 36 | theorem matrix_inverse_contDiffOn (M : V → Matrix I I ℂ) |
| 37 | (hM : ContDiffOn ℝ ⊤ M s) (hn : ∀ z ∈ s, (M z).det ≠ 0) : |
| 38 | ContDiffOn ℝ ⊤ (fun z => (M z)⁻¹) s := by |
| 39 | have hd := matrix_determinant_contDiff.comp_contDiffOn hM |
| 40 | have ha := matrix_adjugate_contDiff.comp_contDiffOn hM |
| 41 | apply contDiffOn_pi.mpr |
| 42 | intro i |
| 43 | apply contDiffOn_pi.mpr |
| 44 | intro j |
| 45 | simp only [Matrix.inv_def, Ring.inverse_eq_inv, Matrix.smul_apply, smul_eq_mul] |
| 46 | exact (hd.inv hn).mul ((contDiff_apply ℝ ℂ j).comp_contDiffOn ((contDiff_apply ℝ (I → ℂ) i).comp_contDiffOn ha)) |
| 47 | |
| 48 | omit [DecidableEq I] in |
| 49 | theorem matrix_product_contDiffOn (M N : V → Matrix I I ℂ) |
| 50 | (hM : ContDiffOn ℝ ⊤ M s) (hN : ContDiffOn ℝ ⊤ N s) : |
| 51 | ContDiffOn ℝ ⊤ (fun z => M z * N z) s := by |
| 52 | apply contDiffOn_pi.mpr |
| 53 | intro i |
| 54 | apply contDiffOn_pi.mpr |
| 55 | intro j |
| 56 | simp only [Matrix.mul_apply] |
| 57 | fun_prop |
| 58 | |
| 59 | end |
| 60 | |
| 61 | end OAI.RepresentationTheory.Theta.Adelic.MatrixSmoothness |