src/ZF/ex/Rmap.thy
author wenzelm
Fri, 10 Oct 1997 18:23:31 +0200
changeset 3840 e0baea4d485a
parent 1478 2b8c2a7547ab
child 3841 22bbc1676768
permissions -rw-r--r--
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/Rmap
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 an operator to "map" a relation over a list
abcc438e7c27 installation of new inductive/datatype sections
lcp
parents:
diff changeset
     7
*)
abcc438e7c27 installation of new inductive/datatype sections
lcp
parents:
diff changeset
     8
abcc438e7c27 installation of new inductive/datatype sections
lcp
parents:
diff changeset
     9
Rmap = List +
abcc438e7c27 installation of new inductive/datatype sections
lcp
parents:
diff changeset
    10
abcc438e7c27 installation of new inductive/datatype sections
lcp
parents:
diff changeset
    11
consts
1401
0c439768f45c removed quotes from consts and syntax sections
clasohm
parents: 1155
diff changeset
    12
  rmap :: i=>i
515
abcc438e7c27 installation of new inductive/datatype sections
lcp
parents:
diff changeset
    13
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 "rmap(r)" <= "list(domain(r))*list(range(r))"
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  "<Nil,Nil> : rmap(r)"
abcc438e7c27 installation of new inductive/datatype sections
lcp
parents:
diff changeset
    18
1155
928a16e02f9f removed \...\ inside strings
clasohm
parents: 515
diff changeset
    19
    ConsI "[| <x,y>: r;  <xs,ys> : rmap(r) |] ==> 
928a16e02f9f removed \...\ inside strings
clasohm
parents: 515
diff changeset
    20
          <Cons(x,xs), Cons(y,ys)> : rmap(r)"
515
abcc438e7c27 installation of new inductive/datatype sections
lcp
parents:
diff changeset
    21
3840
e0baea4d485a fixed dots;
wenzelm
parents: 1478
diff changeset
    22
  type_intrs "[domainI,rangeI] @ list. intrs"
515
abcc438e7c27 installation of new inductive/datatype sections
lcp
parents:
diff changeset
    23
abcc438e7c27 installation of new inductive/datatype sections
lcp
parents:
diff changeset
    24
end
abcc438e7c27 installation of new inductive/datatype sections
lcp
parents:
diff changeset
    25