fact: Definition SHARE_pkg_tt: package fset0 [interface] [interface #val #[shares]: ('word × 'word) × 'set 'party → 'seq 'share ] := [package #def #[shares] ('(ml, mr, U): ('word × 'word) × 'set 'party): 'seq 'share { if size (domm U) >= t then ret emptym else q <$ uniform (p^t') ;; let q := nat_to_poly t' q in let sh := make_shares ml q (domm U) in ret (fmap_of_seq sh) } ].
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)