Commit 4c341601 authored by Robbert Krebbers's avatar Robbert Krebbers

Improve comment a bit.

parent 1a14cdd3
...@@ -56,15 +56,15 @@ Proof. by exists φ. Qed. ...@@ -56,15 +56,15 @@ Proof. by exists φ. Qed.
Hint Extern 0 (IntoPureT _ _) => Hint Extern 0 (IntoPureT _ _) =>
notypeclasses refine (into_pureT_hint _ _ _) : typeclass_instances. notypeclasses refine (into_pureT_hint _ _ _) : typeclass_instances.
(** [FromPure] is used when introducing a pure assertion. It is used by (** [FromPure a P φ] is used when introducing a pure assertion. It is used by
[IntoPure] and the [[%]] specialization pattern. [iPureIntro] and the [[%]] specialization pattern.
The Boolean [a] asserts whether we the pure assertion required the [emp] The Boolean [a] specifies whether introduction of [P] needs [emp] in addition
resource or not. Concretely, for [IntoPure] it specifies whether the spatial to [φ]. Concretely, for the [iPureIntro] tactic, this means it specifies whether
context should be empty or not. the spatial context should be empty or not.
Note that this Boolean is not needed for [IntoPure], because in the case of Note that the Boolean [a] is not needed for the (dual) [IntoPure] class, because
[IntoPure], we can have the same behavior by asking that [P] be [Affine]. *) there we can just ask that [P] is [Affine]. *)
Class FromPure {PROP : bi} (a : bool) (P : PROP) (φ : Prop) := Class FromPure {PROP : bi} (a : bool) (P : PROP) (φ : Prop) :=
from_pure : <affine>?a ⌜φ⌝ P. from_pure : <affine>?a ⌜φ⌝ P.
Arguments FromPure {_} _ _%I _%type_scope : simpl never. Arguments FromPure {_} _ _%I _%type_scope : simpl never.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment