def events
import bend-collections-laws-crypto@1.0.0.0/proofs/lib/lemmas/src/cache.bend as Cacheimport Base
import bend-collections-laws-crypto@1.0.0.0/proofs/lib/lemmas/types/model.bend as T
62def events(-K: Data, -V: Data, cb: Bool, e: T.Entry<K, V>) -> List<&2, T.LruEvent<K, V>>:
63 match cb:
64 case False{}:
65 Nil{}
66 case True{}:
67 T.Item{k, v, d} = e
68 Con{T.Evicted{k, v}, Nil{}}