author | wenzelm |
Mon, 29 Nov 1999 15:52:49 +0100 | |
changeset 8039 | a901bafe4578 |
parent 6112 | 5e4871c5136b |
child 11318 | 6536fb8c9fc6 |
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 |
||
2874
b1e7e2179597
Datatype declarations now require theory Datatype--NOT in quotes
paulson
parents:
1478
diff
changeset
|
7 |
Language = Datatype + QUniv + |
915 | 8 |
|
932 | 9 |
consts |
1478 | 10 |
Const :: i (* Abstract type of constants *) |
11 |
c_app :: [i,i] => i (*Abstract constructor for fun application*) |
|
915 | 12 |
|
13 |
rules |
|
932 | 14 |
constNEE "c:Const ==> c ~= 0" |
15 |
c_appI "[| c1:Const; c2: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 |
|
23 |
"Exp" = e_const ("c:Const") |
|
24 |
| e_var ("x:ExVar") |
|
25 |
| e_fn ("x:ExVar","e:Exp") |
|
26 |
| e_fix ("x1:ExVar","x2:ExVar","e:Exp") |
|
27 |
| e_app ("e1:Exp","e2:Exp") |
|
915 | 28 |
|
29 |
end |