src/ZF/ex/Rmap.thy
author wenzelm
Fri, 10 Oct 1997 18:37:49 +0200
changeset 3841 22bbc1676768
parent 3840 e0baea4d485a
child 11316 b4e71bd751e4
permissions -rw-r--r--
fixed fixed dots;

(*  Title:      ZF/ex/Rmap
    ID:         $Id$
    Author:     Lawrence C Paulson, Cambridge University Computer Laboratory
    Copyright   1994  University of Cambridge

Inductive definition of an operator to "map" a relation over a list
*)

Rmap = List +

consts
  rmap :: i=>i

inductive
  domains "rmap(r)" <= "list(domain(r))*list(range(r))"
  intrs
    NilI  "<Nil,Nil> : rmap(r)"

    ConsI "[| <x,y>: r;  <xs,ys> : rmap(r) |] ==> 
          <Cons(x,xs), Cons(y,ys)> : rmap(r)"

  type_intrs "[domainI,rangeI] @ list.intrs"

end