src/HOL/WF_Rel.thy
author wenzelm
Thu, 14 Oct 1999 15:04:36 +0200
changeset 7866 3ccaa11b6df9
parent 3296 2ee6c397003d
child 8262 08ad0a986db2
permissions -rw-r--r--
pdf: generate thumbnails if ISABELLE_THUMBPDF set;
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
3296
2ee6c397003d Deleted rprod: lex_prod is (usually?) enough
paulson
parents: 3237
diff changeset
     6
Derived WF relations: inverse image, lexicographic product, measure, ...
2ee6c397003d Deleted rprod: lex_prod is (usually?) enough
paulson
parents: 3237
diff changeset
     7
2ee6c397003d Deleted rprod: lex_prod is (usually?) enough
paulson
parents: 3237
diff changeset
     8
The simple relational product, in which (x',y')<(x,y) iff x'<x and y'<y, is a
2ee6c397003d Deleted rprod: lex_prod is (usually?) enough
paulson
parents: 3237
diff changeset
     9
subset of the lexicographic product, and therefore does not need to be defined
2ee6c397003d Deleted rprod: lex_prod is (usually?) enough
paulson
parents: 3237
diff changeset
    10
separately.
3193
fafc7e815b70 New theories used by TFL
paulson
parents:
diff changeset
    11
*)
fafc7e815b70 New theories used by TFL
paulson
parents:
diff changeset
    12
3222
726a9b069947 Distributed Psubset stuff to basic set theory files, incl Finite.
nipkow
parents: 3193
diff changeset
    13
WF_Rel = Finite +
3193
fafc7e815b70 New theories used by TFL
paulson
parents:
diff changeset
    14
consts
3237
4da86d44de33 Relation "less_than" internalizes "<" for easy use of TFL
paulson
parents: 3222
diff changeset
    15
  less_than :: "(nat*nat)set"
4da86d44de33 Relation "less_than" internalizes "<" for easy use of TFL
paulson
parents: 3222
diff changeset
    16
  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
    17
  measure   :: "('a => nat) => ('a * 'a)set"
4da86d44de33 Relation "less_than" internalizes "<" for easy use of TFL
paulson
parents: 3222
diff changeset
    18
  "**"      :: "[('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
    19
  finite_psubset  :: "('a set * 'a set) set"
4da86d44de33 Relation "less_than" internalizes "<" for easy use of TFL
paulson
parents: 3222
diff changeset
    20
3193
fafc7e815b70 New theories used by TFL
paulson
parents:
diff changeset
    21
fafc7e815b70 New theories used by TFL
paulson
parents:
diff changeset
    22
defs
3237
4da86d44de33 Relation "less_than" internalizes "<" for easy use of TFL
paulson
parents: 3222
diff changeset
    23
  less_than_def "less_than == trancl pred_nat"
4da86d44de33 Relation "less_than" internalizes "<" for easy use of TFL
paulson
parents: 3222
diff changeset
    24
3193
fafc7e815b70 New theories used by TFL
paulson
parents:
diff changeset
    25
  inv_image_def "inv_image r f == {(x,y). (f(x), f(y)) : r}"
fafc7e815b70 New theories used by TFL
paulson
parents:
diff changeset
    26
3237
4da86d44de33 Relation "less_than" internalizes "<" for easy use of TFL
paulson
parents: 3222
diff changeset
    27
  measure_def   "measure == inv_image less_than"
3193
fafc7e815b70 New theories used by TFL
paulson
parents:
diff changeset
    28
fafc7e815b70 New theories used by TFL
paulson
parents:
diff changeset
    29
  lex_prod_def  "ra**rb == {p. ? a a' b b'. 
fafc7e815b70 New theories used by TFL
paulson
parents:
diff changeset
    30
                                p = ((a,b),(a',b')) & 
fafc7e815b70 New theories used by TFL
paulson
parents:
diff changeset
    31
                               ((a,a') : ra | a=a' & (b,b') : rb)}"
fafc7e815b70 New theories used by TFL
paulson
parents:
diff changeset
    32
fafc7e815b70 New theories used by TFL
paulson
parents:
diff changeset
    33
  (* finite proper subset*)
fafc7e815b70 New theories used by TFL
paulson
parents:
diff changeset
    34
  finite_psubset_def "finite_psubset == {(A,B). A < B & finite B}"
fafc7e815b70 New theories used by TFL
paulson
parents:
diff changeset
    35
end