Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Iris
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
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
Gaëtan Gilbert
Iris
Commits
357f1cc2
Commit
357f1cc2
authored
6 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
allow specializing a wand with a Coq-level proof of the premise
parent
b41623db
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/proofmode.v
+4
-0
4 additions, 0 deletions
tests/proofmode.v
theories/proofmode/class_instances_bi.v
+2
-0
2 additions, 0 deletions
theories/proofmode/class_instances_bi.v
with
6 additions
and
0 deletions
tests/proofmode.v
+
4
−
0
View file @
357f1cc2
...
@@ -111,6 +111,10 @@ Lemma test_iSpecialize_auto_frame P Q R :
...
@@ -111,6 +111,10 @@ Lemma test_iSpecialize_auto_frame P Q R :
(
P
-∗
True
-∗
True
-∗
Q
-∗
R
)
-∗
P
-∗
Q
-∗
R
.
(
P
-∗
True
-∗
True
-∗
Q
-∗
R
)
-∗
P
-∗
Q
-∗
R
.
Proof
.
iIntros
"H ? HQ"
.
by
iApply
(
"H"
with
"[$]"
)
.
Qed
.
Proof
.
iIntros
"H ? HQ"
.
by
iApply
(
"H"
with
"[$]"
)
.
Qed
.
Lemma
test_iSpecialize_Coq_entailment
P
Q
R
:
P
→
(
P
-∗
Q
)
→
Q
.
Proof
.
iIntros
(
HP
HPQ
)
.
iDestruct
(
HPQ
$!
HP
)
as
"?"
.
done
.
Qed
.
Lemma
test_iEmp_intro
P
Q
R
`{
!
Affine
P
,
!
Persistent
Q
,
!
Affine
R
}
:
Lemma
test_iEmp_intro
P
Q
R
`{
!
Affine
P
,
!
Persistent
Q
,
!
Affine
R
}
:
P
-∗
Q
→
R
-∗
emp
.
P
-∗
Q
→
R
-∗
emp
.
Proof
.
iIntros
"HP #HQ HR"
.
iEmpIntro
.
Qed
.
Proof
.
iIntros
"HP #HQ HR"
.
iEmpIntro
.
Qed
.
...
...
This diff is collapsed.
Click to expand it.
theories/proofmode/class_instances_bi.v
+
2
−
0
View file @
357f1cc2
...
@@ -806,6 +806,8 @@ Proof. rewrite /IntoForall=> HP. by rewrite HP persistently_forall. Qed.
...
@@ -806,6 +806,8 @@ Proof. rewrite /IntoForall=> HP. by rewrite HP persistently_forall. Qed.
Global
Instance
into_forall_embed
`{
BiEmbed
PROP
PROP'
}
{
A
}
P
(
Φ
:
A
→
PROP
)
:
Global
Instance
into_forall_embed
`{
BiEmbed
PROP
PROP'
}
{
A
}
P
(
Φ
:
A
→
PROP
)
:
IntoForall
P
Φ
→
IntoForall
⎡
P
⎤
(
λ
a
,
⎡
Φ
a
⎤%
I
)
.
IntoForall
P
Φ
→
IntoForall
⎡
P
⎤
(
λ
a
,
⎡
Φ
a
⎤%
I
)
.
Proof
.
by
rewrite
/
IntoForall
-
embed_forall
=>
<-.
Qed
.
Proof
.
by
rewrite
/
IntoForall
-
embed_forall
=>
<-.
Qed
.
Global
Instance
into_forall_wand
P
Q
:
IntoForall
(
P
-∗
Q
)
(
λ
_
:
bi_emp_valid
P
,
Q
)
.
Proof
.
rewrite
/
IntoForall
.
apply
forall_intro
=>
<-.
rewrite
emp_wand
//.
Qed
.
(* FromForall *)
(* FromForall *)
Global
Instance
from_forall_forall
{
A
}
(
Φ
:
A
→
PROP
)
:
Global
Instance
from_forall_forall
{
A
}
(
Φ
:
A
→
PROP
)
:
...
...
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