ZeroPinching.lean
1module23public import SubentropyCertificates.PinchingIntegral4import all SubentropyCertificates.PinchingIntegral5import all D5.S3.Quantum.Subentropy.PinchingGap6public import SubentropyCertificates.QuantumMeasurement78/-! Zero gain under block pinching. Strict Jensen equality identifies the9quadratic forms of a matrix and its pinching on the whole Gaussian space. -/10@[expose] public section11noncomputable section12set_option autoImplicit false13set_option backward.isDefEq.respectTransparency false14open Matrix MeasureTheory ProbabilityTheory15open scoped BigOperators ComplexOrder MatrixOrder16namespace SubentropyCertificates.PinchingEquality17open D5.S3.Quantum.Subentropy.GaussianQuadratic18open D5.S3.Quantum.Subentropy.EntropyJensenGap19open D5.S3.Quantum.Subentropy.PinchingGap20open D5.S3.Quantum.Subentropy.ClassicalQuantumGram21open D5.S3.Quantum.Foundation.FiniteStateChannel22open SubentropyCertificates.MeasurementPosterior2324private theorem eq_average_of_zero_gap {S : Type*} [Fintype S] [Nonempty S]25 (a : S → ℝ) (ha : ∀ s, 0 ≤ a s) (hz : entropyJensenGap a = 0) (s : S) :26 a s = finiteAverage a := by27 let w := (Fintype.card S : ℝ)⁻¹28 have hw : 0 < w := by dsimp [w]; positivity29 have hs : ∑ _ : S, w = 1 := by30 simp [w, nsmul_eq_mul, (Nat.cast_ne_zero.mpr Fintype.card_ne_zero : (Fintype.card S : ℝ) ≠ 0)]31 have h := Real.strictConcaveOn_negMulLog.map_sum_eq_iff' (t := Finset.univ)32 (w := fun _ : S => w) (p := a) (fun _ _ => hw.le) hs (fun i _ => ha i)33 simp only [smul_eq_mul, ← Finset.mul_sum] at h34 exact h.mp (sub_eq_zero.mp hz) s (Finset.mem_univ _) hw.ne'3536private theorem hermitian_eq_of_quadratics {D : Type*} [Fintype D] [DecidableEq D]37 {A C : Matrix D D ℂ} (hA : A.IsHermitian) (hC : C.IsHermitian)38 (h : ∀ z, gaussianQuadratic A z = gaussianQuadratic C z) : A = C := by39 have hS := Matrix.isSymmetric_toEuclideanLin_iff.mpr hA40 have hT := Matrix.isSymmetric_toEuclideanLin_iff.mpr hC41 apply Matrix.toEuclideanLin.injective42 apply (ext_inner_map _ _).mp43 intro z44 rw [hS z z, hT z z, ← hS.coe_re_inner_self_apply z, ← hT.coe_re_inner_self_apply z]45 apply congrArg (fun t : ℝ => (t : ℂ))46 exact (div_left_inj' (by norm_num : (2 : ℝ) ≠ 0)).mp (h z)4748variable {X B : Type*} [Fintype X] [DecidableEq X] [Fintype B] [DecidableEq B]4950theorem gain_zero_iff_blockPinch (i₀ : X × B) (A : Matrix (X × B) (X × B) ℂ)51 (hA : A.PosSemidef) (ht : A.trace = 1) : gain A = 0 ↔ A = blockPinch A := by52 constructor53 · intro hz54 have hi := pinch_gap_integral A hA ht i₀55 have hae := (integral_eq_zero_iff_of_nonneg56 (fun z => (sign_orbit_entropy_laws A hA z).2.2.2) hi.1).mp (hi.2.symm.trans hz)57 let : (stdGaussian (EuclideanSpace ℂ (X × B))).IsOpenPosMeasure := gaussian_full_support58 have hall := Measure.eq_of_ae_eq hae (orbit_continuous A) continuous_const59 apply hermitian_eq_of_quadratics hA.isHermitian (pinch_positive A hA).isHermitian60 intro z61 let a := orbit A z62 have hgap : entropyJensenGap a = 0 :=63 (sign_orbit_entropy_laws A hA z).2.2.1.symm.trans (congrFun hall z)64 have ha s : 0 ≤ a s := quadratic_nonnegative (hA.mul_mul_conjTranspose_same _) z65 have he := eq_average_of_zero_gap a ha hgap (fun _ => false)66 have hid : signUnitary (B := B) (fun _ : X => false) = 1 := by67 exact Matrix.diagonal_one68 rw [quadratic_twirl_mean]69 change gaussianQuadratic A z = finiteAverage a70 rw [← he]71 simp only [a, orbit, hid, Matrix.one_mul, Matrix.conjTranspose_one, Matrix.mul_one]72 · intro he73 unfold gain74 rw [← he, sub_self]7576theorem conditional_zero_iff_gram_fixed (p : X → ℝ) (hp : ∀ x, 0 ≤ p x)77 (hs : ∑ x, p x = 1) (ρ : X → DensityState B) :78 conditionalSubentropy p hp hs ρ = 0 ↔79 (cqRowSqrt p ρ).conjTranspose * cqRowSqrt p ρ =80 blockPinch ((cqRowSqrt p ρ).conjTranspose * cqRowSqrt p ρ) := by81 classical82 have hX : Nonempty X := by83 by_contra h84 have : IsEmpty X := not_nonempty_iff.mp h85 simp at hs86 let x₀ := Classical.choice hX87 have hB : Nonempty B := by88 by_contra h89 have : IsEmpty B := not_nonempty_iff.mp h90 have ht := (ρ x₀).2.291 simp [Matrix.trace] at ht92 rw [cq_conditional_eq_pinchingGap]93 exact gain_zero_iff_blockPinch (x₀, Classical.choice hB) _94 (Matrix.posSemidef_conjTranspose_mul_self _) (gram_trace_one p hp hs ρ)9596theorem conditional_zero_iff_offDiagonal_gram (p : X → ℝ) (hp : ∀ x, 0 ≤ p x)97 (hs : ∑ x, p x = 1) (ρ : X → DensityState B) :98 conditionalSubentropy p hp hs ρ = 0 ↔ ∀ x y : X, x ≠ y → ∀ b c : B,99 ((cqRowSqrt p ρ).conjTranspose * cqRowSqrt p ρ) (x,b) (y,c) = 0 := by100 rw [conditional_zero_iff_gram_fixed]101 constructor102 · intro he x y hxy b c103 simpa only [blockPinch, ite_eq_right hxy] using congrArg104 (fun G : Matrix (X × B) (X × B) ℂ => G (x,b) (y,c)) he105 · intro h106 ext ⟨x,b⟩ ⟨y,c⟩107 by_cases he : x = y108 · simp [blockPinch, he]109 · simpa only [blockPinch, ite_eq_right he] using h x y he b c110111end SubentropyCertificates.PinchingEquality
Axioms used
Choose a statement to see which axioms its proof uses.