Cache.hit_counts: def of bend-collections-laws-math@1.0.0.0 Import: import bend-collections-laws-math@1.0.0.0/proofs/lib/lemmas/src/cache.bend as Cache Lines 149-157 of bend-collections-laws-math@1.0.0.0/proofs/lib/lemmas/src/cache.bend: https://jend.leeeet.dev/read.txt?path=bend-collections-laws-math@1.0.0.0/proofs/lib/lemmas/src/cache.bend&start_line=149&end_line=157 import Base import bend-collections-laws-math@1.0.0.0/proofs/lib/lemmas/types/model.bend as T def hit_counts(m: T.Metrics, +tracked: Bool, hit: Bool) -> T.Metrics: T.Counts{i, e, r, h, s} = m match tracked hit: case False{} unused: T.Counts{i, e, r, h, s} case True{} True{}: T.Counts{i, e, r, Word.inc(64n, h), s} case True{} False{}: T.Counts{i, e, r, h, Word.inc(64n, s)} Uses (3): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Word.inc https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-math@1.0.0.0/proofs/lib/lemmas/types/model.bend&name=Metrics