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
f14549a3
Commit
f14549a3
authored
1 year ago
by
Jonas Kastberg
Browse files
Options
Downloads
Patches
Plain Diff
Automation for proving consistency relation
parent
d88939b6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!39
Multiparty synchronous
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
theories/channel/multi_proofmode.v
+22
-35
22 additions, 35 deletions
theories/channel/multi_proofmode.v
theories/channel/multi_proto_consistency_examples.v
+97
-452
97 additions, 452 deletions
theories/channel/multi_proto_consistency_examples.v
with
119 additions
and
487 deletions
theories/channel/multi_proofmode.v
+
22
−
35
View file @
f14549a3
...
...
@@ -240,19 +240,6 @@ Tactic Notation "wp_recv" "(" simple_intropattern_list(xs) ")" "as" "(" simple_i
simple_intropattern
(
x5
)
simple_intropattern
(
x6
)
simple_intropattern
(
x7
)
simple_intropattern
(
x8
)
")"
constr
(
pat
)
:=
wp_recv_core
(
intros
xs
)
as
(
fun
H
=>
iDestructHyp
H
as
(
x1
x2
x3
x4
x5
x6
x7
x8
)
pat
)
.
(* Section channel. *)
(* Context `{!heapGS Σ, !chanG Σ}. *)
(* Implicit Types p : iProto Σ. *)
(* Implicit Types TT : tele. *)
(* Lemma recv_test c p : *)
(* {{{ c ↣ (<(Recv,0) @(x:Z)> MSG #x ; p) }}} *)
(* recv c #0 *)
(* {{{ x, RET #x; c ↣ p }}}. *)
(* Proof. *)
(* iIntros (Φ) "Hc HΦ". *)
(* wp_recv (x) as "_". *)
Lemma
tac_wp_send
`{
!
chanG
Σ
,
!
heapGS
Σ
}
{
TT
:
tele
}
Δ
neg
i
js
K
(
n
:
nat
)
w
c
v
p
m
tv
tP
tp
Φ
:
w
=
#
n
→
...
...
@@ -356,28 +343,28 @@ Tactic Notation "wp_send" "(" uconstr(x1) uconstr(x2) uconstr(x3) uconstr(x4) ")
wp_send_core
(
eexists
x1
;
eexists
x2
;
eexists
x3
;
eexists
x4
;
eexists
x5
;
eexists
x6
;
eexists
x7
;
eexists
x8
)
with
pat
.
Section
channel
.
Context
`{
!
heapGS
Σ
,
!
chanG
Σ
}
.
Implicit
Types
p
:
iProto
Σ
.
Implicit
Types
TT
:
tele
.
(*
Section channel.
*)
(*
Context `{!heapGS Σ, !chanG Σ}.
*)
(*
Implicit Types p : iProto Σ.
*)
(*
Implicit Types TT : tele.
*)
(* TODO: Why do the tactics not strip laters? *)
Lemma
recv_test
c
p
:
{{{
c
↣
(
<
(
Recv
,
0
)
@
(
x
:
Z
)
>
MSG
#
x
;
p
)
}}}
recv
c
#
0
{{{
x
,
RET
#
x
;
c
↣
p
}}}
.
Proof
.
iIntros
(
Φ
)
"Hc HΦ"
.
wp_recv
(
x
)
as
"_"
.
Admitted
.
(*
(* TODO: Why do the tactics not strip laters? *)
*)
(*
Lemma recv_test c p :
*)
(*
{{{ c ↣ (<(Recv,0) @(x:Z)> MSG #x ; p) }}}
*)
(*
recv c #0
*)
(*
{{{ x, RET #x; c ↣ p }}}.
*)
(*
Proof.
*)
(*
iIntros (Φ) "Hc HΦ".
*)
(*
wp_recv (x) as "_".
*)
(*
Admitted.
*)
Lemma
send_test
c
p
:
{{{
c
↣
(
<
(
Send
,
0
)
@
(
x
:
Z
)
>
MSG
#
x
;
p
)
}}}
send
c
#
0
#
42
{{{
x
,
RET
#
x
;
c
↣
p
}}}
.
Proof
.
iIntros
(
Φ
)
"Hc HΦ"
.
wp_send
(
42
%
Z
)
with
"[//]"
.
Admitted
.
(*
Lemma send_test c p :
*)
(*
{{{ c ↣ (<(Send,0) @(x:Z)> MSG #x ; p) }}}
*)
(*
send c #0 #42
*)
(*
{{{ x, RET #x; c ↣ p }}}.
*)
(*
Proof.
*)
(*
iIntros (Φ) "Hc HΦ".
*)
(*
wp_send (42%Z) with "[//]".
*)
(*
Admitted.
*)
End
channel
.
(*
End channel.
*)
This diff is collapsed.
Click to expand it.
theories/channel/multi_proto_consistency_examples.v
+
97
−
452
View file @
f14549a3
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