Corollary 9 / Eq.(40): trace of a product
OpenQAlgorithms.Papers.Independent.Extend50.P17.word_product_traceFor , , and separately injective ordered port lists , let be the unnormalized permutation words partially transposed on the last of factors. Define using Notation 5 as the number of equalities . Then
Here . The prefactor is required by the trace on the full tensor space; it disappears only after explicitly applying signal normalization.
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P17
noncomputable section
namespace QAlgorithms.Papers.Independent.Extend50.P17
open Filter MeasureTheory
open scoped BigOperators Matrix ComplexOrder Matrix.Norms.L2Operator
attribute [local instance] Classical.propDecidable
/-- PDF p.10, Corollary 9, Eq.(40): the factor d^(n-2k)=d^(N-k) is retained. -/
theorem word_product_trace (d N k : ℕ) (hd : 1 ≤ d)
(hk : 1 ≤ k) (hNk : k ≤ N) (a b : MPBTPortSelection N k) :
(mpbtWordOperator d N k a * mpbtWordOperator d N k b).trace =
(d : ℂ)^(N-k) * (d : ℂ)^(2 * collisionCount a b) := by sorry
end QAlgorithms.Papers.Independent.Extend50.P17
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
For all natural numbers with and , and all injections , the following complex trace identity holds. Write . For an injection , let be the permutation of given by the product, in increasing order of , of the transpositions exchanging and . Define a matrix , indexed by pairs , by
where denotes concatenation. Define permutations of by and , where a transposition exchanging equal elements is the identity, and put . Then
The powers and equality here are in ; the assumptions allow and , so may be zero.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.