Pratik Patil

CQPurityMajorant.lean

1module23public import SubentropyCertificates.PurityMajorant4public import SubentropyCertificates.SpatialSignBlockDiagonal5import all SubentropyCertificates.MatrixStrongConcavity67/-! Appendix C's explicit majorant for the joint and average matrices of a CQ state. -/8@[expose] public section9noncomputable section10open Matrix11open scoped BigOperators MatrixOrder ComplexOrder12namespace SubentropyCertificates.AncillaLimit13open SubentropyCertificates.DeterminantComparison SubentropyCertificates.ConditionalContinuity14open SubentropyCertificates.StrongConcavity15open D5.S3.Quantum.Subentropy.DensityKernel1617def replicatedDet {D : Type*} [Fintype D] [DecidableEq D]18    (M : Matrix D D ℂ) (k : ℕ) (t : ℝ) :=19  (reciprocalDet (t / (k+1 : ℕ)) M)^(k+1)2021private theorem factor_eq_det {D : Type*} [Fintype D] [DecidableEq D]22    {M : Matrix D D ℂ} (hM : M.PosSemidef) (k : ℕ) (t : ℝ) :23    replicatedFactor hM.isHermitian.eigenvalues k t = replicatedDet M k t := by24  unfold replicatedDet25  rw [reciprocalDet_spectral hM.isHermitian]26  unfold ClassicalSSA.kernel ClassicalSSA.factor replicatedFactor27  rw [Finset.prod_inv_distrib]28  congr 229  apply Finset.prod_congr rfl30  intro i _31  congr 132  ring3334/-- The bound with coefficient Tr((∑ₓAₓ)²)/2 for every normalized family35of PSD blocks, including singular or null blocks. The ancilla has dimension k+1. -/36theorem cq_purity_majorant {X D : Type*} [Fintype X] [DecidableEq X] [Fintype D] [DecidableEq D]37    (A : X → Matrix D D ℂ) (hA : ∀ x, (A x).PosSemidef)38    (htr : (∑ x, A x).trace = 1) {k : ℕ} (hk : 1 ≤ k) {t : ℝ} (ht : 0 < t) :39    let M := ∑ x, A x40    let Δ := ((k+1 : ℕ):ℝ) * (replicatedDet M k t - replicatedDet (blockDiagonal A) k t)/t^241    0 ≤ Δ ∧ Δ ≤ (M*M).trace.re/2 * (1/(1+t/2)^2) := by42  have hM := Matrix.posSemidef_sum Finset.univ (fun x _ ↦ hA x)43  have hR := blocks_posSemidef A hA44  have hr : (blockDiagonal A).trace = 1 := by simpa only [Matrix.trace_blockDiagonal,Matrix.trace_sum] using htr45  obtain ⟨hw,sw⟩ := spectral_prob hM htr46  obtain ⟨hv,sv⟩ := spectral_prob hR hr47  have hs : 0 ≤ t/(k+1 : ℕ) := by positivity48  have h := reciprocalDet_blocks_le_sum A hA hs49  have hp : 0 ≤ reciprocalDet (t/(k+1 : ℕ)) (blockDiagonal A) := by50    rw [reciprocalDet_spectral hR.isHermitian]51    exact Finset.prod_nonneg (fun i _ ↦ (ClassicalSSA.factor_pos hs (hv i)).le)52  have ho := pow_le_pow_left₀ hp h (k+1)53  change replicatedDet (blockDiagonal A) k t ≤ replicatedDet (∑ x,A x) k t at ho54  rw [← factor_eq_det hR, ← factor_eq_det hM] at ho55  have result := purity_majorant_spectral _ _ hw hv sw sv hk ht ho56  rw [factor_eq_det hR, factor_eq_det hM] at result57  have he := hs_spectrum hM.isHermitian58  simp only [hsSquared, hM.isHermitian.eq, energy] at he59  simpa only [he] using result6061end SubentropyCertificates.AncillaLimit

Axioms used

Choose a statement to see which axioms its proof uses.