Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
c
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
Incidents
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
Iris
c
Commits
ac9bae94
Commit
ac9bae94
authored
Jan 26, 2019
by
Robbert Krebbers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
No longer use wp_cwp_bind.
parent
12e52be4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
9 deletions
+1
-9
theories/c_translation/monad.v
theories/c_translation/monad.v
+1
-9
No files found.
theories/c_translation/monad.v
View file @
ac9bae94
...
...
@@ -118,11 +118,6 @@ Section cwp_rules.
CWP
fill
K
e
@
R
{{
Φ
}}.
Proof
.
rewrite
cwp_eq
.
by
apply
:
wp_bind
.
Qed
.
Lemma
wp_cwp_bind_inv
R
Φ
K
e
:
CWP
fill
K
e
@
R
{{
Φ
}}
-
∗
WP
e
{{
v
,
CWP
fill
K
(
of_val
v
)
@
R
{{
Φ
}}
}}.
Proof
.
rewrite
cwp_eq
.
by
apply
:
wp_bind_inv
.
Qed
.
Lemma
cwp_insert_res
e
Φ
R1
R2
:
▷
R1
-
∗
CWP
e
@
(
R1
∗
R2
)
{{
v
,
▷
R1
={
⊤
}=
∗
Φ
v
}}
-
∗
...
...
@@ -184,10 +179,7 @@ Section cwp_rules.
φ
→
▷
^
n
CWP
(
fill
K
e2
)
@
R
{{
Φ
}}
-
∗
CWP
(
fill
K
e1
)
@
R
{{
Φ
}}.
Proof
.
iIntros
(?
H
φ
)
"Hcwp"
.
iApply
wp_cwp_bind
.
wp_pure
_
.
by
iApply
wp_cwp_bind_inv
.
Qed
.
Proof
.
iIntros
(?
H
φ
)
"Hcwp"
.
rewrite
cwp_eq
/
cwp_def
.
by
wp_pure
_
.
Qed
.
Lemma
cwp_ret
e
R
Φ
:
WP
e
{{
Φ
}}
-
∗
CWP
c_ret
e
@
R
{{
Φ
}}.
...
...
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