PinchingUpper.lean
1module23public import D5.S3.Quantum.Subentropy.PinchingGap4public import Mathlib.Analysis.Convex.Jensen56/-!7# Upper bound for the pinching gap by the classical block probabilities89Supporting proof ported from The Omega Institute's trureturing,10revision d3e1e931e66ad4a3f54c95ef96cf723edcd7e792,11Subadditivity.lean, private lemma pinching_upper. This is existing upstream12work under Apache-2.0, not a newly authored result.13-/1415@[expose] public section16noncomputable section17set_option autoImplicit false18set_option backward.isDefEq.respectTransparency false19open Matrix20open scoped BigOperators ComplexOrder MatrixOrder CStarAlgebra21namespace SubentropyCertificates22open D5.S3.Quantum.Foundation.FiniteStateChannel23open D5.S3.Quantum.Information.PartialTraceMutualInformation24open D5.S3.Quantum.Subentropy.Basic25open D5.S3.Quantum.Subentropy.DensityKernel26open D5.S3.Quantum.Subentropy.ClassicalQuantumGram27open D5.S3.Quantum.Subentropy.PinchingGap28variable {X B : Type*} [Fintype X] [DecidableEq X] [Fintype B] [DecidableEq B]2930theorem pinching_gap_le_label_subentropy (G : Matrix (X × B) (X × B) ℂ)31 (hG : G.PosSemidef) (htr : G.trace = 1) (x₀ : X) (i₀ : X × B) :32 matrixSubentropy (blockPinch G) - matrixSubentropy G ≤33 matrixSubentropy (diagonal (fun x =>34 (((∑ b, G (x,b) (x,b)).re : ℝ) : ℂ))) := by35 let w := hG.isHermitian.eigenvalues36 let v : (X × B) → (X × B) → ℂ := fun j => ⇑(hG.isHermitian.eigenvectorBasis j)37 let R := fun j => Matrix.vecMulVec (v j) (star (v j))38 let r : (X × B) → X → ℝ := fun j x => ∑ b, Complex.normSq (v j (x,b))39 have hw := spectral_prob hG htr40 have hv (j : X × B) : ∑ i, star (v j i) * v j i = 1 := by41 change star (⇑(hG.isHermitian.eigenvectorBasis j)) ⬝ᵥ42 ⇑(hG.isHermitian.eigenvectorBasis j) = 143 rw [dotProduct_comm, ← EuclideanSpace.inner_eq_star_dotProduct,44 inner_self_eq_norm_sq_to_K, hG.isHermitian.eigenvectorBasis.orthonormal.1 j]45 norm_num46 have hdecomp : G = ∑ j, w j • R j := by47 ext a b48 conv_lhs => rw [hG.isHermitian.spectral_theorem,49 Unitary.conjStarAlgAut_apply, Matrix.mul_apply]50 simp only [Matrix.mul_diagonal, Matrix.star_eq_conjTranspose, Matrix.conjTranspose_apply,51 Matrix.IsHermitian.eigenvectorUnitary_apply, Function.comp_apply,52 RCLike.ofReal_eq_complex_ofReal, Matrix.sum_apply, Matrix.smul_apply,53 Matrix.vecMulVec_apply, Pi.star_apply, Complex.real_smul, w, v, R]54 apply Finset.sum_congr rfl55 intro j _56 ring57 have hstates (j : X × B) : (R j).PosSemidef ∧ (R j).trace = 1 := by58 refine ⟨Matrix.posSemidef_vecMulVec_self_star _, ?_⟩59 change (∑ i, v j i * star (v j i)) = 160 simpa only [mul_comm] using hv j61 have hr (j : X × B) : (∀ x, 0 ≤ r j x) ∧ ∑ x, r j x = 1 := by62 refine ⟨fun x => Finset.sum_nonneg fun b _ => Complex.normSq_nonneg _, ?_⟩63 have hC : ((∑ x, r j x : ℝ) : ℂ) = 1 := by64 simpa only [r, Complex.ofReal_sum, Fintype.sum_prod_type,65 Complex.normSq_eq_conj_mul_self, starRingEnd_apply] using hv j66 exact_mod_cast hC67 have hD (j : X × B) :68 (diagonal (fun x => (r j x : ℂ))).PosSemidef ∧69 (diagonal (fun x => (r j x : ℂ))).trace = 1 := by70 refine ⟨Matrix.PosSemidef.diagonal (fun x => by71 simpa [Complex.le_def] using (hr j).1 x), ?_⟩72 rw [Matrix.trace_diagonal, ← Complex.ofReal_sum, (hr j).2, Complex.ofReal_one]73 have hmass (x : X) : (∑ j, w j * r j x) = (∑ b, G (x,b) (x,b)).re := by74 rw [hdecomp]75 simp only [Matrix.sum_apply, Matrix.smul_apply, Complex.real_smul,76 R, Matrix.vecMulVec_apply, Pi.star_apply, Complex.star_def, Complex.mul_conj, Complex.mul_re,77 Complex.ofReal_re, Complex.ofReal_im, zero_mul, sub_zero, Complex.re_sum, r]78 rw [Finset.sum_comm]79 simp only [Finset.mul_sum]80 have hDsum : (∑ j, w j • diagonal (fun x => (r j x : ℂ))) =81 diagonal (fun x => (((∑ b, G (x,b) (x,b)).re : ℝ) : ℂ)) := by82 ext x y83 by_cases hxy : x = y84 · subst y85 simp only [Matrix.sum_apply, Matrix.smul_apply, Matrix.diagonal_apply_eq,86 Complex.real_smul, ← Complex.ofReal_mul, ← Complex.ofReal_sum, hmass]87 · simp [Matrix.sum_apply, Matrix.smul_apply, Matrix.diagonal_apply_ne _ hxy]88 have hc := (actual_pinching_gap_laws i₀).1.map_sum_le89 (t := Finset.univ) (w := w) (p := R)90 (fun j _ => hw.1 j) hw.2 (fun j _ => hstates j)91 have hd := ConcaveOn.le_map_sum (matrix_subentropy_concave x₀)92 (t := Finset.univ) (w := w) (p := fun j => diagonal (fun x => (r j x : ℂ)))93 (fun j _ => hw.1 j) hw.2 (fun j _ => hD j)94 change matrixSubentropy (blockPinch (∑ j, w j • R j)) -95 matrixSubentropy (∑ j, w j • R j) ≤96 ∑ j, w j * (matrixSubentropy (blockPinch (R j)) - matrixSubentropy (R j)) at hc97 rw [← hdecomp] at hc98 rw [hDsum] at hd99 calc100 _ ≤ ∑ j, w j * (matrixSubentropy (blockPinch (R j)) - matrixSubentropy (R j)) := hc101 _ = ∑ j, w j * matrixSubentropy (diagonal (fun x => (r j x : ℂ))) := by102 apply Finset.sum_congr rfl103 intro j _104 rw [(pure_block_pinching (v j) (hv j)).1]105 _ ≤ _ := hd106107end SubentropyCertificates
Axioms used
Choose a statement to see which axioms its proof uses.