LinearDiscrimination.lean
1module23public import SubentropyCertificates.CurveTangent4public import SubentropyCertificates.IdenticalPureSignals56/-! Strictness and optimality of the linear discrimination bound. The7sharpness witnesses are extremal ensembles at arbitrarily small positive error8with the number of labels and signal dimension both fixed. -/9@[expose] public section10noncomputable section11set_option autoImplicit false12set_option backward.isDefEq.respectTransparency false13open Set Filter14open scoped BigOperators Topology15namespace SubentropyCertificates.Discrimination16open D5.S3.Quantum.Foundation.FiniteStateChannel17open D5.S3.Quantum.Subentropy.ClassicalQuantumGram18open D5.S3.Quantum.Subentropy.GuessingProbability19open SubentropyCertificates.ClassicalCurve2021theorem smaller_coefficient_fails_near_zero (m : ℕ) {c δ : ℝ} (hc : c < 1) (hδ : 0 < δ) :22 ∃ e : ℝ, 0 < e ∧ e < δ ∧ e ≤ uniformError m ∧ c * e < phi m e := by23 have hn : (1 : ℝ) < (m + 2 : ℕ) := by exact_mod_cast (by omega : 1 < m + 2)24 have hu : 0 < uniformError m := sub_pos.mpr ((div_lt_one (by positivity)).mpr hn)25 have hnear : ∀ᶠ e : ℝ in 𝓝[>] 0, e ∈ Ioo 0 (min δ (uniformError m)) :=26 Ioo_mem_nhdsGT_of_mem ⟨le_rfl, lt_min hδ hu⟩27 have hratio : ∀ᶠ e : ℝ in 𝓝[>] 0, c < phi m e / e :=28 (phi_div_error_tendsto_one m) (Ioi_mem_nhds hc)29 obtain ⟨e, he, hr⟩ := (hnear.and hratio).exists30 exact ⟨e, he.1, (lt_min_iff.mp he.2).1, (lt_min_iff.mp he.2).2.le, (lt_div_iff₀ he.1).mp hr⟩3132variable {X B : Type*} [Fintype X] [DecidableEq X] [Fintype B] [DecidableEq B]3334theorem conditional_lt_positive_error (m : ℕ) (hn : Fintype.card X = m + 2)35 (p : X → ℝ) (hp : ∀ x, 0 ≤ p x) (hs : ∑ x, p x = 1) (ρ : X → DensityState B)36 (he : 0 < 1 - pGuess p ρ) : conditionalSubentropy p hp hs ρ < 1 - pGuess p ρ := by37 have hb := optimal_discrimination_bound m hn p hp hs ρ38 exact hb.2.1.trans_lt (phi_lt_error m he (hb.2.2.2.trans (uniformError_mem m).2))3940/-- Every coefficient below one fails in every positive neighborhood of zero,41even when the label count and a nonempty signal space are prescribed. -/42theorem ensemble_violating_smaller_coefficient [Nonempty B]43 (m : ℕ) {c δ : ℝ} (hc : c < 1) (hδ : 0 < δ) :44 ∃ (p : Option (Fin (m + 1)) → ℝ) (hp : ∀ x, 0 ≤ p x) (hs : ∑ x, p x = 1)45 (ρ : Option (Fin (m + 1)) → DensityState B),46 0 < 1 - pGuess p ρ ∧ 1 - pGuess p ρ < δ ∧47 c * (1 - pGuess p ρ) < conditionalSubentropy p hp hs ρ := by48 obtain ⟨e, he, hsmall, hadm, hratio⟩ := smaller_coefficient_fails_near_zero m hc hδ49 obtain ⟨p, hp, hs, ρ, herror, hcurve⟩ := curve_attainable_in_dimension (B := B) m e ⟨he.le, hadm⟩50 exact ⟨p, hp, hs, ρ, by rwa [herror], by rwa [herror], by rwa [herror, hcurve]⟩5152theorem universal_linear_coefficient_iff [Nonempty B] (m : ℕ) (c : ℝ) :53 (∀ (p : Option (Fin (m + 1)) → ℝ) (hp : ∀ x, 0 ≤ p x) (hs : ∑ x, p x = 1)54 (ρ : Option (Fin (m + 1)) → DensityState B),55 conditionalSubentropy p hp hs ρ ≤ c * (1 - pGuess p ρ)) ↔ 1 ≤ c := by56 constructor57 · intro h58 by_contra! hc59 obtain ⟨p, hp, hs, ρ, _, _, hlt⟩ :=60 ensemble_violating_smaller_coefficient (B := B) m hc zero_lt_one61 exact (h p hp hs ρ).not_gt hlt62 · intro hc p hp hs ρ63 have hn : Fintype.card (Option (Fin (m + 1))) = m + 2 := by simp [Nat.add_assoc]64 have hb := optimal_discrimination_bound m hn p hp hs ρ65 have he := hb.2.2.166 have hlin : phi m (1 - pGuess p ρ) ≤ 1 - pGuess p ρ := by67 rcases he.eq_or_lt with hz | hpos68 · rw [← hz, phi_zero]69 · exact (phi_lt_error m hpos (hb.2.2.2.trans (uniformError_mem m).2)).le70 exact (hb.2.1.trans hlin).trans (le_mul_of_one_le_left he hc)7172end SubentropyCertificates.Discrimination
Axioms used
Choose a statement to see which axioms its proof uses.