src/ZF/Sum.thy
author paulson
Tue Jun 18 18:45:07 2002 +0200 (2002-06-18)
changeset 13220 62c899c77151
parent 5325 f7a5e06adea1
child 13240 bb5f4faea1f3
permissions -rw-r--r--
tidying
clasohm@1478
     1
(*  Title:      ZF/sum.thy
clasohm@0
     2
    ID:         $Id$
clasohm@1478
     3
    Author:     Lawrence C Paulson, Cambridge University Computer Laboratory
clasohm@0
     4
    Copyright   1993  University of Cambridge
clasohm@0
     5
clasohm@0
     6
Disjoint sums in Zermelo-Fraenkel Set Theory 
clasohm@0
     7
"Part" primitive for simultaneous recursive type definitions
clasohm@0
     8
*)
clasohm@0
     9
paulson@5325
    10
Sum = Bool + equalities + 
wenzelm@3923
    11
wenzelm@3923
    12
global
wenzelm@3923
    13
clasohm@0
    14
consts
paulson@13220
    15
    "+"     :: "[i,i]=>i"                     (infixr 65)
paulson@13220
    16
    Inl     :: "i=>i"
paulson@13220
    17
    Inr     :: "i=>i"
paulson@13220
    18
    "case"  :: "[i=>i, i=>i, i]=>i"
paulson@13220
    19
    Part    :: "[i,i=>i] => i"
clasohm@0
    20
wenzelm@3940
    21
local
wenzelm@3923
    22
lcp@753
    23
defs
clasohm@0
    24
    sum_def     "A+B == {0}*A Un {1}*B"
clasohm@0
    25
    Inl_def     "Inl(a) == <0,a>"
clasohm@0
    26
    Inr_def     "Inr(b) == <1,b>"
lcp@1108
    27
    case_def    "case(c,d) == (%<y,z>. cond(y, d(z), c(z)))"
clasohm@0
    28
clasohm@0
    29
  (*operator for selecting out the various summands*)
clasohm@1478
    30
    Part_def    "Part(A,h) == {x: A. EX z. x = h(z)}"
clasohm@0
    31
end