Skip to content

Commit

Permalink
Add not01_ex05
Browse files Browse the repository at this point in the history
Signed-off-by: Avi Shinnar <shinnar@us.ibm.com>
  • Loading branch information
shinnar committed Dec 8, 2024
1 parent 66b2cb6 commit 1c38a91
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions coq/QLearn/jaakkola_vector.v
Original file line number Diff line number Diff line change
Expand Up @@ -3648,6 +3648,23 @@ Section jaakola_vector2.
lra.
Qed.

Lemma not01_ex05 : (~ forall (e : event dom), ps_P e = 0 \/ ps_P e = 1) -> (exists (ev : event dom), 0 < ps_P ev <= 0.5).
Proof.
intros HH.
apply not_all_ex_not in HH.
destruct HH as [e nprob].
apply not_or_and in nprob.
destruct (Rle_dec (ps_P e) 0.5).
- exists e; generalize (ps_pos e); lra.
- exists (event_complement e).
split.
+ destruct (ps_pos (event_complement e)); trivial.
rewrite ps_complement in H.
lra.
+ rewrite ps_complement.
lra.
Qed.

Lemma vecrvclip_max_bound (rvec : Ts -> vector R (S N)) (C : posreal) :
forall a,
Rvector_max_abs (vecrvclip (S N) rvec (pos_to_nneg C) a) <= C.
Expand Down

0 comments on commit 1c38a91

Please sign in to comment.