Skip to content
Snippets Groups Projects
  1. Mar 14, 2017
    • Robbert Krebbers's avatar
      Define `fill` in terms of a `foldl` over `fill_item`. · 6fc9c27e
      Robbert Krebbers authored
      This has some advantages:
      
      - Evaluation contexts behave like a proper "Huet's zipper", and thus:
        + We no longer need to reverse the list of evaluation context items in the
          `reshape_expr` tactic.
        + The `fill` function becomes tail-recursive.
      - It gives rise to more definitional equalities in simulation proofs using
        binary logical relations proofs.
      
        In the case of binary logical relations, we simulate an expressions in some
        ambient context, i.e. `fill K e`. Now, whenever we reshape `e` by turning it
        into `fill K' e'`, we end up with `fill K (fill K' e')`. In order to use the
        rules for the expression that is being simulated, we need to turn
        `fill K (fill K' e')` into `fill K'' e'` for some `K'`. In case of the old
        `foldr`-based approach, we had to rewrite using the lemma `fill_app` to
        achieve that. However, in case of the old `foldl`-based `fill`, we have that
        `fill K (fill K' e')` is definitionally equal to `fill (K' ++ K) e'` provided
        that `K'` consists of a bunch of `cons`es (which is always the case, since we
        obtained `K'` by reshaping `e`).
      
      Note that this change hardly affected `heap_lang`. Only the proof of
      `atomic_correct` broke. I fixed this by proving a more general lemma
      `ectxi_language_atomic` about `ectxi`-languages, which should have been there
      in the first place.
      6fc9c27e
  2. Feb 14, 2017
  3. Jan 11, 2017
  4. Jan 05, 2017
  5. Jan 03, 2017
  6. Dec 09, 2016
  7. Dec 06, 2016
  8. Nov 17, 2016
  9. Nov 15, 2016
  10. Oct 25, 2016
  11. Aug 23, 2016
  12. Aug 08, 2016
  13. Aug 05, 2016
    • Robbert Krebbers's avatar
      Iris 3.0: invariants and weakest preconditions encoded in the logic. · 1f589858
      Robbert Krebbers authored
      This commit features:
      
      - A simpler model. The recursive domain equation no longer involves a triple
        containing invariants, physical state and ghost state, but just ghost state.
        Invariants and physical state are encoded using (higher-order) ghost state.
      
      - (Primitive) view shifts are formalized in the logic and all properties about
        it are proven in the logic instead of the model. Instead, the core logic
        features only a notion of raw view shifts which internalizing performing frame
        preserving updates.
      
      - A better behaved notion of mask changing view shifts. In particular, we no
        longer have side-conditions on transitivity of view shifts, and we have a
        rule for introduction of mask changing view shifts |={E1,E2}=> P with
        E2 ⊆ E1 which allows to postpone performing a view shift.
      
      - The weakest precondition connective is formalized in the logic using Banach's
        fixpoint. All properties about the connective are proven in the logic instead
        of directly in the model.
      
      - Adequacy is proven in the logic and uses a primitive form of adequacy for
        uPred that only involves raw views shifts and laters.
      
      Some remarks:
      
      - I have removed binary view shifts. I did not see a way to describe all rules
        of the new mask changing view shifts using those.
      - There is no longer the need for the notion of "frame shifting assertions" and
        these are thus removed. The rules for Hoare triples are thus also stated in
        terms of primitive view shifts.
      
      TODO:
      
      - Maybe rename primitive view shift into something more sensible
      - Figure out a way to deal with closed proofs (see the commented out stuff in
        tests/heap_lang and tests/barrier_client).
      1f589858
  14. Jul 28, 2016
  15. Jul 21, 2016
    • Robbert Krebbers's avatar
      Some tweaks. · 037d8d62
      Robbert Krebbers authored
      In particular, remove ectx_language.atomic, because it seems unused
      expect for a smart constructor for language.atomic.
      037d8d62
  16. Jul 20, 2016
  17. Jul 19, 2016
  18. Jul 15, 2016
  19. Jul 11, 2016
  20. May 10, 2016
  21. Apr 19, 2016
  22. Mar 29, 2016
  23. Mar 10, 2016
  24. Mar 05, 2016
  25. Mar 04, 2016
  26. Mar 02, 2016
  27. Feb 18, 2016
  28. Feb 17, 2016
    • Robbert Krebbers's avatar
      Rename simplify_equality like tactics. · 65ab1289
      Robbert Krebbers authored
      simplify_equality        => simplify_eq
      simplify_equality'       => simplify_eq/=
      simplify_map_equality    => simplify_map_eq
      simplify_map_equality'   => simplify_map_eq/=
      simplify_option_equality => simplify_option_eq
      simplify_list_equality   => simplify_list_eq
      f_equal'                 => f_equal/=
      
      The /= suffixes (meaning: do simpl) are inspired by ssreflect.
      65ab1289
    • Robbert Krebbers's avatar
      Remove injection' tactic. · 8e636f20
      Robbert Krebbers authored
      The tactic injection H as H is doing exactly that.
      8e636f20
  29. Feb 15, 2016
  30. Feb 13, 2016
Loading