pub type KVFormat<Key, Value, Fmt> = (FnSpec<(Key,), Fmt>, FnSpec<(Value,), Key>);Expand description
Dependent family encoded by a pair of pure spec closures (apply, recover).
Trait Implementations§
Source§impl<Key, Val, Body> DepCombinator for KVFormat<Key, Val, Body>where
Body: Consistency<Val = Val>,
impl<Key, Val, Body> DepCombinator for KVFormat<Key, Val, Body>where
Body: Consistency<Val = Val>,
Source§open spec fn recover_inv(&self) -> bool
open spec fn recover_inv(&self) -> bool
{
forall |key: Key, value: Val| {
#[trigger] (self.0)(key).consistent(value) ==> (self.1)(value) == key
}
}