# HG changeset patch # User wenzelm # Date 1320434202 -3600 # Node ID 5c760e1692b34eb3cf6851ff164c0489d8bd62ac # Parent a945f12abc49a38ae3aa4a4539db828af590a5c6 proper syntactic category for abstraction syntax, to avoid low-level exception for malformed "\ x y. f \M", for example; diff -r a945f12abc49 -r 5c760e1692b3 src/HOL/Probability/Lebesgue_Integration.thy --- a/src/HOL/Probability/Lebesgue_Integration.thy Fri Nov 04 17:34:51 2011 +0100 +++ b/src/HOL/Probability/Lebesgue_Integration.thy Fri Nov 04 20:16:42 2011 +0100 @@ -527,7 +527,7 @@ "integral\<^isup>S M f = (\x \ f ` space M. x * measure M (f -` {x} \ space M))" syntax - "_simple_integral" :: "'a \ ('a \ ereal) \ ('a, 'b) measure_space_scheme \ ereal" ("\\<^isup>S _. _ \_" [60,61] 110) + "_simple_integral" :: "pttrn \ ereal \ ('a, 'b) measure_space_scheme \ ereal" ("\\<^isup>S _. _ \_" [60,61] 110) translations "\\<^isup>S x. f \M" == "CONST integral\<^isup>S M (%x. f)" @@ -872,7 +872,7 @@ "integral\<^isup>P M f = (SUP g : {g. simple_function M g \ g \ max 0 \ f}. integral\<^isup>S M g)" syntax - "_positive_integral" :: "'a \ ('a \ ereal) \ ('a, 'b) measure_space_scheme \ ereal" ("\\<^isup>+ _. _ \_" [60,61] 110) + "_positive_integral" :: "pttrn \ ereal \ ('a, 'b) measure_space_scheme \ ereal" ("\\<^isup>+ _. _ \_" [60,61] 110) translations "\\<^isup>+ x. f \M" == "CONST integral\<^isup>P M (%x. f)" @@ -1686,7 +1686,7 @@ "integral\<^isup>L M f = real ((\\<^isup>+ x. ereal (f x) \M)) - real ((\\<^isup>+ x. ereal (- f x) \M))" syntax - "_lebesgue_integral" :: "'a \ ('a \ real) \ ('a, 'b) measure_space_scheme \ real" ("\ _. _ \_" [60,61] 110) + "_lebesgue_integral" :: "pttrn \ real \ ('a, 'b) measure_space_scheme \ real" ("\ _. _ \_" [60,61] 110) translations "\ x. f \M" == "CONST integral\<^isup>L M (%x. f)" diff -r a945f12abc49 -r 5c760e1692b3 src/HOL/Probability/Measure.thy --- a/src/HOL/Probability/Measure.thy Fri Nov 04 17:34:51 2011 +0100 +++ b/src/HOL/Probability/Measure.thy Fri Nov 04 20:16:42 2011 +0100 @@ -652,7 +652,7 @@ "almost_everywhere P \ (\N\null_sets. { x \ space M. \ P x } \ N)" syntax - "_almost_everywhere" :: "'a \ ('a, 'b) measure_space_scheme \ ('a \ bool) \ bool" ("AE _ in _. _" [0,0,10] 10) + "_almost_everywhere" :: "pttrn \ ('a, 'b) measure_space_scheme \ bool \ bool" ("AE _ in _. _" [0,0,10] 10) translations "AE x in M. P" == "CONST measure_space.almost_everywhere M (%x. P)"