vault backup: 2023-10-23 20:08:40
This commit is contained in:
parent
64958b9fd5
commit
7cd1ca9a1f
1 changed files with 11 additions and 2 deletions
|
@ -45,6 +45,13 @@ pred Invs {
|
||||||
//no node links to nodes associated with a different hash
|
//no node links to nodes associated with a different hash
|
||||||
all x, y: Node | x.key.hash != y.key.hash implies (x.prox != y and y.prox != x)
|
all x, y: Node | x.key.hash != y.key.hash implies (x.prox != y and y.prox != x)
|
||||||
|
|
||||||
|
//a node with the same hash as two others in the same hash cannot be prox of them two
|
||||||
|
all x, y, z:Node, w : Key | (x.key = w and y.key = w and z.key = w and x.prox = z) implies y.prox!=z
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//MAY BE WORNG STUFF
|
//MAY BE WORNG STUFF
|
||||||
|
@ -54,9 +61,11 @@ pred Invs {
|
||||||
//the prox node of another node may be empty
|
//the prox node of another node may be empty
|
||||||
all x: Node, y : Node | x.prox = y or not x.prox = y
|
all x: Node, y : Node | x.prox = y or not x.prox = y
|
||||||
|
|
||||||
|
//the sequence of nodes associated with the same hash should not loop
|
||||||
//all x : Node | x.prox.key != x.key
|
//all x : Node | x.prox.key != x.key
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//WORNG STUFF
|
//WORNG STUFF
|
||||||
//buckets may only have one head exclusive to it
|
//buckets may only have one head exclusive to it
|
||||||
all x, y : Bucket| all z : Node | x.head = z implies y.head != z
|
all x, y : Bucket| all z : Node | x.head = z implies y.head != z
|
||||||
|
|
Loading…
Reference in a new issue