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
7da8952e
Commit
7da8952e
authored
Mar 23, 2021
by
Ralf Jung
Browse files
add more tests
parent
260e0593
Changes
2
Show whitespace changes
Inline
Side-by-side
tests/proofmode.v
View file @
7da8952e
...
...
@@ -457,17 +457,17 @@ Proof. iIntros (?) "HP #HQ HR". iPureIntro; eauto. Qed.
(* Ensure that [% ...] works as a pattern when the left-hand side of and/sep is
pure. *)
Lemma
test_pure_and_sep_destruct_affine
`
{!
BiAffine
PROP
}
(
φ
:
Prop
)
(
P
:
PROP
)
:
Lemma
test_pure_and_sep_destruct_affine
`
{!
BiAffine
PROP
}
(
φ
:
Prop
)
P
:
⌜φ⌝
∧
(
⌜φ⌝
∗
P
)
-
∗
P
.
Proof
.
iIntros
"[% [% $]]"
.
Qed
.
Lemma
test_pure_and_sep_destruct_1
(
φ
:
Prop
)
(
P
:
PROP
)
:
Lemma
test_pure_and_sep_destruct_1
(
φ
:
Prop
)
P
:
⌜φ⌝
∧
(<
affine
>
⌜φ⌝
∗
P
)
-
∗
P
.
Proof
.
iIntros
"[% [% $]]"
.
Qed
.
Lemma
test_pure_and_sep_destruct_2
(
φ
:
Prop
)
(
P
:
PROP
)
:
Lemma
test_pure_and_sep_destruct_2
(
φ
:
Prop
)
P
:
⌜φ⌝
∧
(
⌜φ⌝
∗
<
absorb
>
P
)
-
∗
<
absorb
>
P
.
Proof
.
iIntros
"[% [% $]]"
.
...
...
tests/proofmode_monpred.v
View file @
7da8952e
...
...
@@ -103,6 +103,17 @@ Section tests.
iAssumption
.
Qed
.
Lemma
test_monPred_at_and_pure
P
i
j
:
(
monPred_in
j
∧
P
)
i
⊢
⌜
j
⊑
i
⌝
∧
P
i
.
Proof
.
iDestruct
1
as
"[% $]"
.
done
.
Qed
.
Lemma
test_monPred_at_sep_pure
P
i
j
:
(
monPred_in
j
∗
<
absorb
>
P
)
i
⊢
⌜
j
⊑
i
⌝
∧
<
absorb
>
P
i
.
Proof
.
iDestruct
1
as
"[% ?]"
.
auto
.
Qed
.
Context
(
FU
:
BiFUpd
PROP
).
Lemma
test_apply_fupd_intro_mask_subseteq
E1
E2
P
:
...
...
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