PinchingIntegral.lean
1module2public import D5.S3.Quantum.Subentropy.PinchingGap3import all D5.S3.Quantum.Subentropy.PinchingGap45/-! Equality in the integrated pinching inequality implies pointwise equality6on the entire Gaussian space, including the null hyperplanes used below.7The sign-orbit integral representation and convexity are from the pinned8Omega Institute library. -/9@[expose] public section10noncomputable section11set_option backward.isDefEq.respectTransparency false12open Matrix MeasureTheory ProbabilityTheory13open scoped BigOperators ComplexOrder MatrixOrder14namespace SubentropyCertificates.PinchingEquality15open D5.S3.Quantum.Subentropy.GaussianQuadratic16open D5.S3.Quantum.Subentropy.EntropyJensenGap17open D5.S3.Quantum.Subentropy.PinchingGap18open D5.S3.Quantum.Subentropy.Basic19open D5.S3.Quantum.Subentropy.ClassicalQuantumGram2021private theorem gaussian_full_support {D : Type*} [Fintype D] :22 (stdGaussian (EuclideanSpace ℂ D)).IsOpenPosMeasure := by23 let : (gaussianReal 0 1).IsOpenPosMeasure :=24 (gaussianReal_absolutelyContinuous' 0 one_ne_zero).isOpenPosMeasure25 classical26 rw [← (complex_coordinate_transport (ι := D)).1]27 apply Continuous.isOpenPosMeasure_map28 · unfold complexGaussianCoordinates29 simp_rw [Complex.mk_eq_add_mul_I]30 fun_prop31 · intro z32 refine ⟨fun p => if p.2 = 0 then (z p.1).re else (z p.1).im, ?_⟩33 apply PiLp.ext34 intro i35 simp [complexGaussianCoordinates]3637variable {X B I : Type*} [Fintype X] [DecidableEq X] [Fintype B] [DecidableEq B] [Fintype I]3839def gain (A : Matrix (X × B) (X × B) ℂ) : ℝ :=40 matrixSubentropy (blockPinch A) - matrixSubentropy A4142def orbit (A : Matrix (X × B) (X × B) ℂ) (z : EuclideanSpace ℂ (X × B)) (s : X → Bool) : ℝ :=43 gaussianQuadratic (signUnitary s * A * (signUnitary s).conjTranspose) z4445private theorem orbit_continuous (A : Matrix (X × B) (X × B) ℂ) :46 Continuous (signOrbitEntropyGap A) := by47 have hc (M : Matrix (X × B) (X × B) ℂ) : Continuous (gaussianQuadratic M) :=48 (Complex.continuous_re.comp (continuous_id.inner (Matrix.toEuclideanLin M).continuous_of_finiteDimensional)).div_const 249 unfold signOrbitEntropyGap finiteAverage50 fun_prop (disch := exact hc _)5152theorem orbit_sum (w : I → ℝ) (A : I → Matrix (X × B) (X × B) ℂ)53 (z : EuclideanSpace ℂ (X × B)) (s : X → Bool) :54 orbit (∑ i, w i • A i) z s = ∑ i, w i * orbit (A i) z s := by55 simp only [orbit, Matrix.mul_sum, Matrix.sum_mul, Matrix.mul_smul, Matrix.smul_mul,56 quadratic_sum, quadratic_real_smul]5758theorem orbit_gap_eq_of_gain_eq (i₀ : X × B) (w : I → ℝ) (hw : ∀ i, 0 ≤ w i)59 (hs : ∑ i, w i = 1) (A : I → Matrix (X × B) (X × B) ℂ)60 (hA : ∀ i, (A i).PosSemidef) (htr : ∀ i, (A i).trace = 1)61 (he : gain (∑ i, w i • A i) = ∑ i, w i * gain (A i)) (z : EuclideanSpace ℂ (X × B)) :62 entropyJensenGap (fun s => ∑ i, w i * orbit (A i) z s) =63 ∑ i, entropyJensenGap (fun s => w i * orbit (A i) z s) := by64 let T := ∑ i, w i • A i65 have hT : T.PosSemidef := Matrix.posSemidef_sum _ (fun i _ => (hA i).smul (hw i))66 have htrace : T.trace = 1 := by67 simp only [T, Matrix.trace_sum, Matrix.trace_smul, htr, Complex.real_smul, mul_one,68 ← Complex.ofReal_sum, hs, Complex.ofReal_one]69 let γ := stdGaussian (EuclideanSpace ℂ (X × B))70 let f (z : EuclideanSpace ℂ (X × B)) := ∑ i, w i * signOrbitEntropyGap (A i) z71 let g := signOrbitEntropyGap T72 have hi (i : I) := pinch_gap_integral (A i) (hA i) (htr i) i₀73 have ht := pinch_gap_integral T hT htrace i₀74 have hf : Integrable f γ := integrable_finsetSum _ (fun i _ => (hi i).1.const_mul _)75 have hle (u : EuclideanSpace ℂ (X × B)) : g u ≤ f u :=76 (sign_orbit_gap_convex u).map_sum_le (fun i _ => hw i) hs (fun i _ => hA i)77 have hInt : ∫ u, f u - g u ∂γ = 0 := by78 rw [integral_sub hf ht.1]79 unfold f80 rw [integral_finsetSum _ (fun i _ => (hi i).1.const_mul _)]81 simp_rw [integral_const_mul]82 change (∑ i, w i * ∫ u, signOrbitEntropyGap (A i) u ∂γ) - ∫ u, signOrbitEntropyGap T u ∂γ = 083 dsimp only [γ]84 simp_rw [← fun i => (hi i).2]85 rw [← ht.2]86 exact sub_eq_zero.mpr he.symm87 have hae := (integral_eq_zero_iff_of_nonneg (fun u => sub_nonneg.mpr (hle u)) (hf.sub ht.1)).mp hInt88 let : γ.IsOpenPosMeasure := gaussian_full_support89 have hfC : Continuous f := continuous_finsetSum _ (fun i _ => continuous_const.mul (orbit_continuous _))90 have hpoint := congrFun (Measure.eq_of_ae_eq hae (hfC.sub (orbit_continuous _)) continuous_const) z91 have hfg : g z = f z := (sub_eq_zero.mp hpoint).symm92 have hstate (M : Matrix (X × B) (X × B) ℂ) (hM : M.PosSemidef) :93 signOrbitEntropyGap M z = entropyJensenGap (orbit M z) :=94 (sign_orbit_entropy_laws M hM z).2.2.195 change signOrbitEntropyGap T z = ∑ i, w i * signOrbitEntropyGap (A i) z at hfg96 rw [hstate T hT] at hfg97 simp_rw [fun i => hstate (A i) (hA i)] at hfg98 simp_rw [fun i => entropyJensenGap_laws.2.1 (w i) (orbit (A i) z) (hw i)]99 simpa only [T, funext (orbit_sum w A z)] using hfg100101end SubentropyCertificates.PinchingEquality
Axioms used
Choose a statement to see which axioms its proof uses.