Offline · exact source
Exact Lean source

PCTRankAdaptedWerner

formalization/Cloning/PCTRankAdaptedWerner.lean

Source hash: 10bf2f2d2cc3868251d785894cd80f48ecca527eb6e4b9472940d104e5c14e85

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.PCTRankAdaptedCompression
2 
3/-! Exact trace-class compression of normalized physical Werner outputs,
4with the symmetric-dimension ratio derived from the literal sandwich. -/
5noncomputable section
6open scoped BigOperators InnerProductSpace Matrix ComplexOrder
7namespace Cloning.PCTRankAdapted
8open Cloning.PCT Cloning.PCTPurificationChannel Cloning.FiniteKrausLift
9open Cloning.InfiniteTraceClass
10set_option backward.isDefEq.respectTransparency false
11set_option maxHeartbeats 900000
12set_option linter.unusedSectionVars false
13variable {A B : Type*} [Fintype A] [Fintype B] [DecidableEq A] [DecidableEq B]
14 
15theorem matrixRegister_inner (J : Matrix B A ℂ) (hJ : Jᴴ * J = 1)
16    (x y : Register A) : ⟪matrixRegister J x, matrixRegister J y⟫_ℂ = ⟪x,y⟫_ℂ := by
17  rw [← ContinuousLinearMap.adjoint_inner_right]
18  have h : (matrixRegister J).adjoint (matrixRegister J y) = y := by
19    change ((matrixRegister J).adjoint.comp (matrixRegister J)) y = y
20    rw [← matrixRegister_conjTranspose, ← matrixRegister_mul, hJ, matrixRegister_one]
21    rfl
22  rw [h]
23 
24def matrixIsometry (J : Matrix B A ℂ) (hJ : Jᴴ * J = 1) : Register A →ₗᵢ[ℂ] Register B :=
25  (matrixRegister J).toLinearMap.isometryOfInner (matrixRegister_inner J hJ)
26 
27@[simp] theorem matrixIsometry_apply (J : Matrix B A ℂ) (hJ : Jᴴ * J = 1)
28    (x : Register A) : matrixIsometry J hJ x = matrixRegister J x := rfl
29 
30theorem matrixRegister_norm (J : Matrix B A ℂ) (hJ : Jᴴ * J = 1) (x : Register A) :
31    ‖matrixRegister J x‖ = ‖x‖ := (matrixIsometry J hJ).norm_map x
32 
33def wernerScale (n m s : ℕ) : ℝ := (Nat.choose (n+s) s : ℝ) / Nat.choose (m+s) s
34 
35theorem wernerScale_pos (n m s : ℕ) : 0 < wernerScale n m s := by
36  apply div_pos
37  · exact_mod_cast Nat.choose_pos (by omega : s ≤ n+s)
38  · exact_mod_cast Nat.choose_pos (by omega : s ≤ m+s)
39 
40/-- Exact support mass as the quotient of ambient and internal symmetric
41cloning normalizations. -/
42def supportFactor (n m small large : ℕ) : ℝ :=
43  wernerScale n m large / wernerScale n m small
44 
45theorem supportFactor_pos (n m small large : ℕ) : 0 < supportFactor n m small large :=
46  div_pos (wernerScale_pos n m large) (wernerScale_pos n m small)
47 
48/-- The uncompressed output is the actual normalized physical pure-state
49Werner operator, and the compressed output is the smaller physical Werner
50operator times the exact dimension ratio. -/
51theorem pureWernerOutput_compression {L small large : ℕ}
52    (hA : Fintype.card A = small+1) (hB : Fintype.card B = large+1)
53    (J : Matrix B A ℂ) (hJ : Jᴴ * J = 1)
54    (ψ : Register A) (hψ : ‖ψ‖ = 1) (S : Finset (Fin L)) :
55    conjugationLinearMap (tensorMap L J).adjoint
56      (pureWernerOutput hB (matrixRegister J ψ) ((matrixRegister_norm J hJ ψ).trans hψ) S) =
57      (supportFactor S.card L small large : ℂ) • pureWernerOutput hA ψ hψ S := by
58  apply Subtype.ext
59  change operatorConjugation (tensorMap L J).adjoint
60    (pureWernerOperator large (matrixRegister J ψ) S) =
61    (supportFactor S.card L small large : ℂ) • pureWernerOperator small ψ S
62  simp only [pureWernerOperator, map_smul]
63  have he : operatorConjugation (tensorMap L J).adjoint
64      (physicalProjector L * pureSlotsOperator (matrixRegister J ψ) S * physicalProjector L) =
65      physicalProjector L * pureSlotsOperator ψ S * physicalProjector L := by
66    have hh := wernerSandwich_compression J hJ ψ S
67    simpa only [operatorConjugation, ContinuousLinearMap.adjoint_adjoint,
68      ContinuousLinearMap.comp_assoc] using hh
69  rw [he, smul_smul]
70  congr 1
71  change (wernerScale S.card L large : ℂ) =
72    (supportFactor S.card L small large : ℂ) * (wernerScale S.card L small : ℂ)
73  rw [← Complex.ofReal_mul, supportFactor,
74    div_mul_cancel₀ _ (wernerScale_pos S.card L small).ne']
75 
76end Cloning.PCTRankAdapted