src/ZF/ex/Data.thy
author wenzelm
Sat, 20 Oct 2001 20:20:41 +0200
changeset 11852 a528a716a312
parent 11354 9b80fe19407f
permissions -rw-r--r--
added TextIO.stdErr;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1478
2b8c2a7547ab expanded tabs
clasohm
parents: 1401
diff changeset
     1
(*  Title:      ZF/ex/Data.thy
515
abcc438e7c27 installation of new inductive/datatype sections
lcp
parents:
diff changeset
     2
    ID:         $Id$
1478
2b8c2a7547ab expanded tabs
clasohm
parents: 1401
diff changeset
     3
    Author:     Lawrence C Paulson, Cambridge University Computer Laboratory
515
abcc438e7c27 installation of new inductive/datatype sections
lcp
parents:
diff changeset
     4
    Copyright   1994  University of Cambridge
abcc438e7c27 installation of new inductive/datatype sections
lcp
parents:
diff changeset
     5
abcc438e7c27 installation of new inductive/datatype sections
lcp
parents:
diff changeset
     6
Sample datatype definition.  
abcc438e7c27 installation of new inductive/datatype sections
lcp
parents:
diff changeset
     7
It has four contructors, of arities 0-3, and two parameters A and B.
abcc438e7c27 installation of new inductive/datatype sections
lcp
parents:
diff changeset
     8
*)
abcc438e7c27 installation of new inductive/datatype sections
lcp
parents:
diff changeset
     9
11354
9b80fe19407f examples files start from Main instead of various ZF theories
paulson
parents: 11316
diff changeset
    10
Data = Main +
515
abcc438e7c27 installation of new inductive/datatype sections
lcp
parents:
diff changeset
    11
abcc438e7c27 installation of new inductive/datatype sections
lcp
parents:
diff changeset
    12
consts
1401
0c439768f45c removed quotes from consts and syntax sections
clasohm
parents: 935
diff changeset
    13
  data :: [i,i] => i
515
abcc438e7c27 installation of new inductive/datatype sections
lcp
parents:
diff changeset
    14
abcc438e7c27 installation of new inductive/datatype sections
lcp
parents:
diff changeset
    15
datatype
abcc438e7c27 installation of new inductive/datatype sections
lcp
parents:
diff changeset
    16
  "data(A,B)" = Con0
11316
b4e71bd751e4 X-symbols for set theory
paulson
parents: 1478
diff changeset
    17
              | Con1 ("a \\<in> A")
b4e71bd751e4 X-symbols for set theory
paulson
parents: 1478
diff changeset
    18
              | Con2 ("a \\<in> A", "b \\<in> B")
b4e71bd751e4 X-symbols for set theory
paulson
parents: 1478
diff changeset
    19
              | Con3 ("a \\<in> A", "b \\<in> B", "d \\<in> data(A,B)")
515
abcc438e7c27 installation of new inductive/datatype sections
lcp
parents:
diff changeset
    20
abcc438e7c27 installation of new inductive/datatype sections
lcp
parents:
diff changeset
    21
end