Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Iris
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Abel Nieto
Iris
Commits
cf68129f
Commit
cf68129f
authored
6 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
update iApply prettification testcase to use something that actually still prettifies
parent
5c959e86
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/proofmode.v
+20
-5
20 additions, 5 deletions
tests/proofmode.v
with
20 additions
and
5 deletions
tests/proofmode.v
+
20
−
5
View file @
cf68129f
...
@@ -557,11 +557,26 @@ Section wandM.
...
@@ -557,11 +557,26 @@ Section wandM.
Qed
.
Qed
.
End
wandM
.
End
wandM
.
Definition
big_op_singleton_def
(
P
:
nat
→
PROP
)
(
l
:
list
nat
)
:=
Definition
modal_if_def
b
(
P
:
PROP
)
:=
([
∗
list
]
n
∈
l
,
P
n
)
%
I
.
(
□
?b
P
)
%
I
.
Lemma
test_iApply_big_op_singleton
(
P
:
nat
→
PROP
)
:
Lemma
modal_if_lemma1
b
P
:
P
1
-∗
big_op_singleton_def
P
[
1
]
.
False
-∗
□
?b
P
.
Proof
.
iIntros
"?"
.
iApply
big_sepL_singleton
.
iAssumption
.
Qed
.
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
.
End
tests
.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment