fact: Definition poly_bij (U: seq Party) (m m': Word) (q: {poly Word}): {poly Word} := let sh := make_shares m q U in let g := lagrange_poly ((0%R, m ) :: sh) in let g' := lagrange_poly ((0%R, m') :: sh) in let q' := (q + tail_poly (g' - g))%R in q'.
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)