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.SplitTensor |
| 2 | |
| 3 | /-! # General Split Action -/ |
| 4 | |
| 5 | namespace OAI |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | namespace RepresentationTheory.Theta.Adelic.GeneralSplitAction.Coordinates |
| 10 | |
| 11 | /-! Root coordinates and the trace pairing for an arbitrary split |
| 12 | quadratic skew-Hermitian space. -/ |
| 13 | |
| 14 | open OAI.RepresentationTheory.Theta.Adelic.SpecialUnitary.SplitAlgebra OAI.RepresentationTheory.Theta.Adelic.SplitUnitary OAI.RepresentationTheory.Theta.Adelic.SplitTensor |
| 15 | |
| 16 | variable {k : Type} [Field k] [CharZero k] {d : k} |
| 17 | variable (r : k) (hr : r ^ 2 = d) (hr0 : r ≠ 0) (I : Type) |
| 18 | |
| 19 | def rootCoordinates : (I → Weil.AdelicSplitting.UnitaryBase.Construction.Quadratic k d) ≃ₗ[k] (I → k) × (I → k) where |
| 20 | toFun x := (fun i => SpecialUnitary.SplitAlgebra.plus r hr hr0 (x i), fun i => SpecialUnitary.SplitAlgebra.minus r hr hr0 (x i)) |
| 21 | invFun p := fun i => (SpecialUnitary.SplitAlgebra.splitAlgebra r hr hr0).symm (p.1 i, p.2 i) |
| 22 | left_inv x := by |
| 23 | funext i |
| 24 | exact (SpecialUnitary.SplitAlgebra.splitAlgebra r hr hr0).symm_apply_apply (x i) |
| 25 | right_inv p := by |
| 26 | apply Prod.ext |
| 27 | · funext i |
| 28 | exact congrArg Prod.fst ((SpecialUnitary.SplitAlgebra.splitAlgebra r hr hr0).apply_symm_apply (p.1 i, p.2 i)) |
| 29 | · funext i |
| 30 | exact congrArg Prod.snd ((SpecialUnitary.SplitAlgebra.splitAlgebra r hr hr0).apply_symm_apply (p.1 i, p.2 i)) |
| 31 | map_add' x y := by |
| 32 | apply Prod.ext <;> funext i <;> exact map_add _ _ _ |
| 33 | map_smul' c x := by |
| 34 | apply Prod.ext |
| 35 | · funext i |
| 36 | exact congrArg Prod.fst (map_smul (SpecialUnitary.SplitAlgebra.splitAlgebra r hr hr0).toLinearEquiv c (x i)) |
| 37 | · funext i |
| 38 | exact congrArg Prod.snd (map_smul (SpecialUnitary.SplitAlgebra.splitAlgebra r hr hr0).toLinearEquiv c (x i)) |
| 39 | |
| 40 | variable [Fintype I] [DecidableEq I] |
| 41 | |
| 42 | theorem skew_minus_matrix (Q : Matrix I I (Weil.AdelicSplitting.UnitaryBase.Construction.Quadratic k d)) (hQ : Q.conjTranspose = -Q) : |
| 43 | SpecialUnitary.SplitAlgebra.minusMatrix r hr hr0 Q = -(SpecialUnitary.SplitAlgebra.plusMatrix r hr hr0 Q).transpose := by |
| 44 | have h := congrArg (SpecialUnitary.SplitAlgebra.minusMatrix r hr hr0) hQ |
| 45 | rw [SplitUnitary.minusMatrix_conjTranspose, map_neg] at h |
| 46 | simpa only [neg_neg] using (congrArg Neg.neg h).symm |
| 47 | |
| 48 | theorem split_skew_trace (Q : Matrix I I (Weil.AdelicSplitting.UnitaryBase.Construction.Quadratic k d)) (hQ : Q.conjTranspose = -Q) |
| 49 | (x y : I → Weil.AdelicSplitting.UnitaryBase.Construction.Quadratic k d) : |
| 50 | QuadraticAlgebra.trace (Weil.AdelicSplitting.TensorSpace.Construction.formValue Q x y) / 2 = |
| 51 | (dotProduct (rootCoordinates r hr hr0 I x).2 |
| 52 | ((SpecialUnitary.SplitAlgebra.plusMatrix r hr hr0 Q).mulVec (rootCoordinates r hr hr0 I y).1) - |
| 53 | dotProduct (rootCoordinates r hr hr0 I x).1 |
| 54 | ((SpecialUnitary.SplitAlgebra.plusMatrix r hr hr0 Q).transpose.mulVec (rootCoordinates r hr hr0 I y).2)) / 2 := by |
| 55 | rw [SplitTensor.trace_eq_components r hr hr0, SplitTensor.plus_formValue, SplitTensor.minus_formValue, |
| 56 | skew_minus_matrix r hr hr0 I Q hQ, Matrix.neg_mulVec, dotProduct_neg, ← sub_eq_add_neg] |
| 57 | rfl |
| 58 | |
| 59 | def negativeHalf : kˣ := Units.mk0 (-1 / 2 : k) (div_ne_zero (neg_ne_zero.mpr one_ne_zero) two_ne_zero) |
| 60 | |
| 61 | def momentumUnit (Q : (Matrix I I (Weil.AdelicSplitting.UnitaryBase.Construction.Quadratic k d))ˣ) : (Matrix I I k)ˣ := |
| 62 | Units.map (algebraMap k (Matrix I I k)).toMonoidHom (negativeHalf (k := k)) * |
| 63 | SplitUnitary.transposeUnit (SplitUnitary.plusUnits r hr hr0 Q) |
| 64 | |
| 65 | theorem momentumUnit_mulVec (Q : (Matrix I I (Weil.AdelicSplitting.UnitaryBase.Construction.Quadratic k d))ˣ) (x : I → k) : |
| 66 | (momentumUnit r hr hr0 I Q).val.mulVec x = |
| 67 | (-1 / 2 : k) • (SpecialUnitary.SplitAlgebra.plusMatrix r hr hr0 Q.val).transpose.mulVec x := by |
| 68 | change (algebraMap k (Matrix I I k) (-1 / 2) * (SpecialUnitary.SplitAlgebra.plusMatrix r hr hr0 Q.val).transpose).mulVec x = _ |
| 69 | rw [Algebra.algebraMap_eq_smul_one, smul_mul_assoc, one_mul, Matrix.smul_mulVec] |
| 70 | |
| 71 | def polarizedCoordinates (Q : (Matrix I I (Weil.AdelicSplitting.UnitaryBase.Construction.Quadratic k d))ˣ) : |
| 72 | (I → Weil.AdelicSplitting.UnitaryBase.Construction.Quadratic k d) ≃ₗ[k] (I → k) × (I → k) := |
| 73 | (rootCoordinates r hr hr0 I).trans |
| 74 | ((LinearEquiv.refl k (I → k)).prodCongr |
| 75 | (Matrix.GeneralLinearGroup.toLin (momentumUnit r hr hr0 I Q)).toLinearEquiv) |
| 76 | |
| 77 | theorem polarizedCoordinates_preserves (Q : (Matrix I I (Weil.AdelicSplitting.UnitaryBase.Construction.Quadratic k d))ˣ) |
| 78 | (hQ : Q.val.conjTranspose = -Q.val) (x y : I → Weil.AdelicSplitting.UnitaryBase.Construction.Quadratic k d) : |
| 79 | dotProduct (polarizedCoordinates r hr hr0 I Q x).1 (polarizedCoordinates r hr hr0 I Q y).2 - |
| 80 | dotProduct (polarizedCoordinates r hr hr0 I Q x).2 (polarizedCoordinates r hr hr0 I Q y).1 = |
| 81 | QuadraticAlgebra.trace (Weil.AdelicSplitting.TensorSpace.Construction.formValue Q.val x y) / 2 := by |
| 82 | change dotProduct (rootCoordinates r hr hr0 I x).1 |
| 83 | ((momentumUnit r hr hr0 I Q).val.mulVec (rootCoordinates r hr hr0 I y).2) - |
| 84 | dotProduct ((momentumUnit r hr hr0 I Q).val.mulVec (rootCoordinates r hr hr0 I x).2) |
| 85 | (rootCoordinates r hr hr0 I y).1 = _ |
| 86 | rw [momentumUnit_mulVec, momentumUnit_mulVec, split_skew_trace r hr hr0 I Q.val hQ, |
| 87 | dotProduct_smul, smul_dotProduct, Matrix.dotProduct_transpose_mulVec, |
| 88 | Matrix.mulVec_transpose, ← Matrix.dotProduct_mulVec] |
| 89 | simp only [smul_eq_mul] |
| 90 | ring |
| 91 | |
| 92 | end RepresentationTheory.Theta.Adelic.GeneralSplitAction.Coordinates |
| 93 | |
| 94 | namespace RepresentationTheory.Theta.Adelic.GeneralSplitAction |
| 95 | |
| 96 | /-! The full unitary group of a split skew-Hermitian space acts by a |
| 97 | linear map and its inverse transpose in the explicit polarization. -/ |
| 98 | |
| 99 | open OAI.RepresentationTheory.Theta.Adelic.SpecialUnitary.SplitAlgebra OAI.RepresentationTheory.Theta.Adelic.SplitUnitary |
| 100 | open OAI.RepresentationTheory.Theta.Adelic.GeneralSplitAction.Coordinates |
| 101 | |
| 102 | variable {k : Type} [Field k] [CharZero k] {d : k} |
| 103 | variable (r : k) (hr : r ^ 2 = d) (hr0 : r ≠ 0) |
| 104 | variable {I : Type} [Fintype I] [DecidableEq I] |
| 105 | |
| 106 | theorem first_equation (Q : Matrix I I (Weil.AdelicSplitting.UnitaryBase.Construction.Quadratic k d)) (g : Weil.AdelicSplitting.UnitaryBase.Construction.Unitary Q) : |
| 107 | (SplitUnitary.minusUnits r hr hr0 g.val).val.transpose * SpecialUnitary.SplitAlgebra.plusMatrix r hr hr0 Q * |
| 108 | (SplitUnitary.plusUnits r hr hr0 g.val).val = SpecialUnitary.SplitAlgebra.plusMatrix r hr hr0 Q := by |
| 109 | change (SpecialUnitary.SplitAlgebra.minusMatrix r hr hr0 g.val.val).transpose * SpecialUnitary.SplitAlgebra.plusMatrix r hr hr0 Q * |
| 110 | SpecialUnitary.SplitAlgebra.plusMatrix r hr hr0 g.val.val = _ |
| 111 | have h := congrArg (SpecialUnitary.SplitAlgebra.plusMatrix r hr hr0) g.property |
| 112 | simpa only [map_mul, SplitUnitary.plusMatrix_conjTranspose] using h |
| 113 | |
| 114 | theorem dual_matrix_relation (Q : (Matrix I I (Weil.AdelicSplitting.UnitaryBase.Construction.Quadratic k d))ˣ) (g : Weil.AdelicSplitting.UnitaryBase.Construction.Unitary Q.val) : |
| 115 | (SplitUnitary.plusUnits r hr hr0 Q).val.transpose * (SplitUnitary.minusUnits r hr hr0 g.val).val = |
| 116 | ((SplitUnitary.plusUnits r hr hr0 g.val)⁻¹).val.transpose * (SplitUnitary.plusUnits r hr hr0 Q).val.transpose := by |
| 117 | let A := SplitUnitary.plusUnits r hr hr0 g.val |
| 118 | let B := SplitUnitary.minusUnits r hr hr0 g.val |
| 119 | let P := SplitUnitary.plusUnits r hr hr0 Q |
| 120 | have hfirst : B.val.transpose * P.val * A.val = P.val := |
| 121 | first_equation r hr hr0 Q.val g |
| 122 | have ht : A.val.transpose * P.val.transpose * B.val = P.val.transpose := by |
| 123 | simpa only [Matrix.transpose_mul, Matrix.transpose_transpose, mul_assoc] using |
| 124 | congrArg Matrix.transpose hfirst |
| 125 | have hAi : (A⁻¹).val.transpose * A.val.transpose = 1 := by |
| 126 | rw [← Matrix.transpose_mul, ← Units.val_mul, mul_inv_cancel, Units.val_one, Matrix.transpose_one] |
| 127 | change P.val.transpose * B.val = (A⁻¹).val.transpose * P.val.transpose |
| 128 | calc |
| 129 | _ = ((A⁻¹).val.transpose * A.val.transpose) * (P.val.transpose * B.val) := by rw [hAi, one_mul] |
| 130 | _ = (A⁻¹).val.transpose * (A.val.transpose * P.val.transpose * B.val) := by simp only [mul_assoc] |
| 131 | _ = _ := by rw [ht] |
| 132 | |
| 133 | theorem rootCoordinates_mulVec (A : Matrix I I (Weil.AdelicSplitting.UnitaryBase.Construction.Quadratic k d)) (x : I → Weil.AdelicSplitting.UnitaryBase.Construction.Quadratic k d) : |
| 134 | Coordinates.rootCoordinates r hr hr0 I (A.mulVec x) = |
| 135 | ((SpecialUnitary.SplitAlgebra.plusMatrix r hr hr0 A).mulVec (Coordinates.rootCoordinates r hr hr0 I x).1, |
| 136 | (SpecialUnitary.SplitAlgebra.minusMatrix r hr hr0 A).mulVec (Coordinates.rootCoordinates r hr hr0 I x).2) := by |
| 137 | apply Prod.ext <;> funext i |
| 138 | · change SpecialUnitary.SplitAlgebra.plus r hr hr0 (A.mulVec x i) = _ |
| 139 | simp [Matrix.mulVec, dotProduct, map_sum, map_mul, SpecialUnitary.SplitAlgebra.plusMatrix, Coordinates.rootCoordinates] |
| 140 | · change SpecialUnitary.SplitAlgebra.minus r hr hr0 (A.mulVec x i) = _ |
| 141 | simp [Matrix.mulVec, dotProduct, map_sum, map_mul, SpecialUnitary.SplitAlgebra.minusMatrix, Coordinates.rootCoordinates] |
| 142 | |
| 143 | theorem momentum_intertwines (Q : (Matrix I I (Weil.AdelicSplitting.UnitaryBase.Construction.Quadratic k d))ˣ) |
| 144 | (g : Weil.AdelicSplitting.UnitaryBase.Construction.Unitary Q.val) (x : I → k) : |
| 145 | (Coordinates.momentumUnit r hr hr0 I Q).val.mulVec ((SplitUnitary.minusUnits r hr hr0 g.val).val.mulVec x) = |
| 146 | ((SplitUnitary.plusUnits r hr hr0 g.val)⁻¹).val.transpose.mulVec |
| 147 | ((Coordinates.momentumUnit r hr hr0 I Q).val.mulVec x) := by |
| 148 | rw [Coordinates.momentumUnit_mulVec, Coordinates.momentumUnit_mulVec, Matrix.mulVec_smul, |
| 149 | Matrix.mulVec_mulVec, Matrix.mulVec_mulVec] |
| 150 | exact congrArg (fun A : Matrix I I k => (-1 / 2 : k) • A.mulVec x) |
| 151 | (dual_matrix_relation r hr hr0 Q g) |
| 152 | |
| 153 | theorem polarizedCoordinates_intertwines (Q : (Matrix I I (Weil.AdelicSplitting.UnitaryBase.Construction.Quadratic k d))ˣ) |
| 154 | (g : Weil.AdelicSplitting.UnitaryBase.Construction.Unitary Q.val) (x : I → Weil.AdelicSplitting.UnitaryBase.Construction.Quadratic k d) : |
| 155 | Coordinates.polarizedCoordinates r hr hr0 I Q (g.val.val.mulVec x) = |
| 156 | ((SplitUnitary.plusUnits r hr hr0 g.val).val.mulVec (Coordinates.polarizedCoordinates r hr hr0 I Q x).1, |
| 157 | ((SplitUnitary.plusUnits r hr hr0 g.val)⁻¹).val.transpose.mulVec |
| 158 | (Coordinates.polarizedCoordinates r hr hr0 I Q x).2) := by |
| 159 | change ((Coordinates.rootCoordinates r hr hr0 I (g.val.val.mulVec x)).1, |
| 160 | (Coordinates.momentumUnit r hr hr0 I Q).val.mulVec |
| 161 | (Coordinates.rootCoordinates r hr hr0 I (g.val.val.mulVec x)).2) = _ |
| 162 | rw [rootCoordinates_mulVec] |
| 163 | apply Prod.ext |
| 164 | · rfl |
| 165 | · exact momentum_intertwines r hr hr0 Q g (Coordinates.rootCoordinates r hr hr0 I x).2 |
| 166 | |
| 167 | end RepresentationTheory.Theta.Adelic.GeneralSplitAction |
| 168 | |
| 169 | end |
| 170 | |
| 171 | end OAI |