src/ZF/Coind/Language.thy
author paulson
Thu, 31 May 2001 18:28:23 +0200
changeset 11354 9b80fe19407f
parent 11318 6536fb8c9fc6
child 12595 0480d02221b8
permissions -rw-r--r--
examples files start from Main instead of various ZF theories
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1478
2b8c2a7547ab expanded tabs
clasohm
parents: 1401
diff changeset
     1
(*  Title:      ZF/Coind/Language.thy
915
6dae0daf57b7 New example by Jacob Frost, tidied by lcp
lcp
parents:
diff changeset
     2
    ID:         $Id$
1478
2b8c2a7547ab expanded tabs
clasohm
parents: 1401
diff changeset
     3
    Author:     Jacob Frost, Cambridge University Computer Laboratory
915
6dae0daf57b7 New example by Jacob Frost, tidied by lcp
lcp
parents:
diff changeset
     4
    Copyright   1995  University of Cambridge
6dae0daf57b7 New example by Jacob Frost, tidied by lcp
lcp
parents:
diff changeset
     5
*)
6dae0daf57b7 New example by Jacob Frost, tidied by lcp
lcp
parents:
diff changeset
     6
11354
9b80fe19407f examples files start from Main instead of various ZF theories
paulson
parents: 11318
diff changeset
     7
Language = Main +
915
6dae0daf57b7 New example by Jacob Frost, tidied by lcp
lcp
parents:
diff changeset
     8
932
b7ab04253326 Got rid of exvarU and constU by
lcp
parents: 915
diff changeset
     9
consts
1478
2b8c2a7547ab expanded tabs
clasohm
parents: 1401
diff changeset
    10
  Const :: i                    (* Abstract type of constants *)
11354
9b80fe19407f examples files start from Main instead of various ZF theories
paulson
parents: 11318
diff changeset
    11
  c_app :: [i,i] => i           (* Abstract constructor for fun application*)
915
6dae0daf57b7 New example by Jacob Frost, tidied by lcp
lcp
parents:
diff changeset
    12
6dae0daf57b7 New example by Jacob Frost, tidied by lcp
lcp
parents:
diff changeset
    13
rules
11318
6536fb8c9fc6 X-symbols for ZF
paulson
parents: 6112
diff changeset
    14
  constNEE  "c \\<in> Const ==> c \\<noteq> 0"
6536fb8c9fc6 X-symbols for ZF
paulson
parents: 6112
diff changeset
    15
  c_appI    "[| c1 \\<in> Const; c2 \\<in> Const |] ==> c_app(c1,c2):Const"
915
6dae0daf57b7 New example by Jacob Frost, tidied by lcp
lcp
parents:
diff changeset
    16
6dae0daf57b7 New example by Jacob Frost, tidied by lcp
lcp
parents:
diff changeset
    17
6dae0daf57b7 New example by Jacob Frost, tidied by lcp
lcp
parents:
diff changeset
    18
consts
1478
2b8c2a7547ab expanded tabs
clasohm
parents: 1401
diff changeset
    19
  Exp   :: i                    (* Datatype of expressions *)
2b8c2a7547ab expanded tabs
clasohm
parents: 1401
diff changeset
    20
  ExVar :: i                    (* Abstract type of variables *)
6112
5e4871c5136b datatype package improvements
paulson
parents: 2874
diff changeset
    21
5e4871c5136b datatype package improvements
paulson
parents: 2874
diff changeset
    22
datatype
11318
6536fb8c9fc6 X-symbols for ZF
paulson
parents: 6112
diff changeset
    23
  "Exp" = e_const ("c \\<in> Const")
6536fb8c9fc6 X-symbols for ZF
paulson
parents: 6112
diff changeset
    24
        | e_var ("x \\<in> ExVar")
6536fb8c9fc6 X-symbols for ZF
paulson
parents: 6112
diff changeset
    25
        | e_fn ("x \\<in> ExVar","e \\<in> Exp")
6536fb8c9fc6 X-symbols for ZF
paulson
parents: 6112
diff changeset
    26
        | e_fix ("x1 \\<in> ExVar","x2 \\<in> ExVar","e \\<in> Exp")
6536fb8c9fc6 X-symbols for ZF
paulson
parents: 6112
diff changeset
    27
        | e_app ("e1 \\<in> Exp","e2 \\<in> Exp")
915
6dae0daf57b7 New example by Jacob Frost, tidied by lcp
lcp
parents:
diff changeset
    28
6dae0daf57b7 New example by Jacob Frost, tidied by lcp
lcp
parents:
diff changeset
    29
end