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
6ae844ab
Verified
Commit
6ae844ab
authored
6 years ago
by
Paolo G. Giarrusso
Browse files
Options
Downloads
Patches
Plain Diff
Allow swapping later^n and forall
For half of #231.
parent
d04c9f7e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/proofmode.v
+5
-0
5 additions, 0 deletions
tests/proofmode.v
theories/proofmode/class_instances_sbi.v
+10
-0
10 additions, 0 deletions
theories/proofmode/class_instances_sbi.v
with
15 additions
and
0 deletions
tests/proofmode.v
+
5
−
0
View file @
6ae844ab
...
...
@@ -380,6 +380,11 @@ Proof.
iSpecialize
(
"Hφ"
with
"[% //] HP"
)
.
done
.
Qed
.
Lemma
demo_laterN_forall
{
A
}
(
Φ
Ψ
:
A
→
PROP
)
n
:
(
∀
x
,
▷^
n
Φ
x
)
-∗
▷^
n
(
∀
x
,
Φ
x
)
.
Proof
.
iIntros
"H"
(
w
)
.
iApply
(
"H"
$!
w
)
.
Qed
.
Lemma
test_iNext_laterN_later
P
n
:
▷
▷^
n
P
-∗
▷^
n
▷
P
.
Proof
.
iIntros
"H"
.
iNext
.
by
iNext
.
Qed
.
Lemma
test_iNext_later_laterN
P
n
:
▷^
n
▷
P
-∗
▷
▷^
n
P
.
...
...
This diff is collapsed.
Click to expand it.
theories/proofmode/class_instances_sbi.v
+
10
−
0
View file @
6ae844ab
...
...
@@ -301,6 +301,11 @@ Proof. rewrite /IntoExist=> HP. by rewrite HP plainly_exist. Qed.
Global
Instance
into_forall_later
{
A
}
P
(
Φ
:
A
→
PROP
)
:
IntoForall
P
Φ
→
IntoForall
(
▷
P
)
(
λ
a
,
▷
(
Φ
a
))
%
I
.
Proof
.
rewrite
/
IntoForall
=>
HP
.
by
rewrite
HP
later_forall
.
Qed
.
Global
Instance
into_forall_laterN
{
A
}
P
(
Φ
:
A
→
PROP
)
n
:
IntoForall
P
Φ
→
IntoForall
(
▷^
n
P
)
(
λ
a
,
▷^
n
(
Φ
a
))
%
I
.
Proof
.
rewrite
/
IntoForall
=>
HP
.
by
rewrite
HP
laterN_forall
.
Qed
.
Global
Instance
into_forall_except_0
{
A
}
P
(
Φ
:
A
→
PROP
)
:
IntoForall
P
Φ
→
IntoForall
(
◇
P
)
(
λ
a
,
◇
(
Φ
a
))
%
I
.
Proof
.
rewrite
/
IntoForall
=>
HP
.
by
rewrite
HP
except_0_forall
.
Qed
.
...
...
@@ -313,6 +318,11 @@ Proof. rewrite /IntoForall=> HP. by rewrite HP plainly_forall. Qed.
Global
Instance
from_forall_later
{
A
}
P
(
Φ
:
A
→
PROP
)
:
FromForall
P
Φ
→
FromForall
(
▷
P
)
%
I
(
λ
a
,
▷
(
Φ
a
))
%
I
.
Proof
.
rewrite
/
FromForall
=>
<-.
by
rewrite
later_forall
.
Qed
.
Global
Instance
from_forall_laterN
{
A
}
P
(
Φ
:
A
→
PROP
)
n
:
FromForall
P
Φ
→
FromForall
(
▷^
n
P
)
%
I
(
λ
a
,
▷^
n
(
Φ
a
))
%
I
.
Proof
.
rewrite
/
FromForall
=>
<-.
by
rewrite
laterN_forall
.
Qed
.
Global
Instance
from_forall_except_0
{
A
}
P
(
Φ
:
A
→
PROP
)
:
FromForall
P
Φ
→
FromForall
(
◇
P
)
%
I
(
λ
a
,
◇
(
Φ
a
))
%
I
.
Proof
.
rewrite
/
FromForall
=>
<-.
by
rewrite
except_0_forall
.
Qed
.
...
...
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