Pratik Patil

GuessingAttainment.lean

1module23public import SubentropyCertificates.OptimalGuessing4public import Mathlib.Analysis.Matrix.Order5public import Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Order67/-! Compactness of labelled POVMs and attainment of the finite guessing probability. -/8@[expose] public section9noncomputable section10set_option autoImplicit false11set_option backward.isDefEq.respectTransparency false12open Matrix Set13open scoped BigOperators ComplexOrder MatrixOrder Matrix.Norms.L2Operator1415namespace SubentropyCertificates.Discrimination16open D5.S3.Quantum.Foundation.FiniteStateChannel17open D5.S3.Quantum.Subentropy.GuessingProbability1819variable {X B : Type*} [Fintype X] [Fintype B] [DecidableEq B]2021theorem isCompact_effect_interval :22    IsCompact (Icc (0 : Matrix B B ℂ) 1) := by23  let := FiniteDimensional.proper ℂ (Matrix B B ℂ)24  apply (isCompact_closedBall (0 : Matrix B B ℂ) 1).of_isClosed_subset isClosed_Icc25  intro A hA26  simpa only [Metric.mem_closedBall, dist_zero_right] using27    (CStarAlgebra.norm_le_one_iff_of_nonneg A hA.1).2 hA.22829theorem isCompact_labelled_povms :30    IsCompact {M : X → Matrix B B ℂ | (∀ x, (M x).PosSemidef) ∧ ∑ x, M x = 1} := by31  have hc := isCompact_pi_infinite (fun _ : X => isCompact_effect_interval (B := B))32  apply hc.of_isClosed_subset33  · apply IsClosed.inter34    · change IsClosed {M : X → Matrix B B ℂ | ∀ x, (M x).PosSemidef}35      rw [Set.ofPred_forall]36      apply isClosed_iInter37      intro x38      simpa only [← Matrix.nonneg_iff_posSemidef] using39        (isClosed_le continuous_const (continuous_apply x) :40          IsClosed {M : X → Matrix B B ℂ | 0 ≤ M x})41    · exact isClosed_eq (by fun_prop) continuous_const42  · intro M hM x43    refine ⟨(hM.1 x).nonneg, ?_⟩44    rw [← hM.2]45    exact Finset.single_le_sum (fun y _ => (hM.1 y).nonneg) (Finset.mem_univ x)4647theorem successProbabilitySet_isCompact (p : X → ℝ) (ρ : X → DensityState B) :48    IsCompact (successProbabilitySet p ρ) := by49  have hc : Continuous (successProbability p ρ) := by50    unfold successProbability51    fun_prop52  convert (isCompact_labelled_povms (X := X) (B := B)).image hc using 153  ext a54  constructor55  · rintro ⟨M, hM, hsM, rfl⟩56    exact ⟨M, ⟨hM, hsM⟩, rfl⟩57  · rintro ⟨M, ⟨hM, hsM⟩, rfl⟩58    exact ⟨M, hM, hsM, rfl⟩5960theorem exists_optimal_povm (p : X → ℝ) (hp : ∀ x, 0 ≤ p x) (hs : ∑ x, p x = 1)61    (ρ : X → DensityState B) :62    ∃ M : X → Matrix B B ℂ, (∀ x, (M x).PosSemidef) ∧ ∑ x, M x = 1 ∧63      successProbability p ρ M = pGuess p ρ := by64  obtain ⟨M, hM, hsM, he⟩ :=65    (successProbabilitySet_isCompact p ρ).sSup_mem (pGuess_bounds p hp hs ρ).166  exact ⟨M, hM, hsM, he.symm⟩6768theorem pGuess_congr_on_support (p : X → ℝ) (hp : ∀ x, 0 ≤ p x)69    (ρ σ : X → DensityState B) (h : ∀ x, 0 < p x → ρ x = σ x) :70    pGuess p ρ = pGuess p σ := by71  have he (M : X → Matrix B B ℂ) : successProbability p ρ M = successProbability p σ M := by72    apply Finset.sum_congr rfl73    intro x _74    by_cases hz : p x = 075    · simp [hz]76    · rw [h x (lt_of_le_of_ne (hp x) (Ne.symm hz))]77  unfold pGuess78  congr 179  ext a80  simp only [successProbabilitySet, mem_ofPred_eq, he]8182end SubentropyCertificates.Discrimination

Axioms used

Choose a statement to see which axioms its proof uses.