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
1
Merged
Jonas Kastberg
requested to merge
jonas/iProto_equiv
into
master
4 years ago
Overview
0
Commits
5
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Viewing commit
b4f1cb2c
Prev
Next
Show latest version
1 file
+
9
−
0
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
b4f1cb2c
Added an example of choice equivalence
· b4f1cb2c
Jonas Kastberg
authored
4 years ago
theories/examples/equivalence.v
+
9
−
0
Options
@@ -13,4 +13,13 @@ Section equivalence_examples.
@@ -13,4 +13,13 @@ Section equivalence_examples.
-
iIntros
"!>"
(
y
x
)
"_"
.
iExists
x
,
y
.
eauto
.
-
iIntros
"!>"
(
y
x
)
"_"
.
iExists
x
,
y
.
eauto
.
Qed
.
Qed
.
Lemma
choice_equivalence_example
(
P1
P2
Q1
Q2
:
iProp
Σ
)
(
S1
S2
:
iProto
Σ
)
:
(
S1
<
{
P1
∗
Q1
}
+
{
P2
∗
Q2
}
>
S2
)
%
proto
≡
(
S1
<
{
Q1
∗
P1
}
+
{
Q2
∗
P2
}
>
S2
)
%
proto
.
Proof
.
apply
(
uPred
.
internal_eq_soundness
(
M
:=
iResUR
Σ
))
.
iApply
iProto_choice_equiv
;
[
done
|
|
|
done
|
done
]
.
iApply
prop_ext
.
iSplit
;
iIntros
"!> [$ $]"
.
iApply
prop_ext
.
iSplit
;
iIntros
"!> [$ $]"
.
Qed
.
End
equivalence_examples
.
End
equivalence_examples
.
Loading