Nominal/Ex/LetRec.thy
author Cezary Kaliszyk <kaliszyk@in.tum.de>
Sun, 30 Jan 2011 09:57:37 +0900
changeset 2711 ec1a7ef740b8
parent 2454 9ffee4eb1ae1
child 2877 3e82c1ced5e4
permissions -rw-r--r--
Showing that the binders difference is fresh for the left side solves the goal for 'set'.

theory LetRec
imports "../Nominal2"
begin

atom_decl name

nominal_datatype let_rec:
 trm =
  Var "name"
| App "trm" "trm"
| Lam x::"name" t::"trm"     bind (set) x in t
| Let_Rec bp::"bp" t::"trm"  bind (set) "bn bp" in bp t
and bp =
  Bp "name" "trm"
binder
  bn::"bp \<Rightarrow> atom set"
where
  "bn (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