src/ZF/sum.thy
author nipkow
Sun, 05 Jan 2003 21:03:14 +0100
changeset 13771 6cd59cc885a1
parent 124 858ab9a9b047
permissions -rw-r--r--
*** empty log message ***
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
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    17
rules
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