src/ZF/ex/ListN.thy
author wenzelm
Fri, 10 Oct 1997 18:37:49 +0200
changeset 3841 22bbc1676768
parent 3840 e0baea4d485a
child 11316 b4e71bd751e4
permissions -rw-r--r--
fixed fixed dots;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1478
2b8c2a7547ab expanded tabs
clasohm
parents: 1401
diff changeset
     1
(*  Title:      ZF/ex/ListN
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
Inductive definition of lists of n elements
abcc438e7c27 installation of new inductive/datatype sections
lcp
parents:
diff changeset
     7
abcc438e7c27 installation of new inductive/datatype sections
lcp
parents:
diff changeset
     8
See Ch. Paulin-Mohring, Inductive Definitions in the System Coq.
abcc438e7c27 installation of new inductive/datatype sections
lcp
parents:
diff changeset
     9
Research Report 92-49, LIP, ENS Lyon.  Dec 1992.
abcc438e7c27 installation of new inductive/datatype sections
lcp
parents:
diff changeset
    10
*)
abcc438e7c27 installation of new inductive/datatype sections
lcp
parents:
diff changeset
    11
abcc438e7c27 installation of new inductive/datatype sections
lcp
parents:
diff changeset
    12
ListN = List +
1478
2b8c2a7547ab expanded tabs
clasohm
parents: 1401
diff changeset
    13
consts  listn ::i=>i
515
abcc438e7c27 installation of new inductive/datatype sections
lcp
parents:
diff changeset
    14
inductive
abcc438e7c27 installation of new inductive/datatype sections
lcp
parents:
diff changeset
    15
  domains   "listn(A)" <= "nat*list(A)"
abcc438e7c27 installation of new inductive/datatype sections
lcp
parents:
diff changeset
    16
  intrs
abcc438e7c27 installation of new inductive/datatype sections
lcp
parents:
diff changeset
    17
    NilI  "<0,Nil> : listn(A)"
abcc438e7c27 installation of new inductive/datatype sections
lcp
parents:
diff changeset
    18
    ConsI "[| a: A;  <n,l> : listn(A) |] ==> <succ(n), Cons(a,l)> : listn(A)"
3841
22bbc1676768 fixed fixed dots;
wenzelm
parents: 3840
diff changeset
    19
  type_intrs "nat_typechecks @ list.intrs"
515
abcc438e7c27 installation of new inductive/datatype sections
lcp
parents:
diff changeset
    20
end