Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
iris
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tej Chajed
iris
Commits
334b689e
Commit
334b689e
authored
Oct 20, 2018
by
Joseph Tassarotti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use plainly modality instead of typeclass in BiFUpdPlainly interface.
parent
7c32c1ac
Changes
3
Hide whitespace changes
Inline
Sidebyside
Showing
3 changed files
with
20 additions
and
12 deletions
+20
12
theories/base_logic/lib/fancy_updates.v
theories/base_logic/lib/fancy_updates.v
+4
4
theories/bi/monpred.v
theories/bi/monpred.v
+4
4
theories/bi/updates.v
theories/bi/updates.v
+12
4
No files found.
theories/base_logic/lib/fancy_updates.v
View file @
334b689e
...
...
@@ 41,12 +41,12 @@ Proof. rewrite /BiBUpdFUpd uPred_fupd_eq. by iIntros (E P) ">? [$ $] !> !>". Qed
Instance
uPred_bi_fupd_plainly
`
{
invG
Σ
}
:
BiFUpdPlainly
(
uPredSI
(
iResUR
Σ
)).
Proof
.
split
.

rewrite
uPred_fupd_eq
/
uPred_fupd_def
.
iIntros
(
E
P
Q
?
)
"HQP HQ [Hw HE]"
.
iAssert
(
◇
P
)%
I
as
"#>$
"
.

rewrite
uPred_fupd_eq
/
uPred_fupd_def
.
iIntros
(
E
P
Q
)
"HQP HQ [Hw HE]"
.
iAssert
(
◇
■
P
)%
I
as
"#>HP'
"
.
{
by
iMod
(
"HQP"
with
"HQ [$]"
)
as
"(_ & _ & HP)"
.
}
by
iFrame
.

rewrite
uPred_fupd_eq
/
uPred_fupd_def
.
iIntros
(
p
E1
E2
P
?
)
"HP [Hw HE]"
.
iAssert
(
▷
?p
◇
P
)%
I
with
"[]"
as
"#$"
;
last
by
iFrame
.

rewrite
uPred_fupd_eq
/
uPred_fupd_def
.
iIntros
(
p
E1
E2
P
)
"HP [Hw HE]"
.
iAssert
(
▷
?p
◇
■
P
)%
I
with
"[]"
as
"#HP'"
;
last
by
(
rewrite
plainly_elim
;
iFrame
)
.
iNext
.
by
iMod
(
"HP"
with
"[$]"
)
as
"(_ & _ & HP)"
.
Qed
.
...
...
theories/bi/monpred.v
View file @
334b689e
...
...
@@ 957,10 +957,10 @@ Proof. move => [] /(_ i). rewrite /Plain monPred_at_plainly bi.forall_elim //. Q
Global
Instance
monPred_bi_fupd_plainly
`
{
BiFUpdPlainly
PROP
}
:
BiFUpdPlainly
monPredSI
.
Proof
.
split
;
rewrite
monPred_fupd_eq
;
unseal
.

intros
E
P
Q
?
.
split
=>/=
i
.
do
3
f_equiv
.
apply
fupd_plain_weak
;
apply
_
.

intros
p
E1
E2
P
?.
split
=>/=
i
.
specialize
(
later_fupd_plain
p
)
=>
HFP
.
destruct
p
;
simpl
;
[
unseal

]
;
apply
HFP
,
_
.

intros
E
P
Q
.
split
=>/=
i
.
do
3
f_equiv
.
rewrite
monPred_at_plainly
(
bi
.
forall_elim
_
)
fupd_plainly_weak
//=
.

intros
p
E1
E2
P
;
split
=>/=
i
;
specialize
(
later_fupd_plainly
p
)
=>
HFP
.
destruct
p
;
simpl
;
[
unseal

]
;
rewrite
monPred_at_plainly
(
bi
.
forall_elim
_
)
;
apply
HFP
.
Qed
.
Global
Instance
plainly_objective
`
{
BiPlainly
PROP
}
P
:
Objective
(
■
P
).
...
...
theories/bi/updates.v
View file @
334b689e
...
...
@@ 78,10 +78,10 @@ Class BiBUpdPlainly (PROP : sbi) `{!BiBUpd PROP, !BiPlainly PROP} :=
Hint
Mode
BiBUpdPlainly
!


:
typeclass_instances
.
Class
BiFUpdPlainly
(
PROP
:
sbi
)
`
{!
BiFUpd
PROP
,
!
BiPlainly
PROP
}
:
=
{
fupd_plain
_weak
E
(
P
Q
:
PROP
)
`
{!
Plain
P
}
:
(
Q
={
E
}=
∗
P
)

∗
Q
={
E
}=
∗
Q
∗
P
;
later_fupd_plain
p
E1
E2
(
P
:
PROP
)
`
{!
Plain
P
}
:
(
▷
?p
={
E1
,
E2
}=>
P
)
={
E1
}=
∗
▷
?p
◇
P
;
fupd_plain
ly_weak
E
(
P
Q
:
PROP
)
:
(
Q
={
E
}=
∗
■
P
)

∗
Q
={
E
}=
∗
Q
∗
P
;
later_fupd_plain
ly
p
E1
E2
(
P
:
PROP
)
:
(
▷
?p
={
E1
,
E2
}=>
■
P
)
={
E1
}=
∗
▷
?p
◇
P
;
}.
Hint
Mode
BiBUpdFUpd
!


:
typeclass_instances
.
...
...
@@ 272,6 +272,14 @@ Section fupd_derived.
intros
P1
P2
HP
Q1
Q2
HQ
.
by
rewrite
HP
HQ

fupd_sep
.
Qed
.
Lemma
fupd_plain_weak
`
{
BiPlainly
PROP
,
!
BiFUpdPlainly
PROP
}
E
P
Q
`
{!
Plain
P
}
:
(
Q
={
E
}=
∗
P
)

∗
Q
={
E
}=
∗
Q
∗
P
.
Proof
.
by
rewrite
{
1
}(
plain
P
)
fupd_plainly_weak
.
Qed
.
Lemma
later_fupd_plain
`
{
BiPlainly
PROP
,
!
BiFUpdPlainly
PROP
}
p
E1
E2
P
`
{!
Plain
P
}
:
(
▷
?p
={
E1
,
E2
}=>
P
)
={
E1
}=
∗
▷
?p
◇
P
.
Proof
.
by
rewrite
{
1
}(
plain
P
)
later_fupd_plainly
.
Qed
.
Lemma
fupd_plain_strong
`
{
BiPlainly
PROP
,
!
BiFUpdPlainly
PROP
}
E1
E2
P
`
{!
Plain
P
}
:
(={
E1
,
E2
}=>
P
)
={
E1
}=
∗
◇
P
.
Proof
.
by
apply
(
later_fupd_plain
false
).
Qed
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment