diff --git a/proof/crefine/RISCV64/ADT_C.thy b/proof/crefine/RISCV64/ADT_C.thy index f395c01c0a..7fe13dbe81 100644 --- a/proof/crefine/RISCV64/ADT_C.thy +++ b/proof/crefine/RISCV64/ADT_C.thy @@ -1176,13 +1176,13 @@ lemma scRefills_unique: done lemma scSize_unique: - assumes "refill_buffer_relation (ksPSpace as) ch gs" "refill_buffer_relation (ksPSpace as') ch gs" - and "ksPSpace as p = Some (KOSchedContext sc)" - and "ksPSpace as' p = Some (KOSchedContext sc')" + assumes "refill_buffer_relation ah ch gs" "refill_buffer_relation ah' ch gs" + and "ah p = Some (KOSchedContext sc)" + and "ah' p = Some (KOSchedContext sc')" shows "scSize sc = scSize sc'" apply (insert assms) - apply (frule refill_buffer_relation_size_eq[where ah="ksPSpace as"]) - apply (frule refill_buffer_relation_size_eq[where ah="ksPSpace as'"]) + apply (frule refill_buffer_relation_size_eq[where ah=ah]) + apply (frule refill_buffer_relation_size_eq[where ah=ah']) apply (clarsimp simp: Let_def) apply (drule_tac x=p in spec)+ by fastforce @@ -1190,13 +1190,13 @@ lemma scSize_unique: lemma assumes "pspace_aligned' as" "pspace_distinct' as" "valid_sched_context' asc as" shows tcb_at'_scTCB: - "bound (scTCB asc) \ tcb_at' (the (scTCB asc)) as" + "\tcbPtr. scTCB asc = Some tcbPtr \ tcb_at' tcbPtr as" and reply_at'_scReply: - "bound (scReply asc) \ reply_at' (the (scReply asc)) as" + "\replyPtr. scReply asc = Some replyPtr \ reply_at' replyPtr as" and ntfn_at'_scNtfn: - "bound (scNtfn asc) \ ntfn_at' (the (scNtfn asc)) as" + "\ntfnPtr. scNtfn asc = Some ntfnPtr \ ntfn_at' ntfnPtr as" and tcb_at'_scYieldFrom: - "scYieldFrom asc \ None \ tcb_at' (the (scYieldFrom asc)) as" + "\tcbPtr. scYieldFrom asc = Some tcbPtr \ tcb_at' tcbPtr as" using assms by (clarsimp simp: valid_sched_context'_def obj_at'_def)+ @@ -1249,7 +1249,7 @@ lemma cpspace_sched_context_relation_unique: apply force apply (force simp: obj_at'_def) apply force - apply (frule_tac p=p in scSize_unique[where as=as and as'=as']) + apply (frule_tac p=p in scSize_unique[where ah="ksPSpace as" and ah'="ksPSpace as'"]) apply fastforce apply (force simp: obj_at'_def) apply (force simp: obj_at'_def)