src/HOL/WF_Rel.thy
author nipkow
Fri, 16 May 1997 17:40:41 +0200
changeset 3222 726a9b069947
parent 3193 fafc7e815b70
child 3237 4da86d44de33
permissions -rw-r--r--
Distributed Psubset stuff to basic set theory files, incl Finite. Added stuff by bu.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3193
fafc7e815b70 New theories used by TFL
paulson
parents:
diff changeset
     1
(*  Title:      HOL/WF_Rel
fafc7e815b70 New theories used by TFL
paulson
parents:
diff changeset
     2
    ID:         $Id$
fafc7e815b70 New theories used by TFL
paulson
parents:
diff changeset
     3
    Author:     Konrad Slind
fafc7e815b70 New theories used by TFL
paulson
parents:
diff changeset
     4
    Copyright   1995 TU Munich
fafc7e815b70 New theories used by TFL
paulson
parents:
diff changeset
     5
fafc7e815b70 New theories used by TFL
paulson
parents:
diff changeset
     6
Derived wellfounded relations: inverse image, relational product, measure, ...
fafc7e815b70 New theories used by TFL
paulson
parents:
diff changeset
     7
*)
fafc7e815b70 New theories used by TFL
paulson
parents:
diff changeset
     8
3222
726a9b069947 Distributed Psubset stuff to basic set theory files, incl Finite.
nipkow
parents: 3193
diff changeset
     9
WF_Rel = Finite +
3193
fafc7e815b70 New theories used by TFL
paulson
parents:
diff changeset
    10
consts
fafc7e815b70 New theories used by TFL
paulson
parents:
diff changeset
    11
 inv_image  :: "('b * 'b)set => ('a => 'b) => ('a * 'a)set"
fafc7e815b70 New theories used by TFL
paulson
parents:
diff changeset
    12
 measure    :: "('a => nat) => ('a * 'a)set"
fafc7e815b70 New theories used by TFL
paulson
parents:
diff changeset
    13
    "**"    :: "[('a*'a)set, ('b*'b)set] => (('a*'b)*('a*'b))set" (infixl 70)
fafc7e815b70 New theories used by TFL
paulson
parents:
diff changeset
    14
   rprod    :: "[('a*'a)set, ('b*'b)set] => (('a*'b)*('a*'b))set"
fafc7e815b70 New theories used by TFL
paulson
parents:
diff changeset
    15
   finite_psubset  :: "('a set * 'a set) set"
fafc7e815b70 New theories used by TFL
paulson
parents:
diff changeset
    16
fafc7e815b70 New theories used by TFL
paulson
parents:
diff changeset
    17
defs
fafc7e815b70 New theories used by TFL
paulson
parents:
diff changeset
    18
  inv_image_def "inv_image r f == {(x,y). (f(x), f(y)) : r}"
fafc7e815b70 New theories used by TFL
paulson
parents:
diff changeset
    19
fafc7e815b70 New theories used by TFL
paulson
parents:
diff changeset
    20
  measure_def   "measure == inv_image (trancl pred_nat)"
fafc7e815b70 New theories used by TFL
paulson
parents:
diff changeset
    21
fafc7e815b70 New theories used by TFL
paulson
parents:
diff changeset
    22
  lex_prod_def  "ra**rb == {p. ? a a' b b'. 
fafc7e815b70 New theories used by TFL
paulson
parents:
diff changeset
    23
                                p = ((a,b),(a',b')) & 
fafc7e815b70 New theories used by TFL
paulson
parents:
diff changeset
    24
                               ((a,a') : ra | a=a' & (b,b') : rb)}"
fafc7e815b70 New theories used by TFL
paulson
parents:
diff changeset
    25
fafc7e815b70 New theories used by TFL
paulson
parents:
diff changeset
    26
  rprod_def     "rprod ra rb == {p. ? a a' b b'. 
fafc7e815b70 New theories used by TFL
paulson
parents:
diff changeset
    27
                                p = ((a,b),(a',b')) & 
fafc7e815b70 New theories used by TFL
paulson
parents:
diff changeset
    28
                               ((a,a') : ra & (b,b') : rb)}"
fafc7e815b70 New theories used by TFL
paulson
parents:
diff changeset
    29
fafc7e815b70 New theories used by TFL
paulson
parents:
diff changeset
    30
  (* finite proper subset*)
fafc7e815b70 New theories used by TFL
paulson
parents:
diff changeset
    31
  finite_psubset_def "finite_psubset == {(A,B). A < B & finite B}"
fafc7e815b70 New theories used by TFL
paulson
parents:
diff changeset
    32
end