Nominal/Ex/SingleLet.thy
author Christian Urban <urbanc@in.tum.de>
Mon, 07 Jun 2010 11:33:00 +0200
changeset 2213 231a20534950
parent 2200 31f1ec832d39
child 2284 7b83e1c8ba2e
child 2312 ad03df7e8056
child 2326 b51532dd5689
permissions -rw-r--r--
improved abstract, some tuning

theory SingleLet
imports "../NewParser"
begin

atom_decl name

nominal_datatype trm =
  Var "name"
| App "trm" "trm"
| Lam x::"name" t::"trm"  bind_set x in t
| Let a::"assg" t1::"trm" t2::"trm" bind_set "bn a" in t1 t2
 
and assg =
  As "name" "trm"
binder
  bn::"assg \<Rightarrow> atom set"
where
  "bn (As x t) = {atom x}"

ML {* Inductive.the_inductive *}
thm trm_assg.fv
thm trm_assg.supp
thm trm_assg.eq_iff
thm trm_assg.bn
thm trm_assg.perm
thm trm_assg.induct
thm trm_assg.inducts
thm trm_assg.distinct
ML {* Sign.of_sort @{theory} (@{typ trm}, @{sort fs}) *}
thm trm_assg.fv[simplified trm_assg.supp(1-2)]


end