src/ZF/Coind/Language.thy
author wenzelm
Thu, 19 Oct 2023 17:06:39 +0200
changeset 78800 0b3700d31758
parent 76215 a642599ffdea
permissions -rw-r--r--
clarified signature;

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

theory Language imports ZF begin


text\<open>these really can't be definitions without losing the abstraction\<close>

axiomatization
  Const :: i  and               (* Abstract type of constants *)
  c_app :: "[i,i] \<Rightarrow> i"         (* Abstract constructor for fun application*)
where
  constNEE:  "c \<in> Const \<Longrightarrow> c \<noteq> 0" and
  c_appI:    "\<lbrakk>c1 \<in> Const; c2 \<in> Const\<rbrakk> \<Longrightarrow> 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