src/HOL/RelPow.thy
author wenzelm
Thu, 16 Mar 2000 00:35:27 +0100
changeset 8490 6e0f23304061
parent 5780 0187f936685a
child 8844 db71c334e854
permissions -rw-r--r--
added HOL/PreLIst.thy;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1496
c443b2adaf52 Added a few thms and the new theory RelPow.
nipkow
parents:
diff changeset
     1
(*  Title:      HOL/RelPow.thy
c443b2adaf52 Added a few thms and the new theory RelPow.
nipkow
parents:
diff changeset
     2
    ID:         $Id$
c443b2adaf52 Added a few thms and the new theory RelPow.
nipkow
parents:
diff changeset
     3
    Author:     Tobias Nipkow
c443b2adaf52 Added a few thms and the new theory RelPow.
nipkow
parents:
diff changeset
     4
    Copyright   1996  TU Muenchen
c443b2adaf52 Added a few thms and the new theory RelPow.
nipkow
parents:
diff changeset
     5
c443b2adaf52 Added a few thms and the new theory RelPow.
nipkow
parents:
diff changeset
     6
R^n = R O ... O R, the n-fold composition of R
c443b2adaf52 Added a few thms and the new theory RelPow.
nipkow
parents:
diff changeset
     7
*)
c443b2adaf52 Added a few thms and the new theory RelPow.
nipkow
parents:
diff changeset
     8
c443b2adaf52 Added a few thms and the new theory RelPow.
nipkow
parents:
diff changeset
     9
RelPow = Nat +
c443b2adaf52 Added a few thms and the new theory RelPow.
nipkow
parents:
diff changeset
    10
5780
0187f936685a Moved "instance set:...{power} from Set.thy to RelPow.thy, where is is needed
paulson
parents: 5608
diff changeset
    11
instance
0187f936685a Moved "instance set:...{power} from Set.thy to RelPow.thy, where is is needed
paulson
parents: 5608
diff changeset
    12
  set :: (term) {power}   (* only ('a * 'a) set should be in power! *)
0187f936685a Moved "instance set:...{power} from Set.thy to RelPow.thy, where is is needed
paulson
parents: 5608
diff changeset
    13
5183
89f162de39cf Adapted to new datatype package.
berghofe
parents: 3370
diff changeset
    14
primrec
5608
a82a038a3e7a id <-> Id
nipkow
parents: 5183
diff changeset
    15
  "R^0 = Id"
2740
2c549ae2563b primrec definition for ^
pusch
parents: 1824
diff changeset
    16
  "R^(Suc n) = R O (R^n)"
2c549ae2563b primrec definition for ^
pusch
parents: 1824
diff changeset
    17
1496
c443b2adaf52 Added a few thms and the new theory RelPow.
nipkow
parents:
diff changeset
    18
end