diff -r 7d8949da7d99 -r db158e995bfc Nominal/LFex.thy --- a/Nominal/LFex.thy Thu Feb 25 07:48:33 2010 +0100 +++ b/Nominal/LFex.thy Thu Feb 25 07:48:57 2010 +0100 @@ -20,6 +20,7 @@ setup {* snd o define_raw_perms ["rkind", "rty", "rtrm"] ["LFex.rkind", "LFex.rty", "LFex.rtrm"] *} +print_theorems local_setup {* snd o define_fv_alpha "LFex.rkind" @@ -117,29 +118,11 @@ thm rkind_rty_rtrm.inducts lemmas kind_ty_trm_inducts = rkind_rty_rtrm.inducts[quot_lifted] -instantiation kind and ty and trm :: pt -begin - -quotient_definition - "permute_kind :: perm \ kind \ kind" -is - "permute :: perm \ rkind \ rkind" - -quotient_definition - "permute_ty :: perm \ ty \ ty" -is - "permute :: perm \ rty \ rty" - -quotient_definition - "permute_trm :: perm \ trm \ trm" -is - "permute :: perm \ rtrm \ rtrm" - -instance by default (simp_all add: - permute_rkind_permute_rty_permute_rtrm_zero[quot_lifted] - permute_rkind_permute_rty_permute_rtrm_append[quot_lifted]) - -end +setup {* define_lifted_perms ["LFex.kind", "LFex.ty", "LFex.trm"] + [("permute_kind", @{term "permute :: perm \ rkind \ rkind"}), + ("permute_ty", @{term "permute :: perm \ rty \ rty"}), + ("permute_trm", @{term "permute :: perm \ rtrm \ rtrm"})] + @{thms permute_rkind_permute_rty_permute_rtrm_zero permute_rkind_permute_rty_permute_rtrm_append} *} (* Lifts, but slow and not needed?.