proposition: Lemma unzip2_seq_to_chseq {T} (s: seq T): unzip2 (seq_to_chseq s) = s.
proof: Proof. rewrite mkfmapK ?unzip2_zip ?unzip1_zip ?size_iota //. rewrite (@eq_sorted _ _ ltn). 1: by apply: iota_ltn_sorted. move=> a b. by rewrite /Ord.lt /= ltn_neqAle Bool.andb_comm. Qed.
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)