Skip to content
Snippets Groups Projects
Commit 2f832315 authored by Ralf Jung's avatar Ralf Jung
Browse files

fix build

parent 25cdab5a
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -99,18 +99,18 @@ Section spawn. ...@@ -99,18 +99,18 @@ Section spawn.
iApply (type_let _ _ _ _ ([f' _; env _]) iApply (type_let _ _ _ _ ([f' _; env _])
(λ j, [j join_handle retty])); try solve_typing; [|]. (λ j, [j join_handle retty])); try solve_typing; [|].
{ (* The core of the proof: showing that spawn is safe. *) { (* The core of the proof: showing that spawn is safe. *)
iIntros (tid) "#LFT #HE $ $ [Hf' [Henv _]]". iIntros (tid) "#LFT #HE $ $ [Hf' [Henv _]]". rewrite !tctx_hasty_val [fn _]lock.
iApply (spawn_spec _ (join_inv tid retty) with "[-]"); iApply (spawn_spec _ (join_inv tid retty) with "[-]");
first solve_to_val; last first; last simpl_subst. first solve_to_val; last first; last simpl_subst.
{ iIntros "!> *". rewrite tctx_interp_singleton tctx_hasty_val. { iIntros "!> *". rewrite tctx_interp_singleton tctx_hasty_val.
iIntros "?". by iFrame. } iIntros "?". by iFrame. }
iIntros (c) "Hfin". iMod na_alloc as (tid') "Htl". wp_let. wp_let. iIntros (c) "Hfin". iMod na_alloc as (tid') "Htl". wp_let. wp_let. unlock.
iApply (type_call_iris _ [] tt 1%Qp with "LFT HE Htl [] [Hf'] [Henv]"). 4: iExact "Hf'". (* FIXME: Removing the [ ] around Hf' in the spec pattern diverges. *) iApply (type_call_iris _ [] tt 1%Qp with "LFT HE Htl [] [Hf'] [Henv]"). 4: iExact "Hf'". (* FIXME: Removing the [ ] around Hf' in the spec pattern diverges. *)
- solve_typing. - solve_typing.
- solve_to_val. - solve_to_val.
- iApply lft_tok_static. - iApply lft_tok_static.
- iSplitL; last done. (* FIXME: iSplit should work, the RHS is persistent. *) - iSplitL; last done. (* FIXME: iSplit should work, the RHS is persistent. *)
rewrite !tctx_hasty_val. iApply @send_change_tid. done. rewrite tctx_hasty_val. iApply @send_change_tid. done.
- iIntros (r) "Htl _ Hret". - iIntros (r) "Htl _ Hret".
wp_rec. iApply (finish_spec with "[$Hfin Hret]"); last auto. wp_rec. iApply (finish_spec with "[$Hfin Hret]"); last auto.
by iApply @send_change_tid. } by iApply @send_change_tid. }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment