Skip to content

Commit

Permalink
lib/monads/trace: add comment for prefix_closed
Browse files Browse the repository at this point in the history
Signed-off-by: Corey Lewis <[email protected]>
  • Loading branch information
corlewis committed Mar 26, 2024
1 parent 040fd7d commit 8777671
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Monads/trace/Trace_Prefix_Closed.thy
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ begin

subsection "Prefix Closed"

text \<open>
A monad is @{text prefix_closed} if for all traces that it returns, it also returns all incomplete traces
leading up to it.\<close>
definition prefix_closed :: "('s, 'a) tmonad \<Rightarrow> bool" where
"prefix_closed f = (\<forall>s. \<forall>x xs. (x # xs) \<in> fst ` f s \<longrightarrow> (xs, Incomplete) \<in> f s)"

Expand Down

0 comments on commit 8777671

Please sign in to comment.