src/ZF/ex/Rmap.thy
author lcp
Tue, 25 Apr 1995 11:14:03 +0200
changeset 1072 0140ff702b23
parent 515 abcc438e7c27
child 1155 928a16e02f9f
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/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
abcc438e7c27 installation of new inductive/datatype sections
lcp
parents:
diff changeset
    19
    ConsI "[| <x,y>: r;  <xs,ys> : rmap(r) |] ==> \
abcc438e7c27 installation of new inductive/datatype sections
lcp
parents:
diff changeset
    20
\          <Cons(x,xs), Cons(y,ys)> : rmap(r)"
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