src/ZF/Sum.thy
author lcp
Tue, 29 Nov 1994 00:31:31 +0100
changeset 753 ec86863e87c8
parent 124 858ab9a9b047
child 1108 22b256c8c9fb
permissions -rw-r--r--
replaced "rules" by "defs"
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     1
(*  Title: 	ZF/sum.thy
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     2
    ID:         $Id$
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     3
    Author: 	Lawrence C Paulson, Cambridge University Computer Laboratory
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     4
    Copyright   1993  University of Cambridge
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     5
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     6
Disjoint sums in Zermelo-Fraenkel Set Theory 
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     7
"Part" primitive for simultaneous recursive type definitions
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     8
*)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     9
124
858ab9a9b047 made pseudo theories for all ML files;
clasohm
parents: 0
diff changeset
    10
Sum = Bool + "simpdata" +
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    11
consts
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    12
    "+"    	:: "[i,i]=>i"      		(infixr 65)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    13
    Inl,Inr     :: "i=>i"
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    14
    case        :: "[i=>i, i=>i, i]=>i"
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    15
    Part        :: "[i,i=>i] => i"
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    16
753
ec86863e87c8 replaced "rules" by "defs"
lcp
parents: 124
diff changeset
    17
defs
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    18
    sum_def     "A+B == {0}*A Un {1}*B"
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    19
    Inl_def     "Inl(a) == <0,a>"
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    20
    Inr_def     "Inr(b) == <1,b>"
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    21
    case_def    "case(c,d) == split(%y z. cond(y, d(z), c(z)))"
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    22
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    23
  (*operator for selecting out the various summands*)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    24
    Part_def	"Part(A,h) == {x: A. EX z. x = h(z)}"
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    25
end