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.AlgebraicGeometry.ComplexMultiplication.HodgeComparison.InverseCoefficientCancellation |
| 2 | import Mathlib.Analysis.Calculus.FDeriv.Analytic |
| 3 | |
| 4 | /-! # Determinant Derivative -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.ComplexMultiplication.HodgeComparison.DeterminantDerivative.CM.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Jacobi's determinant formula for differentiable matrix coefficients. -/ |
| 11 | |
| 12 | variable {ι 𝕜 E : Type*} [Fintype ι] [DecidableEq ι] [RCLike 𝕜] |
| 13 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 14 | |
| 15 | def determinantMultilinear : ContinuousMultilinearMap 𝕜 (fun _ : ι => ι → 𝕜) 𝕜 where |
| 16 | toMultilinearMap := Matrix.detRowAlternating.toMultilinearMap |
| 17 | cont := by |
| 18 | change Continuous (fun M : ι → ι → 𝕜 => Matrix.det (Matrix.of M)) |
| 19 | simp only [Matrix.det_apply', Matrix.of_apply] |
| 20 | fun_prop |
| 21 | |
| 22 | theorem determinant_derivative_rows (M : E → Matrix ι ι 𝕜) {x : E} |
| 23 | (hM : ∀ i, DifferentiableAt ℝ (fun y => M y i) x) (u : E) : |
| 24 | fderiv ℝ (fun y => (M y).det) x u = |
| 25 | ∑ i, ((M x).updateRow i (fderiv ℝ (fun y => M y i) x u)).det := by |
| 26 | have hd := HasFDerivAt.multilinear_comp |
| 27 | ((determinantMultilinear (ι := ι) (𝕜 := 𝕜)).restrictScalars ℝ) |
| 28 | (fun i => (hM i).hasFDerivAt) |
| 29 | have hv := congrArg (fun L : E →L[ℝ] 𝕜 => L u) hd.fderiv |
| 30 | change fderiv ℝ (fun y => (M y).det) x u = _ at hv |
| 31 | simp only [sum_apply, ContinuousLinearMap.comp_apply, |
| 32 | ContinuousMultilinearMap.toContinuousLinearMap_apply] at hv |
| 33 | exact hv |
| 34 | |
| 35 | theorem determinant_updateRow_inverse (M H : Matrix ι ι 𝕜) |
| 36 | (hM : IsUnit M.det) (i : ι) : |
| 37 | (M.updateRow i (H i)).det = (H * M⁻¹) i i * M.det := by |
| 38 | have hr : H i = ∑ j, (H * M⁻¹) i j • M j := by |
| 39 | funext k |
| 40 | simp only [Finset.sum_apply, Pi.smul_apply, smul_eq_mul] |
| 41 | change H i k = ((H * M⁻¹) * M) i k |
| 42 | rw [Matrix.mul_assoc, Matrix.nonsing_inv_mul M hM, Matrix.mul_one] |
| 43 | rw [hr, Matrix.det_updateRow_sum, smul_eq_mul] |
| 44 | |
| 45 | theorem determinant_derivative_trace (M : E → Matrix ι ι 𝕜) {x : E} |
| 46 | (hM : ∀ i, DifferentiableAt ℝ (fun y => M y i) x) |
| 47 | (hdet : IsUnit (M x).det) (u : E) : |
| 48 | fderiv ℝ (fun y => (M y).det) x u = |
| 49 | (M x).det * ((M x)⁻¹ * Matrix.of (fun i => fderiv ℝ (fun y => M y i) x u)).trace := by |
| 50 | rw [determinant_derivative_rows M hM] |
| 51 | calc |
| 52 | _ = ∑ i, (Matrix.of (fun j => fderiv ℝ (fun y => M y j) x u) * (M x)⁻¹) i i * |
| 53 | (M x).det := by |
| 54 | apply Finset.sum_congr rfl |
| 55 | intro i _ |
| 56 | exact determinant_updateRow_inverse (M x) |
| 57 | (Matrix.of (fun j => fderiv ℝ (fun y => M y j) x u)) hdet i |
| 58 | _ = _ := by |
| 59 | rw [← Finset.sum_mul] |
| 60 | change (Matrix.trace (Matrix.of (fun i => fderiv ℝ (fun y => M y i) x u) * (M x)⁻¹)) * |
| 61 | (M x).det = _ |
| 62 | rw [Matrix.trace_mul_comm, mul_comm] |
| 63 | |
| 64 | end |
| 65 | |
| 66 | end OAI.AlgebraicGeometry.ComplexMultiplication.HodgeComparison.DeterminantDerivative.CM.Construction |