Skip to content

Commit 7764557

Browse files
committed
Counting distribution
1 parent ec96e78 commit 7764557

3 files changed

Lines changed: 2179 additions & 0 deletions

File tree

_CoqProject

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ theories/probability_theory/exponential_distribution.v
140140
theories/probability_theory/poisson_distribution.v
141141
theories/probability_theory/beta_distribution.v
142142
theories/probability_theory/probability.v
143+
theories/probability_theory/counting_distr.v
143144

144145
theories/independence.v
145146

theories/numfun.v

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,20 @@ rewrite funeqE => x /=; rewrite !fctE/=; have [fx0|/ltW fx0] := leP (f x) 0.
764764
by move: fx0; rewrite -{1}oppr0 lerNl => /max_idPr ->; rewrite addr0.
765765
Qed.
766766

767+
Lemma le_funrpos f x: `|f^\+ x| <= `|f x|.
768+
Proof.
769+
rewrite ger0_norm ?funrpos_ge0//.
770+
have := funrposDneg f => /(congr1 (fun g => g x)); rewrite /= => <-.
771+
by rewrite lerDl funrneg_ge0.
772+
Qed.
773+
774+
Lemma le_funrneg f x: `|f^\- x| <= `|f x|.
775+
Proof.
776+
rewrite ger0_norm ?funrneg_ge0//.
777+
have := funrposDneg f => /(congr1 (fun g => g x)); rewrite /= => <-.
778+
by rewrite lerDr funrpos_ge0.
779+
Qed.
780+
767781
Lemma funrposBneg f : f^\+ - f^\- = f.
768782
Proof.
769783
apply/funext => x.

0 commit comments

Comments
 (0)