src/ZF/ex/Rmap.thy
author clasohm
Thu, 22 Jun 1995 17:13:05 +0200
changeset 1155 928a16e02f9f
parent 515 abcc438e7c27
child 1401 0c439768f45c
permissions -rw-r--r--
removed \...\ inside strings
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/Rmap
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 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
abcc438e7c27 installation of new inductive/datatype sections
lcp
parents:
diff changeset
    12
  rmap :: "i=>i"
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
abcc438e7c27 installation of new inductive/datatype sections
lcp
parents:
diff changeset
    22
  type_intrs "[domainI,rangeI] @ list.intrs"
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