Lean source
Lib.DiscreteSeries.Haar.UnitaryNorm
Its 11 declarations
IsHermInvolutionclass, lines 12–13(instance)instance, lines 17–18(instance)instance, line 20IsHermInvolution.lemma, lines 22–23det_ne_zero skewOfRealdef, lines 27–29skewCoordsdef, lines 33–34IsHermInvolution.lemma, line 36isUnit IsHermInvolution.lemma, lines 38–39mem_unitary U.lemma, lines 41–42norm_det U.lemma, lines 46–48norm_inv U.lemma, lines 50–51one_le_norm
import Lib.General.LinearAlgebra.HuaIntegral/-! General lemmas of linear algebra and matrices (textbook or folklore).Part of: Haar measure of U(J) in Cayley coordinates, volume of U(n), polynomial volume growth (knownresult; see Lib.DiscreteSeries.Haar.RegularRepL2).This file: Hermitian involutions and real coordinates on skew-hermitian matrices. Operator norm anddeterminant of elements of U(p,q). -//-- The complex matrix J is a hermitian involution: J* = J and J² = 1. -/class IsHermInvolution {n} [Fintype n] (J : Matrix n n ℂ) where (isHermitian : J.IsHermitian) (mul_self : J * J = 1)variable {n} [Fintype n] {J : Matrix n n ℂ} [IsHermInvolution J] (g : U J)instance (ε : n → _) : IsHermInvolution (signMatrix ε) := ⟨by simp [signMatrix, Matrix.IsHermitian], signMatrix_mul_self ε⟩instance : @IsHermInvolution n _ 1 := ⟨by simp, by simp⟩lemma IsHermInvolution.det_ne_zero (J : Matrix n n ℂ) [IsHermInvolution J] : J.det ≠ 0 := Matrix.det_ne_zero_of_left_inverse mul_self/-- The real linear map sending a real matrix y to the skew-hermitian matrix with entries i·y_aaon the diagonal and ((1+i)y_ab − (1−i)y_ba)/√2 off it. -/noncomputable def skewOfReal : Matrix n n ℝ →ₗ[ℝ] Matrix n n ℂ := by use! (fun y ↦ Matrix.of fun a b ↦ ((1 + Complex.I) * y a b - (1 - Complex.I) * y b a) / ite (a = b) 2 √2) <;> simp [funext_iff] <;> grind/-- The real linear map sending a complex matrix x to the real matrix with entries Re x_ab + Imx_ab, divided by √2 off the diagonal; a left inverse of `skewOfReal`. -/noncomputable def skewCoords : Matrix n n ℂ →ₗ[ℝ] Matrix n n ℝ := by use! (fun x ↦ Matrix.of fun a b ↦ ((x a b).re + (x a b).im) / ite (a = b) 1 √2) <;> simp [funext_iff] <;> grindlemma IsHermInvolution.isUnit : IsUnit J := .of_mul_eq_one _ mul_selflemma IsHermInvolution.mem_unitary : J ∈ _root_.unitary _ := by simp [Unitary.mem_iff, isHermitian.star_eq, mul_self]@[simp] lemma U.norm_det : ‖g.1.1.det‖ = 1 := CStarRing.norm_coe_unitary (det (IsHermInvolution.det_ne_zero J).isUnit g)open CStarRing Matrix.Norms.L2Operatorlemma U.norm_inv : ‖g⁻¹.1.1‖ = ‖g.1.1‖ := by simp [↓coe_inv IsHermInvolution.mul_self, norm_mul_mem_unitary, norm_mem_unitary_mul, IsHermInvolution.mem_unitary, Matrix.l2_opNorm_conjTranspose]lemma U.one_le_norm [Nonempty n] : 1 ≤ ‖g.1.1‖ := by simpa [← pow_two, ↓norm_inv] using norm_mul_le g⁻¹.1.1 g