lib: change runErrorT to runExceptT to match Haskell code
This commit is contained in:
parent
378717bee0
commit
0044c57e14
|
@ -177,14 +177,14 @@ definition
|
|||
"catMaybes \<equiv> (map the) \<circ> (filter isJust)"
|
||||
|
||||
definition
|
||||
"runErrorT \<equiv> id"
|
||||
"runExceptT \<equiv> id"
|
||||
|
||||
declare Just_def[simp] Nothing_def[simp] fromJust_def[simp]
|
||||
isJust_def[simp] tail_def[simp] head_def[simp]
|
||||
error_def[simp] reverse_def[simp] isNothing_def[simp]
|
||||
maybeApply_def[simp] maybe_def[simp]
|
||||
foldR_def[simp] elem_def[simp] notElem_def[simp]
|
||||
catMaybes_def[simp] runErrorT_def[simp]
|
||||
catMaybes_def[simp] runExceptT_def[simp]
|
||||
|
||||
definition
|
||||
"headM L \<equiv> (case L of (h # t) \<Rightarrow> return h | _ \<Rightarrow> fail)"
|
||||
|
|
|
@ -480,7 +480,7 @@ lemma handleInvocation_def2:
|
|||
| Inl (Inr preempt) \<Rightarrow> throwError preempt
|
||||
od
|
||||
od"
|
||||
apply (simp add: handleInvocation_def Syscall_H.syscall_def runErrorT_def
|
||||
apply (simp add: handleInvocation_def Syscall_H.syscall_def runExceptT_def
|
||||
liftE_bindE cong: sum.case_cong)
|
||||
apply (rule ext, (rule bind_apply_cong [OF refl])+)
|
||||
apply (clarsimp simp: bind_assoc split: sum.split)
|
||||
|
|
|
@ -480,7 +480,7 @@ lemma handleInvocation_def2:
|
|||
| Inl (Inr preempt) \<Rightarrow> throwError preempt
|
||||
od
|
||||
od"
|
||||
apply (simp add: handleInvocation_def Syscall_H.syscall_def runErrorT_def
|
||||
apply (simp add: handleInvocation_def Syscall_H.syscall_def runExceptT_def
|
||||
liftE_bindE cong: sum.case_cong)
|
||||
apply (rule ext, (rule bind_apply_cong [OF refl])+)
|
||||
apply (clarsimp simp: bind_assoc split: sum.split)
|
||||
|
|
|
@ -468,7 +468,7 @@ lemma handleInvocation_def2:
|
|||
| Inl (Inr preempt) \<Rightarrow> throwError preempt
|
||||
od
|
||||
od"
|
||||
apply (simp add: handleInvocation_def Syscall_H.syscall_def runErrorT_def
|
||||
apply (simp add: handleInvocation_def Syscall_H.syscall_def runExceptT_def
|
||||
liftE_bindE cong: sum.case_cong)
|
||||
apply (rule ext, (rule bind_apply_cong [OF refl])+)
|
||||
apply (clarsimp simp: bind_assoc split: sum.split)
|
||||
|
|
Loading…
Reference in New Issue