fact: Definition GUESS_pkg_tt: package GUESS_locs [interface] [interface #val #[lookup]: 'word → 'word ; #val #[guess]: 'word × 'word → 'bool ] := [package #def #[lookup] (m: 'word): 'word { T ← get T_loc ;; match getm T m with | None => t <$ uniform Word_N ;; #put T_loc := setm T m t ;; ret t | Some t => ret t end } ; #def #[guess] ('(m, t): 'word × 'word): 'bool { T ← get T_loc ;; r ← match getm T m with | None => r <$ uniform Word_N ;; #put T_loc := setm T m r ;; ret r | Some r => ret r end ;; ret (t == r) } ].
imports: Relational(OrderEnrichedCategory GenericRulesSimple) mathcomp(all_ssreflect all_algebra reals distr realsum ssrnat ssreflect ssrfun ssrbool ssrnum eqtype choice seq) Mon(SPropBase) Crypt(Axioms ChoiceAsOrd SubDistr Couplings UniformDistrLemmas FreeProbProg Theta_dens RulesStateProb pkg_core_definition choice_type pkg_composition pkg_rhl Package Prelude) extructures(ord fset fmap) Equations(Equations)