Skip to content

Commit

Permalink
Fix FMap::view injectivity
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudgolfouse committed Nov 30, 2024
1 parent a3fdb0c commit 19018b2
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions creusot-contracts/src/logic/fmap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,12 @@ impl<K, V: ?Sized> FMap<K, V> {
dead
}

/// Injectivity lemma for [`Self::view`].
#[trusted]
#[logic]
#[ensures(forall<m1: Self, m2: Self> m1 != m2 ==> Self::view(m1) != Self::view(m2))]
pub fn view_injective() {
dead
}

/// View of the map
///
/// This represents the actual content of the map: other methods are specified relative to this.
#[trusted]
#[logic]
#[ensures(forall<m1: Self, m2: Self> m1 != m2 ==> Self::view(m1) != Self::view(m2))]
pub fn view(self) -> PMap<K, V> {
dead
}
Expand Down

0 comments on commit 19018b2

Please sign in to comment.