yang
This project has not described itself yet.
Brought by drakestapleton
yang / proofs / FundamentalSU2.lean
| 1 | -- SPDX-License-Identifier: Apache-2.0 |
| 2 | import PublicWilson |
| 3 | import Mathlib.Analysis.SpecialFunctions.Exponential |
| 4 | import Mathlib.Analysis.Calculus.Deriv.Star |
| 5 | |
| 6 | namespace YangMills.FundamentalSU2 |
| 7 | open Matrix Filter |
| 8 | open scoped Matrix.Norms.Frobenius Topology ComplexConjugate |
| 9 | noncomputable section |
| 10 | |
| 11 | abbrev M := Matrix (Fin 2) (Fin 2) ℂ |
| 12 | |
| 13 | /-- The real quaternion algebra inside two-by-two complex matrices. -/ |
| 14 | def quaternionAlgebra : Subalgebra ℝ M where |
| 15 | carrier := {A | A 1 1 = conj (A 0 0) ∧ A 1 0 = -conj (A 0 1)} |
| 16 | algebraMap_mem' r := by |
| 17 | change (algebraMap ℝ M r) 1 1 = _ ∧ (algebraMap ℝ M r) 1 0 = _ |
| 18 | simp [Matrix.algebraMap_eq_diagonal] |
| 19 | add_mem' := by |
| 20 | rintro A B ⟨ha, hb⟩ ⟨hc, hd⟩ |
| 21 | simp_all [Matrix.add_apply] |
| 22 | ring |
| 23 | mul_mem' := by |
| 24 | rintro A B ⟨ha, hb⟩ ⟨hc, hd⟩ |
| 25 | change (A*B) 1 1 = _ ∧ (A*B) 1 0 = _ |
| 26 | simp [Matrix.mul_apply, Fin.sum_univ_two, ha, hb, hc, hd] |
| 27 | ring |
| 28 | |
| 29 | private theorem quaternion_star {A : M} (h : A ∈ quaternionAlgebra) : star A ∈ quaternionAlgebra := by |
| 30 | obtain ⟨ha,hb⟩ := h |
| 31 | change (star A) 1 1 = _ ∧ (star A) 1 0 = _ |
| 32 | simp [Matrix.star_apply, ha, hb] |
| 33 | |
| 34 | def quaternionUnitary : Subgroup (UnitaryRepresentation 1) where |
| 35 | carrier := {u | u.val ∈ quaternionAlgebra} |
| 36 | one_mem' := quaternionAlgebra.one_mem |
| 37 | mul_mem' := fun h k => quaternionAlgebra.mul_mem h k |
| 38 | inv_mem' := fun h => quaternion_star h |
| 39 | |
| 40 | /-- This group consists of exactly the determinant-one two-by-two unitary matrices. -/ |
| 41 | theorem mem_iff_det_one (u : UnitaryRepresentation 1) : |
| 42 | u ∈ quaternionUnitary ↔ u.val.det = 1 := by |
| 43 | let A : M := u.val |
| 44 | have hl : star A * A = 1 := u.prop.1 |
| 45 | have hr : A * star A = 1 := u.prop.2 |
| 46 | change (A 1 1 = conj (A 0 0) ∧ A 1 0 = -conj (A 0 1)) ↔ A.det=1 |
| 47 | constructor |
| 48 | · rintro ⟨ha,hb⟩ |
| 49 | have h := congrArg (fun X : M => X 0 0) hr |
| 50 | simpa [Matrix.det_fin_two, Matrix.mul_apply, Fin.sum_univ_two, Matrix.star_apply, ha,hb] using h |
| 51 | · intro hd |
| 52 | have hinv : star A = A.adjugate := calc |
| 53 | _ = star A * (A * A.adjugate) := by rw [Matrix.mul_adjugate, hd, one_smul, mul_one] |
| 54 | _ = _ := by rw [← mul_assoc, hl, one_mul] |
| 55 | have h0 := congrArg (fun X : M => X 0 0) hinv |
| 56 | have h1 := congrArg (fun X : M => X 1 0) hinv |
| 57 | simp [Matrix.star_apply, Matrix.adjugate_fin_two] at h0 h1 |
| 58 | exact ⟨h0.symm, by simpa using congrArg Neg.neg h1.symm⟩ |
| 59 | |
| 60 | private def tangent : Submodule ℝ M where |
| 61 | carrier := {X | X ∈ quaternionAlgebra ∧ star X = -X} |
| 62 | zero_mem' := ⟨quaternionAlgebra.zero_mem, by simp⟩ |
| 63 | add_mem' := fun ⟨hx,hs⟩ ⟨hy,ht⟩ => ⟨quaternionAlgebra.add_mem hx hy, by simp [hs,ht,add_comm]⟩ |
| 64 | smul_mem' := fun c X ⟨h,hs⟩ => ⟨quaternionAlgebra.smul_mem h c, by simp [hs]⟩ |
| 65 | |
| 66 | private theorem exp_mem_quaternion {X : M} (hx : X ∈ quaternionAlgebra) : |
| 67 | NormedSpace.exp X ∈ quaternionAlgebra := by |
| 68 | apply quaternionAlgebra.toSubmodule.closed_of_finiteDimensional.mem_of_tendsto |
| 69 | (NormedSpace.exp_series_hasSum_exp' (𝕂 := ℝ) X) |
| 70 | exact .of_forall fun S => quaternionAlgebra.sum_mem fun n _ => |
| 71 | quaternionAlgebra.smul_mem (quaternionAlgebra.pow_mem hx n) _ |
| 72 | |
| 73 | set_option backward.isDefEq.respectTransparency false in |
| 74 | private theorem generates (X : M) : |
| 75 | X ∈ tangent ↔ ∀ t : ℝ, NormedSpace.exp (t • X) ∈ |
| 76 | Set.range (fun u : quaternionUnitary => (u.val.val : M)) := by |
| 77 | constructor |
| 78 | · rintro ⟨hq,hs⟩ t |
| 79 | have hx : t • X ∈ skewAdjoint M := by simp [skewAdjoint.mem_iff, hs] |
| 80 | exact ⟨⟨⟨_, NormedSpace.exp_mem_unitary_of_mem_skewAdjoint hx⟩, |
| 81 | exp_mem_quaternion (quaternionAlgebra.smul_mem hq t)⟩, rfl⟩ |
| 82 | · intro h |
| 83 | let f := fun t : ℝ => NormedSpace.exp (t • X) |
| 84 | have hf (t : ℝ) : f t ∈ quaternionAlgebra ∧ star (f t) * f t = 1 := by |
| 85 | obtain ⟨u,hu⟩ := h t |
| 86 | change NormedSpace.exp (t • X) ∈ _ ∧ star (NormedSpace.exp (t • X)) * NormedSpace.exp (t • X) = 1 |
| 87 | rw [← hu] |
| 88 | exact ⟨u.prop, u.val.prop.1⟩ |
| 89 | have hd : HasDerivAt f X 0 := by |
| 90 | simpa [f] using! hasDerivAt_exp_smul_const X (0:ℝ) |
| 91 | have hq : X ∈ quaternionAlgebra := by |
| 92 | apply quaternionAlgebra.toSubmodule.closed_of_finiteDimensional.mem_of_tendsto |
| 93 | (hasDerivAt_iff_tendsto_slope.mp hd) |
| 94 | exact .of_forall fun t => quaternionAlgebra.smul_mem |
| 95 | (quaternionAlgebra.sub_mem (hf t).1 (hf 0).1) _ |
| 96 | have hc : (fun t => star (f t) * f t) = (fun _ => (1:M)) := funext fun t => (hf t).2 |
| 97 | have hh := hd.star.mul hd |
| 98 | change HasDerivAt (fun t => star (f t) * f t) _ 0 at hh |
| 99 | rw [hc] at hh |
| 100 | have hz := hh.unique (hasDerivAt_const (0:ℝ) (1:M)) |
| 101 | simp [f] at hz |
| 102 | exact ⟨hq, eq_neg_of_add_eq_zero_left hz⟩ |
| 103 | |
| 104 | /-- The fundamental SU(2) gauge group in the public Wilson API. -/ |
| 105 | def gaugeGroup : GaugeGroup where |
| 106 | n := 1 |
| 107 | image := quaternionUnitary |
| 108 | imageClosed := quaternionAlgebra.toSubmodule.closed_of_finiteDimensional.preimage continuous_subtype_val |
| 109 | lieAlgebra := tangent |
| 110 | generates := generates |
| 111 | |
| 112 | /-- Quaternion length in the fundamental matrix representation. -/ |
| 113 | def length (A : M) := Real.sqrt (‖A 0 0‖^2 + ‖A 0 1‖^2) |
| 114 | |
| 115 | theorem frobenius_eq {A : M} (ha : A ∈ quaternionAlgebra) : |
| 116 | ‖A‖ = Real.sqrt 2 * length A := by |
| 117 | obtain ⟨h1,h2⟩ := ha |
| 118 | rw [Matrix.frobenius_norm_def, ← Real.sqrt_eq_rpow] |
| 119 | simp only [Fin.sum_univ_two, h1,h2, norm_neg, Complex.norm_conj, length] |
| 120 | rw [← Real.sqrt_mul (by norm_num : (0:ℝ) ≤ 2)] |
| 121 | congr 1 |
| 122 | ring_nf |
| 123 | norm_num |
| 124 | |
| 125 | theorem unitary_of_length_one {A : M} (ha : A ∈ quaternionAlgebra) (h : length A = 1) : |
| 126 | A ∈ Matrix.unitaryGroup (Fin 2) ℂ := by |
| 127 | obtain ⟨hd,hc⟩ := ha |
| 128 | have sq := Real.sq_sqrt (show 0 ≤ ‖A 0 0‖^2+‖A 0 1‖^2 by positivity) |
| 129 | change length A^2 = _ at sq |
| 130 | rw [h,one_pow] at sq |
| 131 | have eqC : conj (A 0 0) * A 0 0 + conj (A 0 1) * A 0 1 = 1 := by |
| 132 | rw [← Complex.normSq_eq_conj_mul_self, ← Complex.normSq_eq_conj_mul_self, |
| 133 | ← Complex.ofReal_add, Complex.normSq_eq_norm_sq, Complex.normSq_eq_norm_sq, ← sq] |
| 134 | simp |
| 135 | constructor <;> ext i j <;> fin_cases i <;> fin_cases j <;> |
| 136 | simp [Matrix.mul_apply, Matrix.star_apply, Fin.sum_univ_two, hd,hc, mul_comm] at * <;> |
| 137 | first | exact eqC | linear_combination eqC |
| 138 | |
| 139 | /-- Every staple matrix in the quaternion subalgebra is its nonnegative length times |
| 140 | an actual SU(2) matrix. At zero any unit quaternion works. -/ |
| 141 | theorem polar {A : M} (ha : A ∈ quaternionAlgebra) : |
| 142 | ∃ u : gaugeGroup.image, A = length A • u.val.val := by |
| 143 | have hnn : 0 ≤ length A := Real.sqrt_nonneg _ |
| 144 | rcases eq_or_lt_of_le hnn with hz | hp |
| 145 | · have hA : A = 0 := norm_eq_zero.mp (by rw [frobenius_eq ha, ← hz, mul_zero]) |
| 146 | exact ⟨1, by simp [hA,length]; rfl⟩ |
| 147 | · let B := (length A)⁻¹ • A |
| 148 | have hB := quaternionAlgebra.smul_mem ha (length A)⁻¹ |
| 149 | have hlen : length B = 1 := by |
| 150 | have hh := frobenius_eq hB |
| 151 | change ‖(length A)⁻¹ • A‖ = Real.sqrt 2 * length B at hh |
| 152 | rw [norm_smul, Real.norm_of_nonneg (inv_nonneg.mpr hp.le), frobenius_eq ha] at hh |
| 153 | field_simp at hh |
| 154 | nlinarith [Real.sqrt_pos.mpr (by norm_num : (0:ℝ)<2)] |
| 155 | refine ⟨⟨⟨B, unitary_of_length_one hB hlen⟩, hB⟩, ?_⟩ |
| 156 | change A = length A • ((length A)⁻¹ • A) |
| 157 | rw [smul_smul, mul_inv_cancel₀ hp.ne', one_smul] |
| 158 | |
| 159 | #print axioms polar |
| 160 | #print axioms mem_iff_det_one |
| 161 | #print axioms gaugeGroup |
| 162 | end |
| 163 | end YangMills.FundamentalSU2 |