src/ZF/Induct/Rmap.thy
author wenzelm
Thu, 15 Nov 2001 18:20:13 +0100
changeset 12207 4dff931b852f
parent 12088 6f463d16cbd0
child 12560 5820841f21fd
permissions -rw-r--r--
added Induct/Binary_Trees.thy, Induct/Tree_Forest (converted from former ex/TF.ML ex/TF.thy ex/Term.ML ex/Term.thy);
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12088
6f463d16cbd0 reorganization of the ZF examples
paulson
parents:
diff changeset
     1
(*  Title:      ZF/ex/Rmap
6f463d16cbd0 reorganization of the ZF examples
paulson
parents:
diff changeset
     2
    ID:         $Id$
6f463d16cbd0 reorganization of the ZF examples
paulson
parents:
diff changeset
     3
    Author:     Lawrence C Paulson, Cambridge University Computer Laboratory
6f463d16cbd0 reorganization of the ZF examples
paulson
parents:
diff changeset
     4
    Copyright   1994  University of Cambridge
6f463d16cbd0 reorganization of the ZF examples
paulson
parents:
diff changeset
     5
6f463d16cbd0 reorganization of the ZF examples
paulson
parents:
diff changeset
     6
Inductive definition of an operator to "map" a relation over a list
6f463d16cbd0 reorganization of the ZF examples
paulson
parents:
diff changeset
     7
*)
6f463d16cbd0 reorganization of the ZF examples
paulson
parents:
diff changeset
     8
6f463d16cbd0 reorganization of the ZF examples
paulson
parents:
diff changeset
     9
Rmap = Main +
6f463d16cbd0 reorganization of the ZF examples
paulson
parents:
diff changeset
    10
6f463d16cbd0 reorganization of the ZF examples
paulson
parents:
diff changeset
    11
consts
6f463d16cbd0 reorganization of the ZF examples
paulson
parents:
diff changeset
    12
  rmap :: i=>i
6f463d16cbd0 reorganization of the ZF examples
paulson
parents:
diff changeset
    13
6f463d16cbd0 reorganization of the ZF examples
paulson
parents:
diff changeset
    14
inductive
6f463d16cbd0 reorganization of the ZF examples
paulson
parents:
diff changeset
    15
  domains "rmap(r)" <= "list(domain(r))*list(range(r))"
6f463d16cbd0 reorganization of the ZF examples
paulson
parents:
diff changeset
    16
  intrs
6f463d16cbd0 reorganization of the ZF examples
paulson
parents:
diff changeset
    17
    NilI  "<Nil,Nil> \\<in> rmap(r)"
6f463d16cbd0 reorganization of the ZF examples
paulson
parents:
diff changeset
    18
6f463d16cbd0 reorganization of the ZF examples
paulson
parents:
diff changeset
    19
    ConsI "[| <x,y>: r;  <xs,ys> \\<in> rmap(r) |] ==> 
6f463d16cbd0 reorganization of the ZF examples
paulson
parents:
diff changeset
    20
          <Cons(x,xs), Cons(y,ys)> \\<in> rmap(r)"
6f463d16cbd0 reorganization of the ZF examples
paulson
parents:
diff changeset
    21
6f463d16cbd0 reorganization of the ZF examples
paulson
parents:
diff changeset
    22
  type_intrs "[domainI,rangeI] @ list.intrs"
6f463d16cbd0 reorganization of the ZF examples
paulson
parents:
diff changeset
    23
6f463d16cbd0 reorganization of the ZF examples
paulson
parents:
diff changeset
    24
end
6f463d16cbd0 reorganization of the ZF examples
paulson
parents:
diff changeset
    25