author | paulson |
Thu, 31 May 2001 18:28:23 +0200 | |
changeset 11354 | 9b80fe19407f |
parent 11318 | 6536fb8c9fc6 |
child 12595 | 0480d02221b8 |
permissions | -rw-r--r-- |
1478 | 1 |
(* Title: ZF/Coind/Language.thy |
915 | 2 |
ID: $Id$ |
1478 | 3 |
Author: Jacob Frost, Cambridge University Computer Laboratory |
915 | 4 |
Copyright 1995 University of Cambridge |
5 |
*) |
|
6 |
||
11354
9b80fe19407f
examples files start from Main instead of various ZF theories
paulson
parents:
11318
diff
changeset
|
7 |
Language = Main + |
915 | 8 |
|
932 | 9 |
consts |
1478 | 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 | 12 |
|
13 |
rules |
|
11318 | 14 |
constNEE "c \\<in> Const ==> c \\<noteq> 0" |
15 |
c_appI "[| c1 \\<in> Const; c2 \\<in> Const |] ==> c_app(c1,c2):Const" |
|
915 | 16 |
|
17 |
||
18 |
consts |
|
1478 | 19 |
Exp :: i (* Datatype of expressions *) |
20 |
ExVar :: i (* Abstract type of variables *) |
|
6112 | 21 |
|
22 |
datatype |
|
11318 | 23 |
"Exp" = e_const ("c \\<in> Const") |
24 |
| e_var ("x \\<in> ExVar") |
|
25 |
| e_fn ("x \\<in> ExVar","e \\<in> Exp") |
|
26 |
| e_fix ("x1 \\<in> ExVar","x2 \\<in> ExVar","e \\<in> Exp") |
|
27 |
| e_app ("e1 \\<in> Exp","e2 \\<in> Exp") |
|
915 | 28 |
|
29 |
end |