src/HOL/Relation_Power.thy
changeset 10213 01c2744a3786
child 11305 2ce86fccc95b
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/HOL/Relation_Power.thy	Thu Oct 12 18:44:35 2000 +0200
     1.3 @@ -0,0 +1,18 @@
     1.4 +(*  Title:      HOL/Relation_Power.thy
     1.5 +    ID:         $Id$
     1.6 +    Author:     Tobias Nipkow
     1.7 +    Copyright   1996  TU Muenchen
     1.8 +
     1.9 +R^n = R O ... O R, the n-fold composition of R
    1.10 +*)
    1.11 +
    1.12 +Relation_Power = Nat +
    1.13 +
    1.14 +instance
    1.15 +  set :: (term) {power}   (* only ('a * 'a) set should be in power! *)
    1.16 +
    1.17 +primrec (relpow)
    1.18 +  "R^0 = Id"
    1.19 +  "R^(Suc n) = R O (R^n)"
    1.20 +
    1.21 +end