Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iris-coq
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
Michael Sammler
iris-coq
Commits
245e1d08
Commit
245e1d08
authored
6 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
`IntoWand` instances for the affine modality.
These instances are the same as those for e.g. the later modality.
parent
545eea68
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/proofmode/class_instances_bi.v
+32
-0
32 additions, 0 deletions
theories/proofmode/class_instances_bi.v
with
32 additions
and
0 deletions
theories/proofmode/class_instances_bi.v
+
32
−
0
View file @
245e1d08
...
@@ -386,6 +386,38 @@ Global Instance into_wand_forall {A} p q (Φ : A → PROP) P Q x :
...
@@ -386,6 +386,38 @@ Global Instance into_wand_forall {A} p q (Φ : A → PROP) P Q x :
IntoWand
p
q
(
Φ
x
)
P
Q
→
IntoWand
p
q
(
∀
x
,
Φ
x
)
P
Q
.
IntoWand
p
q
(
Φ
x
)
P
Q
→
IntoWand
p
q
(
∀
x
,
Φ
x
)
P
Q
.
Proof
.
rewrite
/
IntoWand
=>
<-.
by
rewrite
(
forall_elim
x
)
.
Qed
.
Proof
.
rewrite
/
IntoWand
=>
<-.
by
rewrite
(
forall_elim
x
)
.
Qed
.
Global
Instance
into_wand_affine
p
q
R
P
Q
:
IntoWand
p
q
R
P
Q
→
IntoWand
p
q
(
<
affine
>
R
)
(
<
affine
>
P
)
(
<
affine
>
Q
)
.
Proof
.
rewrite
/
IntoWand
/=
=>
HR
.
apply
wand_intro_r
.
destruct
p
;
simpl
in
*.
-
rewrite
(
affinely_elim
R
)
-
(
affine_affinely
(
□
R
)
%
I
)
HR
.
destruct
q
;
simpl
in
*.
+
rewrite
(
affinely_elim
P
)
-
{
2
}(
affine_affinely
(
□
P
)
%
I
)
.
by
rewrite
affinely_sep_2
wand_elim_l
.
+
by
rewrite
affinely_sep_2
wand_elim_l
.
-
rewrite
HR
.
destruct
q
;
simpl
in
*.
+
rewrite
(
affinely_elim
P
)
-
{
2
}(
affine_affinely
(
□
P
)
%
I
)
.
by
rewrite
affinely_sep_2
wand_elim_l
.
+
by
rewrite
affinely_sep_2
wand_elim_l
.
Qed
.
(* In case the argument is affine, but the wand resides in the spatial context,
we can only eliminate the affine modality in the argument. This would lead to
the following instance:
IntoWand false q R P Q → IntoWand' false q R (<affine> P) Q.
This instance is redundant, however, since the elimination of the affine
modality is already covered by the [IntoAssumption] instances that are used at
the leaves of the instance search for [IntoWand]. *)
Global
Instance
into_wand_affine_args
q
R
P
Q
:
IntoWand
true
q
R
P
Q
→
IntoWand'
true
q
R
(
<
affine
>
P
)
(
<
affine
>
Q
)
.
Proof
.
rewrite
/
IntoWand'
/
IntoWand
/=
=>
HR
.
apply
wand_intro_r
.
rewrite
-
(
affine_affinely
(
□
R
)
%
I
)
HR
.
destruct
q
;
simpl
.
-
rewrite
(
affinely_elim
P
)
-
{
2
}(
affine_affinely
(
□
P
)
%
I
)
.
by
rewrite
affinely_sep_2
wand_elim_l
.
-
by
rewrite
affinely_sep_2
wand_elim_l
.
Qed
.
Global
Instance
into_wand_intuitionistically
p
q
R
P
Q
:
Global
Instance
into_wand_intuitionistically
p
q
R
P
Q
:
IntoWand
p
q
R
P
Q
→
IntoWand
p
q
(
□
R
)
P
Q
.
IntoWand
p
q
R
P
Q
→
IntoWand
p
q
(
□
R
)
P
Q
.
Proof
.
by
rewrite
/
IntoWand
intuitionistically_elim
.
Qed
.
Proof
.
by
rewrite
/
IntoWand
intuitionistically_elim
.
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