Pratik Patil

ClassicalStrongSubadditivity.lean

1module23public import SubentropyCertificates.ClassicalSSAKernel4public import SubentropyCertificates.ClassicalStrict5import all SubentropyCertificates.BinaryTableDeficit67/-! Classical strong subadditivity for the library's determinant-integral8subentropy, including both directions of the equality condition. -/9@[expose] public section10noncomputable section11set_option backward.isDefEq.respectTransparency false12open Matrix MeasureTheory Set13open scoped BigOperators14namespace SubentropyCertificates.ClassicalSSA15open SubentropyCertificates.ClassicalCurve16open D5.S3.Quantum.Subentropy.Basic17open D5.S3.Quantum.Subentropy.DensityKernel1819variable {A B C : Type*} [Fintype A] [Fintype B] [Fintype C]20  [DecidableEq A] [DecidableEq B] [DecidableEq C]2122private def densityKernel {D : Type*} [Fintype D] [DecidableEq D] (w : D → ℝ) :=23  subentropyKernel (diagonal (fun i => (w i : ℂ)))2425private theorem kernel_identity {D : Type*} [Fintype D] [DecidableEq D] (p : D → ℝ)26    {s : ℝ} (hs : 0 < s) : densityKernel p s = 1/(1+s⁻¹) - kernel s⁻¹ p := by27  rw [densityKernel, SubentropyCertificates.QubitDeficit.kernel_reciprocal p hs]28  simp [kernel, factor, Finset.prod_inv_distrib, one_div]2930private theorem kernel_integrable {D : Type*} [Fintype D] [DecidableEq D] {p : D → ℝ}31    (hp : p ∈ probabilitySimplex D) : IntegrableOn (densityKernel p) (Ioi 0) :=32  integrable_subentropy_kernel (diagonal_density hp).1 (diagonal_density hp).23334/-- The accepted theorem thm:classical_ssa. The disjunction in determined35places the choice of outer variable outside the quantifier over B. -/36theorem classical_strong_subadditivity (p : A × B × C → ℝ) (hp : p ∈ probabilitySimplex _) :37    classicalSubentropy (marginalB p) + classicalSubentropy p ≤38        classicalSubentropy (marginalAB p) + classicalSubentropy (marginalBC p) ∧39    (classicalSubentropy (marginalB p) + classicalSubentropy p =40        classicalSubentropy (marginalAB p) + classicalSubentropy (marginalBC p) ↔41      determined p) := by42  classical43  let ab := marginalAB p44  let bc := marginalBC p45  let b := marginalB p46  have ht := hp.247  simp only [Fintype.sum_prod_type] at ht48  have hab : ab ∈ probabilitySimplex _ := by49    refine ⟨fun u => Finset.sum_nonneg (fun k _ => hp.1 (u.1,u.2,k)), ?_⟩50    simpa only [ab, marginalAB, Fintype.sum_prod_type] using ht51  have hbc : bc ∈ probabilitySimplex _ := by52    refine ⟨fun u => Finset.sum_nonneg (fun i _ => hp.1 (i,u.1,u.2)), ?_⟩53    change (∑ u : B × C, ∑ i, p (i,u)) = 154    rw [Finset.sum_comm, ← Fintype.sum_prod_type]; exact hp.255  have hb : b ∈ probabilitySimplex _ := by56    refine ⟨fun j => Finset.sum_nonneg (fun i _ => Finset.sum_nonneg (fun k _ => hp.1 (i,j,k))), ?_⟩57    change (∑ j, ∑ i, ∑ k, p (i,j,k)) = 158    rw [Finset.sum_comm]; exact ht59  have hlabels : Nonempty (A × B × C) := by60    by_contra hn61    have := not_nonempty_iff.mp hn62    have hz := hp.263    simp at hz64  obtain ⟨⟨i,_,k⟩⟩ := hlabels65  have : Nonempty A := ⟨i⟩66  have : Nonempty C := ⟨k⟩67  let f := fun s => densityKernel b s + densityKernel p s68  let g := fun s => densityKernel ab s + densityKernel bc s69  have hf : IntegrableOn f (Ioi 0) := (kernel_integrable hb).add (kernel_integrable hp)70  have hg : IntegrableOn g (Ioi 0) := (kernel_integrable hab).add (kernel_integrable hbc)71  have hpoint (s : ℝ) (hs : s ∈ Ioi (0 : ℝ)) : f s ≤ g s ∧ (f s = g s ↔ determined p) := by72    dsimp only [f,g,b,ab,bc]73    rw [kernel_identity _ hs, kernel_identity _ hs, kernel_identity _ hs, kernel_identity _ hs]74    have h := classical_ssa_kernel p hp.1 (inv_pos.mpr hs).le75    have he := classical_ssa_kernel_eq_iff p hp.1 (inv_pos.mpr hs)76    refine ⟨by linarith only [h], ?_⟩77    constructor78    · intro eq; exact he.mp (by linarith only [eq])79    · intro det; linarith only [he.mpr det]80  have hf' : (∫ s in Ioi (0 : ℝ), f s) = classicalSubentropy b + classicalSubentropy p :=81    integral_add (kernel_integrable hb) (kernel_integrable hp)82  have hg' : (∫ s in Ioi (0 : ℝ), g s) = classicalSubentropy ab + classicalSubentropy bc :=83    integral_add (kernel_integrable hab) (kernel_integrable hbc)84  change classicalSubentropy b + classicalSubentropy p ≤ classicalSubentropy ab + classicalSubentropy bc ∧85    (classicalSubentropy b + classicalSubentropy p = classicalSubentropy ab + classicalSubentropy bc ↔ _)86  rw [← hf', ← hg']87  refine ⟨setIntegral_mono_on hf hg measurableSet_Ioi (fun s hs => (hpoint s hs).1), ?_⟩88  constructor89  · intro he90    by_contra hn91    exact (integral_strict_mono_Ioi hf hg (fun s hs =>92      lt_of_le_of_ne (hpoint s hs).1 (fun eq => hn ((hpoint s hs).2.mp eq)))).ne he93  · intro h94    exact setIntegral_congr_fun measurableSet_Ioi fun s hs => (hpoint s hs).2.mpr h9596end SubentropyCertificates.ClassicalSSA

Axioms used

Choose a statement to see which axioms its proof uses.