Offline · exact source
Exact Lean source

TensorFlatProjectorFidelity

formalization/Cloning/TensorFlatProjectorFidelity.lean

Source hash: 9e415ab2ac3151c61d76057d48af74b216b692699c2ebc769d8a67fc1c75b377

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.TensorFlatProjectorCompression
2 
3/-! Exact physical Cartan fidelity for rank-r flat sector states. -/
4noncomputable section
5open scoped BigOperators Matrix Kronecker ComplexOrder
6namespace Cloning.TensorLie
7open Cloning.MatrixFidelity Cloning.YoungDimensionRatio
8set_option maxHeartbeats 1500000
9set_option backward.isDefEq.respectTransparency false
10variable {r k : ℕ}
11 
12theorem padPartition_add (mu nu : Fin r → ℕ) (k : ℕ) :
13    padPartition (fun a => mu a + nu a) k = fun a => padPartition mu k a + padPartition nu k a := by
14  funext a
15  induction a using Fin.addCases <;> simp
16 
17theorem partitionDimension_congr {d : ℕ} (mu nu : Fin d → ℕ)
18    (hmu : Antitone mu) (hnu : Antitone nu) (he : mu = nu) :
19    partitionDimension mu hmu = partitionDimension nu hnu := by
20  subst nu
21  rfl
22 
23theorem trace_partitionCoordinateProjection_congr (mu nu : Fin (r+k) → ℕ)
24    (hmu : Antitone mu) (hnu : Antitone nu) (he : mu = nu) :
25    Matrix.trace (partitionCoordinateProjection mu hmu) =
26      Matrix.trace (partitionCoordinateProjection nu hnu) := by
27  subst nu
28  rfl
29 
30/-- The normalized support projector is the actual rank-flat sector density. -/
31def rankFlatSectorDensity (mu : Fin r → ℕ) (hmu : Antitone mu) (k : ℕ) :=
32  (1/(partitionDimension mu hmu : ℝ)) •
33    partitionCoordinateProjection (padPartition mu k) (padPartition_antitone mu hmu k)
34 
35theorem rankFlatSectorDensity_posSemidef (mu : Fin r → ℕ) (hmu : Antitone mu) (k : ℕ) :
36    (rankFlatSectorDensity mu hmu k).PosSemidef :=
37  (partitionCoordinateProjection_posSemidef _ _).smul (by positivity)
38 
39theorem rankFlatSectorDensity_trace (mu : Fin r → ℕ) (hmu : Antitone mu) (k : ℕ) :
40    Matrix.trace (rankFlatSectorDensity mu hmu k) = 1 := by
41  rw [rankFlatSectorDensity, Matrix.trace_smul, trace_partitionCoordinateProjection_pad]
42  change (((1/(partitionDimension mu hmu : ℝ) : ℝ) : ℂ) * (partitionDimension mu hmu : ℂ)) = 1
43  push_cast
44  exact one_div_mul_cancel (Nat.cast_ne_zero.mpr (partitionDimension_pos mu hmu).ne')
45 
46/-- Literal CPTP Cartan-channel fidelity, expressed using actual physical
47support and ambient dimensions. -/
48theorem physicalCartanMatrixChannel_rankFlat_fidelity_dimensions
49    (mu nu : Fin r → ℕ) (hmu : Antitone mu) (hnu : Antitone nu) (k : ℕ) :
50    fidelity
51      ((physicalCartanMatrixChannel (padPartition mu k) (padPartition nu k)
52        (padPartition_antitone mu hmu k) (padPartition_antitone nu hnu k)).toFun
53          (rankFlatSectorDensity mu hmu k))
54      ((1/(partitionDimension (fun a => mu a + nu a) (sumPartition_antitone mu nu hmu hnu) : ℝ)) •
55        partitionCoordinateProjection (fun a => padPartition mu k a + padPartition nu k a)
56          (sumPartition_antitone _ _ (padPartition_antitone mu hmu k) (padPartition_antitone nu hnu k))) =
57      Real.sqrt
58        (((partitionDimension (padPartition mu k) (padPartition_antitone mu hmu k) : ℝ) /
59          partitionDimension (fun a => padPartition mu k a + padPartition nu k a)
60            (sumPartition_antitone _ _ (padPartition_antitone mu hmu k) (padPartition_antitone nu hnu k))) *
61        ((partitionDimension (fun a => mu a + nu a) (sumPartition_antitone mu nu hmu hnu) : ℝ) /
62          partitionDimension mu hmu)) := by
63  rw [physicalCartanMatrixChannel_apply, rankFlatSectorDensity]
64  apply sectorMap_flat_projector_fidelity
65    (V := cartanMatrix (padPartition mu k) (padPartition nu k)
66      (padPartition_antitone mu hmu k) (padPartition_antitone nu hnu k))
67    (Pa := partitionCoordinateProjection (padPartition mu k) (padPartition_antitone mu hmu k))
68    (Pb := partitionCoordinateProjection (padPartition nu k) (padPartition_antitone nu hnu k))
69  · exact Nat.cast_pos.mpr (partitionDimension_pos _ _)
70  · exact Nat.cast_pos.mpr (partitionDimension_pos _ _)
71  · exact Nat.cast_pos.mpr (partitionDimension_pos _ _)
72  · exact Nat.cast_pos.mpr (partitionDimension_pos _ _)
73  · exact cartanMatrix_isometry _ _ _ _
74  · exact partitionCoordinateProjection_idempotent _ _
75  · exact partitionCoordinateProjection_idempotent _ _
76  · exact partitionCoordinateProjection_posSemidef _ _
77  · have ht := trace_partitionCoordinateProjection_pad (k := k)
78      (fun a => mu a + nu a) (sumPartition_antitone mu nu hmu hnu)
79    have htr := trace_partitionCoordinateProjection_congr _ _
80      (padPartition_antitone _ (sumPartition_antitone mu nu hmu hnu) k)
81      (sumPartition_antitone _ _ (padPartition_antitone mu hmu k) (padPartition_antitone nu hnu k))
82      (padPartition_add mu nu k)
83    rw [htr] at ht
84    simpa only [Complex.natCast_re] using congrArg Complex.re ht
85  · exact cartanMatrix_tensorAction _ _ _ _ (coordinateSupportMatrix r k)
86 
87/-- The manuscript's exact crossing-dimension ratio follows from the actual
88Weyl dimensions and the actual CPTP Cartan compression. -/
89theorem physicalCartanMatrixChannel_rankFlat_fidelity
90    (mu nu : Fin r → ℕ) (hmu : Antitone mu) (hnu : Antitone nu) (k : ℕ) :
91    fidelity
92      ((physicalCartanMatrixChannel (padPartition mu k) (padPartition nu k)
93        (padPartition_antitone mu hmu k) (padPartition_antitone nu hnu k)).toFun
94          (rankFlatSectorDensity mu hmu k))
95      ((1/(partitionDimension (fun a => mu a + nu a) (sumPartition_antitone mu nu hmu hnu) : ℝ)) •
96        partitionCoordinateProjection (fun a => padPartition mu k a + padPartition nu k a)
97          (sumPartition_antitone _ _ (padPartition_antitone mu hmu k) (padPartition_antitone nu hnu k))) =
98      Real.sqrt (dimensionRatio r k (fun a => (mu a : ℝ)) /
99        dimensionRatio r k (fun a => ((mu a + nu a : ℕ) : ℝ))) := by
100  rw [physicalCartanMatrixChannel_rankFlat_fidelity_dimensions mu nu hmu hnu k]
101  congr 1
102  rw [← partitionDimension_pad_ratio mu hmu k,
103    ← partitionDimension_pad_ratio (fun a => mu a + nu a) (sumPartition_antitone mu nu hmu hnu) k]
104  rw [partitionDimension_congr _ _
105    (padPartition_antitone _ (sumPartition_antitone mu nu hmu hnu) k)
106    (sumPartition_antitone _ _ (padPartition_antitone mu hmu k) (padPartition_antitone nu hnu k))
107    (padPartition_add mu nu k)]
108  field_simp
109  <;> ring
110 
111end Cloning.TensorLie