src/CCL/Hered.thy
author wenzelm
Tue, 23 Sep 1997 08:44:57 +0200
changeset 3698 0b8986fd9bfc
parent 1474 3f7d67927fe2
child 3837 d7f033c74b38
permissions -rw-r--r--
index.html obsolete;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1474
3f7d67927fe2 expanded tabs
clasohm
parents: 1149
diff changeset
     1
(*  Title:      CCL/hered.thy
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     2
    ID:         $Id$
1474
3f7d67927fe2 expanded tabs
clasohm
parents: 1149
diff changeset
     3
    Author:     Martin Coen
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     4
    Copyright   1993  University of Cambridge
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     5
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     6
Hereditary Termination - cf. Martin Lo\"f
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     7
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     8
Note that this is based on an untyped equality and so lam x.b(x) is only 
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     9
hereditarily terminating if ALL x.b(x) is.  Not so useful for functions!
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    10
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    11
*)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    12
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    13
Hered = Type +
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    14
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    15
consts
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    16
      (*** Predicates ***)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    17
  HTTgen     ::       "i set => i set"
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    18
  HTT        ::       "i set"
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    19
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    20
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    21
rules
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    22
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    23
  (*** Definitions of Hereditary Termination ***)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    24
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    25
  HTTgen_def 
1149
5750eba8820d removed \...\ inside strings
clasohm
parents: 0
diff changeset
    26
  "HTTgen(R) == {t. t=true | t=false | (EX a b.t=<a,b>      & a : R & b : R) | 
5750eba8820d removed \...\ inside strings
clasohm
parents: 0
diff changeset
    27
                                      (EX f.  t=lam x.f(x) & (ALL x.f(x) : R))}"
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    28
  HTT_def       "HTT == gfp(HTTgen)"
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    29
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    30
end