Skip to content

Remove duplicate of ko_at_kheap_upd_id#972

Merged
michaelmcinerney merged 1 commit intortfrom
michaelm-ko_at_kheap_upd_id
Mar 3, 2026
Merged

Remove duplicate of ko_at_kheap_upd_id#972
michaelmcinerney merged 1 commit intortfrom
michaelm-ko_at_kheap_upd_id

Conversation

@michaelmcinerney
Copy link
Contributor

No description provided.

@michaelmcinerney michaelmcinerney self-assigned this Mar 2, 2026
@michaelmcinerney michaelmcinerney added the MCS related to `rt` branch and mixed-criticality systems label Mar 2, 2026
@michaelmcinerney michaelmcinerney force-pushed the michaelm-unbundle_lemma branch from 437ed41 to 86fb501 Compare March 3, 2026 02:19
Comment on lines +1090 to +1087
by (wpsimp wp: update_sched_context_wp)
apply (wpsimp wp: update_sched_context_wp)
apply (clarsimp simp: ko_at_kheap_upd_id)
done
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would by (wpsimp wp: update_sched_context_wp simp: ko_at_kheap_upd_id) work?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does work. I am never sure where the dividing line should be between the wp steps and the simp steps. I guess it's pretty much harmless here. I think the case I'm thinking of is where we unfold low level things like obj_at within a wpsimp. If we're not upsetting the wp rules by performing the simp, I guess it should all just go in together. Is that right, or is there another reason?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The main reason I would put it in here is that it was in there before -- when it was declared [simp] wpsimp was using it implicitly.

Generally I'd not put not too much into wpsimp if you have multiple steps anyway, but if you can turn the entire proof into a single method invocation without making it a monster, I would usually go for that.

Comment on lines +1435 to +1437
apply (wpsimp wp: update_sched_context_wp)
apply (simp add: ko_at_kheap_upd_id)
done
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(same as the other location -- if we can put the simp rule directly into wpsimp, we can keep it a one-liner)

Base automatically changed from michaelm-unbundle_lemma to rt March 3, 2026 02:35
@michaelmcinerney michaelmcinerney force-pushed the michaelm-ko_at_kheap_upd_id branch from 80d8964 to 08c30b8 Compare March 3, 2026 02:50
Remove duplicate of ko_at_kheap_upd_id, and since the
duplicate was added to [simp], update proofs that
require this rule to be locally added to simp.

Signed-off-by: Michael McInerney <michael.mcinerney@proofcraft.systems>
@michaelmcinerney michaelmcinerney force-pushed the michaelm-ko_at_kheap_upd_id branch from 08c30b8 to 7c686e3 Compare March 3, 2026 09:14
@michaelmcinerney michaelmcinerney merged commit 8e8a348 into rt Mar 3, 2026
11 checks passed
@michaelmcinerney michaelmcinerney deleted the michaelm-ko_at_kheap_upd_id branch March 3, 2026 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

MCS related to `rt` branch and mixed-criticality systems

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants