Nominal/Ex/SingleLet.thy
author Cezary Kaliszyk <kaliszyk@in.tum.de>
Mon, 03 May 2010 15:36:47 +0200
changeset 2028 15c5a2926622
parent 2024 d974059827ad
child 2064 2725853f43b9
permissions -rw-r--r--
SingleLet and Ex3 work with NewParser.

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" t::"trm"  bind_set "bn a" in t
and assg =
  As "name" "trm"
binder
  bn::"assg \<Rightarrow> atom set"
where
  "bn (As x t) = {atom x}"

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)]

(*
setup {* Context.theory_map (Nominal_ThmDecls.add_thm @{thm "permute_pure"}) *}
declare permute_trm_raw_permute_assg_raw.simps[eqvt]
declare alpha_gen_eqvt[eqvt]
equivariance alpha_trm_raw
*)

end