Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Iris
Iris
Commits
794c6660
Commit
794c6660
authored
Oct 18, 2016
by
Robbert Krebbers
Browse files
Define hoare triple and view shift in terms of wand.
parent
2b7b36ce
Pipeline
#2872
passed with stage
in 9 minutes and 23 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
program_logic/hoare.v
View file @
794c6660
...
...
@@ -3,7 +3,7 @@ From iris.proofmode Require Import tactics.
Definition
ht
`
{
irisG
Λ
Σ
}
(
E
:
coPset
)
(
P
:
iProp
Σ
)
(
e
:
expr
Λ
)
(
Φ
:
val
Λ
→
iProp
Σ
)
:
iProp
Σ
:
=
(
□
(
P
→
WP
e
@
E
{{
Φ
}}))%
I
.
(
□
(
P
-
★
WP
e
@
E
{{
Φ
}}))%
I
.
Instance
:
Params
(@
ht
)
4
.
Notation
"{{ P } } e @ E {{ Φ } }"
:
=
(
ht
E
P
e
%
E
Φ
)
...
...
@@ -47,7 +47,7 @@ Global Instance ht_proper E :
Proof
.
solve_proper
.
Qed
.
Lemma
ht_mono
E
P
P'
Φ
Φ
'
e
:
(
P
⊢
P'
)
→
(
∀
v
,
Φ
'
v
⊢
Φ
v
)
→
{{
P'
}}
e
@
E
{{
Φ
'
}}
⊢
{{
P
}}
e
@
E
{{
Φ
}}.
Proof
.
by
intros
;
apply
always_mono
,
impl
_mono
,
wp_mono
.
Qed
.
Proof
.
by
intros
;
apply
always_mono
,
wand
_mono
,
wp_mono
.
Qed
.
Global
Instance
ht_mono'
E
:
Proper
(
flip
(
⊢
)
==>
eq
==>
pointwise_relation
_
(
⊢
)
==>
(
⊢
))
(
ht
E
).
Proof
.
solve_proper
.
Qed
.
...
...
program_logic/viewshifts.v
View file @
794c6660
...
...
@@ -2,7 +2,7 @@ From iris.program_logic Require Export invariants.
From
iris
.
proofmode
Require
Import
tactics
.
Definition
vs
`
{
irisG
Λ
Σ
}
(
E1
E2
:
coPset
)
(
P
Q
:
iProp
Σ
)
:
iProp
Σ
:
=
(
□
(
P
→
|={
E1
,
E2
}=>
Q
))%
I
.
(
□
(
P
-
★
|={
E1
,
E2
}=>
Q
))%
I
.
Arguments
vs
{
_
_
_
}
_
_
_
%
I
_
%
I
.
Instance
:
Params
(@
vs
)
5
.
...
...
Write
Preview
Supports
Markdown
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