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.DeterminantCoordinates |
| 2 | |
| 3 | /-! # Unitary Frame Action -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HodgeConjecture.CMExtraction.UnitaryFrameAction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | section |
| 10 | |
| 11 | /-! The determinant on the native weighted line-annihilator frame. |
| 12 | The rank-two factor is computed from the actual conjugate matrix. -/ |
| 13 | |
| 14 | open _root_.Matrix OAI.RepresentationTheory.Theta.Adelic.DeterminantCoordinates |
| 15 | open scoped _root_.Matrix |
| 16 | |
| 17 | variable {k : Type*} [Field k] |
| 18 | |
| 19 | def diagonalForm (b : k) : Matrix (Fin 3) (Fin 3) k := Matrix.diagonal ![1, 1, b] |
| 20 | |
| 21 | def weightedAnnihilator (b : k) (z : Fin 2 → k) (j : Fin 2) : Fin 3 → k := |
| 22 | if j = 0 then ![1, 0, -z 0 / b] else ![0, 1, -z 1 / b] |
| 23 | |
| 24 | theorem weightedAnnihilator_cross (b : k) (hb : b ≠ 0) (z : Fin 2 → k) : |
| 25 | weightedAnnihilator b z 0 ⨯₃ weightedAnnihilator b z 1 = |
| 26 | b⁻¹ • ((diagonalForm b).mulVec (RepresentationTheory.Theta.Adelic.DeterminantCoordinates.lineVector z)) := by |
| 27 | funext i |
| 28 | fin_cases i <;> |
| 29 | simp [weightedAnnihilator, cross_apply, diagonalForm, Matrix.mulVec_diagonal, |
| 30 | RepresentationTheory.Theta.Adelic.DeterminantCoordinates.lineVector, div_eq_mul_inv, hb, mul_comm] |
| 31 | |
| 32 | theorem inverseTranspose_cross_form (b : k) (A B : Matrix.SpecialLinearGroup (Fin 3) k) |
| 33 | (hAB : A.val.transpose * diagonalForm b * B.val = diagonalForm b) : |
| 34 | (B⁻¹).val.transpose * diagonalForm b = diagonalForm b * A.val := by |
| 35 | have hs : (diagonalForm b).transpose = diagonalForm b := Matrix.diagonal_transpose _ |
| 36 | have ht := congrArg Matrix.transpose hAB |
| 37 | simp only [Matrix.transpose_mul, Matrix.transpose_transpose, hs] at ht |
| 38 | have hi : (B⁻¹).val.transpose * B.val.transpose = 1 := by |
| 39 | rw [← Matrix.transpose_mul, ← Matrix.SpecialLinearGroup.coe_mul, |
| 40 | mul_inv_cancel, Matrix.SpecialLinearGroup.coe_one, Matrix.transpose_one] |
| 41 | have h := congrArg (fun M => (B⁻¹).val.transpose * M) ht |
| 42 | simpa only [← Matrix.mul_assoc, hi, Matrix.one_mul] using h.symm |
| 43 | |
| 44 | def weightedDualCoordinates (b : k) (B : Matrix.SpecialLinearGroup (Fin 3) k) |
| 45 | (z : Fin 2 → k) : Matrix (Fin 2) (Fin 2) k := |
| 46 | fun i j => (B.val.mulVec (weightedAnnihilator b z j)) i.castSucc |
| 47 | |
| 48 | theorem weightedDualCoordinates_det (b : k) (hb : b ≠ 0) |
| 49 | (A B : Matrix.SpecialLinearGroup (Fin 3) k) |
| 50 | (hAB : A.val.transpose * diagonalForm b * B.val = diagonalForm b) |
| 51 | (z : Fin 2 → k) : |
| 52 | (weightedDualCoordinates b B z).det = RepresentationTheory.Theta.Adelic.DeterminantCoordinates.denominator A z := by |
| 53 | have h := congrFun (RepresentationTheory.Theta.Adelic.DeterminantCoordinates.cross_mulVec B.val (weightedAnnihilator b z 0) |
| 54 | (weightedAnnihilator b z 1)) 2 |
| 55 | rw [weightedAnnihilator_cross b hb z, Matrix.mulVec_smul, Matrix.mulVec_mulVec] at h |
| 56 | change _ = (b⁻¹ • (((B⁻¹).val.transpose * diagonalForm b).mulVec (RepresentationTheory.Theta.Adelic.DeterminantCoordinates.lineVector z))) 2 at h |
| 57 | rw [inverseTranspose_cross_form b A B hAB, ← Matrix.mulVec_mulVec] at h |
| 58 | have h' : (B.val.mulVec (weightedAnnihilator b z 0) ⨯₃ |
| 59 | B.val.mulVec (weightedAnnihilator b z 1)) 2 = RepresentationTheory.Theta.Adelic.DeterminantCoordinates.denominator A z := by |
| 60 | have heval : ((diagonalForm b).mulVec (A.val.mulVec (RepresentationTheory.Theta.Adelic.DeterminantCoordinates.lineVector z))) 2 = |
| 61 | b * (A.val.mulVec (RepresentationTheory.Theta.Adelic.DeterminantCoordinates.lineVector z)) 2 := Matrix.mulVec_diagonal _ _ 2 |
| 62 | change _ = b⁻¹ * ((diagonalForm b).mulVec (A.val.mulVec (RepresentationTheory.Theta.Adelic.DeterminantCoordinates.lineVector z))) 2 at h |
| 63 | rw [heval, ← mul_assoc, inv_mul_cancel₀ hb, one_mul] at h |
| 64 | exact h |
| 65 | calc |
| 66 | (weightedDualCoordinates b B z).det = |
| 67 | (B.val.mulVec (weightedAnnihilator b z 0) ⨯₃ |
| 68 | B.val.mulVec (weightedAnnihilator b z 1)) 2 := by |
| 69 | simp [weightedDualCoordinates, Matrix.det_fin_two, cross_apply] |
| 70 | ring |
| 71 | _ = RepresentationTheory.Theta.Adelic.DeterminantCoordinates.denominator A z := h' |
| 72 | |
| 73 | def activeFrameMatrix (b : k) (A B : Matrix.SpecialLinearGroup (Fin 3) k) |
| 74 | (z : Fin 2 → k) : Matrix (Fin 3) (Fin 3) k := |
| 75 | !![RepresentationTheory.Theta.Adelic.DeterminantCoordinates.denominator A z, 0, 0; |
| 76 | 0, weightedDualCoordinates b B z 0 0, weightedDualCoordinates b B z 0 1; |
| 77 | 0, weightedDualCoordinates b B z 1 0, weightedDualCoordinates b B z 1 1] |
| 78 | |
| 79 | theorem activeFrameMatrix_det (b : k) (hb : b ≠ 0) |
| 80 | (A B : Matrix.SpecialLinearGroup (Fin 3) k) |
| 81 | (hAB : A.val.transpose * diagonalForm b * B.val = diagonalForm b) |
| 82 | (z : Fin 2 → k) : |
| 83 | (activeFrameMatrix b A B z).det = RepresentationTheory.Theta.Adelic.DeterminantCoordinates.denominator A z ^ 2 := by |
| 84 | have h : (activeFrameMatrix b A B z).det = |
| 85 | RepresentationTheory.Theta.Adelic.DeterminantCoordinates.denominator A z * (weightedDualCoordinates b B z).det := by |
| 86 | simp [activeFrameMatrix, Matrix.det_fin_three, Matrix.det_fin_two] |
| 87 | ring |
| 88 | rw [h, weightedDualCoordinates_det b hb A B hAB, pow_two] |
| 89 | |
| 90 | end |
| 91 | |
| 92 | /-! The actual rank-three matrices transport the weighted line and its |
| 93 | annihilator to the new projective point, with the calculated frame matrix. -/ |
| 94 | |
| 95 | open _root_.Matrix OAI.RepresentationTheory.Theta.Adelic.DeterminantCoordinates |
| 96 | open scoped _root_.Matrix |
| 97 | |
| 98 | variable {k : Type*} [Field k] |
| 99 | |
| 100 | theorem weighted_pairing_preserved (b : k) (A B : Matrix.SpecialLinearGroup (Fin 3) k) |
| 101 | (hAB : A.val.transpose * diagonalForm b * B.val = diagonalForm b) |
| 102 | (u w : Fin 3 → k) : |
| 103 | A.val.mulVec u ⬝ᵥ (diagonalForm b).mulVec (B.val.mulVec w) = |
| 104 | u ⬝ᵥ (diagonalForm b).mulVec w := by |
| 105 | calc |
| 106 | _ = u ⬝ᵥ A.val.transpose.mulVec ((diagonalForm b).mulVec (B.val.mulVec w)) := by |
| 107 | rw [dotProduct_transpose_mulVec, dotProduct_comm] |
| 108 | _ = _ := by rw [Matrix.mulVec_mulVec, Matrix.mulVec_mulVec, hAB] |
| 109 | |
| 110 | theorem weightedAnnihilator_orthogonal (b : k) (hb : b ≠ 0) |
| 111 | (z : Fin 2 → k) (j : Fin 2) : |
| 112 | RepresentationTheory.Theta.Adelic.DeterminantCoordinates.lineVector z ⬝ᵥ (diagonalForm b).mulVec (weightedAnnihilator b z j) = 0 := by |
| 113 | fin_cases j <;> |
| 114 | simp [RepresentationTheory.Theta.Adelic.DeterminantCoordinates.lineVector, diagonalForm, Matrix.mulVec_diagonal, weightedAnnihilator, |
| 115 | dotProduct, Fin.sum_univ_succ] <;> field_simp <;> ring |
| 116 | |
| 117 | theorem weightedAnnihilator_reconstruct (b : k) (hb : b ≠ 0) |
| 118 | (z : Fin 2 → k) (w : Fin 3 → k) |
| 119 | (hw : RepresentationTheory.Theta.Adelic.DeterminantCoordinates.lineVector z ⬝ᵥ (diagonalForm b).mulVec w = 0) : |
| 120 | w = w 0 • weightedAnnihilator b z 0 + w 1 • weightedAnnihilator b z 1 := by |
| 121 | have he : z 0 * w 0 + z 1 * w 1 + b * w 2 = 0 := by |
| 122 | simpa [RepresentationTheory.Theta.Adelic.DeterminantCoordinates.lineVector, diagonalForm, Matrix.mulVec_diagonal, dotProduct, |
| 123 | Fin.sum_univ_succ, add_assoc] using hw |
| 124 | funext i |
| 125 | fin_cases i <;> simp [weightedAnnihilator] |
| 126 | field_simp |
| 127 | linear_combination he |
| 128 | |
| 129 | theorem weightedAnnihilator_transform (b : k) (hb : b ≠ 0) |
| 130 | (A B : Matrix.SpecialLinearGroup (Fin 3) k) |
| 131 | (hAB : A.val.transpose * diagonalForm b * B.val = diagonalForm b) |
| 132 | (z : Fin 2 → k) (hd : RepresentationTheory.Theta.Adelic.DeterminantCoordinates.denominator A z ≠ 0) (j : Fin 2) : |
| 133 | B.val.mulVec (weightedAnnihilator b z j) = |
| 134 | weightedDualCoordinates b B z 0 j • weightedAnnihilator b (RepresentationTheory.Theta.Adelic.DeterminantCoordinates.chartImage A z) 0 + |
| 135 | weightedDualCoordinates b B z 1 j • weightedAnnihilator b (RepresentationTheory.Theta.Adelic.DeterminantCoordinates.chartImage A z) 1 := by |
| 136 | apply weightedAnnihilator_reconstruct b hb |
| 137 | have h := weighted_pairing_preserved b A B hAB (RepresentationTheory.Theta.Adelic.DeterminantCoordinates.lineVector z) (weightedAnnihilator b z j) |
| 138 | rw [weightedAnnihilator_orthogonal b hb z j, RepresentationTheory.Theta.Adelic.DeterminantCoordinates.lineVector_chartImage A z hd, |
| 139 | smul_dotProduct] at h |
| 140 | exact (mul_eq_zero.mp h).resolve_left hd |
| 141 | |
| 142 | def weightedFrame (b : k) (z : Fin 2 → k) (u : Fin 3 → k) : (Fin 3 → k) × (Fin 3 → k) := |
| 143 | (u 0 • RepresentationTheory.Theta.Adelic.DeterminantCoordinates.lineVector z, |
| 144 | u 1 • weightedAnnihilator b z 0 + u 2 • weightedAnnihilator b z 1) |
| 145 | |
| 146 | theorem activeFrameMatrix_mulVec (b : k) (A B : Matrix.SpecialLinearGroup (Fin 3) k) |
| 147 | (z : Fin 2 → k) (u : Fin 3 → k) : |
| 148 | (activeFrameMatrix b A B z).mulVec u = |
| 149 | ![RepresentationTheory.Theta.Adelic.DeterminantCoordinates.denominator A z * u 0, |
| 150 | weightedDualCoordinates b B z 0 0 * u 1 + weightedDualCoordinates b B z 0 1 * u 2, |
| 151 | weightedDualCoordinates b B z 1 0 * u 1 + weightedDualCoordinates b B z 1 1 * u 2] := by |
| 152 | funext i |
| 153 | fin_cases i <;> simp [activeFrameMatrix, Matrix.mulVec, dotProduct, Fin.sum_univ_succ] |
| 154 | |
| 155 | theorem weightedFrame_transform (b : k) (hb : b ≠ 0) |
| 156 | (A B : Matrix.SpecialLinearGroup (Fin 3) k) |
| 157 | (hAB : A.val.transpose * diagonalForm b * B.val = diagonalForm b) |
| 158 | (z : Fin 2 → k) (hd : RepresentationTheory.Theta.Adelic.DeterminantCoordinates.denominator A z ≠ 0) (u : Fin 3 → k) : |
| 159 | (A.val.mulVec (weightedFrame b z u).1, B.val.mulVec (weightedFrame b z u).2) = |
| 160 | weightedFrame b (RepresentationTheory.Theta.Adelic.DeterminantCoordinates.chartImage A z) ((activeFrameMatrix b A B z).mulVec u) := by |
| 161 | rw [activeFrameMatrix_mulVec] |
| 162 | apply Prod.ext |
| 163 | · change A.val.mulVec (u 0 • RepresentationTheory.Theta.Adelic.DeterminantCoordinates.lineVector z) = (RepresentationTheory.Theta.Adelic.DeterminantCoordinates.denominator A z * u 0) • RepresentationTheory.Theta.Adelic.DeterminantCoordinates.lineVector (RepresentationTheory.Theta.Adelic.DeterminantCoordinates.chartImage A z) |
| 164 | rw [Matrix.mulVec_smul, RepresentationTheory.Theta.Adelic.DeterminantCoordinates.lineVector_chartImage A z hd, smul_smul, mul_comm] |
| 165 | · change B.val.mulVec (u 1 • weightedAnnihilator b z 0 + u 2 • weightedAnnihilator b z 1) = _ |
| 166 | rw [Matrix.mulVec_add, Matrix.mulVec_smul, Matrix.mulVec_smul, |
| 167 | weightedAnnihilator_transform b hb A B hAB z hd 0, |
| 168 | weightedAnnihilator_transform b hb A B hAB z hd 1] |
| 169 | funext i |
| 170 | simp [weightedFrame, smul_add, smul_smul] |
| 171 | ring |
| 172 | |
| 173 | end |
| 174 | |
| 175 | end OAI.AlgebraicGeometry.HodgeConjecture.CMExtraction.UnitaryFrameAction |