SubadditivityTheorem.lean
1module23public import SubentropyCertificates.SubadditivityGram4public import SubentropyCertificates.MarginalBounds5public import SubentropyCertificates.PinchingRank67/-! The accepted subadditivity theorem (thm:sa). The inequality is the8pinned upstream theorem. Equality is characterized here using the local9pinching equality and spectral refinement certificates. -/10@[expose] public section11noncomputable section12set_option autoImplicit false13set_option backward.isDefEq.respectTransparency false14open Matrix15open scoped BigOperators ComplexOrder MatrixOrder16namespace SubentropyCertificates.Subadditivity17open D5.S3.Quantum.Foundation.FiniteStateChannel18open D5.S3.Quantum.Information.PartialTraceMutualInformation19open D5.S3.Quantum.Information.InputInformationBalance20open D5.S3.Quantum.Subentropy.Basic21open D5.S3.Quantum.Subentropy.PinchingGap22open D5.S3.Quantum.Subentropy.Subadditivity23open SubentropyCertificates.PinchingEquality24open SubentropyCertificates.MeasurementPosterior25open SubentropyCertificates.ClassicalCurve2627variable {X B : Type*} [Fintype X] [DecidableEq X] [Fintype B] [DecidableEq B]2829private theorem zero_of_maximal_positive_gain (G : Matrix (X × B) (X × B) ℂ) (i₀ : X × B)30 (hG : G.PosSemidef) (ht : G.trace = 1) (hpos : 0 < gain G)31 (hmax : classicalSubentropy (labelMass G) ≤ gain G) : matrixSubentropy G = 0 := by32 obtain ⟨w, hw, hs, v, hv, hdec, hub⟩ := spectral_refinement G hG ht i₀.133 have hstates i : (projector (v i)).PosSemidef ∧ (projector (v i)).trace = 1 := by34 refine ⟨Matrix.posSemidef_vecMulVec_self_star _, ?_⟩35 change (∑ k, v i k * star (v i k)) = 136 simpa only [amplitude, dotProduct, Pi.star_apply, mul_comm] using hv i37 have hlo : gain (∑ i, w i • projector (v i)) ≤ ∑ i, w i * gain (projector (v i)) :=38 (actual_pinching_gap_laws i₀).1.map_sum_le (fun i _ => hw i) hs (fun i _ => hstates i)39 have hg := congrArg gain hdec40 obtain ⟨u, hu, hproj⟩ := projector_of_positive_gain_equality i₀ w hw hs v hv41 (hpos.trans_eq hg) (le_antisymm hlo ((hub.trans hmax).trans_eq hg))42 rw [hdec.trans hproj]43 exact matrixSubentropy_pure u hu4445/-- Subadditivity, with equality exactly when at least one marginal density46matrix has rank one. Both marginal operators are the actual partial traces. -/47theorem subadditivity_with_equality (ρ : DensityState (X × B)) :48 subentropy ρ ≤ subentropy (marginalRight ρ) + subentropy (marginalLeft ρ) ∧49 (subentropy ρ = subentropy (marginalRight ρ) + subentropy (marginalLeft ρ) ↔50 IsPure (marginalRight ρ) ∨ IsPure (marginalLeft ρ)) := by51 have hsa := subentropy_subadditive ρ52 refine ⟨hsa, ?_⟩53 rw [← subentropy_zero_iff_pure, ← subentropy_zero_iff_pure]54 constructor55 · intro he56 by_cases hz : subentropy (marginalRight ρ) = 057 · exact Or.inl hz58 right59 have hpos := lt_of_le_of_ne (subentropy_nonnegative (marginalRight ρ)) (Ne.symm hz)60 have hne : Nonempty (X × B) := by61 by_contra h62 have : IsEmpty (X × B) := not_nonempty_iff.mp h63 have ht := ρ.2.264 simp [Matrix.trace] at ht65 let i₀ := Classical.choice hne66 obtain ⟨G, hG, ht, hjoint, hleft, hright⟩ := exists_subadditivity_gram ρ i₀67 have hmax : classicalSubentropy (labelMass G) ≤ gain G := by68 unfold gain69 linarith only [he, hjoint, hleft, hright]70 rw [← hleft]71 exact zero_of_maximal_positive_gain G i₀ hG ht72 ((hpos.trans_eq hright.symm).trans_le hmax) hmax73 · intro h74 have hbounds := marginal_subentropy_bounds ρ75 rcases h with h | h76 · linarith only [h, hsa, hbounds.1]77 · linarith only [h, hsa, hbounds.2]7879end SubentropyCertificates.Subadditivity
Axioms used
Choose a statement to see which axioms its proof uses.