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
d4b1567a
Commit
d4b1567a
authored
11 months ago
by
Jonas Kastberg
Browse files
Options
Downloads
Patches
Plain Diff
Added adequacy proof for ring leader election
parent
2177ce6f
No related branches found
No related tags found
1 merge request
!39
Multiparty synchronous
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
multi_actris/examples/leader_election.v
+10
-1
10 additions, 1 deletion
multi_actris/examples/leader_election.v
with
10 additions
and
1 deletion
multi_actris/examples/leader_election.v
+
10
−
1
View file @
d4b1567a
From
multi_actris
.
channel
Require
Import
proofmode
.
From
iris
.
heap_lang
Require
Import
adequacy
.
From
iris
.
heap_lang
.
lib
Require
Import
assert
.
From
iris
.
heap_lang
.
lib
Require
Import
assert
.
From
multi_actris
.
channel
Require
Import
proofmode
.
(** Inspired by https://en.wikipedia.org/wiki/Chang_and_Roberts_algorithm *)
(** Inspired by https://en.wikipedia.org/wiki/Chang_and_Roberts_algorithm *)
...
@@ -195,3 +196,11 @@ Section ring_leader_election_example.
...
@@ -195,3 +196,11 @@ Section ring_leader_election_example.
Qed
.
Qed
.
End
ring_leader_election_example
.
End
ring_leader_election_example
.
Lemma
program_spec_adequate
:
adequate
NotStuck
(
program
#
())
({|
heap
:=
∅
;
used_proph_id
:=
∅|
})
(
λ
_
_,
True
)
.
Proof
.
apply
(
heap_adequacy
#
[
heapΣ
;
chanΣ
])
.
iIntros
(
Σ
)
"H"
.
by
iApply
program_spec
.
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