Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Lennard Gäher
Iris
Commits
0e7930c6
Commit
0e7930c6
authored
Mar 25, 2021
by
Ralf Jung
Browse files
add test for dependent nested exist
parent
2eb8bde0
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/proofmode.v
View file @
0e7930c6
...
...
@@ -480,11 +480,18 @@ Proof.
Qed
.
(* Ensure that [% %] works as a pattern for an existential with a pure body. *)
Lemma
test_exist_pure_destruct
:
Lemma
test_exist_pure_destruct
_1
:
(
∃
x
,
⌜
x
=
0
⌝
)
⊢
@{
PROP
}
True
.
Proof
.
iIntros
"[% %]"
.
done
.
Qed
.
(* Also test nested existentials where the type of the 2nd depends on the first
(which could cause trouble if we do things in the wrong order) *)
Lemma
test_exist_pure_destruct_2
:
(
∃
x
(
_:
x
=
0
),
True
)
⊢
@{
PROP
}
True
.
Proof
.
iIntros
"(% & % & $)"
.
Qed
.
Lemma
test_fresh
P
Q
:
(
P
∗
Q
)
-
∗
(
P
∗
Q
).
...
...
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