File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -349,8 +349,17 @@ lemma mu_not (d : 'a distr) (p : 'a -> bool):
349349 mu d (predC p) = weight d - mu d p.
350350proof. by rewrite -(@predCU p) mu_disjointL // #ring. qed.
351351
352- axiom witness_support P (d : ' a distr) :
352+ lemma witness_support P (d : ' a distr) :
353353 0 %r < mu d P <=> (exists x, P x /\ x \in d).
354+ proof.
355+ have ->: 0 %r < mu d P <=> mu d P <> 0 %r by smt (ge0_mu).
356+ split=> />.
357+ + apply: contraLR=> /= /negb_exists /> empty.
358+ apply: mu0_false=> x x_in_D; move: (empty x).
359+ by case : (P x).
360+ move=> x Px x_in_D; rewrite -negP=> /eq0_mu /=.
361+ by rewrite negb_forall; exists x=> /=; rewrite x_in_D Px.
362+ qed.
354363
355364lemma mu_and_weight [' a] P Q (d : ' a distr) : (* FIXME: name *)
356365 mu d P = weight d => mu d (predI P Q) = mu d Q.
You can’t perform that action at this time.
0 commit comments