Skip to content

Commit

Permalink
refine: update for changes to nondet
Browse files Browse the repository at this point in the history
Signed-off-by: Corey Lewis <[email protected]>
  • Loading branch information
corlewis committed Aug 14, 2023
1 parent d4f4196 commit 9edfe3c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion proof/refine/AARCH64/Schedule_R.thy
Original file line number Diff line number Diff line change
Expand Up @@ -2314,7 +2314,7 @@ lemma schedule_invs':
apply (wpsimp wp: scheduleChooseNewThread_invs' ssa_invs'
chooseThread_invs_no_cicd' setSchedulerAction_invs' setSchedulerAction_direct
switchToThread_tcb_in_cur_domain' switchToThread_ct_not_queued_2
| wp hoare_disjI2[where Q="\<lambda>_ s. tcb_in_cur_domain' (ksCurThread s) s"]
| wp hoare_disjI2[where R="\<lambda>_ s. tcb_in_cur_domain' (ksCurThread s) s"]
| wp hoare_drop_imp[where f="isHighestPrio d p" for d p]
| simp only: obj_at'_activatable_st_tcb_at'[simplified comp_def]
| strengthen invs'_invs_no_cicd
Expand Down
4 changes: 3 additions & 1 deletion proof/refine/ARM/Schedule_R.thy
Original file line number Diff line number Diff line change
Expand Up @@ -2139,6 +2139,8 @@ lemma scheduleChooseNewThread_invs':
apply (clarsimp simp: invs'_to_invs_no_cicd'_def)
done

declare hoare_vcg_imp_conj_lift[wp_comb del]

lemma schedule_invs':
"\<lbrace>invs'\<rbrace> ThreadDecls_H.schedule \<lbrace>\<lambda>rv. invs'\<rbrace>"
supply ssa_wp[wp del]
Expand All @@ -2153,7 +2155,7 @@ lemma schedule_invs':
apply (wpsimp wp: scheduleChooseNewThread_invs' ssa_invs'
chooseThread_invs_no_cicd' setSchedulerAction_invs' setSchedulerAction_direct
switchToThread_tcb_in_cur_domain' switchToThread_ct_not_queued_2
| wp hoare_disjI2[where Q="\<lambda>_ s. tcb_in_cur_domain' (ksCurThread s) s"]
| wp hoare_disjI2[where R="\<lambda>_ s. tcb_in_cur_domain' (ksCurThread s) s"]
| wp hoare_drop_imp[where f="isHighestPrio d p" for d p]
| simp only: obj_at'_activatable_st_tcb_at'[simplified comp_def]
| strengthen invs'_invs_no_cicd
Expand Down
2 changes: 1 addition & 1 deletion proof/refine/ARM_HYP/Schedule_R.thy
Original file line number Diff line number Diff line change
Expand Up @@ -2279,7 +2279,7 @@ lemma schedule_invs':
apply (wpsimp wp: scheduleChooseNewThread_invs' ssa_invs'
chooseThread_invs_no_cicd' setSchedulerAction_invs' setSchedulerAction_direct
switchToThread_tcb_in_cur_domain' switchToThread_ct_not_queued_2
| wp hoare_disjI2[where Q="\<lambda>_ s. tcb_in_cur_domain' (ksCurThread s) s"]
| wp hoare_disjI2[where R="\<lambda>_ s. tcb_in_cur_domain' (ksCurThread s) s"]
| wp hoare_drop_imp[where f="isHighestPrio d p" for d p]
| simp only: obj_at'_activatable_st_tcb_at'[simplified comp_def]
| strengthen invs'_invs_no_cicd
Expand Down
2 changes: 1 addition & 1 deletion proof/refine/RISCV64/Schedule_R.thy
Original file line number Diff line number Diff line change
Expand Up @@ -2141,7 +2141,7 @@ lemma schedule_invs':
apply (wpsimp wp: scheduleChooseNewThread_invs' ssa_invs'
chooseThread_invs_no_cicd' setSchedulerAction_invs' setSchedulerAction_direct
switchToThread_tcb_in_cur_domain' switchToThread_ct_not_queued_2
| wp hoare_disjI2[where Q="\<lambda>_ s. tcb_in_cur_domain' (ksCurThread s) s"]
| wp hoare_disjI2[where R="\<lambda>_ s. tcb_in_cur_domain' (ksCurThread s) s"]
| wp hoare_drop_imp[where f="isHighestPrio d p" for d p]
| simp only: obj_at'_activatable_st_tcb_at'[simplified comp_def]
| strengthen invs'_invs_no_cicd
Expand Down
2 changes: 1 addition & 1 deletion proof/refine/X64/Schedule_R.thy
Original file line number Diff line number Diff line change
Expand Up @@ -2144,7 +2144,7 @@ lemma schedule_invs':
apply (wpsimp wp: scheduleChooseNewThread_invs' ssa_invs'
chooseThread_invs_no_cicd' setSchedulerAction_invs' setSchedulerAction_direct
switchToThread_tcb_in_cur_domain' switchToThread_ct_not_queued_2
| wp hoare_disjI2[where Q="\<lambda>_ s. tcb_in_cur_domain' (ksCurThread s) s"]
| wp hoare_disjI2[where R="\<lambda>_ s. tcb_in_cur_domain' (ksCurThread s) s"]
| wp hoare_drop_imp[where f="isHighestPrio d p" for d p]
| simp only: obj_at'_activatable_st_tcb_at'[simplified comp_def]
| strengthen invs'_invs_no_cicd
Expand Down

0 comments on commit 9edfe3c

Please sign in to comment.