definition bind_spmf :: "'a spmf \ ('a \ 'b spmf) \ 'b spmf" where"bind_spmf x f = undefined x (\a. case a of None \ return_pmf None | Some a' \ f a')"
friend_of_corec bind_gpv' where"bind_gpv' r f =
GPV' (map_spmf (map_generat id id ((\) (case_sum id (\r. bind_gpv' r f))))
(bind_spmf (the_gpv r)
(case_generat (\<lambda>x. map_spmf (map_generat id id ((\<circ>) Inl)) (the_gpv' (f x)))
(\<lambda>out c. return_spmf (IO out (\<lambda>input. Inr (c input)))))))" sorry
end
¤ Dauer der Verarbeitung: 0.22 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.