Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
examples
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
examples
Commits
37145a3b
Commit
37145a3b
authored
Feb 19, 2019
by
Ralf Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix lecture_notes
parent
c75b4277
Pipeline
#14818
passed with stage
in 11 minutes and 56 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Sidebyside
Showing
2 changed files
with
2 additions
and
2 deletions
+2
2
theories/lecture_notes/coq_intro_example_1.v
theories/lecture_notes/coq_intro_example_1.v
+1
1
theories/lecture_notes/modular_incr.v
theories/lecture_notes/modular_incr.v
+1
1
No files found.
theories/lecture_notes/coq_intro_example_1.v
View file @
37145a3b
...
@@ 140,7 +140,7 @@ Section proof.
...
@@ 140,7 +140,7 @@ Section proof.
called wp_par. The two arguments are the conclusions of the two
called wp_par. The two arguments are the conclusions of the two
parallel threads. Here they are simply True, as in the paper proof when
parallel threads. Here they are simply True, as in the paper proof when
we used the htpar rule. *)
we used the htpar rule. *)
iA
pply
(
wp_par
(
λ
_
,
⌜
True
⌝
)%
I
(
λ
_
,
⌜
True
⌝
)%
I
).
wp_a
pply
(
wp_par
(
λ
_
,
⌜
True
⌝
)%
I
(
λ
_
,
⌜
True
⌝
)%
I
).
(* We now have three subgoals. The first two are proofs that each thread
(* We now have three subgoals. The first two are proofs that each thread
does the correct thing, and the final goal is to show that the combined
does the correct thing, and the final goal is to show that the combined
conclusion of the two threads implies the desired conclusion. This last
conclusion of the two threads implies the desired conclusion. This last
...
...
theories/lecture_notes/modular_incr.v
View file @
37145a3b
...
@@ 280,7 +280,7 @@ Section example_1.
...
@@ 280,7 +280,7 @@ Section example_1.
wp_let
.
wp_let
.
wp_bind
(
_

_
)%
E
.
wp_bind
(
_

_
)%
E
.
let
tac
:
=
iApply
(
"HIncr"
with
"[$HInc]"
)
;
iNext
;
by
iIntros
(?)
"_"
in
let
tac
:
=
iApply
(
"HIncr"
with
"[$HInc]"
)
;
iNext
;
by
iIntros
(?)
"_"
in
iA
pply
(
wp_par
(
λ
_
,
True
%
I
)
(
λ
_
,
True
%
I
))
;
[
tac

tac

].
wp_a
pply
(
wp_par
(
λ
_
,
True
%
I
)
(
λ
_
,
True
%
I
))
;
[
tac

tac

].
{
iIntros
(
v1
v2
)
"_ !>"
.
{
iIntros
(
v1
v2
)
"_ !>"
.
wp_seq
.
wp_seq
.
wp_apply
(
read_spec
_
_
_
True
%
I
(
λ
_
,
True
%
I
))
;
auto
.
wp_apply
(
read_spec
_
_
_
True
%
I
(
λ
_
,
True
%
I
))
;
auto
.
...
...
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