Nominal/Ex/Ex1rec.thy
author Christian Urban <urbanc@in.tum.de>
Wed, 11 Aug 2010 16:23:50 +0800
changeset 2394 e2759a4dad4b
parent 2311 4da5c5c29009
permissions -rw-r--r--
updated to Isabelle 11 Aug

theory Ex1rec
imports "../NewParser"
begin

declare [[STEPS = 9]]

atom_decl name

nominal_datatype lam =
  Var "name"
| App "lam" "lam"
| Lam x::"name" t::"lam"  bind_set x in t
| Let 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 alpha_lam_raw_alpha_bp_raw_alpha_bi_raw.intros

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



end