Fact 1: contraction sandwich identity
ProvedQAlgorithms.Papers.Independent.Extend50.P18.contraction_sandwichLet , , and with . Let be the product of the swaps between registers and , partially transposed on the final registers. Thus each transposed swap equals for the normalized Bell projector. For every complex operator on the first registers,
The partial trace is unnormalized. The identity applies to arbitrary operators, including non-Hermitian ones, and is the contraction rule used in subsequent trace calculations.
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P18
noncomputable section
open scoped BigOperators Matrix ComplexOrder
namespace QAlgorithms.Papers.Independent.Extend50.P18
attribute [local instance] Classical.propDecidable
/-- Fact 1, with n=r+2k: the contraction sandwich identity for every complex
operator X, without positivity or state normalization (PDF pp.9-11, (38)). -/
theorem contraction_sandwich (d r k : ℕ) (hd : 0 < d) (hk : 0 < k)
(X : Matrix ((Fin r → Fin d) × (Fin k → Fin d)) ((Fin r → Fin d) × (Fin k → Fin d)) ℂ) :
pairedContraction d r k * liftInput X * pairedContraction d r k =
liftSurvivor (k := k) (QAlgorithms.traceRight X) * pairedContraction d r k := by sorry
end QAlgorithms.Papers.Independent.Extend50.P18
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
For every with and , and every complex matrix indexed by pairs , where , , and , define matrices on triples as follows: is exactly when , , and for every , and is zero otherwise; when , and is zero otherwise. Define the matrix on words of length by
and define when , and zero otherwise. Then
The assertion imposes no further condition on and permits , in which case the words are empty.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.