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.Weil.UnitarySplitting.DualPair |
| 2 | |
| 3 | /-! # Trace Pairing -/ |
| 4 | |
| 5 | namespace OAI.RepresentationTheory.Weil.UnitarySplitting.TracePairing.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | section |
| 10 | |
| 11 | /-! The trace tensor form is alternating and nondegenerate under the |
| 12 | actual Hermitian/skew-Hermitian and nondegeneracy hypotheses. -/ |
| 13 | |
| 14 | open scoped BigOperators Kronecker |
| 15 | open _root_.Matrix |
| 16 | |
| 17 | variable {F E : Type} [Field F] [Field E] [Algebra F E] |
| 18 | variable {I J : Type} [Fintype I] [DecidableEq I] [Fintype J] [DecidableEq J] |
| 19 | |
| 20 | theorem quadratic_automorphism_involutive [CharZero F] [FiniteDimensional F E] |
| 21 | (hQuadratic : Module.finrank F E = 2) (σ : E ≃ₐ[F] E) : |
| 22 | Function.Involutive σ := by |
| 23 | let : Algebra.IsQuadraticExtension F E := { finrank_eq_two' := hQuadratic } |
| 24 | have hp : σ ^ 2 = 1 := by |
| 25 | simpa only [IsGalois.card_aut_eq_finrank, hQuadratic] using |
| 26 | (pow_card_eq_one' (x := σ)) |
| 27 | intro x |
| 28 | have hx := congrArg (fun e : E ≃ₐ[F] E => e x) hp |
| 29 | simpa only [pow_two, AlgEquiv.mul_apply, AlgEquiv.one_apply] using hx |
| 30 | |
| 31 | omit [DecidableEq I] in |
| 32 | theorem sesquilinear_add_left (σ : E ≃ₐ[F] E) (L : Matrix I I E) |
| 33 | (x y z : I → E) : |
| 34 | DualPair.Construction.sesquilinear σ L (x + y) z = DualPair.Construction.sesquilinear σ L x z + DualPair.Construction.sesquilinear σ L y z := by |
| 35 | simp only [DualPair.Construction.sesquilinear, Pi.add_apply, map_add] |
| 36 | exact add_dotProduct _ _ _ |
| 37 | |
| 38 | omit [DecidableEq I] in |
| 39 | theorem sesquilinear_add_right (σ : E ≃ₐ[F] E) (L : Matrix I I E) |
| 40 | (x y z : I → E) : |
| 41 | DualPair.Construction.sesquilinear σ L x (y + z) = DualPair.Construction.sesquilinear σ L x y + DualPair.Construction.sesquilinear σ L x z := by |
| 42 | simp only [DualPair.Construction.sesquilinear, Matrix.mulVec_add, dotProduct_add] |
| 43 | |
| 44 | omit [DecidableEq I] in |
| 45 | theorem sesquilinear_smul_left (σ : E ≃ₐ[F] E) (L : Matrix I I E) |
| 46 | (a : F) (x y : I → E) : |
| 47 | DualPair.Construction.sesquilinear σ L (a • x) y = a • DualPair.Construction.sesquilinear σ L x y := by |
| 48 | unfold DualPair.Construction.sesquilinear |
| 49 | have hc : (fun i => σ ((a • x) i)) = a • (fun i => σ (x i)) := by |
| 50 | funext i |
| 51 | exact σ.toLinearMap.map_smul a (x i) |
| 52 | rw [hc, smul_dotProduct] |
| 53 | |
| 54 | omit [DecidableEq I] in |
| 55 | theorem sesquilinear_smul_right (σ : E ≃ₐ[F] E) (L : Matrix I I E) |
| 56 | (a : F) (x y : I → E) : |
| 57 | DualPair.Construction.sesquilinear σ L x (a • y) = a • DualPair.Construction.sesquilinear σ L x y := by |
| 58 | simp only [DualPair.Construction.sesquilinear, Matrix.mulVec_smul, dotProduct_smul] |
| 59 | |
| 60 | /-- Bundled F-bilinearity of the explicit trace tensor pairing. -/ |
| 61 | def traceTensorBilinear (σ : E ≃ₐ[F] E) (H : Matrix I I E) (K : Matrix J J E) : |
| 62 | LinearMap.BilinForm F (I × J → E) where |
| 63 | toFun x := |
| 64 | { toFun := DualPair.Construction.traceTensorPairing σ H K x |
| 65 | map_add' := by |
| 66 | intro y z |
| 67 | simp only [DualPair.Construction.traceTensorPairing, sesquilinear_add_right, map_add, add_div] |
| 68 | map_smul' := by |
| 69 | intro a y |
| 70 | simp only [DualPair.Construction.traceTensorPairing, sesquilinear_smul_right, map_smul, |
| 71 | smul_eq_mul, mul_div_assoc, RingHom.id_apply] } |
| 72 | map_add' := by |
| 73 | intro x y |
| 74 | apply LinearMap.ext |
| 75 | intro z |
| 76 | change DualPair.Construction.traceTensorPairing σ H K (x + y) z = |
| 77 | DualPair.Construction.traceTensorPairing σ H K x z + DualPair.Construction.traceTensorPairing σ H K y z |
| 78 | simp only [DualPair.Construction.traceTensorPairing, sesquilinear_add_left, |
| 79 | map_add, add_div] |
| 80 | map_smul' := by |
| 81 | intro a x |
| 82 | apply LinearMap.ext |
| 83 | intro y |
| 84 | change DualPair.Construction.traceTensorPairing σ H K (a • x) y = a • DualPair.Construction.traceTensorPairing σ H K x y |
| 85 | simp only [DualPair.Construction.traceTensorPairing, sesquilinear_smul_left, |
| 86 | map_smul, smul_eq_mul, mul_div_assoc] |
| 87 | |
| 88 | omit [DecidableEq I] in |
| 89 | theorem conjugate_sesquilinear (σ : E ≃ₐ[F] E) (hσ : Function.Involutive σ) |
| 90 | (L : Matrix I I E) (x y : I → E) : |
| 91 | σ (DualPair.Construction.sesquilinear σ L y x) = DualPair.Construction.sesquilinear σ (DualPair.Construction.adjointMatrix σ L) x y := by |
| 92 | simp only [DualPair.Construction.sesquilinear, Matrix.mulVec, dotProduct, Finset.mul_sum, |
| 93 | map_sum, map_mul, DualPair.Construction.adjointMatrix, Matrix.transpose_apply, Matrix.map_apply] |
| 94 | rw [Finset.sum_comm] |
| 95 | apply Finset.sum_congr rfl |
| 96 | intro i hi |
| 97 | apply Finset.sum_congr rfl |
| 98 | intro j hj |
| 99 | rw [hσ (y j)] |
| 100 | ring |
| 101 | |
| 102 | omit [DecidableEq I] in |
| 103 | theorem sesquilinear_neg (σ : E ≃ₐ[F] E) (L : Matrix I I E) (x y : I → E) : |
| 104 | DualPair.Construction.sesquilinear σ (-L) x y = -DualPair.Construction.sesquilinear σ L x y := by |
| 105 | simp only [DualPair.Construction.sesquilinear, Matrix.neg_mulVec, dotProduct_neg] |
| 106 | |
| 107 | omit [DecidableEq I] [DecidableEq J] in |
| 108 | theorem traceTensorPairing_skew (σ : E ≃ₐ[F] E) (hσ : Function.Involutive σ) |
| 109 | (H : Matrix I I E) (K : Matrix J J E) |
| 110 | (hH : DualPair.Construction.adjointMatrix σ H = H) (hK : DualPair.Construction.adjointMatrix σ K = -K) |
| 111 | (x y : I × J → E) : |
| 112 | DualPair.Construction.traceTensorPairing σ H K y x = -DualPair.Construction.traceTensorPairing σ H K x y := by |
| 113 | unfold DualPair.Construction.traceTensorPairing |
| 114 | rw [← Algebra.trace_eq_of_algEquiv σ (DualPair.Construction.sesquilinear σ (H ⊗ₖ K) y x), |
| 115 | conjugate_sesquilinear σ hσ, DualPair.Construction.adjointMatrix_kronecker, hH, hK] |
| 116 | have hkron : H ⊗ₖ (-K) = -(H ⊗ₖ K) := by |
| 117 | ext i j |
| 118 | simp |
| 119 | rw [hkron, sesquilinear_neg, map_neg, neg_div] |
| 120 | |
| 121 | omit [DecidableEq I] [DecidableEq J] in |
| 122 | theorem traceTensorPairing_alternating [CharZero F] |
| 123 | (σ : E ≃ₐ[F] E) (hσ : Function.Involutive σ) |
| 124 | (H : Matrix I I E) (K : Matrix J J E) |
| 125 | (hH : DualPair.Construction.adjointMatrix σ H = H) (hK : DualPair.Construction.adjointMatrix σ K = -K) |
| 126 | (x : I × J → E) : DualPair.Construction.traceTensorPairing σ H K x x = 0 := by |
| 127 | have h := traceTensorPairing_skew σ hσ H K hH hK x x |
| 128 | have htwo : (2 : F) * DualPair.Construction.traceTensorPairing σ H K x x = 0 := by |
| 129 | calc |
| 130 | _ = DualPair.Construction.traceTensorPairing σ H K x x + DualPair.Construction.traceTensorPairing σ H K x x := two_mul _ |
| 131 | _ = 0 := add_eq_zero_iff_eq_neg.mpr h |
| 132 | exact (mul_eq_zero.mp htwo).resolve_left (by norm_num) |
| 133 | |
| 134 | /-- Nondegeneracy follows from invertibility of the tensor matrix and |
| 135 | nondegeneracy of the field trace pairing. -/ |
| 136 | theorem traceTensorPairing_nondegenerate [CharZero F] [FiniteDimensional F E] |
| 137 | (σ : E ≃ₐ[F] E) (H : Matrix I I E) (K : Matrix J J E) |
| 138 | (hH : H.det ≠ 0) (hK : K.det ≠ 0) |
| 139 | (x : I × J → E) (hx : ∀ y, DualPair.Construction.traceTensorPairing σ H K x y = 0) : x = 0 := by |
| 140 | have hdet : (H ⊗ₖ K).det ≠ 0 := by |
| 141 | rw [Matrix.det_kronecker] |
| 142 | exact mul_ne_zero (pow_ne_zero _ hH) (pow_ne_zero _ hK) |
| 143 | have hsurj : Function.Surjective (H ⊗ₖ K).mulVec := |
| 144 | Matrix.mulVec_surjective_iff_isUnit.mpr |
| 145 | ((Matrix.isUnit_iff_isUnit_det _).mpr (isUnit_iff_ne_zero.mpr hdet)) |
| 146 | funext i |
| 147 | apply σ.injective |
| 148 | change σ (x i) = σ 0 |
| 149 | rw [map_zero] |
| 150 | apply (traceForm_nondegenerate F E).1 |
| 151 | intro a |
| 152 | obtain ⟨y, hy⟩ := hsurj (Pi.single i a) |
| 153 | have hh := hx y |
| 154 | unfold DualPair.Construction.traceTensorPairing DualPair.Construction.sesquilinear at hh |
| 155 | rw [hy, dotProduct_single] at hh |
| 156 | exact (div_eq_zero_iff.mp hh).resolve_right (by norm_num) |
| 157 | |
| 158 | /-- The original matrix hypotheses produce a genuine nondegenerate |
| 159 | alternating F-bilinear form, with no additional involution assumption. -/ |
| 160 | theorem traceTensorBilinear_is_symplectic [CharZero F] [FiniteDimensional F E] |
| 161 | (hQuadratic : Module.finrank F E = 2) (σ : E ≃ₐ[F] E) |
| 162 | (H : Matrix I I E) (K : Matrix J J E) |
| 163 | (hHermitian : ∀ i j, H j i = σ (H i j)) |
| 164 | (hSkewHermitian : ∀ i j, K j i = -σ (K i j)) |
| 165 | (hHNondegenerate : H.det ≠ 0) (hKNondegenerate : K.det ≠ 0) : |
| 166 | (traceTensorBilinear σ H K).IsAlt ∧ |
| 167 | (traceTensorBilinear σ H K).Nondegenerate := by |
| 168 | have hσ := quadratic_automorphism_involutive hQuadratic σ |
| 169 | have hH : DualPair.Construction.adjointMatrix σ H = H := by |
| 170 | ext i j |
| 171 | change σ (H j i) = H i j |
| 172 | rw [hHermitian, hσ] |
| 173 | have hK : DualPair.Construction.adjointMatrix σ K = -K := by |
| 174 | ext i j |
| 175 | change σ (K j i) = -K i j |
| 176 | rw [hSkewHermitian, map_neg, hσ] |
| 177 | refine ⟨?_, ?_, ?_⟩ |
| 178 | · intro x |
| 179 | exact traceTensorPairing_alternating σ hσ H K hH hK x |
| 180 | · intro x hx |
| 181 | exact traceTensorPairing_nondegenerate σ H K hHNondegenerate hKNondegenerate x hx |
| 182 | · intro x hx |
| 183 | apply traceTensorPairing_nondegenerate σ H K hHNondegenerate hKNondegenerate x |
| 184 | intro y |
| 185 | rw [traceTensorPairing_skew σ hσ H K hH hK] |
| 186 | change -(traceTensorBilinear σ H K y x) = 0 |
| 187 | rw [hx y, neg_zero] |
| 188 | |
| 189 | end |
| 190 | |
| 191 | /-! Algebraic identities for the unitary Cayley forms used in the splitting |
| 192 | calculation. All adjoints are the specified quadratic-field automorphism. -/ |
| 193 | |
| 194 | open _root_.Matrix |
| 195 | |
| 196 | variable {F E : Type} [Field F] [Field E] [Algebra F E] |
| 197 | variable {I : Type} [Fintype I] [DecidableEq I] |
| 198 | variable (σ : E ≃ₐ[F] E) |
| 199 | |
| 200 | omit [Fintype I] [DecidableEq I] in |
| 201 | theorem adjointMatrix_add (A B : Matrix I I E) : |
| 202 | DualPair.Construction.adjointMatrix σ (A + B) = DualPair.Construction.adjointMatrix σ A + DualPair.Construction.adjointMatrix σ B := by |
| 203 | ext i j |
| 204 | exact map_add σ _ _ |
| 205 | |
| 206 | omit [Fintype I] [DecidableEq I] in |
| 207 | theorem adjointMatrix_sub (A B : Matrix I I E) : |
| 208 | DualPair.Construction.adjointMatrix σ (A - B) = DualPair.Construction.adjointMatrix σ A - DualPair.Construction.adjointMatrix σ B := by |
| 209 | ext i j |
| 210 | exact map_sub σ _ _ |
| 211 | |
| 212 | omit [Fintype I] [DecidableEq I] in |
| 213 | theorem adjointMatrix_neg (A : Matrix I I E) : DualPair.Construction.adjointMatrix σ (-A) = -DualPair.Construction.adjointMatrix σ A := by |
| 214 | ext i j |
| 215 | exact map_neg σ _ |
| 216 | |
| 217 | omit [Fintype I] [DecidableEq I] in |
| 218 | theorem adjointMatrix_involutive (hσ : Function.Involutive σ) : |
| 219 | Function.Involutive (DualPair.Construction.adjointMatrix σ : Matrix I I E → Matrix I I E) := by |
| 220 | intro A |
| 221 | ext i j |
| 222 | exact hσ (A i j) |
| 223 | |
| 224 | theorem adjointMatrix_det (A : Matrix I I E) : (DualPair.Construction.adjointMatrix σ A).det = σ A.det := by |
| 225 | rw [DualPair.Construction.adjointMatrix, Matrix.det_transpose] |
| 226 | exact (RingHom.map_det σ.toRingHom A).symm |
| 227 | |
| 228 | theorem unitary_adjoint_mul (Q : Matrix I I E) (g : DualPair.Construction.unitaryGroup σ Q) : |
| 229 | DualPair.Construction.adjointMatrix σ (g.val : Matrix I I E) * Q = Q * (↑g.val⁻¹ : Matrix I I E) := by |
| 230 | have hh := congrArg (fun A : Matrix I I E => A * (↑g.val⁻¹ : Matrix I I E)) g.property |
| 231 | simpa only [mul_assoc, Units.mul_inv, mul_one] using hh |
| 232 | |
| 233 | theorem unitary_det_relation (Q : Matrix I I E) (hQ : Q.det ≠ 0) |
| 234 | (g : DualPair.Construction.unitaryGroup σ Q) : σ (g.val : Matrix I I E).det * (g.val : Matrix I I E).det = 1 := by |
| 235 | have hh := congrArg Matrix.det g.property |
| 236 | rw [Matrix.det_mul, Matrix.det_mul, adjointMatrix_det] at hh |
| 237 | apply mul_right_cancel₀ hQ |
| 238 | calc |
| 239 | (σ (g.val : Matrix I I E).det * (g.val : Matrix I I E).det) * Q.det = |
| 240 | σ (g.val : Matrix I I E).det * Q.det * (g.val : Matrix I I E).det := by ring |
| 241 | _ = Q.det := hh |
| 242 | _ = 1 * Q.det := (one_mul _).symm |
| 243 | |
| 244 | def unitaryDifferenceForm (Q : Matrix I I E) (g : DualPair.Construction.unitaryGroup σ Q) : Matrix I I E := |
| 245 | Q * ((g.val : Matrix I I E) - 1) |
| 246 | |
| 247 | theorem unitaryDifferenceForm_adjoint (Q : Matrix I I E) |
| 248 | (hQ : DualPair.Construction.adjointMatrix σ Q = -Q) (g : DualPair.Construction.unitaryGroup σ Q) : |
| 249 | DualPair.Construction.adjointMatrix σ (unitaryDifferenceForm σ Q g) = |
| 250 | Q * (↑g.val⁻¹ : Matrix I I E) * ((g.val : Matrix I I E) - 1) := by |
| 251 | rw [unitaryDifferenceForm, DualPair.Construction.adjointMatrix_mul, adjointMatrix_sub, DualPair.Construction.adjointMatrix_one, hQ] |
| 252 | rw [sub_mul, mul_neg, one_mul, unitary_adjoint_mul] |
| 253 | simp only [mul_sub, mul_assoc, Units.inv_mul, mul_one] |
| 254 | abel |
| 255 | |
| 256 | theorem unitaryDifferenceForm_ker (Q : Matrix I I E) (hQ : Q.det ≠ 0) |
| 257 | (g : DualPair.Construction.unitaryGroup σ Q) : |
| 258 | LinearMap.ker (unitaryDifferenceForm σ Q g).mulVecLin = |
| 259 | LinearMap.ker ((g.val : Matrix I I E) - 1).mulVecLin := by |
| 260 | ext x |
| 261 | change (Q * ((g.val : Matrix I I E) - 1)) *ᵥ x = 0 ↔ |
| 262 | ((g.val : Matrix I I E) - 1) *ᵥ x = 0 |
| 263 | rw [← Matrix.mulVec_mulVec] |
| 264 | simpa only [Matrix.mulVec_zero] using |
| 265 | (Matrix.mulVec_injective_of_det_ne_zero hQ).eq_iff |
| 266 | (a := ((g.val : Matrix I I E) - 1) *ᵥ x) (b := 0) |
| 267 | |
| 268 | theorem unitaryDifferenceForm_adjoint_ker (Q : Matrix I I E) (hQ : Q.det ≠ 0) |
| 269 | (hskew : DualPair.Construction.adjointMatrix σ Q = -Q) (g : DualPair.Construction.unitaryGroup σ Q) : |
| 270 | LinearMap.ker (DualPair.Construction.adjointMatrix σ (unitaryDifferenceForm σ Q g)).mulVecLin = |
| 271 | LinearMap.ker (unitaryDifferenceForm σ Q g).mulVecLin := by |
| 272 | rw [unitaryDifferenceForm_adjoint σ Q hskew, unitaryDifferenceForm_ker σ Q hQ] |
| 273 | have hdet : (Q * (↑g.val⁻¹ : Matrix I I E)).det ≠ 0 := by |
| 274 | rw [Matrix.det_mul] |
| 275 | exact mul_ne_zero hQ |
| 276 | ((Matrix.isUnit_iff_isUnit_det _).mp (Units.isUnit g.val⁻¹)).ne_zero |
| 277 | ext x |
| 278 | change (Q * (↑g.val⁻¹ : Matrix I I E) * ((g.val : Matrix I I E) - 1)) *ᵥ x = 0 ↔ |
| 279 | ((g.val : Matrix I I E) - 1) *ᵥ x = 0 |
| 280 | rw [← Matrix.mulVec_mulVec] |
| 281 | simpa only [Matrix.mulVec_zero] using |
| 282 | (Matrix.mulVec_injective_of_det_ne_zero hdet).eq_iff |
| 283 | (a := ((g.val : Matrix I I E) - 1) *ᵥ x) (b := 0) |
| 284 | |
| 285 | def adjointMatrixUnit (u : (Matrix I I E)ˣ) : (Matrix I I E)ˣ where |
| 286 | val := DualPair.Construction.adjointMatrix σ (u : Matrix I I E) |
| 287 | inv := DualPair.Construction.adjointMatrix σ (↑u⁻¹ : Matrix I I E) |
| 288 | val_inv := by rw [← DualPair.Construction.adjointMatrix_mul, Units.inv_mul, DualPair.Construction.adjointMatrix_one] |
| 289 | inv_val := by rw [← DualPair.Construction.adjointMatrix_mul, Units.mul_inv, DualPair.Construction.adjointMatrix_one] |
| 290 | |
| 291 | theorem adjoint_congruence_iff (hσ : Function.Involutive σ) |
| 292 | (u : (Matrix I I E)ˣ) (A : Matrix I I E) : |
| 293 | DualPair.Construction.adjointMatrix σ (DualPair.Construction.adjointMatrix σ (u : Matrix I I E) * A * (u : Matrix I I E)) = |
| 294 | DualPair.Construction.adjointMatrix σ (u : Matrix I I E) * A * (u : Matrix I I E) ↔ |
| 295 | DualPair.Construction.adjointMatrix σ A = A := by |
| 296 | rw [DualPair.Construction.adjointMatrix_mul, DualPair.Construction.adjointMatrix_mul, adjointMatrix_involutive σ hσ] |
| 297 | rw [← mul_assoc] |
| 298 | change (adjointMatrixUnit σ u : Matrix I I E) * DualPair.Construction.adjointMatrix σ A * (u : Matrix I I E) = |
| 299 | (adjointMatrixUnit σ u : Matrix I I E) * A * (u : Matrix I I E) ↔ _ |
| 300 | constructor |
| 301 | · intro h |
| 302 | exact (adjointMatrixUnit σ u).isUnit.mul_left_cancel (u.isUnit.mul_right_cancel h) |
| 303 | · intro h |
| 304 | rw [h] |
| 305 | |
| 306 | theorem unitary_cayley_numerator (Q : Matrix I I E) (g : DualPair.Construction.unitaryGroup σ Q) : |
| 307 | DualPair.Construction.adjointMatrix σ ((g.val : Matrix I I E) - 1) * Q * ((g.val : Matrix I I E) + 1) = |
| 308 | DualPair.Construction.adjointMatrix σ (g.val : Matrix I I E) * Q - Q * (g.val : Matrix I I E) := by |
| 309 | rw [adjointMatrix_sub, DualPair.Construction.adjointMatrix_one] |
| 310 | calc |
| 311 | _ = DualPair.Construction.adjointMatrix σ (g.val : Matrix I I E) * Q * (g.val : Matrix I I E) + |
| 312 | DualPair.Construction.adjointMatrix σ (g.val : Matrix I I E) * Q - Q * (g.val : Matrix I I E) - Q := by |
| 313 | noncomm_ring |
| 314 | _ = _ := by rw [g.property]; abel |
| 315 | |
| 316 | def unitaryCayleyForm (Q : Matrix I I E) (g : DualPair.Construction.unitaryGroup σ Q) : Matrix I I E := |
| 317 | Q * ((g.val : Matrix I I E) + 1) * ((g.val : Matrix I I E) - 1)⁻¹ |
| 318 | |
| 319 | theorem unitaryCayleyForm_hermitian (hσ : Function.Involutive σ) |
| 320 | (Q : Matrix I I E) (hQ : DualPair.Construction.adjointMatrix σ Q = -Q) (g : DualPair.Construction.unitaryGroup σ Q) |
| 321 | (hg : ((g.val : Matrix I I E) - 1).det ≠ 0) : |
| 322 | DualPair.Construction.adjointMatrix σ (unitaryCayleyForm σ Q g) = unitaryCayleyForm σ Q g := by |
| 323 | let u := ((g.val : Matrix I I E) - 1).nonsingInvUnit (isUnit_iff_ne_zero.mpr hg) |
| 324 | apply (adjoint_congruence_iff σ hσ u _).mp |
| 325 | have hs : DualPair.Construction.adjointMatrix σ (u : Matrix I I E) * unitaryCayleyForm σ Q g * (u : Matrix I I E) = |
| 326 | DualPair.Construction.adjointMatrix σ (g.val : Matrix I I E) * Q - Q * (g.val : Matrix I I E) := by |
| 327 | change DualPair.Construction.adjointMatrix σ ((g.val : Matrix I I E) - 1) * |
| 328 | (Q * ((g.val : Matrix I I E) + 1) * ((g.val : Matrix I I E) - 1)⁻¹) * |
| 329 | ((g.val : Matrix I I E) - 1) = _ |
| 330 | rw [mul_assoc, mul_assoc, Matrix.nonsing_inv_mul _ (isUnit_iff_ne_zero.mpr hg), mul_one] |
| 331 | rw [← mul_assoc, unitary_cayley_numerator] |
| 332 | rw [hs, adjointMatrix_sub, DualPair.Construction.adjointMatrix_mul, DualPair.Construction.adjointMatrix_mul, |
| 333 | adjointMatrix_involutive σ hσ, hQ] |
| 334 | noncomm_ring |
| 335 | |
| 336 | end |
| 337 | |
| 338 | end OAI.RepresentationTheory.Weil.UnitarySplitting.TracePairing.Construction |