ThreeLabelPerturbationAnalysisComparison.lean
1module23public import SubentropyCertificates.ThreeLabelPerturbationAnalysisInverse4public import SubentropyCertificates.ThreeLabelSignalsSpectra5public import SubentropyCertificates.BinaryCrossoverOrder67/-! Neither spectral lower bound dominates the other. The two comparisons use actual ensembles. -/8@[expose] public section9noncomputable section10open Set Filter11open scoped Topology BigOperators12namespace SubentropyCertificates.ThreeLabelPerturbation13open SubentropyCertificates.Discrimination SubentropyCertificates.Quadratic14open SubentropyCertificates.Helstrom SubentropyCertificates.BinarySpectra SubentropyCertificates.PinchingEquality15open SubentropyCertificates.SmallOverlap SubentropyCertificates.BinaryCrossover16open D5.S3.Quantum.Foundation.FiniteStateChannel17open D5.S3.Quantum.Subentropy.ClassicalQuantumGram18open D5.S3.Quantum.Subentropy.GuessingProbability1920/-- A binary, equal-prior pure ensemble with a strictly larger quadratic lower bound. -/21theorem exists_binary_quadratic_stronger :22 ∃ v w : Fin 2 → ℂ, ∃ hv : amplitude v v = 1, ∃ hw : amplitude w w = 1,23 let ρ := purePair v w hv hw24 let q := conditionalSubentropy halfPrior halfPrior_nonneg halfPrior_sum ρ25 let c := statistic halfPrior halfPrior_nonneg halfPrior_sum ρ26 phiInverse 0 q (conditional_subentropy_range 0 (by decide) _ _ _ _) < inverse 0 c := by27 obtain ⟨s₀,hs₀,H⟩ := overlap_crossing28 let s : Icc (0:ℝ) 1 := ⟨s₀/2,by constructor <;> linarith [hs₀.1,hs₀.2]⟩29 have hslt := (H s).2.1 (by change 0 < s₀/2; linarith [hs₀.1])30 (by change s₀/2 < s₀; linarith [hs₀.1])31 have hlt : subentropyBound s < errorCurve s := hslt.trans_le (by linarith [(error_remainder s.property).1])32 obtain ⟨v,w,hv,hw,hs⟩ := realize_overlap s.property33 let ρ := purePair v w hv hw34 refine ⟨v,w,hv,hw,?_⟩35 have hc := ensemble_curves v w hv hw36 rw [hs] at hc37 have hq := (binary_pure_quadratic_exact (p := 1/2) (by constructor <;> norm_num) v w hv hw).2.138 change inverse 0 (statistic halfPrior halfPrior_nonneg halfPrior_sum ρ) = 1-pGuess halfPrior ρ at hq39 rw [hc.2] at hq40 change phiInverse 0 (conditionalSubentropy halfPrior halfPrior_nonneg halfPrior_sum ρ) _ <41 inverse 0 (statistic halfPrior halfPrior_nonneg halfPrior_sum ρ)42 rw [hq]43 convert hlt using 144 unfold subentropyBound45 congr 146 exact hc.14748/-- For every sufficiently small positive perturbation of the displayed three pure signals,49the subentropy inverse is strictly larger than the quadratic inverse on the same ensemble. -/50theorem three_signal_subentropy_stronger :51 ∀ᶠ e : ℝ in 𝓝[>] 0, ∃ he : e ∈ Icc 0 (1/6:ℝ),52 let ρ := ThreeLabelSignals.state he53 let q := conditionalSubentropy ThreeLabelSignals.prior ThreeLabelSignals.prior_nonneg54 ThreeLabelSignals.prior_sum ρ55 let c := statistic ThreeLabelSignals.prior ThreeLabelSignals.prior_nonneg ThreeLabelSignals.prior_sum ρ56 inverse 1 c < phiInverse 1 q (conditional_subentropy_range 1 (by decide) _ _ _ _) := by57 have small : ∀ᶠ e : ℝ in 𝓝[>] 0, e ∈ Ioo 0 (1/6) :=58 Ioo_mem_nhdsGT_of_mem ⟨le_rfl,by norm_num⟩59 filter_upwards [small,spectralBound_stronger] with e he hbound60 obtain ⟨hm,hlt⟩ := hbound61 have hphys : e ∈ Icc (0:ℝ) (1/6) := ⟨he.1.le,he.2.le⟩62 refine ⟨hphys,?_⟩63 dsimp only64 rw [ThreeLabelSignals.quadratic_statistic]65 convert hlt using 166 congr 167 simpa [spectralDifference,spectrum] using ThreeLabelSignals.conditional_subentropy hphys6869end SubentropyCertificates.ThreeLabelPerturbation
Axioms used
Choose a statement to see which axioms its proof uses.