src/HOL/Trancl.thy
author clasohm
Mon, 05 Feb 1996 21:27:16 +0100
changeset 1475 7f5a4cd08209
parent 1301 42782316d510
child 1558 9c6ebfab4e05
permissions -rw-r--r--
expanded tabs; renamed subtype to typedef; incorporated Konrad's changes

(*  Title:      HOL/Trancl.thy
    ID:         $Id$
    Author:     Lawrence C Paulson, Cambridge University Computer Laboratory
    Copyright   1992  University of Cambridge

Relfexive and Transitive closure of a relation

rtrancl is refl&transitive closure;
trancl is transitive closure
reflcl is reflexive closure
*)

Trancl = Lfp + Relation + 
consts
    rtrancl :: "('a * 'a)set => ('a * 'a)set"   ("(_^*)" [100] 100)
    trancl  :: "('a * 'a)set => ('a * 'a)set"   ("(_^+)" [100] 100)  
syntax
    reflcl  :: "('a*'a)set => ('a*'a)set"       ("(_^=)" [100] 100)
defs   
  rtrancl_def   "r^*  ==  lfp(%s. id Un (r O s))"
  trancl_def    "r^+  ==  r O rtrancl(r)"
translations
                "r^=" == "r Un id"
end