Documentation

FMMidgard.StateQueue.Properties

State Queue Properties #

The State Queue keeps a linked list. In this case, the key component of tokens are hashes of the data containing those nodes. This provides a strong guarantee that such keys are unique.

No collision analysis is made here. If keys are unique, then the data-structure defined in the spec is a list and no breaking is possible. These properties are verified/tested using Plausible (see Test/Lists.lean.)

Unique keys. This property does not come from the state machine but from the fact that keys are hashes of data structures. The collition rate/probability is very low (negligible?) since one of the component of the structure is the hash of the previous node in the list.

There is only one Confirmed State token #

We split this invariant into two:

  1. Root nodes have commited history headers
  2. There is only one root node

We prove 1. here and 2. comes from the Midgard Lists properties.

Equations
  • One or more equations did not get rendered due to their size.
Instances For

    If it is merged, then it is the first block.