UniformAncillaSharpness.lean
1module23public import SubentropyCertificates.UniformAncillaDilution4public import SubentropyCertificates.UniformProductSpectrum5public import SubentropyCertificates.UniformSplitAverage6public import SubentropyCertificates.UniformSplitLimit7public import SubentropyCertificates.SpecifiedAncillaTheorem89/-! Corollary 26: the right slope and optimality of the finite-error coefficient 1/k. -/10@[expose] public section11noncomputable section12open Filter Set13open scoped BigOperators Topology1415namespace SubentropyCertificates.AncillaCalibration16open D5.S3.Quantum.Foundation.FiniteStateChannel (DensityState)17open D5.S3.Quantum.Information.PartialTraceMutualInformation (productState)18open D5.S3.Quantum.Subentropy.ClassicalQuantumGram (conditionalSubentropy)19open D5.S3.Quantum.Subentropy.GuessingProbability (pGuess)20open SubentropyCertificates.ClassicalCurve21open SubentropyCertificates.ConditionalContinuity (splitSlope)22open SubentropyCertificates.SpectralContinuity (maximallyMixed)2324/-- For e at most one ancillary atom, the gain from splitting that atom is a lower25bound on the gain from spreading the same total mass uniformly over the other labels. -/26theorem maximallyMixed_split_lower (C : Type*) [Fintype C] [DecidableEq C] [Nonempty C]27 (m : ℕ) (i : C) {e : ℝ} (he : e ∈ Icc 0 (1 / (Fintype.card C : ℝ))) :28 e * splitSlope (fun _ : C ↦ 1 / (Fintype.card C : ℝ)) i e ≤29 calibratedPhi (maximallyMixed C) m e := by30 let w := fun _ : C ↦ 1 / (Fintype.card C : ℝ)31 let Q := fun s ↦ classicalSubentropy32 (fun z : C × Option (Fin (m + 1)) ↦ extremalVector m s z.2 * w z.1)33 have hval (s : ℝ) : calibratedPhi (maximallyMixed C) m s = Q s - classicalSubentropy w :=34 maximallyMixed_calibratedSubentropy_eq_classical C (extremalVector m s)35 have hzero : Q 0 = classicalSubentropy w :=36 sub_eq_zero.mp ((hval 0).symm.trans (calibratedPhi_zero _ _))37 have hl := uniform_split_le_product C m i he38 change e * splitSlope w i e ≤ Q e - Q 0 at hl39 rwa [hzero, ← hval e] at hl4041private theorem error_endpoint_pos (m : ℕ) : 0 < uniformError m := by42 have hn : (1 : ℝ) < (m + 2 : ℕ) := by exact_mod_cast (by omega : 1 < m + 2)43 exact sub_pos.mpr ((div_lt_one (by positivity)).mpr hn)4445/-- For each fixed n=m+2 and k=card C, the quotient Φ(e)/e tends to 1/k from the right. -/46theorem maximallyMixed_calibratedPhi_div_error_tendsto (C : Type*)47 [Fintype C] [DecidableEq C] [Nonempty C] (m : ℕ) :48 Tendsto (fun e : ℝ ↦ calibratedPhi (maximallyMixed C) m e / e) (𝓝[>] 0)49 (𝓝 (1 / (Fintype.card C : ℝ))) := by50 let i : C := Classical.choice inferInstance51 have hpos : 0 < 1 / (Fintype.card C : ℝ) := by positivity52 have hnear : ∀ᶠ e : ℝ in 𝓝[>] 0, e ∈ Ioo 0 (min (1 / (Fintype.card C : ℝ)) (uniformError m)) :=53 Ioo_mem_nhdsGT_of_mem ⟨le_rfl, lt_min hpos (error_endpoint_pos m)⟩54 apply tendsto_of_tendsto_of_tendsto_of_le_of_le' (uniform_splitSlope_tendsto C i)55 tendsto_const_nhds56 · filter_upwards [hnear] with e he57 apply (le_div_iff₀ he.1).mpr58 simpa only [mul_comm e] using59 maximallyMixed_split_lower C m i ⟨he.1.le, (lt_min_iff.mp he.2).1.le⟩60 · filter_upwards [hnear] with e he61 apply (div_le_iff₀ he.1).mpr62 simpa only [div_eq_mul_inv, one_mul, mul_comm e] using63 maximallyMixed_calibratedPhi_le C m ⟨he.1.le, (lt_min_iff.mp he.2).2.le⟩6465/-- The calibrated curve has right derivative 1/k at zero. -/66theorem maximallyMixed_calibratedPhi_right_derivative (C : Type*)67 [Fintype C] [DecidableEq C] [Nonempty C] (m : ℕ) :68 HasDerivWithinAt (calibratedPhi (maximallyMixed C) m) (1 / (Fintype.card C : ℝ)) (Ioi 0) 0 := by69 apply (hasDerivWithinAt_iff_tendsto_slope' (show (0 : ℝ) ∉ Ioi 0 from lt_irrefl _)).mpr70 simpa only [slope_fun_def_field, calibratedPhi_zero, sub_zero] using71 maximallyMixed_calibratedPhi_div_error_tendsto C m7273/-- Every smaller coefficient fails at arbitrarily small positive optimal guessing error,74even for fixed label count, fixed ancilla dimension and fixed positive signal dimension. -/75theorem maximallyMixed_dilution_sharp_near_zero {X B : Type*}76 [Fintype X] [DecidableEq X] [Fintype B] [DecidableEq B] [Nonempty B]77 (C : Type*) [Fintype C] [DecidableEq C] [Nonempty C] (m : ℕ)78 (hn : Fintype.card X = m + 2) {c δ : ℝ} (hc : c < 1 / (Fintype.card C : ℝ)) (hδ : 0 < δ) :79 ∃ (p : X → ℝ) (hp : ∀ x, 0 ≤ p x) (hs : ∑ x, p x = 1) (ρ : X → DensityState B),80 let e := 1 - pGuess p ρ81 0 < e ∧ e < δ ∧ c * e < conditionalSubentropy p hp hs82 (fun x ↦ productState (ρ x) (maximallyMixed C)) := by83 let ν := maximallyMixed C84 have hnear : ∀ᶠ e : ℝ in 𝓝[>] 0, e ∈ Ioo 0 (min δ (uniformError m)) :=85 Ioo_mem_nhdsGT_of_mem ⟨le_rfl, lt_min hδ (error_endpoint_pos m)⟩86 have hratio : ∀ᶠ e : ℝ in 𝓝[>] 0, c < calibratedPhi ν m e / e :=87 maximallyMixed_calibratedPhi_div_error_tendsto C m (Ioi_mem_nhds hc)88 obtain ⟨e, he, hr⟩ := (hnear.and hratio).exists89 obtain ⟨hd, hm⟩ := lt_min_iff.mp he.290 obtain ⟨p, hp, hs, ρ, herror, hval⟩ :=91 (calibrated_curve_isGreatest (B := B) ν m hn e ⟨he.1.le, hm.le⟩).192 refine ⟨p, hp, hs, ρ, ?_⟩93 dsimp only94 rw [herror, hval]95 exact ⟨he.1, hd, (lt_div_iff₀ he.1).mp hr⟩9697end SubentropyCertificates.AncillaCalibration
Axioms used
Choose a statement to see which axioms its proof uses.