Exact Lean source
GeneralSymmetricBalance
formalization/Cloning/GeneralSymmetricBalance.lean
Source hash: 112efe65f534061cf893ada0f66a2f90f0cbc8ae4b8ad8fb8edabebf3a7151fa
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
definition
Cloning.GeneralSymmetricOccupation.splittingWeighttheorem Cloning.GeneralSymmetricOccupation.splittingWeight_nonnegtheorem Cloning.GeneralSymmetricOccupation.splittingWeight_binomialtheorem Cloning.GeneralSymmetricOccupation.splitting_row_innertheorem Cloning.GeneralSymmetricOccupation.splittingWeight_sumtheorem Cloning.GeneralSymmetricOccupation.splittingMatrix_balance1import Cloning.GeneralSymmetricSplitting
2import Cloning.WernerMultivariateConvolution
3
4/-! # Exact multiplicity ratios and symmetric splitting balance
5
6The squared physical splitting amplitudes reduce to products of ordinary
7binomial coefficients. This is the finite combinatorial input for trace
8preservation of the full Werner channel on arbitrary symmetric inputs.
9-/
10noncomputable section
11set_option synthInstance.maxHeartbeats 200000
12set_option maxHeartbeats 1000000
13set_option backward.isDefEq.respectTransparency false
14open scoped BigOperators InnerProductSpace Matrix Kronecker
15
16namespace Cloning.GeneralSymmetricOccupation
17
18/-- Squared physical occupation-splitting amplitude. -/
19def splittingWeight {n r d : ℕ} (p : Occupation n d) (q : Occupation r d) : ℝ :=
20 (multiplicity p : ℝ) * multiplicity q / multiplicity (merge p q)
21
22theorem splittingWeight_nonneg {n r d : ℕ} (p : Occupation n d) (q : Occupation r d) :
23 0 ≤ splittingWeight p q := by unfold splittingWeight; positivity
24
25/-- Exact multinomial-ratio identity for the actual occupation multiplicities. -/
26theorem splittingWeight_binomial {n r d : ℕ} (p : Occupation n d) (q : Occupation r d) :
27 splittingWeight p q =
28 (∏ a : Fin d, ((q.val a + p.val a).choose (p.val a) : ℝ)) /
29 ((n + r).choose n : ℝ) := by
30 classical
31 let P : ℝ := ∏ a : Fin d, (p.val a).factorial
32 let Q : ℝ := ∏ a : Fin d, (q.val a).factorial
33 let T : ℝ := ∏ a : Fin d, ((merge p q).val a).factorial
34 let C : ℝ := ∏ a : Fin d, ((q.val a + p.val a).choose (p.val a) : ℝ)
35 have hp : (multiplicity p : ℝ) * P = n.factorial := by
36 dsimp [P]
37 exact_mod_cast multiplicity_mul_factorials p
38 have hq : (multiplicity q : ℝ) * Q = r.factorial := by
39 dsimp [Q]
40 exact_mod_cast multiplicity_mul_factorials q
41 have ht : (multiplicity (merge p q) : ℝ) * T = (n + r).factorial := by
42 dsimp [T]
43 exact_mod_cast multiplicity_mul_factorials (merge p q)
44 have hP : P ≠ 0 := Finset.prod_ne_zero_iff.mpr (fun a ha => by
45 exact_mod_cast Nat.factorial_ne_zero (p.val a))
46 have hQ : Q ≠ 0 := Finset.prod_ne_zero_iff.mpr (fun a ha => by
47 exact_mod_cast Nat.factorial_ne_zero (q.val a))
48 have hprod : C * P * Q = T := by
49 rw [show C * P * Q = ∏ a : Fin d,
50 (((q.val a + p.val a).choose (p.val a) : ℝ) * (p.val a).factorial *
51 (q.val a).factorial) by simp [C, P, Q, Finset.prod_mul_distrib]]
52 apply Finset.prod_congr rfl
53 intro a ha
54 change ((q.val a + p.val a).choose (p.val a) : ℝ) * (p.val a).factorial *
55 (q.val a).factorial = (p.val a + q.val a).factorial
56 exact_mod_cast (by simpa [Nat.add_comm] using
57 Nat.choose_mul_factorial_mul_factorial (Nat.le_add_left (p.val a) (q.val a)))
58 have hc : ((n + r).choose n : ℝ) * (n.factorial : ℝ) * r.factorial =
59 (n + r).factorial := by
60 exact_mod_cast (by simpa using
61 Nat.choose_mul_factorial_mul_factorial (Nat.le_add_right n r))
62 have hm : (multiplicity (merge p q) : ℝ) ≠ 0 := by
63 exact_mod_cast (multiplicity_pos (merge p q)).ne'
64 have hchoose : ((n + r).choose n : ℝ) ≠ 0 := by
65 exact_mod_cast (Nat.choose_pos (Nat.le_add_right n r)).ne'
66 unfold splittingWeight
67 apply (div_eq_div_iff hm hchoose).mpr
68 apply (mul_right_cancel₀ (mul_ne_zero hP hQ))
69 change ((multiplicity p : ℝ) * multiplicity q * ((n + r).choose n : ℝ)) * (P * Q) =
70 (C * multiplicity (merge p q)) * (P * Q)
71 calc
72 _ = ((n + r).choose n : ℝ) * ((multiplicity p : ℝ) * P) *
73 ((multiplicity q : ℝ) * Q) := by ring
74 _ = (n + r).factorial := by rw [hp, hq, hc]
75 _ = (multiplicity (merge p q) : ℝ) * T := ht.symm
76 _ = _ := by rw [← hprod]; ring
77
78/-- Entries of the environment partial trace of the splitting range projector. -/
79theorem splitting_row_inner {n r d : ℕ} (p t : Occupation n d) (q : Occupation r d) :
80 (∑ u : Occupation (n + r) d, splittingMatrix n r d (p, q) u *
81 star (splittingMatrix n r d (t, q) u)) =
82 if p = t then (splittingWeight p q : ℂ) else 0 := by
83 classical
84 rw [Finset.sum_eq_single (merge p q)]
85 · simp only [splittingMatrix, ite_true]
86 by_cases hpt : p = t
87 · subst t
88 simp only [ite_true, star_div₀, star_mul, Complex.star_def, Complex.conj_ofReal]
89 have he : (Real.sqrt (multiplicity p : ℝ) * Real.sqrt (multiplicity q : ℝ) /
90 Real.sqrt (multiplicity (merge p q) : ℝ)) *
91 (Real.sqrt (multiplicity p : ℝ) * Real.sqrt (multiplicity q : ℝ) /
92 Real.sqrt (multiplicity (merge p q) : ℝ)) = splittingWeight p q := by
93 rw [← pow_two, div_pow, mul_pow, Real.sq_sqrt (by positivity),
94 Real.sq_sqrt (by positivity), Real.sq_sqrt (by positivity)]
95 rfl
96 norm_cast
97 convert he using 1
98 ring
99 · rw [if_neg hpt]
100 have hm : merge p q ≠ merge t q := fun h => hpt (merge_left_injective q h)
101 rw [if_neg hm]
102 simp
103 · intro u hu hn
104 simp [splittingMatrix, hn]
105 · simp
106
107end Cloning.GeneralSymmetricOccupation
108
109namespace Cloning.GeneralSymmetricOccupation
110
111/-- Summing the physical splitting weights over every environment occupation
112produces precisely the symmetric-dimension ratio. -/
113theorem splittingWeight_sum {n r s : ℕ} (p : Occupation n (s + 1)) :
114 (∑ q : Occupation r (s + 1), splittingWeight p q) =
115 ((n + r + s).choose s : ℝ) / ((n + s).choose s : ℝ) := by
116 classical
117 simp_rw [splittingWeight_binomial]
118 rw [← Finset.sum_div]
119 have hsum : (∑ q : Occupation r (s + 1),
120 ∏ a : Fin (s + 1), (q.val a + p.val a).choose (p.val a)) =
121 (n + r + s).choose (n + s) := by
122 calc
123 _ = ∑ b ∈ Finset.Nat.antidiagonalTuple (s + 1) r,
124 ∏ a, (b a + p.val a).choose (p.val a) := by
125 apply Finset.sum_bij (fun q _ => q.val)
126 · intro q hq
127 exact Finset.Nat.mem_antidiagonalTuple.mpr (compositionEquiv r (s + 1) q).property
128 · intro q hq t ht he
129 exact Subtype.ext he
130 · intro b hb
131 refine ⟨(compositionEquiv r (s + 1)).symm
132 ⟨b, Finset.Nat.mem_antidiagonalTuple.mp hb⟩, Finset.mem_univ _, ?_⟩
133 rfl
134 · intro q hq
135 rfl
136 _ = _ := by
137 have hp : ∑ a, p.val a = n := (compositionEquiv n (s + 1) p).property
138 rw [Cloning.Occupation.multivariate_choose_convolution, hp, Nat.add_comm r n]
139 have hsumR : (∑ q : Occupation r (s + 1),
140 ∏ a : Fin (s + 1), ((q.val a + p.val a).choose (p.val a) : ℝ)) =
141 ((n + r + s).choose (n + s) : ℝ) := by exact_mod_cast hsum
142 rw [hsumR, Cloning.Occupation.werner_balance_dimension_identity]
143
144/-- The actual symmetric splitting matrix satisfies partial-trace balance;
145there is no irreducibility or normalization premise. -/
146theorem splittingMatrix_balance (n r s : ℕ) :
147 Cloning.Compression.partialTrace
148 (splittingMatrix n r (s + 1) * (splittingMatrix n r (s + 1)).conjTranspose) =
149 (((n + r + s).choose s : ℝ) / ((n + s).choose s : ℝ)) •
150 (1 : Matrix (Occupation n (s + 1)) (Occupation n (s + 1)) ℂ) := by
151 classical
152 ext p t
153 simp only [Cloning.Compression.partialTrace, Matrix.mul_apply,
154 Matrix.conjTranspose_apply, splitting_row_inner, Matrix.smul_apply, Matrix.one_apply]
155 by_cases hpt : p = t
156 · simp only [if_pos hpt]
157 rw [← Complex.ofReal_sum, splittingWeight_sum]
158 simp
159 · simp [hpt]
160
161end Cloning.GeneralSymmetricOccupation