PointMassTangent.lean
1module23public import SubentropyCertificates.ClassicalFano4public import SubentropyCertificates.CurveTangent5public import SubentropyCertificates.QuantumEquality67/-! The inequality and equality clause of Lemma 9 on any finite alphabet. -/8@[expose] public section9noncomputable section10open scoped BigOperators11namespace SubentropyCertificates.ClassicalCurve12open D5.S3.Quantum.Subentropy.Basic13open SubentropyCertificates.QuantumEquality1415/-- Choosing a largest coordinate gives the tangent bound as stated in the paper.16The inequality actually holds at any selected coordinate, including on a singleton. -/17theorem pointMass_tangent_bound {X : Type*} [Fintype X] [DecidableEq X]18 (p : X → ℝ) (hp : p ∈ probabilitySimplex X) (i : X) :19 classicalSubentropy p ≤ 1 - p i ∧20 (classicalSubentropy p = 1 - p i ↔ p = pointMass i) := by21 by_cases h : p = pointMass i22 · subst p23 simp [pointMass_subentropy, pointMass]24 have hi : p i ≠ 1 := fun he ↦ h ((eq_pointMass_iff_probability_one p hp i).2 he)25 have hcard : 2 ≤ Fintype.card X := by26 by_contra! hsmall27 have : Subsingleton X := Fintype.card_le_one_iff_subsingleton.mp (by omega)28 exact hi (by29 rw [← hp.2]30 exact (Finset.sum_eq_single i (fun j _ hji ↦ (hji (Subsingleton.elim j i)).elim)31 (fun hn ↦ (hn (Finset.mem_univ i)).elim)).symm)32 obtain ⟨m, hm⟩ : ∃ m, Fintype.card X = m + 2 := ⟨Fintype.card X - 2, by omega⟩33 have hle : p i ≤ 1 := hp.2 ▸ Finset.single_le_sum (fun j _ ↦ hp.1 j) (Finset.mem_univ i)34 have hstrict := (classical_coordinate_bound_finite m hm p hp i).trans_lt35 (phi_lt_error m (sub_pos.mpr (lt_of_le_of_ne hle hi))36 (sub_le_self _ (hp.1 i)))37 exact ⟨hstrict.le, iff_of_false hstrict.ne h⟩3839end SubentropyCertificates.ClassicalCurve
Axioms used
Choose a statement to see which axioms its proof uses.