src/ZF/ex/ListN.thy
author clasohm
Sat, 09 Dec 1995 13:36:11 +0100
changeset 1401 0c439768f45c
parent 515 abcc438e7c27
child 1478 2b8c2a7547ab
permissions -rw-r--r--
removed quotes from consts and syntax sections
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 +
1401
0c439768f45c removed quotes from consts and syntax sections
clasohm
parents: 515
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)"
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