AncillaSpatialSign.lean
1module23public import SubentropyCertificates.FixedMarginalSpectrum4public import SubentropyCertificates.SpatialSignBlockDiagonal56/-! Bound the spatial sign norm when the second tensor factor is maximally mixed. -/7@[expose] public section8noncomputable section9set_option backward.isDefEq.respectTransparency false10open Matrix MeasureTheory Set11open scoped BigOperators ComplexOrder MatrixOrder Matrix.Norms.L2Operator Kronecker1213namespace SubentropyCertificates.ConditionalContinuity14open SubentropyCertificates.BinarySpectra (densityMatrix)15open SubentropyCertificates.SpectralContinuity (maximallyMixed)1617variable {D : Type*} [Fintype D] [DecidableEq D]1819private theorem psd_norm_le_trace [Nonempty D] {T : Matrix D D ℂ} (hT : T.PosSemidef) :20 ‖T‖ ≤ T.trace.re := by21 have hm := CStarAlgebra.norm_mem_spectrum_of_nonneg T hT.nonneg22 rw [hT.isHermitian.spectrum_real_eq_range_eigenvalues] at hm23 obtain ⟨i, hi⟩ := hm24 have hs := congrArg Complex.re hT.isHermitian.trace_eq_sum_eigenvalues25 rw [← hi, hs]26 simpa using Finset.single_le_sum (s := Finset.univ) (fun j _ ↦ hT.eigenvalues_nonneg j)27 (Finset.mem_univ i)2829/-- K of a state tensored with I/k has k identical positive diagonal blocks. Each has30trace 1/k, so this also bounds the operator norm of the full matrix. -/31theorem spatialSign_norm_tensor_maximallyMixed (C : Type*) [Fintype C] [DecidableEq C]32 [Nonempty C] {M : Matrix D D ℂ} (hM : M.PosSemidef) (ht : M.trace = 1) :33 ‖spatialSign (M ⊗ₖ densityMatrix (maximallyMixed C))‖ ≤ 1 / (Fintype.card C : ℝ) := by34 have : Nonempty D := by35 by_contra h36 have := not_nonempty_iff.mp h37 simp [Matrix.trace] at ht38 let c : ℝ := 1 / (Fintype.card C : ℝ)39 have hc : 0 ≤ c := by dsimp [c]; positivity40 let A := fun _ : C ↦ c • M41 have ha (x : C) : (A x).PosSemidef := hM.smul hc42 have he : M ⊗ₖ densityMatrix (maximallyMixed C) = blockDiagonal A := by43 change M ⊗ₖ diagonal (fun _ : C ↦ (c : ℂ)) = _44 rw [kroneckerMap_diagonal_right (· * ·) mul_zero]45 ext ⟨i,x⟩ ⟨j,y⟩46 by_cases h : x = y47 · subst y48 simp [A, Complex.real_smul, mul_comm]49 · simp [blockDiagonal_apply_ne _ _ _ h]50 let x₀ : C := Classical.choice inferInstance51 let T := blockSpatialSign A x₀52 have hb : blockSpatialSign A = fun _ : C ↦ T := rfl53 have hpsd : T.PosSemidef := by54 apply nonneg_iff_posSemidef.mp55 apply integral_nonneg_of_ae56 filter_upwards [ae_restrict_mem measurableSet_Ioi] with t ht'57 exact (blockSignKernel_order A ha x₀ ht').158 have hR := blocks_posSemidef A ha59 have hn : blockDiagonal A ≠ 0 := by60 intro hz61 have h := congrArg Matrix.trace (he.trans hz)62 rw [Matrix.trace_kronecker, ht, one_mul, show (densityMatrix (maximallyMixed C)).trace = 163 from (maximallyMixed C).2.2, trace_zero] at h64 exact one_ne_zero h65 have htr := spatialSign_trace_one hR hn66 rw [spatialSign_blockDiagonal A ha, hb, trace_blockDiagonal] at htr67 have htrace : T.trace.re = c := by68 have h : (Fintype.card C : ℂ) * T.trace = 1 := by69 simpa only [Finset.sum_const, Finset.card_univ, nsmul_eq_mul] using htr70 have h' := congrArg Complex.re h71 apply (eq_div_iff (Nat.cast_ne_zero.mpr (Fintype.card_ne_zero (α := C)))).272 simpa [mul_comm] using h'73 have hle : T ≤ c • 1 := by74 rw [← Algebra.algebraMap_eq_smul_one]75 apply (CStarAlgebra.norm_le_iff_le_algebraMap T hc hpsd.nonneg).176 exact (psd_norm_le_trace hpsd).trans_eq htrace77 rw [he, spatialSign_blockDiagonal A ha, hb]78 let B := fun _ : C ↦ T79 change ‖blockDiagonal B‖ ≤ c80 apply (CStarAlgebra.norm_le_iff_le_algebraMap _ hc (blocks_posSemidef B (fun _ ↦ hpsd)).nonneg).281 rw [Algebra.algebraMap_eq_smul_one]82 have h := (blocks_posSemidef (c • (1 : C → Matrix D D ℂ) - B)83 (fun _ ↦ (sub_nonneg.mpr hle).posSemidef)).nonneg84 rw [blockDiagonal_sub, blockDiagonal_smul, blockDiagonal_one] at h85 exact sub_nonneg.mp h8687end SubentropyCertificates.ConditionalContinuity
Axioms used
Choose a statement to see which axioms its proof uses.