Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Actris
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
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
Iris
Actris
Commits
3ee753fd
Commit
3ee753fd
authored
4 years ago
by
Jonas Kastberg
Browse files
Options
Downloads
Patches
Plain Diff
Cleaned up a proof
parent
ed16401e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#32871
passed
4 years ago
Stage: build
Changes
1
Pipelines
6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/examples/basics.v
+4
-6
4 additions, 6 deletions
theories/examples/basics.v
with
4 additions
and
6 deletions
theories/examples/basics.v
+
4
−
6
View file @
3ee753fd
(** This file includes basic examples that each describe a unique feature of
(** This file includes basic examples that each describe a unique feature of
dependent separation protocols. *)
From
actris
.
channel
Require
Import
proofmode
.
From
iris
.
heap_lang
Require
Import
lib
.
spin_lock
.
...
...
@@ -268,11 +268,9 @@ Lemma prog_loop_spec : {{{ True }}} prog_loop #() {{{ RET #42; True }}}.
Proof
.
iIntros
(
Φ
)
"_ HΦ"
.
wp_lam
.
wp_apply
(
start_chan_spec
prot_loop
);
iIntros
(
c
)
"Hc"
.
-
iAssert
(
∀
Ψ
,
WP
(
rec
:
"go"
<>
:=
let
:
"x"
:=
recv
c
in
send
c
(
"x"
+
#
2
)
;;
"go"
#
())
%
V
#
()
{{
Ψ
}})
%
I
with
"[Hc]"
as
"H"
.
{
iIntros
(
Ψ
)
.
iLöb
as
"IH"
.
wp_recv
(
x
)
as
"_"
.
wp_send
with
"[//]"
.
wp_seq
.
by
iApply
"IH"
.
}
wp_lam
.
wp_closure
.
wp_let
.
iApply
"H"
.
-
wp_pures
.
iLöb
as
"IH"
.
wp_recv
(
x
)
as
"_"
.
wp_send
with
"[//]"
.
wp_pures
.
by
iApply
"IH"
.
-
wp_send
with
"[//]"
.
wp_recv
as
"_"
.
wp_send
with
"[//]"
.
wp_recv
as
"_"
.
wp_pures
.
by
iApply
"HΦ"
.
Qed
.
...
...
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