src/HOL/WF_Rel.thy
author wenzelm
Tue, 20 May 1997 19:29:50 +0200
changeset 3257 4e3724e0659f
parent 3237 4da86d44de33
child 3296 2ee6c397003d
permissions -rw-r--r--
README generation;
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
3237
4da86d44de33 Relation "less_than" internalizes "<" for easy use of TFL
paulson
parents: 3222
diff changeset
    11
  less_than :: "(nat*nat)set"
4da86d44de33 Relation "less_than" internalizes "<" for easy use of TFL
paulson
parents: 3222
diff changeset
    12
  inv_image :: "('b * 'b)set => ('a => 'b) => ('a * 'a)set"
4da86d44de33 Relation "less_than" internalizes "<" for easy use of TFL
paulson
parents: 3222
diff changeset
    13
  measure   :: "('a => nat) => ('a * 'a)set"
4da86d44de33 Relation "less_than" internalizes "<" for easy use of TFL
paulson
parents: 3222
diff changeset
    14
  "**"      :: "[('a*'a)set, ('b*'b)set] => (('a*'b)*('a*'b))set" (infixl 70)
4da86d44de33 Relation "less_than" internalizes "<" for easy use of TFL
paulson
parents: 3222
diff changeset
    15
  rprod     :: "[('a*'a)set, ('b*'b)set] => (('a*'b)*('a*'b))set"
4da86d44de33 Relation "less_than" internalizes "<" for easy use of TFL
paulson
parents: 3222
diff changeset
    16
  finite_psubset  :: "('a set * 'a set) set"
4da86d44de33 Relation "less_than" internalizes "<" for easy use of TFL
paulson
parents: 3222
diff changeset
    17
3193
fafc7e815b70 New theories used by TFL
paulson
parents:
diff changeset
    18
fafc7e815b70 New theories used by TFL
paulson
parents:
diff changeset
    19
defs
3237
4da86d44de33 Relation "less_than" internalizes "<" for easy use of TFL
paulson
parents: 3222
diff changeset
    20
  less_than_def "less_than == trancl pred_nat"
4da86d44de33 Relation "less_than" internalizes "<" for easy use of TFL
paulson
parents: 3222
diff changeset
    21
3193
fafc7e815b70 New theories used by TFL
paulson
parents:
diff changeset
    22
  inv_image_def "inv_image r f == {(x,y). (f(x), f(y)) : r}"
fafc7e815b70 New theories used by TFL
paulson
parents:
diff changeset
    23
3237
4da86d44de33 Relation "less_than" internalizes "<" for easy use of TFL
paulson
parents: 3222
diff changeset
    24
  measure_def   "measure == inv_image less_than"
3193
fafc7e815b70 New theories used by TFL
paulson
parents:
diff changeset
    25
fafc7e815b70 New theories used by TFL
paulson
parents:
diff changeset
    26
  lex_prod_def  "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 | a=a' & (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
  rprod_def     "rprod ra rb == {p. ? a a' b b'. 
fafc7e815b70 New theories used by TFL
paulson
parents:
diff changeset
    31
                                p = ((a,b),(a',b')) & 
fafc7e815b70 New theories used by TFL
paulson
parents:
diff changeset
    32
                               ((a,a') : ra & (b,b') : rb)}"
fafc7e815b70 New theories used by TFL
paulson
parents:
diff changeset
    33
fafc7e815b70 New theories used by TFL
paulson
parents:
diff changeset
    34
  (* finite proper subset*)
fafc7e815b70 New theories used by TFL
paulson
parents:
diff changeset
    35
  finite_psubset_def "finite_psubset == {(A,B). A < B & finite B}"
fafc7e815b70 New theories used by TFL
paulson
parents:
diff changeset
    36
end