Skip to content
  • Robbert Krebbers's avatar
    Invariants over states in WP and get rid of heap_ctx. · fd89aa52
    Robbert Krebbers authored
    The WP construction now takes an invariant on states as a parameter
    (part of the irisG class) and no longer builds in the authoritative
    ownership of the entire state. When instantiating WP with a concrete
    language on can choose its state invariant. For example, for heap_lang
    we directly use `auth (gmap loc (frac * dec_agree val))`, and avoid
    the indirection through invariants entirely.
    As a result, we no longer have to carry `heap_ctx` around.