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
Pierre Roux
Iris
Commits
a932b194
Commit
a932b194
authored
5 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
More general instance for framing under `<affine>`.
parent
8343f616
No related branches found
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
+7
-0
7 additions, 0 deletions
tests/proofmode.v
theories/proofmode/frame_instances.v
+5
-4
5 additions, 4 deletions
theories/proofmode/frame_instances.v
with
12 additions
and
4 deletions
tests/proofmode.v
+
7
−
0
View file @
a932b194
...
...
@@ -455,6 +455,13 @@ Proof. iIntros "HP HQ". iFrame "HP HQ". Qed.
Lemma
test_iFrame_later
`{
!
BiAffine
PROP
}
P
Q
:
P
-∗
Q
-∗
▷
P
∗
Q
.
Proof
.
iIntros
"H1 H2"
.
by
iFrame
"H1"
.
Qed
.
Lemma
test_iFrame_affinely_1
P
Q
`{
!
Affine
P
}
:
P
-∗
<
affine
>
Q
-∗
<
affine
>
(
P
∗
Q
)
.
Proof
.
iIntros
"HP HQ"
.
iFrame
"HQ"
.
iExact
"HP"
.
Qed
.
Lemma
test_iFrame_affinely_2
P
Q
`{
!
Affine
P
,
!
Affine
Q
}
:
P
-∗
Q
-∗
<
affine
>
(
P
∗
Q
)
.
Proof
.
iIntros
"HP HQ"
.
iFrame
"HQ"
.
iExact
"HP"
.
Qed
.
Lemma
test_iAssert_modality
P
:
◇
False
-∗
▷
P
.
Proof
.
iIntros
"HF"
.
...
...
This diff is collapsed.
Click to expand it.
theories/proofmode/frame_instances.v
+
5
−
4
View file @
a932b194
...
...
@@ -204,11 +204,12 @@ Proof. by rewrite /KnownMakeAffinely /MakeAffinely affinely_True_emp affinely_em
Global
Instance
make_affinely_default
P
:
MakeAffinely
P
(
<
affine
>
P
)
|
100
.
Proof
.
by
rewrite
/
MakeAffinely
.
Qed
.
Global
Instance
frame_affinely
R
P
Q
Q'
:
Frame
true
R
P
Q
→
MakeAffinely
Q
Q'
→
Frame
true
R
(
<
affine
>
P
)
Q'
.
Global
Instance
frame_affinely
p
R
P
Q
Q'
:
TCOr
(
TCEq
p
true
)
(
Affine
R
)
→
Frame
p
R
P
Q
→
MakeAffinely
Q
Q'
→
Frame
p
R
(
<
affine
>
P
)
Q'
.
Proof
.
rewrite
/
Frame
/
MakeAffinely
=>
<-
<-
/=
.
rewrite
-
{
1
}(
affine_affinely
(
□
R
)
%
I
)
affinely_sep_2
//
.
rewrite
/
Frame
/
MakeAffinely
=>
-
[
->
|?]
<-
<-
/=
;
by
rewrite
-
{
1
}(
affine_affinely
(
_
R
)
%
I
)
affinely_sep_2
.
Qed
.
Global
Instance
make_intuitionistically_emp
:
...
...
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