Pratik Patil

OverlapCurves.lean

1module2public import SubentropyCertificates.EqualPriorSubentropy3public import SubentropyCertificates.CurveInverse4public import SubentropyCertificates.CurveTangent56/-! The scalar overlap curves and the inverse subentropy bound on the7physical interval, expressed using the paper's ensemble quantities. -/8@[expose] public section9noncomputable section10set_option autoImplicit false11open Set12open scoped BigOperators13namespace SubentropyCertificates.SmallOverlap14open SubentropyCertificates.ClassicalCurve15open SubentropyCertificates.Discrimination16open SubentropyCertificates.BinarySpectra17open SubentropyCertificates.Helstrom18open SubentropyCertificates.PinchingEquality19open D5.S3.Quantum.Subentropy.ClassicalQuantumGram20open D5.S3.Quantum.Subentropy.GuessingProbability2122def conditionalCurve (s : ℝ) := phi 0 (1/2) - phi 0 ((1-s)/2)23def errorCurve (s : ℝ) := (1-Real.sqrt (1-s^2))/22425/-- Both scalar functions are the original operational quantities. -/26theorem ensemble_curves {D : Type*} [Fintype D] [DecidableEq D] (v w : D → ℂ)27    (hv : amplitude v v=1) (hw : amplitude w w=1) :28    let s := ‖amplitude v w‖29    let ρ := purePair v w hv hw30    conditionalSubentropy halfPrior halfPrior_nonneg halfPrior_sum ρ = conditionalCurve s ∧31    1-pGuess halfPrior ρ = errorCurve s := by32  have h := phi_uniform_endpoint 033  norm_num [uniformError,harmonic_succ,harmonic_zero] at h34  have hu : phi 0 (1/2) = Real.log 2-1/2 := by linarith35  simpa only [conditionalCurve,errorCurve,hu] using equal_prior_conditional_subentropy v w hv hw3637theorem conditionalCurve_mem (s : Icc (0:ℝ) 1) : conditionalCurve s ∈ curveRange 0 := by38  obtain ⟨v,w,hv,hw,hs⟩ := realize_overlap s.property39  have h := (ensemble_curves v w hv hw).140  rw [hs] at h41  rw [← h]42  exact conditional_subentropy_range 0 (by decide) _ _ _ _4344/-- Evaluate the genuine increasing-branch inverse at the conditional45subentropy. Its argument is in range on the entire physical interval. -/46def subentropyBound (s : Icc (0:ℝ) 1) := phiInverse 0 (conditionalCurve s) (conditionalCurve_mem s)4748theorem bound_nonneg_le_error (s : Icc (0:ℝ) 1) :49    0 ≤ subentropyBound s ∧ subentropyBound s ≤ errorCurve s := by50  obtain ⟨v,w,hv,hw,hs⟩ := realize_overlap s.property51  obtain ⟨hq,he⟩ := ensemble_curves v w hv hw52  rw [hs] at hq he53  have h := inverse_discrimination_bound 0 (by decide : Fintype.card (Fin 2)=0+2)54    halfPrior halfPrior_nonneg halfPrior_sum (purePair v w hv hw)55  rw [he] at h56  refine ⟨(phiInverse_mem 0 _ _).1,?_⟩57  convert h using 158  unfold subentropyBound59  congr 160  exact hq.symm6162theorem phi_bound (s : Icc (0:ℝ) 1) : phi 0 (subentropyBound s) = conditionalCurve s :=63  phi_phiInverse 0 _ _6465end SubentropyCertificates.SmallOverlap

Axioms used

Choose a statement to see which axioms its proof uses.