Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prove cancelIPC_ccorres1 #831

Open
wants to merge 2 commits into
base: rt
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions proof/crefine/RISCV64/Ctac_lemmas_C.thy
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ lemma c_guard_abs_sc:

lemmas ccorres_move_c_guard_sc[corres_pre] = ccorres_move_c_guards[OF c_guard_abs_sc]

lemma c_guard_abs_reply:
fixes p :: "reply_C ptr"
shows "\<forall>s s'. (s, s') \<in> rf_sr \<and> reply_at' (ptr_val p) s \<and> True \<longrightarrow> s' \<Turnstile>\<^sub>c p"
by (fastforce dest!: reply_at_h_t_valid)

lemmas ccorres_move_c_guard_reply = ccorres_move_c_guards[OF c_guard_abs_reply]

lemma cte_array_relation_array_assertion:
"gsCNodes s p = Some n \<Longrightarrow> cte_array_relation s cstate
\<Longrightarrow> array_assertion (cte_Ptr p) (2 ^ n) (hrs_htd (t_hrs_' cstate))"
Expand Down
Loading
Loading