TFL/WF1.thy
author paulson
Fri, 18 Oct 1996 12:41:04 +0200
changeset 2112 3902e9af752f
permissions -rw-r--r--
Konrad Slind's TFL
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2112
3902e9af752f Konrad Slind's TFL
paulson
parents:
diff changeset
     1
(* Derived wellfounded relations, plus customized-for-TFL theorems from WF *)
3902e9af752f Konrad Slind's TFL
paulson
parents:
diff changeset
     2
3902e9af752f Konrad Slind's TFL
paulson
parents:
diff changeset
     3
WF1 = List +
3902e9af752f Konrad Slind's TFL
paulson
parents:
diff changeset
     4
consts
3902e9af752f Konrad Slind's TFL
paulson
parents:
diff changeset
     5
 inv_image  :: "('b * 'b)set => ('a => 'b) => ('a * 'a)set"
3902e9af752f Konrad Slind's TFL
paulson
parents:
diff changeset
     6
 measure    :: "('a => nat) => ('a * 'a)set"
3902e9af752f Konrad Slind's TFL
paulson
parents:
diff changeset
     7
    "**"    :: "[('a*'a)set, ('b*'b)set] => (('a*'b)*('a*'b))set" (infixl 70)
3902e9af752f Konrad Slind's TFL
paulson
parents:
diff changeset
     8
   rprod    :: "[('a*'a)set, ('b*'b)set] => (('a*'b)*('a*'b))set"
3902e9af752f Konrad Slind's TFL
paulson
parents:
diff changeset
     9
   emptyr   :: "('a * 'b) set"
3902e9af752f Konrad Slind's TFL
paulson
parents:
diff changeset
    10
 pred_list  :: "('a list * 'a list) set"
3902e9af752f Konrad Slind's TFL
paulson
parents:
diff changeset
    11
3902e9af752f Konrad Slind's TFL
paulson
parents:
diff changeset
    12
defs
3902e9af752f Konrad Slind's TFL
paulson
parents:
diff changeset
    13
  inv_image_def "inv_image R f == {p. (f(fst p), f(snd p)) : R}"
3902e9af752f Konrad Slind's TFL
paulson
parents:
diff changeset
    14
3902e9af752f Konrad Slind's TFL
paulson
parents:
diff changeset
    15
  measure_def   "measure == inv_image (trancl pred_nat)"
3902e9af752f Konrad Slind's TFL
paulson
parents:
diff changeset
    16
3902e9af752f Konrad Slind's TFL
paulson
parents:
diff changeset
    17
  lex_prod_def  "ra**rb == {p. ? a a' b b'. 
3902e9af752f Konrad Slind's TFL
paulson
parents:
diff changeset
    18
                                p = ((a,b),(a',b')) & 
3902e9af752f Konrad Slind's TFL
paulson
parents:
diff changeset
    19
                               ((a,a') : ra | a=a' & (b,b') : rb)}"
3902e9af752f Konrad Slind's TFL
paulson
parents:
diff changeset
    20
3902e9af752f Konrad Slind's TFL
paulson
parents:
diff changeset
    21
  rprod_def     "rprod ra rb == {p. ? a a' b b'. 
3902e9af752f Konrad Slind's TFL
paulson
parents:
diff changeset
    22
                                p = ((a,b),(a',b')) & 
3902e9af752f Konrad Slind's TFL
paulson
parents:
diff changeset
    23
                               ((a,a') : ra & (b,b') : rb)}"
3902e9af752f Konrad Slind's TFL
paulson
parents:
diff changeset
    24
3902e9af752f Konrad Slind's TFL
paulson
parents:
diff changeset
    25
  emptyr_def    "emptyr == {}"
3902e9af752f Konrad Slind's TFL
paulson
parents:
diff changeset
    26
  pred_list_def "pred_list == {p. ? h. snd p = h#(fst p)}"
3902e9af752f Konrad Slind's TFL
paulson
parents:
diff changeset
    27
end