Moving an input factor to the output
ProvedQAlgorithms.Papers.Independent.Intakenext100.P95.input_output_reshapingLet be finite orthonormal basis index sets, and let be an isometry. Define by , with no conjugation. Then
This identity justifies reinterpreting input legs as output legs, with the displayed scalar normalization. It also holds when is empty, when both sides vanish.
import Definitions.Def_QAlgorithms_Papers_Independent_Intakenext100_P95
namespace QAlgorithms.Papers.Independent.Intakenext100.P95
open scoped Matrix ComplexConjugate
noncomputable section
local instance (p : Prop) : Decidable p := Classical.propDecidable p
/-- PDF pp.6–7, (2.4)–(2.5): reshuffling without conjugation gives the scalar
card(A2), including the harmless empty-A2 case. -/
theorem input_output_reshaping {A1 A2 B : Type*}
[Fintype A1] [Fintype A2] [Fintype B] [DecidableEq A1] [DecidableEq A2]
(T : Matrix B (A2 × A1) ℂ) (hT : Tᴴ * T = 1) :
(moveInput T)ᴴ * moveInput T = (Fintype.card A2 : ℂ) • 1 := by sorry
end
end QAlgorithms.Papers.Independent.Intakenext100.P95
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
Let be finite types, with decidable equality on and , and let be a complex matrix with rows indexed by and columns indexed by . Suppose , where denotes conjugate transpose. Define the reshaped matrix , with rows indexed by and columns indexed by , by . Then
Empty index types are allowed: if is empty, the hypothesis concerns an empty matrix and the conclusion is ; if is empty, the conclusion is an equality of empty matrices. When , the hypothesis cannot hold.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.