Pratik Patil

ProjectionGain.lean

1module23public import SubentropyCertificates.ProjectionResolution45/-! Lemma 4 for arbitrary finite orthogonal projections. -/6@[expose] public section7noncomputable section8set_option autoImplicit false9set_option backward.isDefEq.respectTransparency false10open Matrix Set11open scoped BigOperators ComplexOrder MatrixOrder12namespace SubentropyCertificates.OrthogonalPinching13open D5.S3.Quantum.Subentropy.ClassicalQuantumGram14open D5.S3.Quantum.Subentropy.PinchingGap15open SubentropyCertificates.PinchingEquality16open SubentropyCertificates.ClassicalCurve1718variable {X D : Type*} [Fintype X] [Fintype D] [DecidableEq D] (R : Resolution X D)1920def blockMass (v : D → ℂ) (x : X) : ℝ := ∑ j, Complex.normSq ((R.P x *ᵥ v) j)2122theorem blockMass_eq_norm_sq (v : D → ℂ) (x : X) :23    blockMass R v x = ‖(WithLp.toLp 2 (R.P x *ᵥ v) : EuclideanSpace ℂ D)‖^2 := by24  simp only [blockMass, EuclideanSpace.norm_sq_eq, Complex.sq_norm]2526theorem blockMass_probability (v : D → ℂ) (hv : amplitude v v = 1) :27    blockMass R v ∈ probabilitySimplex X := by28  refine ⟨fun x => Finset.sum_nonneg (fun _ _ => Complex.normSq_nonneg _), ?_⟩29  have hcoord (x : X) (j : D) : (embedding R *ᵥ v) (x,j) = (R.P x *ᵥ v) j := rfl30  have h := (embedding_inner R v v).trans hv31  have he : (↑(∑ x, blockMass R v x) : ℂ) = 1 := by32    simpa only [amplitude, dotProduct, Pi.star_apply, Fintype.sum_prod_type, hcoord, blockMass,33      Complex.ofReal_sum, Complex.normSq_eq_conj_mul_self, starRingEnd_apply] using h34  exact_mod_cast he3536theorem embed_mixture {I : Type*} [Fintype I] (w : I → ℝ) (A : I → Matrix D D ℂ) :37    embed R (∑ i, w i • A i) = ∑ i, w i • embed R (A i) := by38  simp only [embed, Matrix.mul_sum, Matrix.sum_mul, Matrix.mul_smul, Matrix.smul_mul]3940variable [DecidableEq X]4142omit [DecidableEq X] in43theorem embed_density (A : Matrix D D ℂ) (hA : A.PosSemidef) (ht : A.trace = 1) :44    (embed R A).PosSemidef ∧ (embed R A).trace = 1 :=45  ⟨hA.mul_mul_conjTranspose_same _, (embed_trace R A).trans ht⟩4647include R in48omit [DecidableEq X] in49theorem nonempty_blocks_of_trace (A : Matrix D D ℂ) (ht : A.trace = 1) : Nonempty (X × D) := by50  by_contra! h51  have : IsEmpty (X × D) := h52  have he := (embed_trace R A).trans ht53  simp [Matrix.trace] at he5455/-- For every finite orthogonal resolution, the gain is nonnegative and56convex on density matrices and at a pure state equals Q of the block masses. -/57theorem lemma_four :58    ConvexOn ℝ {A : Matrix D D ℂ | A.PosSemidef ∧ A.trace = 1} (pinchingGain R) ∧59    (∀ A : Matrix D D ℂ, A.PosSemidef → A.trace = 1 → 0 ≤ pinchingGain R A) ∧60    ∀ v : D → ℂ, amplitude v v = 1 →61      pinchingGain R (projector v) = classicalSubentropy (blockMass R v) := by62  constructor63  · constructor64    · intro A hA B hB c d hc hd hcd65      refine ⟨(hA.1.smul hc).add (hB.1.smul hd), ?_⟩66      simp only [Matrix.trace_add, Matrix.trace_smul, hA.2, hB.2, ← add_smul, hcd, one_smul]67    · intro A hA B hB c d hc hd hcd68      let i₀ := Classical.choice (nonempty_blocks_of_trace R A hA.2)69      have h := (actual_pinching_gap_laws i₀).1.2 (embed_density R A hA.1 hA.2)70        (embed_density R B hB.1 hB.2) hc hd hcd71      change gain (c • embed R A + d • embed R B) ≤ c • gain (embed R A) + d • gain (embed R B) at h72      have hlin : embed R (c • A + d • B) = c • embed R A + d • embed R B := by73        simp only [embed, Matrix.mul_add, Matrix.add_mul, Matrix.mul_smul, Matrix.smul_mul]74      simpa only [← hlin, embed_gain] using h75  · constructor76    · intro A hA ht77      let i₀ := Classical.choice (nonempty_blocks_of_trace R A ht)78      obtain ⟨hpos, htrace⟩ := embed_density R A hA ht79      rw [← embed_gain]80      exact (actual_pinching_gap_laws i₀).2 _ hpos htrace81    · intro v hv82      rw [← embed_gain, embed_projector]83      exact (pure_block_pinching _ ((embedding_inner R v v).trans hv)).18485end SubentropyCertificates.OrthogonalPinching

Axioms used

Choose a statement to see which axioms its proof uses.