bedrock.lang.bi.prop_constraints
(*
* Copyright (C) BlueRock Security 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.
*)
* Copyright (C) BlueRock Security 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
- 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;
}.
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;
}.