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
Merge requests
!24
Protocol equivalence
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Protocol equivalence
jonas/iProto_equiv
into
master
Overview
0
Commits
5
Pipelines
0
Changes
2
Merged
Jonas Kastberg
requested to merge
jonas/iProto_equiv
into
master
4 years ago
Overview
0
Commits
5
Pipelines
0
Changes
2
Expand
0
0
Merge request reports
Viewing commit
dbba0d1c
Show latest version
2 files
+
9
−
31
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
dbba0d1c
Used equivalence lemma for iProto_message for proof of choice_equiv
· dbba0d1c
Jonas Kastberg
authored
4 years ago
theories/channel/channel.v
+
8
−
30
Options
@@ -161,40 +161,18 @@ Section channel.
(
p11
p12
p21
p22
:
iProto
Σ
)
:
⌜
a1
=
a2
⌝
-∗
((
P11
≡
P12
):
iProp
Σ
)
-∗
(
P21
≡
P22
)
-∗
▷
(
p11
≡
p12
)
-∗
▷
(
p21
≡
p22
)
-∗
(
iProto_choice
a1
P11
P21
p11
p21
≡
iProto_choice
a2
P12
P22
p12
p22
)
.
iProto_choice
a1
P11
P21
p11
p21
≡
iProto_choice
a2
P12
P22
p12
p22
.
Proof
.
iIntros
(
->
)
"#HP1 #HP2 #Hp1 #Hp2"
.
rewrite
iProto_message_equivI
.
iSplit
;
[
done
|
]
.
iIntros
(
v
lp
)
.
rewrite
iMsg_exist_eq
iMsg_base_eq
/=.
iApply
prop_ext
;
iIntros
"!>"
;
iSplit
.
-
iDestruct
1
as
(
b
Hbeq
)
"[Hp HP]"
.
iExists
b
.
rewrite
Hbeq
.
destruct
lp
as
[
lp
]
.
destruct
b
.
+
iRewrite
-
"HP1"
.
iSplit
;
[
done
|
]
.
iFrame
"HP"
.
iIntros
"!>"
.
by
iRewrite
-
"Hp1"
.
+
iRewrite
-
"HP2"
.
iSplit
;
[
done
|
]
.
iFrame
"HP"
.
iIntros
"!>"
.
by
iRewrite
-
"Hp2"
.
-
iDestruct
1
as
(
b
Hbeq
)
"[Hp HP]"
.
iExists
b
.
rewrite
Hbeq
.
destruct
lp
as
[
lp
]
.
destruct
b
.
+
iRewrite
"HP1"
.
iSplit
;
[
done
|
]
.
iFrame
"HP"
.
iIntros
"!>"
.
by
iRewrite
"Hp1"
.
+
iRewrite
"HP2"
.
iSplit
;
[
done
|
]
.
iFrame
"HP"
.
iIntros
"!>"
.
by
iRewrite
"Hp2"
.
rewrite
/
iProto_choice
.
iApply
iProto_message_equiv
;
[
eauto
|
|
]
.
-
iIntros
"!>"
(
b
)
"H"
.
iExists
b
.
iSplit
;
[
done
|
]
.
destruct
b
;
[
iRewrite
-
"HP1"
;
iFrame
"H Hp1"
|
iRewrite
-
"HP2"
;
iFrame
"H Hp2"
]
.
-
iIntros
"!>"
(
b
)
"H"
.
iExists
b
.
iSplit
;
[
done
|
]
.
destruct
b
;
[
iRewrite
"HP1"
;
iFrame
"H Hp1"
|
iRewrite
"HP2"
;
iFrame
"H Hp2"
]
.
Qed
.
Lemma
iProto_dual_choice
a
P1
P2
p1
p2
:
iProto_dual
(
iProto_choice
a
P1
P2
p1
p2
)
≡
iProto_choice
(
action_dual
a
)
P1
P2
(
iProto_dual
p1
)
(
iProto_dual
p2
)
.
Loading