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.PadicHodge.IntegralComparison.Exterior.KoszulComplex |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.DualCoordinateConormalBasis |
| 3 | |
| 4 | /-! # Generator Matrix -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Koszul.GeneratorMatrix |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The determinant orientation for a change of actual Koszul equations. |
| 11 | For `s = A t`, the resolution map goes from `s` to `t`; its dual top map |
| 12 | is multiplication by `det A`. This is exactly the determinant of the |
| 13 | corresponding conormal basis change, reduced modulo the original ideal. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory |
| 16 | |
| 17 | universe u |
| 18 | variable (R : Type u) [CommRing R] {n : ℕ} |
| 19 | |
| 20 | def equation (s : Fin n → R) : Module.Dual R (Fin n → R) := |
| 21 | ∑ i, s i • LinearMap.proj i |
| 22 | |
| 23 | theorem equation_apply (s : Fin n → R) (v : Fin n → R) : |
| 24 | equation R s v = ∑ i, s i * v i := by |
| 25 | simp [equation] |
| 26 | |
| 27 | theorem equation_matrix (s t : Fin n → R) (A : Matrix (Fin n) (Fin n) R) |
| 28 | (h : ∀ i, s i = ∑ j, A i j * t j) : |
| 29 | (equation R t).comp (Matrix.toLin' A.transpose) = equation R s := by |
| 30 | apply (Pi.basisFun R (Fin n)).ext |
| 31 | intro i |
| 32 | simpa [LinearMap.comp_apply, Matrix.toLin'_apply, Pi.basisFun_apply, |
| 33 | Matrix.mulVec, dotProduct, equation_apply, Matrix.transpose_apply, mul_comm, Pi.single_apply] |
| 34 | using (h i).symm |
| 35 | |
| 36 | def change (s t : Fin n → R) (A : Matrix (Fin n) (Fin n) R) |
| 37 | (h : ∀ i, s i = ∑ j, A i j * t j) : |
| 38 | Exterior.KoszulComplex.complex R (Fin n → R) (equation R s) ⟶ |
| 39 | Exterior.KoszulComplex.complex R (Fin n → R) (equation R t) := |
| 40 | Exterior.KoszulComplex.map R _ _ _ _ (Matrix.toLin' A.transpose) |
| 41 | (equation_matrix R s t A h) |
| 42 | |
| 43 | theorem dual_top (s t : Fin n → R) (A : Matrix (Fin n) (Fin n) R) |
| 44 | (h : ∀ i, s i = ∑ j, A i j * t j) |
| 45 | (a : Module.Dual R (⋀[R]^n (Fin n → R))) : |
| 46 | a.comp ((change R s t A h).f n).hom = A.det • a := by |
| 47 | have ht := Exterior.KoszulComplex.dual_top R _ (Pi.basisFun R (Fin n)) |
| 48 | (equation R s) (equation R t) (Matrix.toLin' A.transpose) |
| 49 | (equation_matrix R s t A h) a |
| 50 | simpa only [change, LinearMap.det_toLin', Matrix.det_transpose] using ht |
| 51 | |
| 52 | variable {R} (I : Ideal R) (s t : Fin n → I) |
| 53 | (b : Module.Basis (Fin n) (R ⧸ I) I.Cotangent) |
| 54 | (hb : ∀ i, b i = I.toCotangent (t i)) |
| 55 | (A : Matrix (Fin n) (Fin n) R) |
| 56 | (h : ∀ i, (s i).val = ∑ j, A i j * (t j).val) |
| 57 | |
| 58 | include h in |
| 59 | theorem conormal_equation (i : Fin n) : |
| 60 | I.toCotangent (s i) = ∑ j, (Ideal.Quotient.mk I (A i j)) • I.toCotangent (t j) := by |
| 61 | have he : s i = ∑ j, A i j • t j := by |
| 62 | apply Subtype.ext |
| 63 | simpa using h i |
| 64 | rw [he, map_sum] |
| 65 | apply Finset.sum_congr rfl |
| 66 | intro j _ |
| 67 | rw [map_smul] |
| 68 | exact (algebraMap_smul (R ⧸ I) (A i j) (I.toCotangent (t j))).symm |
| 69 | |
| 70 | include hb h in |
| 71 | theorem conormal_matrix : |
| 72 | b.toMatrix (fun i => I.toCotangent (s i)) = |
| 73 | ((Ideal.Quotient.mk I).mapMatrix A).transpose := by |
| 74 | ext i j |
| 75 | rw [Module.Basis.toMatrix_apply, conormal_equation I s t A h j] |
| 76 | simp only [← hb, map_sum, map_smul, Module.Basis.repr_self] |
| 77 | simp [Matrix.transpose_apply, RingHom.mapMatrix_apply, Finsupp.single_apply] |
| 78 | |
| 79 | include hb h in |
| 80 | theorem conormal_determinant : |
| 81 | b.det (fun i => I.toCotangent (s i)) = Ideal.Quotient.mk I A.det := by |
| 82 | rw [Module.Basis.det_apply, conormal_matrix I s t b hb A h, |
| 83 | Matrix.det_transpose, ← RingHom.map_det] |
| 84 | |
| 85 | end |
| 86 | |
| 87 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Koszul.GeneratorMatrix |