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

depend on nightly Iris and fix build

parent 000ac444
No related branches found
No related tags found
No related merge requests found
Pipeline #34148 failed
...@@ -10,7 +10,7 @@ This tutorial comes in two versions: ...@@ -10,7 +10,7 @@ This tutorial comes in two versions:
For the tutorial material you need to have the following dependencies installed: For the tutorial material you need to have the following dependencies installed:
- Coq 8.10.2 / 8.11.2 / 8.12.0 - Coq 8.10.2 / 8.11.2 / 8.12.0
- [Iris](https://gitlab.mpi-sws.org/iris/iris) 3.3.0 - A development version of [Iris](https://gitlab.mpi-sws.org/iris/iris)
*Note:* the tutorial material will not work with earlier versions of Iris, it *Note:* the tutorial material will not work with earlier versions of Iris, it
is important to install the exact versions as given above. is important to install the exact versions as given above.
...@@ -29,7 +29,15 @@ done so earlier): ...@@ -29,7 +29,15 @@ done so earlier):
opam repo add coq-released https://coq.inria.fr/opam/released opam repo add coq-released https://coq.inria.fr/opam/released
opam repo add iris-dev https://gitlab.mpi-sws.org/iris/opam.git opam repo add iris-dev https://gitlab.mpi-sws.org/iris/opam.git
Then you can do `make build-dep` to install exactly the right version of Iris. Once you got opam set up, run `make build-dep` to install the right versions
of the dependencies.
Run `make -jN` to build the full development, where `N` is the number of your
CPU cores.
To update, do `git pull`. After an update, the development may fail to compile
because of outdated dependencies. To fix that, please run `opam update`
followed by `make build-dep`.
## Compiling the exercises ## Compiling the exercises
......
...@@ -83,7 +83,7 @@ Section proof2. ...@@ -83,7 +83,7 @@ Section proof2.
own γ (E n) -∗ own γ (E m) -∗ n = m ⌝. own γ (E n) -∗ own γ (E m) -∗ n = m ⌝.
Proof. Proof.
iIntros "Hγ● Hγ◯". iIntros "Hγ● Hγ◯".
by iDestruct (own_valid_2 with "Hγ● Hγ◯") as %?%excl_auth_agreeL. by iDestruct (own_valid_2 with "Hγ● Hγ◯") as %?%excl_auth_agree_L.
Qed. Qed.
Lemma ghost_var_update γ n' n m : Lemma ghost_var_update γ n' n m :
......
...@@ -42,7 +42,7 @@ Section proof. ...@@ -42,7 +42,7 @@ Section proof.
own γ (E b) -∗ own γ (E c) -∗ b = c ⌝. own γ (E b) -∗ own γ (E c) -∗ b = c ⌝.
Proof. Proof.
iIntros "Hγ● Hγ◯". iIntros "Hγ● Hγ◯".
by iDestruct (own_valid_2 with "Hγ● Hγ◯") as %<-%excl_auth_agreeL. by iDestruct (own_valid_2 with "Hγ● Hγ◯") as %<-%excl_auth_agree_L.
Qed. Qed.
Lemma ghost_var_update γ b' b c : Lemma ghost_var_update γ b' b c :
......
...@@ -9,7 +9,7 @@ dev-repo: "git+https://gitlab.mpi-sws.org/iris/tutorial-popl18.git" ...@@ -9,7 +9,7 @@ dev-repo: "git+https://gitlab.mpi-sws.org/iris/tutorial-popl18.git"
synopsis: "The Iris tutorial at POPL 2018" synopsis: "The Iris tutorial at POPL 2018"
depends: [ depends: [
"coq-iris" { (= "3.3.0") | (= "dev") } "coq-iris" { (= "dev.2020-09-15.2.59280f68") | (= "dev") }
] ]
build: [make "-j%{jobs}%"] build: [make "-j%{jobs}%"]
......
...@@ -98,7 +98,7 @@ Section proof2. ...@@ -98,7 +98,7 @@ Section proof2.
own γ (E n) -∗ own γ (E m) -∗ n = m ⌝. own γ (E n) -∗ own γ (E m) -∗ n = m ⌝.
Proof. Proof.
iIntros "Hγ● Hγ◯". iIntros "Hγ● Hγ◯".
by iDestruct (own_valid_2 with "Hγ● Hγ◯") as %?%excl_auth_agreeL. by iDestruct (own_valid_2 with "Hγ● Hγ◯") as %?%excl_auth_agree_L.
Qed. Qed.
Lemma ghost_var_update γ n' n m : Lemma ghost_var_update γ n' n m :
...@@ -199,7 +199,7 @@ Section proof3. ...@@ -199,7 +199,7 @@ Section proof3.
- iIntros (??) "[Hγ1◯ Hγ2◯] !>". wp_seq. - iIntros (??) "[Hγ1◯ Hγ2◯] !>". wp_seq.
wp_apply (acquire_spec with "Hl"). iDestruct 1 as (n) "(Hr & Hγ●)". wp_apply (acquire_spec with "Hl"). iDestruct 1 as (n) "(Hr & Hγ●)".
wp_seq. wp_load. iCombine "Hγ1◯ Hγ2◯" as "Hγ◯". wp_seq. wp_load. iCombine "Hγ1◯ Hγ2◯" as "Hγ◯".
iDestruct (own_valid_2 with "Hγ● Hγ◯") as %->%frac_auth_agreeL. iDestruct (own_valid_2 with "Hγ● Hγ◯") as %->%frac_auth_agree_L.
by iApply "Post". by iApply "Post".
Qed. Qed.
(* END SOLUTION BEGIN TEMPLATE (* END SOLUTION BEGIN TEMPLATE
......
...@@ -42,7 +42,7 @@ Section proof. ...@@ -42,7 +42,7 @@ Section proof.
own γ (E b) -∗ own γ (E c) -∗ b = c ⌝. own γ (E b) -∗ own γ (E c) -∗ b = c ⌝.
Proof. Proof.
iIntros "Hγ● Hγ◯". iIntros "Hγ● Hγ◯".
by iDestruct (own_valid_2 with "Hγ● Hγ◯") as %<-%excl_auth_agreeL. by iDestruct (own_valid_2 with "Hγ● Hγ◯") as %<-%excl_auth_agree_L.
Qed. Qed.
Lemma ghost_var_update γ b' b c : Lemma ghost_var_update γ b' b c :
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment