Pratik Patil

MixedQubitDeficit.lean

1module23public import SubentropyCertificates.QubitTraceDistance4public import SubentropyCertificates.SharpGuessingBound56/-! The guessing error and the strictly positive deficit for two identical7maximally mixed qubit signals. -/8@[expose] public section9noncomputable section10set_option autoImplicit false11open Set Filter Matrix12open scoped BigOperators Topology Kronecker13namespace SubentropyCertificates.MixedQubit14open D5.S3.Quantum.Foundation.FiniteStateChannel15open D5.S3.Quantum.Information.OrthogonalRecordEntropy16open D5.S3.Quantum.Subentropy.Basic17open D5.S3.Quantum.Subentropy.ClassicalQuantumGram18open D5.S3.Quantum.Subentropy.GuessingProbability19open SubentropyCertificates.BinarySpectra (densityMatrix)20open SubentropyCertificates.ClassicalCurve21open SubentropyCertificates.Discrimination2223def priors (e : ℝ) : Fin 2 → ℝ := ![1-e,e]2425theorem priors_probability {e : ℝ} (he : e ∈ Ioo 0 (1/2)) : priors e ∈ probabilitySimplex (Fin 2) := by26  constructor27  · intro x; fin_cases x <;> simp [priors] <;> linarith [he.1,he.2]28  · simp [priors,Fin.sum_univ_two]2930/-- With either common signal, guessing the more likely label is optimal. -/31theorem constant_signal_error {e : ℝ} (he : e ∈ Ioo 0 (1/2)) (σ : DensityState (Fin 2)) :32    1-pGuess (priors e) (fun _ => σ) = e := by33  have hp := priors_probability he34  have hmax (x : Fin 2) : priors e x ≤ priors e 0 := by35    fin_cases x <;> simp [priors]36    linarith [he.2]37  rw [pGuess_identical _ hp.1 hp.2 σ 0 hmax]38  simp [priors]3940def exampleRecord (e : ℝ) (he : e ∈ Ioo 0 (1/2)) :=41  recordState (priors e) (priors_probability he).1 (priors_probability he).2 (fun _ => mixed)4243/-- The determinant-defined expression is total in e. On 0<e<1/2 it is44the sharp-curve deficit of the actual normalized CQ ensemble. -/45def deficit (e : ℝ) : ℝ := phi 0 e -46  (matrixSubentropy (diagonal (fun i => (priors e i : ℂ)) ⊗ₖ densityMatrix mixed) - subentropy mixed)4748theorem deficit_eq {e : ℝ} (he : e ∈ Ioo 0 (1/2)) :49    deficit e = phi 0 (1-pGuess (priors e) (fun _ => mixed)) -50      conditionalSubentropy (priors e) (priors_probability he).1 (priors_probability he).2 (fun _ => mixed) := by51  rw [constant_signal_error he,conditionalSubentropy,mixture_identical]52  unfold deficit53  congr 254  exact congrArg matrixSubentropy (constant_record_matrix _ _ _ mixed).symm5556theorem deficit_bounds {e : ℝ} (he : e ∈ Ioo 0 (1/2)) : 0 < deficit e ∧ deficit e ≤ e := by57  let p := priors e58  have hp := priors_probability he59  have herr : 1-pGuess p (fun _ => mixed)=e := constant_signal_error he mixed60  have hpos : 0 < 1-pGuess p (fun _ => mixed) := herr ▸ he.161  have h := optimal_discrimination_bound 0 (by decide : Fintype.card (Fin 2)=0+2)62    p hp.1 hp.2 (fun _ => mixed)63  have hne : conditionalSubentropy p hp.1 hp.2 (fun _ => mixed) ≠ phi 0 (1-pGuess p (fun _ => mixed)) := by64    intro hEq65    obtain ⟨_,v,hv,hpure,_,_⟩ := (sharp_equality_iff_of_positive_error 0 (by decide) p hp.1 hp.266      (fun _ => mixed) hpos).mp hEq67    exact mixed_ne_pure v hv (hpure 0)68  rw [deficit_eq he]69  refine ⟨sub_pos.mpr (lt_of_le_of_ne h.2.1 hne),?_⟩70  change phi 0 (1-pGuess p (fun _ => mixed)) - _ ≤ e71  rw [herr]72  linarith [phi_lt_error 0 he.1 (by linarith [he.2] : e ≤ 1),h.1]7374theorem deficit_tendsto_zero : Tendsto deficit (𝓝[>] 0) (𝓝 0) := by75  have near : ∀ᶠ e : ℝ in 𝓝[>] 0, e ∈ Ioo 0 (1/2) :=76    Ioo_mem_nhdsGT_of_mem ⟨le_rfl,by norm_num⟩77  exact tendsto_of_tendsto_of_tendsto_of_le_of_le' tendsto_const_nhds78    (show Tendsto (fun e : ℝ => e) (𝓝[>] 0) (𝓝 0) from nhdsWithin_le_nhds)79    (near.mono fun _ h => (deficit_bounds h).1.le) (near.mono fun _ h => (deficit_bounds h).2)8081end SubentropyCertificates.MixedQubit

Axioms used

Choose a statement to see which axioms its proof uses.