equal
deleted
inserted
replaced
193 |
193 |
194 lemma (in prob_space) distribution_prob_space: |
194 lemma (in prob_space) distribution_prob_space: |
195 assumes "random_variable S X" |
195 assumes "random_variable S X" |
196 shows "prob_space S (distribution X)" |
196 shows "prob_space S (distribution X)" |
197 proof - |
197 proof - |
198 interpret S: measure_space S "distribution X" |
198 interpret S: measure_space S "distribution X" unfolding distribution_def |
199 using measure_space_vimage[of X S] assms unfolding distribution_def by simp |
199 using assms by (intro measure_space_vimage) auto |
200 show ?thesis |
200 show ?thesis |
201 proof |
201 proof |
202 have "X -` space S \<inter> space M = space M" |
202 have "X -` space S \<inter> space M = space M" |
203 using `random_variable S X` by (auto simp: measurable_def) |
203 using `random_variable S X` by (auto simp: measurable_def) |
204 then show "distribution X (space S) = 1" |
204 then show "distribution X (space S) = 1" |