Documentation

Complexitylib.Algebraic.LowerBound.Cutwidth.Extractor.Strong.Weighted.Probability.Internal

Finite mass identities and total variation bounds #

Normalization is preserved by marginals and deterministic maps. Total variation contracts under deterministic maps and bounds every finite test. For equal total mass, the positive-difference test attains the distance.

theorem Algebraic.Cutwidth.Extractor.Internal.probabilityWeight_exists_pos {α : Type u_1} [Fintype α] {p : α → ℝ} (hp : IsProbabilityWeight p) :
∃ (x : α), 0 < p x
theorem Algebraic.Cutwidth.Extractor.Internal.probabilityWeight_map {α : Type u_1} {β : Type u_2} [Fintype α] [Fintype β] {p : α → ℝ} (hp : IsProbabilityWeight p) (f : α → β) :
theorem Algebraic.Cutwidth.Extractor.Internal.mapWeight_equiv_apply {α : Type u_1} {β : Type u_2} [Fintype α] (e : α ≃ β) (p : α → ℝ) (y : β) :
mapWeight (⇑e) p y = p (e.symm y)
theorem Algebraic.Cutwidth.Extractor.Internal.mapWeight_comp {α : Type u_1} {β : Type u_2} {γ : Type u_3} [Fintype α] [Fintype β] (p : α → ℝ) (f : α → β) (g : β → γ) :
mapWeight g (mapWeight f p) = mapWeight (fun (x : α) => g (f x)) p
theorem Algebraic.Cutwidth.Extractor.Internal.mapWeight_snd_apply {α : Type u_1} {β : Type u_2} [Fintype α] [Fintype β] (p : α × β → ℝ) (b : β) :
mapWeight Prod.snd p b = ∑ a : α, p (a, b)
theorem Algebraic.Cutwidth.Extractor.Internal.weightDist_map_le {α : Type u_1} {β : Type u_2} [Fintype α] [Fintype β] (p q : α → ℝ) (f : α → β) :
theorem Algebraic.Cutwidth.Extractor.Internal.weightTestProb_sub_le_dist {α : Type u_1} [Fintype α] (p q : α → ℝ) (mass : ∑ x : α, p x = ∑ x : α, q x) (T : Finset α) :
theorem Algebraic.Cutwidth.Extractor.Internal.weightDist_le_iff_tests {α : Type u_1} [Fintype α] (p q : α → ℝ) (mass : ∑ x : α, p x = ∑ x : α, q x) {ε : ℝ} :
weightDist p q ≤ ε ↔ ∀ (T : Finset α), |weightTestProb p T - weightTestProb q T| ≤ ε
theorem Algebraic.Cutwidth.Extractor.Internal.weightTestProb_map {α : Type u_1} {β : Type u_2} [Fintype α] (p : α → ℝ) (f : α → β) (T : Finset β) :
weightTestProb (mapWeight f p) T = ∑ x : α, if f x ∈ T then p x else 0
theorem Algebraic.Cutwidth.Extractor.Internal.weightDist_map_map_le {α : Type u_1} {β : Type u_2} [Fintype α] [Fintype β] {p : α → ℝ} (hp : IsProbabilityWeight p) (f g : α → β) :
weightDist (mapWeight f p) (mapWeight g p) ≤ ∑ x : α with f x ≠ g x, p x