Offline · exact source
Exact Lean source

PhysicalFlatGrassmannIsometry

formalization/Cloning/PhysicalFlatGrassmannIsometry.lean

Source hash: 478dd63ec1d471563169e456e5c23abf8fbbbe1746e08033e06ed83d77169782

Full source copied without mathematical changes from the snapshot whose input hash matches the passing audit. Select a line number for a stable source pointer.

The declarations belong to the compiled inventory covered by the project’s shared axiom audit. That audit records an aggregate union, without attributing axioms to individual declarations.

Declarations in this module
1import Cloning.PhysicalFlatGrassmannEmbedding
2 
3/-! Every rectangular physical isometry is a unitary rotation of the fixed
4coordinate inclusion, including its internal column basis. -/
5noncomputable section
6open scoped Matrix ComplexOrder
7namespace Cloning.PhysicalFlatGrassmann
8set_option backward.isDefEq.respectTransparency false
9set_option maxHeartbeats 1200000
10 
11/-- The unitary extends the actual columns, not merely their range. -/
12theorem exists_unitary_isometry (r k : ℕ)
13    (J : Matrix (Fin (r+k)) (Fin r) ℂ) (hJ : Jᴴ*J=1) :
14    ∃ W : unitary (Matrix (Fin (r+k)) (Fin (r+k)) ℂ),
15      J = (W : Matrix (Fin (r+k)) (Fin (r+k)) ℂ) * coordinateInclusion r k := by
16  let I := coordinateInclusion r k
17  let C := coordinateProjector r k
18  have hI : Iᴴ*I=1 := coordinateInclusion_isometry r k
19  have hII : I*Iᴴ=C := coordinateInclusion_range r k
20  have hC : C*C=C := coordinateProjector_idempotent r k
21  have hCs : Cᴴ=C := (coordinateProjector_nonneg r k).isHermitian.eq
22  have hP : (J*Jᴴ).IsHermitian := (Matrix.posSemidef_self_mul_conjTranspose J).isHermitian
23  have hPP : (J*Jᴴ)*(J*Jᴴ)=J*Jᴴ := by
24    calc
25      _ = J*(Jᴴ*J)*Jᴴ := by simp only [Matrix.mul_assoc]
26      _ = _ := by rw [hJ, Matrix.mul_one]
27  have hrank : (J*Jᴴ).rank=r := by
28    rw [Matrix.rank_self_mul_conjTranspose, ← Matrix.rank_conjTranspose_mul_self J, hJ]
29    simp
30  obtain ⟨U,hU⟩ := exists_unitary_projector (J*Jᴴ) hP hPP hrank
31  let V : Matrix (Fin (r+k)) (Fin (r+k)) ℂ := U
32  have hV : Vᴴ*V=1 := Unitary.star_mul_self_of_mem U.property
33  change J*Jᴴ=V*C*Vᴴ at hU
34  have hCI : C*I=I := by rw [← hII, Matrix.mul_assoc, hI, Matrix.mul_one]
35  have hCJ : C*Vᴴ*J=Vᴴ*J := by
36    calc
37      _ = Vᴴ*(V*C*Vᴴ)*J := by simp only [← Matrix.mul_assoc, hV, Matrix.one_mul]
38      _ = Vᴴ*(J*Jᴴ)*J := by rw [← hU]
39      _ = _ := by simp only [Matrix.mul_assoc, hJ, Matrix.mul_one]
40  let Q := 1-C
41  have hQs : Qᴴ=Q := by simp only [Q, Matrix.conjTranspose_sub, Matrix.conjTranspose_one, hCs]
42  have hQQ : Q*Q=Q := by
43    simp only [Q, Matrix.sub_mul, Matrix.mul_sub, Matrix.one_mul, Matrix.mul_one, hC]
44    abel
45  have hQI : Q*I=0 := by
46    change (1-C)*I=0
47    rw [Matrix.sub_mul, Matrix.one_mul, hCI, sub_self]
48  have hQJ : Q*Vᴴ*J=0 := by
49    change (1-C)*Vᴴ*J=0
50    rw [Matrix.sub_mul, Matrix.one_mul, Matrix.sub_mul, hCJ, sub_self]
51  have hJQ : Jᴴ*V*Q=0 := by
52    have h := congrArg Matrix.conjTranspose hQJ
53    simpa only [Matrix.conjTranspose_mul, Matrix.conjTranspose_conjTranspose,
54      hQs, Matrix.conjTranspose_zero, ← Matrix.mul_assoc] using h
55  let X := J*Iᴴ
56  let Y := V*Q
57  have hXX : Xᴴ*X=C := by
58    change (J*Iᴴ)ᴴ*(J*Iᴴ)=C
59    rw [Matrix.conjTranspose_mul, Matrix.conjTranspose_conjTranspose]
60    calc
61      _ = I*(Jᴴ*J)*Iᴴ := by simp only [Matrix.mul_assoc]
62      _ = C := by rw [hJ, Matrix.mul_one, hII]
63  have hYY : Yᴴ*Y=Q := by
64    change (V*Q)ᴴ*(V*Q)=Q
65    rw [Matrix.conjTranspose_mul, hQs]
66    calc
67      _ = Q*(Vᴴ*V)*Q := by simp only [Matrix.mul_assoc]
68      _ = Q := by rw [hV, Matrix.mul_one, hQQ]
69  have hXY : Xᴴ*Y=0 := by
70    change (J*Iᴴ)ᴴ*(V*Q)=0
71    rw [Matrix.conjTranspose_mul, Matrix.conjTranspose_conjTranspose]
72    calc
73      _ = I*(Jᴴ*V*Q) := by simp only [Matrix.mul_assoc]
74      _ = 0 := by rw [hJQ, Matrix.mul_zero]
75  have hYX : Yᴴ*X=0 := by
76    have h := congrArg Matrix.conjTranspose hXY
77    simpa only [Matrix.conjTranspose_mul, Matrix.conjTranspose_conjTranspose,
78      Matrix.conjTranspose_zero] using h
79  have hW : (X+Y)ᴴ*(X+Y)=1 := by
80    rw [Matrix.conjTranspose_add, Matrix.add_mul, Matrix.mul_add, Matrix.mul_add,
81      hXX,hXY,hYX,hYY,add_zero,zero_add]
82    dsimp only [Q]
83    abel
84  refine ⟨⟨X+Y,Matrix.mem_unitaryGroup_iff'.mpr hW⟩,?_⟩
85  change J=(J*Iᴴ+V*Q)*I
86  rw [Matrix.add_mul, Matrix.mul_assoc, hI, Matrix.mul_one,
87    Matrix.mul_assoc, hQI, Matrix.mul_zero, add_zero]
88 
89end Cloning.PhysicalFlatGrassmann