Pratik Patil

ProjectionEquality.lean

1module23public import SubentropyCertificates.ProjectionGain4public import SubentropyCertificates.NormalizedRays56/-! Lemma 5, with the support, collinearity and rank statements expressed7on the original space of the given orthogonal projections. -/8@[expose] public section9noncomputable section10set_option autoImplicit false11set_option backward.isDefEq.respectTransparency false12open Matrix13open scoped BigOperators ComplexOrder MatrixOrder14namespace SubentropyCertificates.OrthogonalPinching15open SubentropyCertificates.PinchingEquality1617variable {X D I : Type*} [Fintype X] [DecidableEq X] [Fintype D] [DecidableEq D] [Fintype I]18  (R : Resolution X D)1920include R in21omit [DecidableEq X] in22private theorem mixture_block_index (w : I → ℝ) (hs : ∑ i, w i = 1)23    (v : I → D → ℂ) (hv : ∀ i, amplitude (v i) (v i) = 1) : Nonempty (X × D) := by24  have : Nonempty I := by25    by_contra! h26    have : IsEmpty I := h27    simp at hs28  let i := Classical.choice ‹Nonempty I›29  apply nonempty_blocks_of_trace R (projector (v i))30  simpa only [projector, Matrix.trace_vecMulVec, amplitude, dotProduct_comm] using hv i3132private theorem embed_affine_equality (w : I → ℝ) (v : I → D → ℂ) :33    (gain (∑ i, w i • projector (embedding R *ᵥ v i)) =34      ∑ i, w i * gain (projector (embedding R *ᵥ v i))) ↔35    pinchingGain R (∑ i, w i • projector (v i)) = ∑ i, w i * pinchingGain R (projector (v i)) := by36  simp only [← embed_projector, ← embed_mixture, embed_gain]3738/-- A zero-weight term places no restriction on its vector. -/39theorem pinching_equality_on_support (w : I → ℝ) (hw : ∀ i, 0 ≤ w i) (hs : ∑ i, w i = 1)40    (v : I → D → ℂ) (hv : ∀ i, amplitude (v i) (v i) = 1) :41    pinchingGain R (∑ i, w i • projector (v i)) = ∑ i, w i * pinchingGain R (projector (v i)) ↔42      (∀ i, 0 < w i → ∃ x, R.P x *ᵥ v i = v i) ∨43      (∃ k, 0 < w k ∧ ∀ i, 0 < w i → ∃ c : ℂ, v i = c • v k) := by44  let b := Classical.choice (mixture_block_index R w hs v hv)45  have coord := pinching_equality_iff b w hw hs (fun i => embedding R *ᵥ v i)46    (fun i => (embedding_inner R _ _).trans (hv i))47  rw [← embed_affine_equality, coord]48  have same (i k : I) : projector (embedding R *ᵥ v i) = projector (embedding R *ᵥ v k) ↔49      ∃ c : ℂ, v i = c • v k := by50    rw [← embed_projector, ← embed_projector, (embed_injective R).eq_iff]51    exact projector_eq_iff_collinear _ _ (hv i) (hv k)52  simp only [support_iff, same]5354theorem rank_one_of_affine_equality (w : I → ℝ) (hw : ∀ i, 0 ≤ w i) (hs : ∑ i, w i = 1)55    (v : I → D → ℂ) (hv : ∀ i, amplitude (v i) (v i) = 1)56    (hpos : 0 < pinchingGain R (∑ i, w i • projector (v i)))57    (he : pinchingGain R (∑ i, w i • projector (v i)) = ∑ i, w i * pinchingGain R (projector (v i))) :58    (∑ i, w i • projector (v i)).rank = 1 := by59  let b := Classical.choice (mixture_block_index R w hs v hv)60  have hp : 0 < gain (∑ i, w i • projector (embedding R *ᵥ v i)) := by61    simpa only [← embed_projector, ← embed_mixture, embed_gain] using hpos62  have hr := rank_one_of_positive_gain_equality b w hw hs (fun i => embedding R *ᵥ v i)63    (fun i => (embedding_inner R _ _).trans (hv i)) hp ((embed_affine_equality R w v).mpr he)64  simpa only [← embed_projector, ← embed_mixture, embed_rank] using hr6566/-- Lemma 5 for a normalized decomposition with strictly positive weights. -/67theorem lemma_five (w : I → ℝ) (hw : ∀ i, 0 < w i) (hs : ∑ i, w i = 1)68    (v : I → D → ℂ) (hv : ∀ i, amplitude (v i) (v i) = 1) :69    let A := ∑ i, w i • projector (v i)70    let affine := pinchingGain R A = ∑ i, w i * pinchingGain R (projector (v i))71    (affine ↔ (∀ i, ∃ x, R.P x *ᵥ v i = v i) ∨ (∃ k, ∀ i, ∃ c : ℂ, v i = c • v k)) ∧72      (affine → 0 < pinchingGain R A → A.rank = 1) := by73  constructor74  · simpa only [hw, true_implies, true_and] using75      pinching_equality_on_support R w (fun i => (hw i).le) hs v hv76  · intro he hpos77    exact rank_one_of_affine_equality R w (fun i => (hw i).le) hs v hv hpos he7879end SubentropyCertificates.OrthogonalPinching

Axioms used

Choose a statement to see which axioms its proof uses.