1. 31 Oct, 2018 2 commits
    • Robbert Krebbers's avatar
      f7af5b3f
    • Robbert Krebbers's avatar
      Fine-grained post-conditions for forked-off threads. · ebf06f91
      Robbert Krebbers authored
      This commit extends the state interpretation with an additional parameter to
      talk about the number of forked-off threads, and a fixed postcondition for each
      forked-off thread:
      
          state_interp : Λstate → list Λobservation → nat → iProp Σ;
          fork_post : iProp Σ;
      
      This way, instead of having `True` as the post-condition of `Fork`, one can
      have any post-condition, which is then recorded in the state interpretation.
      The point of keeping track of the postconditions of forked-off threads, is that
      we get an (additional) stronger adequacy theorem:
      
          Theorem wp_strong_all_adequacy Σ Λ `{invPreG Σ} s e σ1 v vs σ2 φ :
             (∀ `{Hinv : invG Σ} κs,
               (|={⊤}=> ∃
                   (stateI : state Λ → list (observation Λ) → nat → iProp Σ)
                   (fork_post : iProp Σ),
                 let _ : irisG Λ Σ := IrisG _ _ _ Hinv stateI fork_post in
                 stateI σ1 κs 0 ∗ WP e @ s; ⊤ {{ v,
                   let m := length vs in
                   stateI σ2 [] m -∗ [∗] replicate m fork_post ={⊤,∅}=∗ ⌜ φ v ⌝ }})%I) →
            rtc erased_step ([e], σ1) (of_val <$> v :: vs, σ2) →
            φ v.
      
      The difference with the ordinary adequacy theorem is that this one only applies
      once all threads terminated. In this case, one gets back the post-conditions
      `[∗] replicate m fork_post` of all forked-off threads.
      
      In Iron we showed that we can use this mechanism to make sure that all
      resources are disposed of properly in the presence of fork-based concurrency.
      ebf06f91
  2. 18 Oct, 2018 1 commit
  3. 05 Oct, 2018 4 commits
  4. 02 Jul, 2018 1 commit
  5. 20 Jun, 2018 1 commit
  6. 18 Jun, 2018 1 commit
  7. 15 Jun, 2018 2 commits
  8. 14 Jun, 2018 5 commits
  9. 11 Jun, 2018 1 commit
  10. 06 Jun, 2018 2 commits
  11. 18 May, 2018 1 commit
  12. 03 May, 2018 1 commit
  13. 02 May, 2018 2 commits
  14. 26 Apr, 2018 1 commit
  15. 25 Apr, 2018 2 commits
  16. 04 Apr, 2018 1 commit
  17. 05 Mar, 2018 1 commit
  18. 03 Mar, 2018 1 commit
  19. 01 Mar, 2018 1 commit
    • Jacques-Henri Jourdan's avatar
      Make iFrame able to accumulate assertions in an evar. · 09663be3
      Jacques-Henri Jourdan authored
      This requires changing the Hint Mode of the [Frame] type class because it should not fail if its parameter is an evar, but instantiate it instead. In order to prevent all the other instances of [Frame] to intantiate this evar themselves, we create a new type class [KnwonFrame], which corresponds to the old behavior.
      09663be3
  20. 12 Feb, 2018 1 commit
  21. 20 Jan, 2018 1 commit
    • Robbert Krebbers's avatar
      Consistently name `wp_value_inv`. · 6edc1fe3
      Robbert Krebbers authored
      We already used the following naming convention: `wp_value'` is stated in
      terms of `of_val` and `wp_value` is stated in terms of `IntoVal`. This
      commit applies this convention to `wp_value_inv` as well.
      6edc1fe3
  22. 16 Jan, 2018 2 commits
  23. 13 Jan, 2018 3 commits
  24. 23 Dec, 2017 1 commit
  25. 07 Dec, 2017 1 commit