Nominal/Ex/LetRec.thy
author Christian Urban <urbanc@in.tum.de>
Thu, 26 Aug 2010 02:08:00 +0800
changeset 2436 3885dc2669f9
parent 2311 Nominal/Ex/Ex1rec.thy@4da5c5c29009
child 2438 abafea9b39bb
permissions -rw-r--r--
cleaned up (almost completely) the examples

theory LetRec
imports "../NewParser"
begin

declare [[STEPS = 14]]

atom_decl name

nominal_datatype let_rec:
 lam =
  Var "name"
| App "lam" "lam"
| Lam x::"name" t::"lam"     bind (set) x in t
| Let_Rec bp::"bp" t::"lam"  bind (set) "bi bp" in bp t
and bp =
  Bp "name" "lam"
binder
  bi::"bp \<Rightarrow> atom set"
where
  "bi (Bp x t) = {atom x}"

thm let_rec.distinct
thm let_rec.induct
thm let_rec.exhaust
thm let_rec.fv_defs
thm let_rec.bn_defs
thm let_rec.perm_simps
thm let_rec.eq_iff
thm let_rec.fv_bn_eqvt
thm let_rec.size_eqvt


end