Skip to content
Snippets Groups Projects
Commit f227f6fa authored by Abel Nieto's avatar Abel Nieto
Browse files

Add mapsto_mapsto_ne helper lemma

Here's one case this lemma might be useful. Suppose we want to
programmatically generate namespaces for e.g. locks:

```
Definition lockN (l : loc) := nroot .@ "lock" .@ l.
```

Then to know that two such namespaces are disjoint, we need to know
that the corresponding locations are distinct. For that we use
the lemma here introduced.

```
Lemma ne l1 l2 v1 v2 :
  l1 ↦ v1 -∗ l2 ↦ v2 -∗ ⌜l1 ≠ l2⌝.
Proof. iApply mapsto_mapsto_ne. (* goal ¬ ✓ 2%Qp *) by intros []. Qed.
```
parent 9cc3cc77
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment