Skip to content

JakeGinesin/raft-swarm-verification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Raft, formally verified using spin.

While Raft has been formally verified with both model checkers and theorem provers before, I wanted to have a clean and configurable model for research.

Setup

Requirements:

  • spin 6.5.2
  • unix-based os (sorry windows users)

To verify the model against the defined properties (stored in props), run:

sh runner.sh

And, the results will be placed into out. In case you don't want to do this, the output for running the verification with 3 nodes was placed in out-samp

A note about the properties

The properties were derived directly from the original Raft paper.

The properties are not defined to reason about all nodes - rather, they're defined over a subset of the nodes. This doesn't affect the completeness of the properties though. All the nodes are symmetric, and because the model checker explores all possible states, a violating trace on one subset of nodes is replicable across all other subsets of nodes of equal size.

Todo

  • get the model running with spins and swarm instead of just running it raw
  • full log completions
  • all props from paper
  • canonical election sequence

References

About

Promela Raft model used for swarm verification

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published