bedrock.lang.bi.prop_constraints

(*
 * Copyright (C) BedRock Systems Inc. 2021
 *
 * This software is distributed under the terms of the BedRock Open-Source License.
 * See the LICENSE-BedRock file in the repository root for details.
 *)


Convenience wrappers for common PROP-constraint bundles

This file defines wrappers:
  • Ghostly PROP: for `bi`s with ghost updates, and which embed siPropI; and
  • HasUsualOwn PROP T: for MpredLike `bi`s with an `own` operation on CMRA T
Require Import iris.algebra.cmra.
Require Import bedrock.lang.bi.own.

Class Ghostly (PROP : bi) := {
  #[global] ghostly_bibupd :: BiBUpd PROP;
  #[global] ghostly_embed :: BiEmbed siPropI PROP;
}.

Class HasUsualOwn (PROP : bi) `{ Ghostly PROP } (T : cmra) := {
  #[global] has_usual_own_own :: HasOwn PROP T;
  #[global] has_usual_own_upd :: HasOwnUpd PROP T;
  #[global] has_usual_own_valid :: HasOwnValid PROP T;
}.