src/HOL/Sum.thy
changeset 3947 eb707467f8c5
parent 3842 b55686a7b22c
child 7254 fc7f95f293da
     1.1 --- a/src/HOL/Sum.thy	Mon Oct 20 11:22:29 1997 +0200
     1.2 +++ b/src/HOL/Sum.thy	Mon Oct 20 11:25:39 1997 +0200
     1.3 @@ -17,6 +17,8 @@
     1.4    Inr_Rep       :: ['b, 'a, 'b, bool] => bool
     1.5    "Inr_Rep == (%b. %x y p. y=b & ~p)"
     1.6  
     1.7 +global
     1.8 +
     1.9  typedef (Sum)
    1.10    ('a, 'b) "+"          (infixr 10)
    1.11      = "{f. (? a. f = Inl_Rep(a::'a)) | (? b. f = Inr_Rep(b::'b))}"
    1.12 @@ -36,6 +38,8 @@
    1.13  translations
    1.14    "case p of Inl x => a | Inr y => b" == "sum_case (%x. a) (%y. b) p"
    1.15  
    1.16 +local
    1.17 +
    1.18  defs
    1.19    Inl_def       "Inl == (%a. Abs_Sum(Inl_Rep(a)))"
    1.20    Inr_def       "Inr == (%b. Abs_Sum(Inr_Rep(b)))"