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 |
|
12595
|
7 |
theory Language = Main:
|
915
|
8 |
|
932
|
9 |
consts
|
1478
|
10 |
Const :: i (* Abstract type of constants *)
|
12595
|
11 |
c_app :: "[i,i] => i" (* Abstract constructor for fun application*)
|
|
12 |
|
915
|
13 |
|
12595
|
14 |
text{*these really can't be definitions without losing the abstraction*}
|
|
15 |
axioms
|
|
16 |
constNEE: "c \<in> Const ==> c \<noteq> 0"
|
|
17 |
c_appI: "[| c1 \<in> Const; c2 \<in> Const |] ==> c_app(c1,c2) \<in> Const"
|
915
|
18 |
|
|
19 |
|
|
20 |
consts
|
1478
|
21 |
Exp :: i (* Datatype of expressions *)
|
|
22 |
ExVar :: i (* Abstract type of variables *)
|
6112
|
23 |
|
|
24 |
datatype
|
12595
|
25 |
"Exp" = e_const ("c \<in> Const")
|
|
26 |
| e_var ("x \<in> ExVar")
|
|
27 |
| e_fn ("x \<in> ExVar","e \<in> Exp")
|
|
28 |
| e_fix ("x1 \<in> ExVar","x2 \<in> ExVar","e \<in> Exp")
|
|
29 |
| e_app ("e1 \<in> Exp","e2 \<in> Exp")
|
915
|
30 |
|
|
31 |
end
|