vault backup: 2023-10-23 19:48:40

This commit is contained in:
Alice 2023-10-23 19:48:40 +01:00
parent 95e73aa572
commit 82e9d5f048

View file

@ -45,13 +45,15 @@ 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)
//MAY BE WORNG STUFF
//the head of a bucket may be empty //the head of a bucket may be empty
all x: Bucket, y : Node | x.head = y or not x.head = y all x: Bucket, y : Node | x.head = y or not x.head = y
//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
//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