Skip to content

Commit

Permalink
monads/reader_option: add no_ofail_ask
Browse files Browse the repository at this point in the history
Signed-off-by: Michael McInerney <[email protected]>
  • Loading branch information
michaelmcinerney committed Jul 11, 2024
1 parent 94fdcd6 commit 9646d32
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Monads/reader_option/Reader_Option_VCG.thy
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,10 @@ lemma no_ofail_ofail[wp]:
"no_ofail \<bottom> ofail"
by (simp add: no_ofail_def)

lemma no_ofail_ask[wp]:
"no_ofail \<top> ask"
by (simp add: no_ofail_def)

lemma no_ofail_asks_simp[simp]:
"no_ofail P (asks f)"
unfolding asks_def oreturn_def obind_def no_ofail_def
Expand Down

0 comments on commit 9646d32

Please sign in to comment.