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
d402a6d1
Commit
d402a6d1
authored
6 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Move `into_forall_wand_pure` to the right file.
parent
bf5df6e8
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
theories/proofmode/class_instances_bi.v
+19
-3
19 additions, 3 deletions
theories/proofmode/class_instances_bi.v
theories/proofmode/class_instances_sbi.v
+0
-13
0 additions, 13 deletions
theories/proofmode/class_instances_sbi.v
with
19 additions
and
16 deletions
theories/proofmode/class_instances_bi.v
+
19
−
3
View file @
d402a6d1
...
...
@@ -806,14 +806,30 @@ Proof. rewrite /IntoForall=> HP. by rewrite HP persistently_forall. Qed.
Global
Instance
into_forall_embed
`{
BiEmbed
PROP
PROP'
}
{
A
}
P
(
Φ
:
A
→
PROP
)
:
IntoForall
P
Φ
→
IntoForall
⎡
P
⎤
(
λ
a
,
⎡
Φ
a
⎤%
I
)
.
Proof
.
by
rewrite
/
IntoForall
-
embed_forall
=>
<-.
Qed
.
(* These instances must be used only after [into_forall_wand_pure] in
[class_instances_sbi] failed. *)
Global
Instance
into_forall_wand
P
Q
:
IntoForall
(
P
-∗
Q
)
(
λ
_
:
bi_emp_valid
P
,
Q
)
|
10
.
(* These instances must be used only after [into_forall_wand_pure] and
[into_forall_wand_pure]. *)
Global
Instance
into_forall_wand
P
Q
:
IntoForall
(
P
-∗
Q
)
(
λ
_
:
bi_emp_valid
P
,
Q
)
|
10
.
Proof
.
rewrite
/
IntoForall
.
apply
forall_intro
=>
<-.
rewrite
emp_wand
//.
Qed
.
Global
Instance
into_forall_impl
`{
!
BiAffine
PROP
}
P
Q
:
IntoForall
(
P
→
Q
)
(
λ
_
:
bi_emp_valid
P
,
Q
)
|
10
.
Proof
.
rewrite
/
IntoForall
.
apply
forall_intro
=>
<-.
rewrite
-
True_emp
True_impl
//.
Qed
.
Global
Instance
into_forall_impl_pure
φ
P
Q
:
FromPureT
false
P
φ
→
IntoForall
(
P
→
Q
)
(
λ
_
:
φ
,
Q
)
.
Proof
.
rewrite
/
FromPureT
/
FromPure
/
IntoForall
=>
-
[
φ'
[
->
<-
]]
.
by
rewrite
pure_impl_forall
.
Qed
.
Global
Instance
into_forall_wand_pure
φ
P
Q
:
FromPureT
true
P
φ
→
IntoForall
(
P
-∗
Q
)
(
λ
_
:
φ
,
Q
)
.
Proof
.
rewrite
/
FromPureT
/
FromPure
/
IntoForall
=>
-
[
φ'
[
->
<-
]]
/=.
apply
forall_intro
=>?
/=.
by
rewrite
-
(
pure_intro
_
True
%
I
)
//
/
bi_affinely
right_id
emp_wand
.
Qed
.
(* FromForall *)
Global
Instance
from_forall_forall
{
A
}
(
Φ
:
A
→
PROP
)
:
FromForall
(
∀
x
,
Φ
x
)
%
I
Φ
.
...
...
This diff is collapsed.
Click to expand it.
theories/proofmode/class_instances_sbi.v
+
0
−
13
View file @
d402a6d1
...
...
@@ -343,19 +343,6 @@ Proof. rewrite /IntoForall=> HP. by rewrite HP later_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
.
Global
Instance
into_forall_impl_pure
φ
P
Q
:
FromPureT
false
P
φ
→
IntoForall
(
P
→
Q
)
(
λ
_
:
φ
,
Q
)
.
Proof
.
rewrite
/
FromPureT
/
FromPure
/
IntoForall
=>
-
[
φ'
[
->
<-
]]
.
by
rewrite
pure_impl_forall
.
Qed
.
Global
Instance
into_forall_wand_pure
φ
P
Q
:
FromPureT
true
P
φ
→
IntoForall
(
P
-∗
Q
)
(
λ
_
:
φ
,
Q
)
.
Proof
.
rewrite
/
FromPureT
/
FromPure
/
IntoForall
=>
-
[
φ'
[
->
<-
]]
/=.
apply
forall_intro
=>?
/=.
by
rewrite
-
(
pure_intro
_
True
%
I
)
//
/
bi_affinely
right_id
emp_wand
.
Qed
.
Global
Instance
into_forall_plainly
`{
BiPlainly
PROP
}
{
A
}
P
(
Φ
:
A
→
PROP
)
:
IntoForall
P
Φ
→
IntoForall
(
■
P
)
(
λ
a
,
■
(
Φ
a
))
%
I
.
...
...
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