Skip to content

Commit f8c3ff1

Browse files
committed
Fixed normal_rv_def
1 parent e994112 commit f8c3ff1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

examples/probability/distributionScript.sml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,14 +212,15 @@ QED
212212

213213
Overload ext_normal_density = “\mu sig. Normal o normal_density mu sig o real”
214214

215-
Definition normal_measure :
215+
Definition normal_measure_def :
216216
normal_measure mu sig s =
217217
pos_fn_integral ext_lborel (\x. ext_normal_density mu sig x * indicator_fn s x)
218218
End
219219

220-
Definition normal_rv :
220+
Definition normal_rv_def :
221221
normal_rv X p mu sig <=> real_random_variable X p /\
222-
distribution p X = normal_measure mu sig
222+
!s. s IN subsets Borel ==>
223+
distribution p X s = normal_measure mu sig s
223224
End
224225

225226
val _ = export_theory ();

0 commit comments

Comments
 (0)