Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions fv/specs/EnumerableMap.spec
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ invariant indexedContained(uint256 index)

/*
┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Invariant: A value can only be stored at a single location │
│ Invariant: A key can only be stored at a single location
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
*/
invariant atUniqueness(uint256 index1, uint256 index2)
Expand All @@ -72,9 +72,9 @@ invariant atUniqueness(uint256 index1, uint256 index2)

/*
┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Invariant: index <> value relationship is consistent │
│ Invariant: index <> key relationship is consistent
│ │
│ Note that the two consistencyXxx invariants, put together, prove that at_ and _positionOf are inverse of one
│ Note that the two consistencyXxx invariants, put together, prove that key_at and _positionOf are inverse of one │
│ another. This proves that we have a bijection between indices (the enumerability part) and keys (the entries that │
│ are set and removed from the EnumerableMap). │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
Expand Down
Loading