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
Janno
iris-coq
Commits
cf68129f
Commit
cf68129f
authored
Jul 05, 2018
by
Ralf Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update iApply prettification testcase to use something that actually still prettifies
parent
5c959e86
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
5 deletions
+20
-5
tests/proofmode.v
tests/proofmode.v
+20
-5
No files found.
tests/proofmode.v
View file @
cf68129f
...
...
@@ -557,11 +557,26 @@ Section wandM.
Qed
.
End
wandM
.
Definition
big_op_singleton_def
(
P
:
nat
→
PROP
)
(
l
:
list
nat
)
:
=
([
∗
list
]
n
∈
l
,
P
n
)%
I
.
Lemma
test_iApply_big_op_singleton
(
P
:
nat
→
PROP
)
:
P
1
-
∗
big_op_singleton_def
P
[
1
].
Proof
.
iIntros
"?"
.
iApply
big_sepL_singleton
.
iAssumption
.
Qed
.
Definition
modal_if_def
b
(
P
:
PROP
)
:
=
(
□
?b
P
)%
I
.
Lemma
modal_if_lemma1
b
P
:
False
-
∗
□
?b
P
.
Proof
.
iIntros
"?"
.
by
iExFalso
.
Qed
.
Lemma
test_iApply_prettification1
(
P
:
PROP
)
:
False
-
∗
modal_if_def
true
P
.
Proof
.
(* Make sure the goal is not prettified before [iApply] unifies. *)
iIntros
"?"
.
rewrite
/
modal_if_def
.
iApply
modal_if_lemma1
.
iAssumption
.
Qed
.
Lemma
modal_if_lemma2
P
:
False
-
∗
□
?false
P
.
Proof
.
iIntros
"?"
.
by
iExFalso
.
Qed
.
Lemma
test_iApply_prettification2
(
P
:
PROP
)
:
False
-
∗
∃
b
,
□
?b
P
.
Proof
.
(* Make sure the conclusion of the lemma is not prettified too early. *)
iIntros
"?"
.
iExists
_
.
iApply
modal_if_lemma2
.
done
.
Qed
.
End
tests
.
...
...
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