src/ZF/ex/Rmap.thy
author clasohm
Tue Feb 06 12:27:17 1996 +0100 (1996-02-06)
changeset 1478 2b8c2a7547ab
parent 1401 0c439768f45c
child 3840 e0baea4d485a
permissions -rw-r--r--
expanded tabs
clasohm@1478
     1
(*  Title:      ZF/ex/Rmap
lcp@515
     2
    ID:         $Id$
clasohm@1478
     3
    Author:     Lawrence C Paulson, Cambridge University Computer Laboratory
lcp@515
     4
    Copyright   1994  University of Cambridge
lcp@515
     5
lcp@515
     6
Inductive definition of an operator to "map" a relation over a list
lcp@515
     7
*)
lcp@515
     8
lcp@515
     9
Rmap = List +
lcp@515
    10
lcp@515
    11
consts
clasohm@1401
    12
  rmap :: i=>i
lcp@515
    13
lcp@515
    14
inductive
lcp@515
    15
  domains "rmap(r)" <= "list(domain(r))*list(range(r))"
lcp@515
    16
  intrs
lcp@515
    17
    NilI  "<Nil,Nil> : rmap(r)"
lcp@515
    18
clasohm@1155
    19
    ConsI "[| <x,y>: r;  <xs,ys> : rmap(r) |] ==> 
clasohm@1155
    20
          <Cons(x,xs), Cons(y,ys)> : rmap(r)"
lcp@515
    21
lcp@515
    22
  type_intrs "[domainI,rangeI] @ list.intrs"
lcp@515
    23
lcp@515
    24
end
lcp@515
    25