Skip to content

Commit

Permalink
Update source/pervasive/map.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Jay Bosamiya <[email protected]>
  • Loading branch information
elaustell and jaybosamiya authored Jul 27, 2023
1 parent 92ed84a commit d7ceec6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/pervasive/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ impl<K, V> Map<K, V> {
impl Map<int,int> {

/// Returns `true` if a map is monotonic -- that is, if the mapping between ordered sets
/// preserves the given order
/// preserves the regular `<=` ordering on integers.
pub open spec fn monotonic(self) -> bool {
forall |x: int, y: int| self.dom().contains(x) && self.dom().contains(y) && x <= y
==> #[trigger] self[x] <= #[trigger] self[y]
Expand Down

0 comments on commit d7ceec6

Please sign in to comment.