ZeroConditional.lean
1module23public import SubentropyCertificates.ZeroPinching4public import SubentropyCertificates.OrthogonalMeasurement5public import SubentropyCertificates.SharpDiscriminationEquality6import all D5.S3.Quantum.Subentropy.ClassicalQuantumGram78/-! Zero conditional subentropy, orthogonal supports and perfect guessing9for finite ensembles. Only labels of strictly positive prior constrain the10supports, and no lower bound on the number of labels is required. -/11@[expose] public section12noncomputable section13set_option autoImplicit false14set_option backward.isDefEq.respectTransparency false15open Matrix16open scoped BigOperators ComplexOrder MatrixOrder17namespace SubentropyCertificates.ZeroConditional18open D5.S3.Quantum.Foundation.FiniteStateChannel19open D5.S3.Quantum.Information.PartialTraceMutualInformation20open D5.S3.Quantum.Subentropy.ClassicalQuantumGram21open D5.S3.Quantum.Subentropy.GuessingProbability22open SubentropyCertificates.PinchingEquality23open SubentropyCertificates.MeasurementPosterior24open SubentropyCertificates.QuantumEquality25open SubentropyCertificates.Discrimination2627variable {X B : Type*} [Fintype X] [DecidableEq X] [Fintype B] [DecidableEq B]2829theorem conditional_zero_iff_root_products (p : X → ℝ) (hp : ∀ x, 0 ≤ p x)30 (hs : ∑ x, p x = 1) (ρ : X → DensityState B) :31 conditionalSubentropy p hp hs ρ = 0 ↔32 ∀ x y, x ≠ y → weightedRoot p ρ x * weightedRoot p ρ y = 0 := by33 rw [conditional_zero_iff_offDiagonal_gram]34 have hentry (x y : X) (b c : B) :35 ((cqRowSqrt p ρ).conjTranspose * cqRowSqrt p ρ) (x,b) (y,c) =36 (weightedRoot p ρ x * weightedRoot p ρ y) b c := by37 change ((weightedRoot p ρ x).conjTranspose * weightedRoot p ρ y) b c = _38 rw [root_adjoint]39 simp only [hentry]40 constructor41 · intro h x y hxy42 exact Matrix.ext (h x y hxy)43 · intro h x y hxy b c44 rw [h x y hxy, Matrix.zero_apply]4546theorem orthogonal_supports_of_conditional_zero (p : X → ℝ) (hp : ∀ x, 0 ≤ p x)47 (hs : ∑ x, p x = 1) (ρ : X → DensityState B) (hz : conditionalSubentropy p hp hs ρ = 0) :48 orthogonalSupports p ρ := by49 intro x y hxy hx hy50 let A (j : X) := CStarMatrix.ofMatrix.symm (ρ j).151 let R := weightedRoot p ρ52 have hr : R x * R y = 0 := (conditional_zero_iff_root_products p hp hs ρ).mp hz x y hxy53 have hscaled : p x • (p y • (A x * A y)) = 0 := by54 calc55 _ = (p x • A x) * (p y • A y) := by rw [Matrix.smul_mul, Matrix.mul_smul]56 _ = (R x * R x) * (R y * R y) := by rw [root_square p hp ρ x, root_square p hp ρ y]57 _ = R x * ((R x * R y) * R y) := by simp only [Matrix.mul_assoc]58 _ = 0 := by rw [hr, Matrix.zero_mul, Matrix.mul_zero]59 have hprod : A x * A y = 0 :=60 (smul_eq_zero.mp ((smul_eq_zero.mp hscaled).resolve_left hx.ne')).resolve_left hy.ne'61 have hlin := congrArg Matrix.toEuclideanLin hprod62 rw [Matrix.toLpLin_mul_same, map_zero] at hlin63 apply Submodule.isOrtho_iff_inner_eq.mpr64 rintro _ ⟨u, rfl⟩ _ ⟨v, rfl⟩65 have hsym := Matrix.isSymmetric_toEuclideanLin_iff.mpr (density_posSemidef (ρ x)).isHermitian66 rw [hsym u _]67 change inner ℂ u (((A x).toEuclideanLin ∘ₗ (A y).toEuclideanLin) v) = 068 simp [hlin]6970theorem conditional_zero_of_perfect_guessing (p : X → ℝ) (hp : ∀ x, 0 ≤ p x)71 (hs : ∑ x, p x = 1) (ρ : X → DensityState B) (h : pGuess p ρ = 1) :72 conditionalSubentropy p hp hs ρ = 0 := by73 obtain ⟨M, hM, hsM, he⟩ := (pGuess_one_iff_perfect_povm p hp hs ρ).mp h74 have hd : decisionSuccess p ρ M id = 1 := by75 simpa only [decisionSuccess, jointProbability, successProbability, id_eq] using he76 have hpost := (perfect_decision_iff p hp hs ρ M hM hsM id).mp hd77 exact ((zero_and_posterior_equality_iff p hp hs ρ M hM hsM).mpr78 (fun y hy => ⟨y, hpost y hy⟩)).17980theorem pGuess_one_of_orthogonal_supports (p : X → ℝ) (hp : ∀ x, 0 ≤ p x)81 (hs : ∑ x, p x = 1) (ρ : X → DensityState B) (ho : orthogonalSupports p ρ) :82 pGuess p ρ = 1 := by83 obtain ⟨M, hM, hsM, he⟩ := perfect_projective_measurement_of_orthogonal_supports p hp hs ρ ho84 exact (pGuess_one_iff_perfect_povm p hp hs ρ).mpr85 ⟨M, fun x => (hM x).nonneg.posSemidef, hsM, he⟩8687/-- The three equivalent conditions of the zero conditional subentropy corollary. -/88theorem zero_conditional_equivalences (p : X → ℝ) (hp : ∀ x, 0 ≤ p x)89 (hs : ∑ x, p x = 1) (ρ : X → DensityState B) :90 (conditionalSubentropy p hp hs ρ = 0 ↔ pGuess p ρ = 1) ∧91 (pGuess p ρ = 1 ↔ orthogonalSupports p ρ) ∧92 (conditionalSubentropy p hp hs ρ = 0 ↔ orthogonalSupports p ρ) := by93 have a := orthogonal_supports_of_conditional_zero p hp hs ρ94 have b := pGuess_one_of_orthogonal_supports p hp hs ρ95 have c := conditional_zero_of_perfect_guessing p hp hs ρ96 exact ⟨⟨b ∘ a, c⟩, ⟨a ∘ c, b⟩, ⟨a, c ∘ b⟩⟩9798end SubentropyCertificates.ZeroConditional
Axioms used
Choose a statement to see which axioms its proof uses.