Offline · exact source
Exact Lean source

GeneralSymmetricSplitting

formalization/Cloning/GeneralSymmetricSplitting.lean

Source hash: 12e7fd8a092c6a84879f6cb622f107255a923b3cd27dc912bb571aa2382e30ce

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.GeneralSymmetricDimension
2import Cloning.GeneralCoherentMultiplicity
3import Cloning.CartanChannel
4 
5/-! # The actual arbitrary-dimensional symmetric-tensor splitting matrix
6 
7Occupation profiles add under concatenation of computational tensors. The
8Cartan inclusion of the `(n+r)`-particle symmetric sector in the product of
9the two symmetric sectors is constructed from its exact normalized fiber
10coefficients and identified with the literal computational tensor inclusion.
11-/
12noncomputable section
13set_option synthInstance.maxHeartbeats 200000
14set_option maxHeartbeats 1000000
15set_option backward.isDefEq.respectTransparency false
16open scoped BigOperators InnerProductSpace Matrix Kronecker
17 
18namespace Cloning.GeneralSymmetricOccupation
19 
20/-- Concatenation of computational words. -/
21def wordPairEquiv (n r d : ℕ) : Word n d × Word r d ≃ Word (n + r) d where
22  toFun p := Fin.append p.1 p.2
23  invFun w := (fun i => w (Fin.castAdd r i), fun j => w (Fin.natAdd n j))
24  left_inv p := by ext i <;> simp
25  right_inv w := Fin.append_castAdd_natAdd
26 
27private theorem profile_eq_sum {L d : ℕ} (w : Word L d) (a : Fin d) :
28    profile w a = ∑ i : Fin L, if w i = a then 1 else 0 := by
29  classical
30  simp only [profile, Fintype.card_subtype, Finset.card_eq_sum_ones, Finset.sum_filter]
31 
32theorem profile_append {n r d : ℕ} (w : Word n d) (z : Word r d) :
33    profile (Fin.append w z) = profile w + profile z := by
34  classical
35  funext a
36  rw [profile_eq_sum, Fin.sum_univ_add]
37  simp only [Fin.append_left, Fin.append_right, Pi.add_apply, ← profile_eq_sum]
38 
39/-- The summed occupation profile of two tensor factors. -/
40def merge {n r d : ℕ} (p : Occupation n d) (q : Occupation r d) : Occupation (n + r) d :=
41  (compositionEquiv (n + r) d).symm
42    ⟨p.val + q.val, by
43      simp only [Pi.add_apply, Finset.sum_add_distrib]
44      exact congrArg₂ (· + ·) (compositionEquiv n d p).property
45        (compositionEquiv r d q).property⟩
46 
47@[simp] theorem merge_val {n r d : ℕ} (p : Occupation n d) (q : Occupation r d) :
48    (merge p q).val = p.val + q.val := rfl
49 
50@[simp] theorem merge_label {n r d : ℕ} (w : Word n d) (z : Word r d) :
51    merge (label w) (label z) = label (Fin.append w z) :=
52  Subtype.ext (profile_append w z).symm
53 
54theorem merge_left_injective {n r d : ℕ} (q : Occupation r d) :
55    Function.Injective (fun p : Occupation n d => merge p q) := by
56  intro p t h
57  apply Subtype.ext
58  funext a
59  have he := congrArg (fun u : Occupation (n + r) d => u.val a) h
60  change p.val a + q.val a = t.val a + q.val a at he
61  omega
62 
63/-- The computational-basis matrix of the previously constructed occupation isometry. -/
64def columnMatrix (L d : ℕ) : Matrix (Word L d) (Occupation L d) ℂ :=
65  fun w q => column q w
66 
67theorem columnMatrix_isometry (L d : ℕ) :
68    (columnMatrix L d).conjTranspose * columnMatrix L d = 1 := by
69  classical
70  ext p q
71  simp only [Matrix.mul_apply, Matrix.conjTranspose_apply, columnMatrix]
72  have hi := orthonormal_iff_ite.mp (column_orthonormal L d) p q
73  rw [lp.inner_eq_tsum, tsum_fintype] at hi
74  simpa only [RCLike.inner_apply, starRingEnd_apply, mul_comm, Matrix.one_apply] using hi
75 
76/-- Exact symmetric splitting amplitudes, with their computational multiplicities. -/
77def splittingMatrix (n r d : ℕ) :
78    Matrix (Occupation n d × Occupation r d) (Occupation (n + r) d) ℂ :=
79  fun p t => if t = merge p.1 p.2 then
80    (Real.sqrt (multiplicity p.1 : ℝ) : ℂ) * (Real.sqrt (multiplicity p.2 : ℝ) : ℂ) /
81      (Real.sqrt (multiplicity t : ℝ) : ℂ) else 0
82 
83/-- The output occupation inclusion, expressed in the concatenated computational basis. -/
84def splitColumnMatrix (n r d : ℕ) :
85    Matrix (Word n d × Word r d) (Occupation (n + r) d) ℂ :=
86  fun w t => column t (wordPairEquiv n r d w)
87 
88/-- Exact physical identification of the Cartan inclusion: its coefficients
89are derived from the actual normalized computational occupation fibers. -/
90theorem splittingMatrix_physical (n r d : ℕ) :
91    (columnMatrix n d ⊗ₖ columnMatrix r d) * splittingMatrix n r d =
92      splitColumnMatrix n r d := by
93  classical
94  ext ⟨w, z⟩ t
95  simp only [Matrix.mul_apply, Matrix.kronecker_apply, Fintype.sum_prod_type,
96    columnMatrix, column_apply]
97  rw [Finset.sum_eq_single (label w)]
98  · rw [Finset.sum_eq_single (label z)]
99    · simp only [splittingMatrix, splitColumnMatrix, wordPairEquiv, Equiv.coe_fn_mk, column_apply, ite_true]
100      rw [← merge_label]
101      by_cases ht : t = merge (label w) (label z)
102      · rw [if_pos ht, if_pos ht.symm]
103        have hp : (Real.sqrt (multiplicity (label w) : ℝ) : ℂ) ≠ 0 := by
104          exact_mod_cast (Real.sqrt_pos.mpr (by exact_mod_cast multiplicity_pos (label w))).ne'
105        have hq : (Real.sqrt (multiplicity (label z) : ℝ) : ℂ) ≠ 0 := by
106          exact_mod_cast (Real.sqrt_pos.mpr (by exact_mod_cast multiplicity_pos (label z))).ne'
107        field_simp
108      · rw [if_neg ht, if_neg (Ne.symm ht)]
109        simp
110    · intro q hq hn
111      simp [Ne.symm hn]
112    · simp
113  · intro p hp hn
114    simp [Ne.symm hn]
115  · simp
116 
117theorem splitColumnMatrix_isometry (n r d : ℕ) :
118    (splitColumnMatrix n r d).conjTranspose * splitColumnMatrix n r d = 1 := by
119  classical
120  ext p q
121  simp only [Matrix.mul_apply, Matrix.conjTranspose_apply, splitColumnMatrix]
122  rw [(wordPairEquiv n r d).sum_comp (fun w => star (column p w) * column q w)]
123  exact congrArg (fun M : Matrix (Occupation (n + r) d) (Occupation (n + r) d) ℂ => M p q)
124    (columnMatrix_isometry (n + r) d)
125 
126/-- The constructed symmetric splitting matrix is an isometry. -/
127theorem splittingMatrix_isometry (n r d : ℕ) :
128    (splittingMatrix n r d).conjTranspose * splittingMatrix n r d = 1 := by
129  have h := splitColumnMatrix_isometry n r d
130  rw [← splittingMatrix_physical, Matrix.conjTranspose_mul] at h
131  have hT : (columnMatrix n d ⊗ₖ columnMatrix r d).conjTranspose *
132      (columnMatrix n d ⊗ₖ columnMatrix r d) = 1 := by
133    rw [Matrix.conjTranspose_kronecker, ← Matrix.mul_kronecker_mul,
134      columnMatrix_isometry, columnMatrix_isometry, Matrix.one_kronecker_one]
135  simpa only [Matrix.mul_assoc, ← Matrix.mul_assoc (columnMatrix n d ⊗ₖ columnMatrix r d).conjTranspose,
136    hT, Matrix.one_mul] using h
137 
138end Cloning.GeneralSymmetricOccupation