Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Jonas Kastberg
iris
Commits
b42d1571
Commit
b42d1571
authored
Mar 31, 2020
by
Robbert Krebbers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Let `iNext` detect equalities `Next x ≡ Next y`.
parent
2c4869c2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
tests/proofmode.v
tests/proofmode.v
+4
-0
theories/proofmode/class_instances_sbi.v
theories/proofmode/class_instances_sbi.v
+5
-0
No files found.
tests/proofmode.v
View file @
b42d1571
...
...
@@ -377,6 +377,10 @@ Lemma test_iNext_quantifier {A} (Φ : A → A → PROP) :
(
∀
y
,
∃
x
,
▷
Φ
x
y
)
-
∗
▷
(
∀
y
,
∃
x
,
Φ
x
y
).
Proof
.
iIntros
"H"
.
iNext
.
done
.
Qed
.
Lemma
text_iNext_Next
{
A
B
:
ofeT
}
(
f
:
A
-
n
>
A
)
x
y
:
Next
x
≡
Next
y
-
∗
(
Next
(
f
x
)
≡
Next
(
f
y
)
:
PROP
).
Proof
.
iIntros
"H"
.
iNext
.
by
iRewrite
"H"
.
Qed
.
Lemma
test_iFrame_persistent
(
P
Q
:
PROP
)
:
□
P
-
∗
Q
-
∗
<
pers
>
(
P
∗
P
)
∗
(
P
∗
Q
∨
Q
).
Proof
.
iIntros
"#HP"
.
iFrame
"HP"
.
iIntros
"$"
.
Qed
.
...
...
theories/proofmode/class_instances_sbi.v
View file @
b42d1571
...
...
@@ -373,6 +373,11 @@ Proof. by rewrite /FromModal. Qed.
Global
Instance
from_modal_laterN
n
P
:
FromModal
(
modality_laterN
n
)
(
▷
^
n
P
)
(
▷
^
n
P
)
P
.
Proof
.
by
rewrite
/
FromModal
.
Qed
.
Global
Instance
from_modal_Next
{
A
:
ofeT
}
(
x
y
:
A
)
:
FromModal
(
PROP1
:
=
PROP
)
(
PROP2
:
=
PROP
)
(
modality_laterN
1
)
(
▷
^
1
(
x
≡
y
)
:
PROP
)%
I
(
Next
x
≡
Next
y
)
(
x
≡
y
).
Proof
.
by
rewrite
/
FromModal
/=
later_equivI
.
Qed
.
Global
Instance
from_modal_except_0
P
:
FromModal
modality_id
(
◇
P
)
(
◇
P
)
P
.
Proof
.
by
rewrite
/
FromModal
/=
-
except_0_intro
.
Qed
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment