Pratik Patil

CalibratedPure.lean

1module23public import SubentropyCertificates.CalibratedTensorGram4import all SubentropyCertificates.MarginalEigenbasisTable56/-! The calibrated pinching gap on a pure Gram component.7The block-column factorization follows the proof of pure_block_pinching in the8pinned ClassicalQuantumGram module. Tensor Gram conversion retains the ancillary state. -/9@[expose] public section10noncomputable section11set_option backward.isDefEq.respectTransparency false12open Matrix13open scoped BigOperators Kronecker1415namespace SubentropyCertificates.AncillaCalibration16open D5.S3.Quantum.Foundation.FiniteStateChannel (DensityState)17open D5.S3.Quantum.Subentropy.Basic (matrixSubentropy)18open D5.S3.Quantum.Subentropy.ClassicalQuantumGram (blockPinch)19open SubentropyCertificates.BinarySpectra (densityMatrix)20open SubentropyCertificates.PinchingEquality (amplitude projector)21open SubentropyCertificates.MeasurementPosterior (labelMass)22open SubentropyCertificates.QubitDeficit (reindex_subentropy)2324variable {X B C D : Type*} [Fintype X] [DecidableEq X] [Fintype B] [DecidableEq B]25  [Fintype C] [DecidableEq C] [Fintype D] [DecidableEq D]2627private theorem pure_tensor_subentropy (ν : DensityState C) (v : D → ℂ)28    (hv : amplitude v v = 1) :29    matrixSubentropy (projector v ⊗ₖ densityMatrix ν) = matrixSubentropy (densityMatrix ν) := by30  let V : Matrix D Unit ℂ := fun d _ ↦ v d31  have hl : V.conjTranspose * V = 1 := by32    ext ⟨⟩ ⟨⟩33    simpa only [Matrix.mul_apply, Matrix.conjTranspose_apply, one_apply_eq, V,34      amplitude, dotProduct, Pi.star_apply] using hv35  have hr : V * V.conjTranspose = projector v := by36    ext i j37    simp [V, Matrix.mul_apply, Matrix.conjTranspose_apply, projector, vecMulVec_apply]38  let e := Equiv.uniqueProd C Unit39  have he : (1 : Matrix Unit Unit ℂ) ⊗ₖ densityMatrix ν = (densityMatrix ν).submatrix e e := by40    ext ⟨⟨⟩,i⟩ ⟨⟨⟩,j⟩41    change (1 : Matrix Unit Unit ℂ) () () * densityMatrix ν i j = densityMatrix ν i j42    simp43  rw [← hr, ← calibrated_rectangular_gram ν V, hl, he, reindex_subentropy]4445/-- On a pure Gram component the conditional increase equals the calibrated subentropy46of its label masses. The ancillary state may have any rank, and block masses may vanish. -/47theorem calibrated_gap_projector (ν : DensityState C) (v : X × B → ℂ) (hv : amplitude v v = 1) :48    calibratedGap ν (projector v) = calibratedSubentropy ν (labelMass (projector v)) := by49  let W : Matrix (X × B) X ℂ := fun i x ↦ if i.1 = x then v i else 050  have hm (x : X) : labelMass (projector v) x = ∑ b, Complex.normSq (v (x,b)) := by51    simp only [labelMass, projector, vecMulVec_apply, Pi.star_apply, Complex.star_def,52      Complex.mul_conj, Complex.re_sum, Complex.ofReal_re]53  have hl : W.conjTranspose * W = diagonal (fun x ↦ (labelMass (projector v) x : ℂ)) := by54    ext x y55    by_cases h : x = y56    · subst y57      rw [diagonal_apply_eq, hm]58      simp [W, Matrix.mul_apply, Matrix.conjTranspose_apply, Fintype.sum_prod_type,59        Complex.normSq_eq_conj_mul_self]60    · simp [W, Matrix.mul_apply, Matrix.conjTranspose_apply, Fintype.sum_prod_type, h, eq_comm]61  have hr : W * W.conjTranspose = blockPinch (projector v) := by62    ext i j63    by_cases h : i.1 = j.164    · simp [W, Matrix.mul_apply, Matrix.conjTranspose_apply, blockPinch, projector, h, vecMulVec]65    · simp [W, Matrix.mul_apply, Matrix.conjTranspose_apply, blockPinch, h, eq_comm]66  rw [calibratedGap, calibratedSubentropy, pure_tensor_subentropy ν v hv, ← hr,67    ← calibrated_rectangular_gram ν W, hl]6869end SubentropyCertificates.AncillaCalibration

Axioms used

Choose a statement to see which axioms its proof uses.