Choosing a collision-free outcome with bounded total path length

Lax263307.SamplingOutcomes · concepts/Lax263307/SamplingOutcomes.lean · lax-263307

proven

Loading review…

Sign in with ORCID

Community review

Flags

Each flag is tied to a public ORCID identity and explains why this concept may be incorrect.

No flags have been submitted.

    Community review

    Flag this concept

    State precisely what appears incorrect. This explanation will be public under your ORCID name.

    No source line selected.

    Natural Language Statement

    Lemma

    For a finite probability distribution, suppose the probability of a bad outcome is at most 1/41/4 and a nonnegative total cost has expectation at most M>0M>0. Some outcome of positive probability is not bad and has total cost at most 4M4M. This combines the union bound with Markov's inequality.

    Concept map
    3 concepts
    100%
    Proven claimDefinitionThis conceptRelated conceptA → B: B builds on ADescendants are omitted for concepts with more than 10 descendants.
    Evidence

    This concept declares 2 statements. Each proof establishes one of them relative to its assumptions.

    Lean source view on GitHub

    1import Lax263307.PathSampling
    2
    3/-!
    4---
    5title: Choosing a collision-free outcome with bounded total path length
    6type: lemma
    7---
    8For a finite probability distribution, suppose the probability of a bad
    9outcome is at most 1/41/4 and a nonnegative total cost has expectation at most
    10M>0M>0. Some outcome of positive probability is not bad and has total cost
    11at most 4M4M. This combines the union bound with Markov's inequality.
    12-/
    13
    14namespace Lax263307.SamplingOutcomes
    15
    16open scoped Classical
    17
    18open PathSampling
    19
    20/-- Probability of an event in the finite outcome space. -/
    21noncomputable def eventProbability {n q : ℕ} (P : Distribution n q)
    22 (event : Set (Fin q)) : ℝ :=
    23 ∑ i, if i ∈ event then P.probability i else 0
    24
    25/-- Markov's inequality for a nonnegative cost and a positive threshold. -/
    26axiom markov_bound {n q : ℕ} (P : Distribution n q) (cost : Fin q → ℝ)
    27 (nonnegative : ∀ i, 0 ≤ cost i) (T : ℝ) (positive : 0 < T) :
    28 eventProbability P {i | T < cost i} ≤ (∑ i, P.probability i * cost i) / T
    29
    30/-- One positive-probability outcome meets both requirements. -/
    31axiom good_outcome {n q : ℕ} (P : Distribution n q) (bad : Set (Fin q))
    32 (cost : Fin q → ℝ) (M : ℝ) (positive : 0 < M)
    33 (nonnegative : ∀ i, 0 ≤ cost i)
    34 (bad_bound : eventProbability P bad ≤ 1 / 4)
    35 (expected_bound : (∑ i, P.probability i * cost i) ≤ M) :
    36 ∃ i, 0 < P.probability i ∧ i ∉ bad ∧ cost i ≤ 4 * M
    37
    38end Lax263307.SamplingOutcomes
    39
    Show ProofShow Proof
    Builds on
    Used by
    From Mathlib

    none

    Discussion

    Ask a question or add context. Endorsements and structured flags are kept in the review panel above.

    Loading discussion…