src/ZF/ex/ListN.thy
author lcp
Tue, 25 Apr 1995 11:14:03 +0200
changeset 1072 0140ff702b23
parent 515 abcc438e7c27
child 1401 0c439768f45c
permissions -rw-r--r--
updated version
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
515
abcc438e7c27 installation of new inductive/datatype sections
lcp
parents:
diff changeset
     1
(*  Title: 	ZF/ex/ListN
abcc438e7c27 installation of new inductive/datatype sections
lcp
parents:
diff changeset
     2
    ID:         $Id$
abcc438e7c27 installation of new inductive/datatype sections
lcp
parents:
diff changeset
     3
    Author: 	Lawrence C Paulson, Cambridge University Computer Laboratory
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 +
abcc438e7c27 installation of new inductive/datatype sections
lcp
parents:
diff changeset
    13
consts	listn ::"i=>i"
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)"
abcc438e7c27 installation of new inductive/datatype sections
lcp
parents:
diff changeset
    19
  type_intrs "nat_typechecks @ list.intrs"
abcc438e7c27 installation of new inductive/datatype sections
lcp
parents:
diff changeset
    20
end