src/ZF/Sum.thy
author lcp
Thu, 25 Aug 1994 12:09:21 +0200
changeset 578 efc648d29dd0
parent 124 858ab9a9b047
child 753 ec86863e87c8
permissions -rw-r--r--
ZF/Inductive.thy,.ML: renamed from "inductive" to allow re-building without the keyword "inductive" making the theory file fail ZF/Makefile: now has Inductive.thy,.ML ZF/Datatype,Finite,Zorn: depend upon Inductive ZF/intr_elim: now checks that the inductive name does not clash with existing theory names ZF/ind_section: deleted things replicated in Pure/section_utils.ML ZF/ROOT: now loads Pure/section_utils
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