Pratik Patil

FixedMarginalContinuity.lean

1module23public import SubentropyCertificates.FixedMarginalBound4public import SubentropyCertificates.FixedMarginalTable5public import SubentropyCertificates.FixedMarginalBlocks6public import SubentropyCertificates.FixedMarginalSlope7public import SubentropyCertificates.FixedMarginalSpectrum89/-! Corollary 15: the sharp trace distance coefficient with a prescribed quantum marginal. -/10@[expose] public section11noncomputable section12set_option backward.isDefEq.respectTransparency false13open Matrix Set Filter MeasureTheory14open scoped BigOperators ComplexOrder MatrixOrder Matrix.Norms.L2Operator Topology15namespace SubentropyCertificates.ConditionalContinuity16open SubentropyCertificates.MixedQubit (traceDistance)17open SubentropyCertificates.ClassicalCurve18open SubentropyCertificates.SpectralContinuity (maximallyMixed_matrix)1920variable {X D : Type*} [Fintype X] [DecidableEq X] [Fintype D] [DecidableEq D]2122/-- Transfer mass e along spectral coordinate i between two labels. The fixed marginal is23exact even at the boundary. The signed subentropy increment equals e times the split slope. -/24theorem fixedMarginal_split_pair {M : Matrix D D ℂ} (hM : M.PosSemidef) (ht : M.trace = 1)25    (a b : X) (hab : a ≠ b) (i : D) {e : ℝ} (he : e ∈ Icc 0 (hM.isHermitian.eigenvalues i)) :26    ∃ (A B : X → Matrix D D ℂ) (ha : ∀ x, (A x).PosSemidef) (hb : ∀ x, (B x).PosSemidef)27      (hta : (∑ x, A x).trace = 1) (htb : (∑ x, B x).trace = 1),28      (∑ x, A x) = M ∧ (∑ x, B x) = M ∧29      traceDistance (blockDensity A ha hta) (blockDensity B hb htb) = e ∧30      blockConditionalQ B - blockConditionalQ A = e * splitSlope hM.isHermitian.eigenvalues i e := by31  let w := hM.isHermitian.eigenvalues32  let U := hM.isHermitian.eigenvectorUnitary33  let p := splitTable a b w i34  have hw : w ∈ probabilitySimplex D := by35    refine ⟨hM.eigenvalues_nonneg, ?_⟩36    have hs := hM.isHermitian.trace_eq_sum_eigenvalues37    rw [ht] at hs38    simpa [w] using congrArg Complex.re hs.symm39  have hp {r : ℝ} (hr : r ∈ Icc 0 (w i)) :40      (fun z : D × X ↦ p r z.2 z.1) ∈ probabilitySimplex (D × X) :=41    splitPrior_probability a b hab hw i hr42  have h0 := hp (r := 0) ⟨le_rfl, hw.1 i⟩43  have h1 := hp he44  have hm (r : ℝ) : (∑ x, spectralBlocks U (p r) x) = M := by45    rw [spectralBlocks_sum]46    simp only [p, splitTable_column a b hab]47    exact hM.isHermitian.spectral_theorem.symm48  refine ⟨_, _, spectralBlocks_posSemidef U _ h0, spectralBlocks_posSemidef U _ h1,49    spectralBlocks_trace U _ h0, spectralBlocks_trace U _ h1, hm 0, hm e, ?_, ?_⟩50  · exact (spectralBlocks_traceDistance U _ _ h0 h1).trans (splitPrior_distance a b hab w i he.1)51  · rw [spectralBlocks_conditionalQ, spectralBlocks_conditionalQ, hm, hm, sub_sub_sub_cancel_right]52    exact splitPrior_increment a b hab hw i he5354/-- Each smaller coefficient fails at arbitrarily small positive distance on the same55fixed-marginal set. The witnessing spectral coordinate always has positive mass. -/56theorem cq_fixed_marginal_sharp_near_zero (hn : 2 ≤ Fintype.card X) {M : Matrix D D ℂ}57    (hM : M.PosSemidef) (ht : M.trace = 1) {c δ : ℝ} (hc : c < ‖spatialSign M‖) (hδ : 0 < δ) :58    ∃ (A B : X → Matrix D D ℂ) (ha : ∀ x, (A x).PosSemidef) (hb : ∀ x, (B x).PosSemidef)59      (hta : (∑ x, A x).trace = 1) (htb : (∑ x, B x).trace = 1),60      let d := traceDistance (blockDensity A ha hta) (blockDensity B hb htb)61      (∑ x, A x) = M ∧ (∑ x, B x) = M ∧ 0 < d ∧ d < δ ∧62        c * d < |blockConditionalQ B - blockConditionalQ A| := by63  obtain ⟨a,b,hab⟩ := Fintype.one_lt_card_iff.mp hn64  obtain ⟨i, hi, htop⟩ := exists_spatialSign_top_coordinate hM ht65  let w := hM.isHermitian.eigenvalues66  have hlim := splitSlope_tendsto w hM.eigenvalues_nonneg i hi67  change (∫ t in Ioi (0:ℝ), w i / (1+t*w i) * ∏ j, (1+t*w j)⁻¹) = _ at htop68  rw [htop] at hlim69  have hnear : ∀ᶠ e : ℝ in 𝓝[>] 0, e ∈ Ioo 0 (min δ (w i)) :=70    Ioo_mem_nhdsGT_of_mem ⟨le_rfl,lt_min hδ hi⟩71  obtain ⟨e, he, hs⟩ := (hnear.and (hlim (Ioi_mem_nhds hc))).exists72  have hsmall := lt_min_iff.mp he.273  obtain ⟨A,B,ha,hb,hta,htb,hA,hB,hd,hq⟩ :=74    fixedMarginal_split_pair hM ht a b hab i ⟨he.1.le,hsmall.2.le⟩75  refine ⟨A,B,ha,hb,hta,htb,hA,hB,hd ▸ he.1,hd ▸ hsmall.1,?_⟩76  rw [hd, hq, mul_comm e]77  exact (mul_lt_mul_of_pos_right hs he.1).trans_le (le_abs_self _)7879/-- Corollary 15. On each fixed marginal the optimal coefficient is the norm of K(M).80The last three clauses evaluate or bound this norm for the maximally mixed, pure and mixed cases. -/81theorem cq_fixed_marginal_continuity (X : Type*) [Fintype X] [DecidableEq X]82    {M : Matrix D D ℂ} (hM : M.PosSemidef) (ht : M.trace = 1) :83    ‖spatialSign M‖ ∈ fixedMarginalCoefficients X M ∧84    (2 ≤ Fintype.card X → IsLeast (fixedMarginalCoefficients X M) ‖spatialSign M‖) ∧85    (M = (1 / (Fintype.card D : ℂ)) • (1 : Matrix D D ℂ) →86      ‖spatialSign M‖ = 1 / (Fintype.card D : ℝ)) ∧87    (M.rank = 1 → ‖spatialSign M‖ = 1) ∧ (1 < M.rank → ‖spatialSign M‖ < 1) := by88  have hu := cq_fixed_marginal_bound X M89  refine ⟨hu, ?_, ?_, spatialSign_norm_eq_one_of_rank_one hM, spatialSign_norm_lt_one_of_rank hM⟩90  · intro hn91    refine ⟨hu, ?_⟩92    intro c hbound93    by_contra! hc94    obtain ⟨A,B,ha,hb,hta,htb,hA,hB,_,_,hgap⟩ :=95      cq_fixed_marginal_sharp_near_zero hn hM ht hc (δ := 1) zero_lt_one96    exact (hbound A B ha hb hta htb hA hB).not_gt hgap97  · intro hm98    have : Nonempty D := by99      by_contra h100      have := not_nonempty_iff.mp h101      simp [Matrix.trace] at ht102    rw [hm, ← maximallyMixed_matrix D]103    exact spatialSign_norm_maximallyMixed D104105end SubentropyCertificates.ConditionalContinuity

Axioms used

Choose a statement to see which axioms its proof uses.