src/HOL/Probability/PMF_Impl.thy
changeset 63793 e68a0b651eb5
parent 63539 70d4d9e5707b
child 63882 018998c00003
--- a/src/HOL/Probability/PMF_Impl.thy	Mon Sep 05 15:00:37 2016 +0200
+++ b/src/HOL/Probability/PMF_Impl.thy	Mon Sep 05 15:47:50 2016 +0200
@@ -527,6 +527,8 @@
 instance by standard (simp add: equal_pmf_def)
 end
 
+definition single :: "'a \<Rightarrow> 'a multiset" where
+"single s = {#s#}"
 
 definition (in term_syntax)
   pmfify :: "('a::typerep multiset \<times> (unit \<Rightarrow> Code_Evaluation.term)) \<Rightarrow>