src/CCL/Wfd.thy
author wenzelm
Sat Sep 17 17:35:26 2005 +0200 (2005-09-17)
changeset 17456 bcf7544875b2
parent 3837 d7f033c74b38
child 20140 98acc6d0fab6
permissions -rw-r--r--
converted to Isar theory format;
wenzelm@17456
     1
(*  Title:      CCL/Wfd.thy
clasohm@0
     2
    ID:         $Id$
clasohm@1474
     3
    Author:     Martin Coen, Cambridge University Computer Laboratory
clasohm@0
     4
    Copyright   1993  University of Cambridge
clasohm@0
     5
*)
clasohm@0
     6
wenzelm@17456
     7
header {* Well-founded relations in CCL *}
wenzelm@17456
     8
wenzelm@17456
     9
theory Wfd
wenzelm@17456
    10
imports Trancl Type Hered
wenzelm@17456
    11
uses ("wfd.ML") ("genrec.ML") ("typecheck.ML") ("eval.ML")
wenzelm@17456
    12
begin
clasohm@0
    13
clasohm@0
    14
consts
clasohm@0
    15
      (*** Predicates ***)
clasohm@0
    16
  Wfd        ::       "[i set] => o"
clasohm@0
    17
      (*** Relations ***)
clasohm@0
    18
  wf         ::       "[i set] => i set"
clasohm@0
    19
  wmap       ::       "[i=>i,i set] => i set"
clasohm@0
    20
  "**"       ::       "[i set,i set] => i set"      (infixl 70)
clasohm@0
    21
  NatPR      ::       "i set"
clasohm@0
    22
  ListPR     ::       "i set => i set"
clasohm@0
    23
wenzelm@17456
    24
axioms
clasohm@0
    25
wenzelm@17456
    26
  Wfd_def:
wenzelm@3837
    27
  "Wfd(R) == ALL P.(ALL x.(ALL y.<y,x> : R --> y:P) --> x:P) --> (ALL a. a:P)"
clasohm@0
    28
wenzelm@17456
    29
  wf_def:         "wf(R) == {x. x:R & Wfd(R)}"
clasohm@0
    30
wenzelm@17456
    31
  wmap_def:       "wmap(f,R) == {p. EX x y. p=<x,y>  &  <f(x),f(y)> : R}"
wenzelm@17456
    32
  lex_def:
wenzelm@3837
    33
  "ra**rb == {p. EX a a' b b'. p = <<a,b>,<a',b'>> & (<a,a'> : ra | (a=a' & <b,b'> : rb))}"
clasohm@0
    34
wenzelm@17456
    35
  NatPR_def:      "NatPR == {p. EX x:Nat. p=<x,succ(x)>}"
wenzelm@17456
    36
  ListPR_def:     "ListPR(A) == {p. EX h:A. EX t:List(A). p=<t,h$t>}"
wenzelm@17456
    37
wenzelm@17456
    38
ML {* use_legacy_bindings (the_context ()) *}
wenzelm@17456
    39
wenzelm@17456
    40
use "wfd.ML"
wenzelm@17456
    41
use "genrec.ML"
wenzelm@17456
    42
use "typecheck.ML"
wenzelm@17456
    43
use "eval.ML"
wenzelm@17456
    44
clasohm@0
    45
end