src/ZF/Coind/Language.thy
author bulwahn
Fri, 07 Jan 2011 18:10:43 +0100
changeset 41465 79ec1ddf49df
parent 35762 af3ff2ba4c54
child 41779 a68f503805ed
permissions -rw-r--r--
adding example theory for list comprehension to set comprehension simproc

(*  Title:      ZF/Coind/Language.thy
    Author:     Jacob Frost, Cambridge University Computer Laboratory
    Copyright   1995  University of Cambridge
*)

theory Language imports Main begin

consts
  Const :: i                    (* Abstract type of constants *)
  c_app :: "[i,i] => i"         (* Abstract constructor for fun application*)


text{*these really can't be definitions without losing the abstraction*}
axioms
  constNEE:  "c \<in> Const ==> c \<noteq> 0"
  c_appI:    "[| c1 \<in> Const; c2 \<in> Const |] ==> c_app(c1,c2) \<in> Const"


consts
  Exp   :: i                    (* Datatype of expressions *)
  ExVar :: i                    (* Abstract type of variables *)

datatype
  "Exp" = e_const ("c \<in> Const")
        | e_var ("x \<in> ExVar")
        | e_fn ("x \<in> ExVar","e \<in> Exp")
        | e_fix ("x1 \<in> ExVar","x2 \<in> ExVar","e \<in> Exp")
        | e_app ("e1 \<in> Exp","e2 \<in> Exp")

end