Nominal/Ex/Ex1rec.thy
author Cezary Kaliszyk <kaliszyk@in.tum.de>
Tue, 11 May 2010 18:20:25 +0200
changeset 2105 e25b0fff0dd2
parent 2104 2205b572bc9b
child 2120 2786ff1df475
permissions -rw-r--r--
Include raw permutation definitions in eqvt

theory Ex1rec
imports "../NewParser"
begin

atom_decl name

ML {* val _ = cheat_supp_eq := true *}
ML {* val _ = cheat_equivp := true *}

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

equivariance alpha_lam_raw


end