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.RepresentationTheory.Theta.Adelic.GeneralSplitAction |
| 2 | import OAI.RepresentationTheory.Weil.AdelicSplitting.Normalization |
| 3 | |
| 4 | /-! # General Split Determinant -/ |
| 5 | |
| 6 | namespace OAI.RepresentationTheory.Theta.Adelic.GeneralSplitDeterminant |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Exact determinant identities on both open cells of a split unitary |
| 11 | pair. These identities retain the determinant character for full GL rank. -/ |
| 12 | |
| 13 | open OAI.RepresentationTheory.Weil.AdelicSplitting.Normalization.Construction OAI.RepresentationTheory.Theta.Adelic.SpecialUnitary.SplitAlgebra OAI.RepresentationTheory.Theta.Adelic.SplitUnitary |
| 14 | open OAI.RepresentationTheory.Theta.Adelic.GeneralSplitAction.Coordinates OAI.RepresentationTheory.Theta.Adelic.GeneralSplitAction |
| 15 | |
| 16 | variable {k : Type} [Field k] [CharZero k] {d : k} |
| 17 | variable (r : k) (hr : r ^ 2 = d) (hr0 : r ≠ 0) |
| 18 | variable {I : Type} [Fintype I] [DecidableEq I] |
| 19 | |
| 20 | theorem det_sub_one_components (Q : (Matrix I I (Weil.AdelicSplitting.UnitaryBase.Construction.Quadratic k d))ˣ) (g : Weil.AdelicSplitting.UnitaryBase.Construction.Unitary Q.val) : |
| 21 | (SpecialUnitary.SplitAlgebra.minusMatrix r hr hr0 g.val.val - 1).det * (SpecialUnitary.SplitAlgebra.plusMatrix r hr hr0 g.val.val).det = |
| 22 | (-1 : k) ^ Fintype.card I * (SpecialUnitary.SplitAlgebra.plusMatrix r hr hr0 g.val.val - 1).det := by |
| 23 | let A := SpecialUnitary.SplitAlgebra.plusMatrix r hr hr0 g.val.val |
| 24 | let B := SpecialUnitary.SplitAlgebra.minusMatrix r hr hr0 g.val.val |
| 25 | let P := SpecialUnitary.SplitAlgebra.plusMatrix r hr hr0 Q.val |
| 26 | have hP : P.det ≠ 0 := (Matrix.GeneralLinearGroup.det (SplitUnitary.plusUnits r hr hr0 Q)).ne_zero |
| 27 | have hg : B.transpose * P * A = P := GeneralSplitAction.first_equation r hr hr0 Q.val g |
| 28 | have he : (B - 1).transpose * P * A = -(P * (A - 1)) := by |
| 29 | rw [Matrix.transpose_sub, Matrix.transpose_one, sub_mul, sub_mul, one_mul, |
| 30 | hg, mul_sub, mul_one] |
| 31 | abel |
| 32 | have hdet := congrArg Matrix.det he |
| 33 | simp only [Matrix.det_mul, Matrix.det_transpose, Matrix.det_neg] at hdet |
| 34 | change (B - 1).det * A.det = (-1) ^ Fintype.card I * (A - 1).det |
| 35 | apply mul_left_cancel₀ hP |
| 36 | calc |
| 37 | _ = (B - 1).det * P.det * A.det := by ring |
| 38 | _ = (-1) ^ Fintype.card I * (P.det * (A - 1).det) := hdet |
| 39 | _ = _ := by ring |
| 40 | |
| 41 | theorem open_cell_det_components (Q : (Matrix I I (Weil.AdelicSplitting.UnitaryBase.Construction.Quadratic k d))ˣ) (g : Weil.AdelicSplitting.UnitaryBase.Construction.Unitary Q.val) |
| 42 | (u : (Matrix I I (Weil.AdelicSplitting.UnitaryBase.Construction.Quadratic k d))ˣ) (hu : u.val = g.val.val - 1) : |
| 43 | SpecialUnitary.SplitAlgebra.minus r hr hr0 (Matrix.GeneralLinearGroup.det u).val * |
| 44 | SpecialUnitary.SplitAlgebra.plus r hr hr0 (Matrix.GeneralLinearGroup.det g.val).val = |
| 45 | (-1 : k) ^ Fintype.card I * SpecialUnitary.SplitAlgebra.plus r hr hr0 (Matrix.GeneralLinearGroup.det u).val := by |
| 46 | change SpecialUnitary.SplitAlgebra.minus r hr hr0 u.val.det * SpecialUnitary.SplitAlgebra.plus r hr hr0 g.val.val.det = |
| 47 | (-1 : k) ^ Fintype.card I * SpecialUnitary.SplitAlgebra.plus r hr hr0 u.val.det |
| 48 | rw [(SpecialUnitary.SplitAlgebra.minus r hr hr0).map_det, (SpecialUnitary.SplitAlgebra.plus r hr hr0).map_det, (SpecialUnitary.SplitAlgebra.plus r hr hr0).map_det, hu] |
| 49 | change (SpecialUnitary.SplitAlgebra.minusMatrix r hr hr0 (g.val.val - 1)).det * (SpecialUnitary.SplitAlgebra.plusMatrix r hr hr0 g.val.val).det = |
| 50 | (-1 : k) ^ Fintype.card I * (SpecialUnitary.SplitAlgebra.plusMatrix r hr hr0 (g.val.val - 1)).det |
| 51 | rw [map_sub, map_one, map_sub, map_one] |
| 52 | exact det_sub_one_components r hr hr0 Q g |
| 53 | |
| 54 | theorem first_argument_components (hd : d ≠ 0) |
| 55 | (H : (Matrix I I (Weil.AdelicSplitting.UnitaryBase.Construction.Quadratic k d))ˣ) (hH : H.val.conjTranspose = H.val) |
| 56 | (g : Weil.AdelicSplitting.UnitaryBase.Construction.Unitary H.val) (u : (Matrix I I (Weil.AdelicSplitting.UnitaryBase.Construction.Quadratic k d))ˣ) (hu : u.val = g.val.val - 1) : |
| 57 | SpecialUnitary.SplitAlgebra.minus r hr hr0 ((Weil.AdelicSplitting.Normalization.Construction.deltaUnit d hd) ^ Fintype.card I * Matrix.GeneralLinearGroup.det H * |
| 58 | Matrix.GeneralLinearGroup.det u).val * |
| 59 | SpecialUnitary.SplitAlgebra.plus r hr hr0 (Matrix.GeneralLinearGroup.det g.val).val = |
| 60 | SpecialUnitary.SplitAlgebra.plus r hr hr0 ((Weil.AdelicSplitting.Normalization.Construction.deltaUnit d hd) ^ Fintype.card I * Matrix.GeneralLinearGroup.det H * |
| 61 | Matrix.GeneralLinearGroup.det u).val := by |
| 62 | have hHd : SpecialUnitary.SplitAlgebra.minus r hr hr0 (Matrix.GeneralLinearGroup.det H).val = |
| 63 | SpecialUnitary.SplitAlgebra.plus r hr hr0 (Matrix.GeneralLinearGroup.det H).val := by |
| 64 | change SpecialUnitary.SplitAlgebra.minus r hr hr0 H.val.det = SpecialUnitary.SplitAlgebra.plus r hr hr0 H.val.det |
| 65 | rw [(SpecialUnitary.SplitAlgebra.minus r hr hr0).map_det, (SpecialUnitary.SplitAlgebra.plus r hr hr0).map_det] |
| 66 | change (SpecialUnitary.SplitAlgebra.minusMatrix r hr hr0 H.val).det = (SpecialUnitary.SplitAlgebra.plusMatrix r hr hr0 H.val).det |
| 67 | rw [SplitUnitary.hermitian_minus r hr hr0 H hH, Matrix.det_transpose] |
| 68 | have hp : SpecialUnitary.SplitAlgebra.plus r hr hr0 (Weil.AdelicSplitting.Normalization.Construction.deltaUnit d hd).val = r := by change 0 + r * 1 = r; ring |
| 69 | have hm : SpecialUnitary.SplitAlgebra.minus r hr hr0 (Weil.AdelicSplitting.Normalization.Construction.deltaUnit d hd).val = -r := by change 0 - r * 1 = -r; ring |
| 70 | simp only [Units.val_mul, Units.val_pow_eq_pow_val, map_mul, map_pow, hHd, hp, hm] |
| 71 | rw [mul_assoc, open_cell_det_components r hr hr0 H g u hu] |
| 72 | have hs : (-1 : k) ^ Fintype.card I * (-1 : k) ^ Fintype.card I = 1 := by |
| 73 | rw [← mul_pow, neg_one_mul, neg_neg, one_pow] |
| 74 | rw [neg_eq_neg_one_mul, mul_pow] |
| 75 | calc |
| 76 | _ = ((-1 : k) ^ Fintype.card I * (-1 : k) ^ Fintype.card I) * |
| 77 | (r ^ Fintype.card I * SpecialUnitary.SplitAlgebra.plus r hr hr0 (Matrix.GeneralLinearGroup.det H).val * |
| 78 | SpecialUnitary.SplitAlgebra.plus r hr hr0 (Matrix.GeneralLinearGroup.det u).val) := by ring |
| 79 | _ = _ := by rw [hs, one_mul] |
| 80 | |
| 81 | theorem second_argument_components |
| 82 | (K : (Matrix I I (Weil.AdelicSplitting.UnitaryBase.Construction.Quadratic k d))ˣ) (hK : K.val.conjTranspose = -K.val) |
| 83 | (g : Weil.AdelicSplitting.UnitaryBase.Construction.Unitary K.val) (u : (Matrix I I (Weil.AdelicSplitting.UnitaryBase.Construction.Quadratic k d))ˣ) (hu : u.val = g.val.val - 1) : |
| 84 | SpecialUnitary.SplitAlgebra.minus r hr hr0 (Matrix.GeneralLinearGroup.det K * Matrix.GeneralLinearGroup.det u).val * |
| 85 | SpecialUnitary.SplitAlgebra.plus r hr hr0 (Matrix.GeneralLinearGroup.det g.val).val = |
| 86 | SpecialUnitary.SplitAlgebra.plus r hr hr0 (Matrix.GeneralLinearGroup.det K * Matrix.GeneralLinearGroup.det u).val := by |
| 87 | have hKd : SpecialUnitary.SplitAlgebra.minus r hr hr0 (Matrix.GeneralLinearGroup.det K).val = |
| 88 | (-1 : k) ^ Fintype.card I * SpecialUnitary.SplitAlgebra.plus r hr hr0 (Matrix.GeneralLinearGroup.det K).val := by |
| 89 | change SpecialUnitary.SplitAlgebra.minus r hr hr0 K.val.det = (-1 : k) ^ Fintype.card I * SpecialUnitary.SplitAlgebra.plus r hr hr0 K.val.det |
| 90 | rw [(SpecialUnitary.SplitAlgebra.minus r hr hr0).map_det, (SpecialUnitary.SplitAlgebra.plus r hr hr0).map_det] |
| 91 | change (SpecialUnitary.SplitAlgebra.minusMatrix r hr hr0 K.val).det = (-1 : k) ^ Fintype.card I * |
| 92 | (SpecialUnitary.SplitAlgebra.plusMatrix r hr hr0 K.val).det |
| 93 | rw [GeneralSplitAction.Coordinates.skew_minus_matrix r hr hr0 I K.val hK, Matrix.det_neg, Matrix.det_transpose] |
| 94 | simp only [Units.val_mul, map_mul, hKd] |
| 95 | rw [mul_assoc, open_cell_det_components r hr hr0 K g u hu] |
| 96 | have hs : (-1 : k) ^ Fintype.card I * (-1 : k) ^ Fintype.card I = 1 := by |
| 97 | rw [← mul_pow, neg_one_mul, neg_neg, one_pow] |
| 98 | calc |
| 99 | _ = ((-1 : k) ^ Fintype.card I * (-1 : k) ^ Fintype.card I) * |
| 100 | (SpecialUnitary.SplitAlgebra.plus r hr hr0 (Matrix.GeneralLinearGroup.det K).val * |
| 101 | SpecialUnitary.SplitAlgebra.plus r hr hr0 (Matrix.GeneralLinearGroup.det u).val) := by ring |
| 102 | _ = _ := by rw [hs, one_mul] |
| 103 | |
| 104 | end |
| 105 | |
| 106 | end OAI.RepresentationTheory.Theta.Adelic.GeneralSplitDeterminant |