Plain-language statement
Monotonicity of Probability If event A (defined by predicate f) implies event B (defined by predicate g) for all outcomes r, then the probability of A is less than or equal to the probability of B.
Exact Lean statement
theorem Pr_le_Pr_of_implies {α : Type} (D : PMF α)
(f g : α → Prop)
(h_imp : ∀ r, f r → g r) :
Pr_{ let r ← D }[ f r ] ≤ Pr_{ let r ← D }[ g r ]Formal artifact
Lean source
theorem Pr_le_Pr_of_implies {α : Type} (D : PMF α) (f g : α → Prop) (h_imp : ∀ r, f r → g r) : Pr_{ let r ← D }[ f r ] ≤ Pr_{ let r ← D }[ g r ] := by classical -- 1. Unroll both probability statements into their sum forms rw [prob_tsum_form_singleton D f] rw [prob_tsum_form_singleton D g] -- Goal: ⊢ (∑' r, D r * if f r then 1 else 0) ≤ (∑' r, D r * if g r then 1 else 0) -- 2. Apply tsum_le_tsum: We need to show term-wise inequality apply ENNReal.tsum_le_tsum -- 3. Show the term-wise inequality for each r intro r -- Goal: ⊢ D r * (if f r then 1 else 0) ≤ D r * (if g r then 1 else 0) -- Use `mul_le_mul_left'` which requires proving D r ≠ 0 and D r ≠ ∞ -- Or simpler: use `mul_le_mul_of_nonneg_left` which only requires D r ≥ 0 apply mul_le_mul_of_nonneg_left -- 4. Prove the inequality between the `ite` terms using the implication · by_cases hf : f r · simp only [hf, ↓reduceIte, h_imp, le_refl] · simp only [hf, ↓reduceIte, zero_le] -- 5. Prove the factor `D r` is non-negative · exact zero_le- Project
- ArkLib
- License
- Apache-2.0
- Commit
- fad5cbf80877
- Source
- ArkLib/Data/Probability/Instances.lean:349-371
Reuse this declaration
Bring the exact result into your workflow
The import identifies the source module. Your project still needs the pinned package dependency shown on this page.
What this badge means
This completion status comes from the project or community source. It has not yet been represented here as an independent rebuild and axiom audit.
Continue in this project
Related declarations
Affine gaps lifted to interleaved codes
affine_gaps_lifted_to_interleaved_codes
Project documentation
This lemma proves the final algebraic step in the DG25 Theorem 3.1 proof. It shows that if R > e + 1, then e * (R / (R - 1)) < e + 1. The intuition is that the fraction R / (R - 1) is always greater than 1, but as R gets larger, it gets closer to 1. The hypothesis R > e + 1 provides a strong enough bound to ensure the product e * (fraction) do...
Source project: ArkLib
Person-level attribution pending.
Gadget Decompose coeff
ArkLib.Lattices.Ajtai.gadgetDecompose_coeff
Plain-language statement
The k-th coefficient (k < deg φ) of a gadget-decomposition block is exactly the corresponding digit of the corresponding input coefficient.
Source project: ArkLib
Person-level attribution pending.
Gadget Decompose lawful
ArkLib.Lattices.Ajtai.gadgetDecompose_lawful
Plain-language statement
The base-b gadget decomposition is a lawful gadget decomposition.
Source project: ArkLib
Person-level attribution pending.