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

crefine: change misleading proof step in CSpace_RAB_C #669

Merged
merged 1 commit into from
Sep 14, 2023
Merged
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
6 changes: 2 additions & 4 deletions proof/crefine/ARM/CSpace_RAB_C.thy
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,8 @@ next
apply (simp add: cap_get_tag_isCap split del: if_split)
apply (thin_tac "ret__unsigned = X" for X)
apply (rule ccorres_split_throws [where P = "?P"])
apply (rule_tac G' = "\<lambda>w_rightsMask. ({s. nodeCap_' s = nodeCap}
\<inter> {s. unat (n_bits_' s) = guard'})"
in ccorres_abstract [where xf' = w_rightsMask_'])
apply (rule ceqv_refl)
apply (rule_tac P'="{s. nodeCap_' s = nodeCap} \<inter> {s. unat (n_bits_' s) = guard'}"
in ccorres_inst)
apply (rule_tac r' = "?rvr" in
ccorres_rel_imp [where xf' = rab_xf])
defer
Expand Down
6 changes: 2 additions & 4 deletions proof/crefine/ARM_HYP/CSpace_RAB_C.thy
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,8 @@ next
apply (simp add: cap_get_tag_isCap split del: if_split)
apply (thin_tac "ret__unsigned = X" for X)
apply (rule ccorres_split_throws [where P = "?P"])
apply (rule_tac G' = "\<lambda>w_rightsMask. ({s. nodeCap_' s = nodeCap}
\<inter> {s. unat (n_bits_' s) = guard'})"
in ccorres_abstract [where xf' = w_rightsMask_'])
apply (rule ceqv_refl)
apply (rule_tac P'="{s. nodeCap_' s = nodeCap} \<inter> {s. unat (n_bits_' s) = guard'}"
in ccorres_inst)
apply (rule_tac r' = "?rvr" in
ccorres_rel_imp [where xf' = rab_xf])
defer
Expand Down
6 changes: 2 additions & 4 deletions proof/crefine/RISCV64/CSpace_RAB_C.thy
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,8 @@ next
apply (simp add: cap_get_tag_isCap split del: if_split)
apply (thin_tac "ret__unsigned_longlong = X" for X)
apply (rule ccorres_split_throws [where P = "?P"])
apply (rule_tac G' = "\<lambda>w_rightsMask. ({s. nodeCap_' s = nodeCap}
\<inter> {s. unat (n_bits_' s) = guard'})"
in ccorres_abstract [where xf' = w_rightsMask_'])
apply (rule ceqv_refl)
apply (rule_tac P'="{s. nodeCap_' s = nodeCap} \<inter> {s. unat (n_bits_' s) = guard'}"
in ccorres_inst)
apply (rule_tac r' = "?rvr" in
ccorres_rel_imp [where xf' = rab_xf])
defer
Expand Down
6 changes: 2 additions & 4 deletions proof/crefine/X64/CSpace_RAB_C.thy
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,8 @@ next
apply (simp add: cap_get_tag_isCap split del: if_split)
apply (thin_tac "ret__unsigned_longlong = X" for X)
apply (rule ccorres_split_throws [where P = "?P"])
apply (rule_tac G' = "\<lambda>w_rightsMask. ({s. nodeCap_' s = nodeCap}
\<inter> {s. unat (n_bits_' s) = guard'})"
in ccorres_abstract [where xf' = w_rightsMask_'])
apply (rule ceqv_refl)
apply (rule_tac P'="{s. nodeCap_' s = nodeCap} \<inter> {s. unat (n_bits_' s) = guard'}"
in ccorres_inst)
apply (rule_tac r' = "?rvr" in
ccorres_rel_imp [where xf' = rab_xf])
defer
Expand Down
Loading