diff -r 74bd7bfb484b -r 837b889fcf59 Nominal/Ex/Ex2.thy --- a/Nominal/Ex/Ex2.thy Tue May 04 05:36:43 2010 +0100 +++ b/Nominal/Ex/Ex2.thy Tue May 04 05:36:55 2010 +0100 @@ -1,35 +1,31 @@ theory Ex2 -imports "../Parser" +imports "../NewParser" begin text {* example 2 *} atom_decl name -ML {* val _ = recursive := false *} -nominal_datatype trm' = +nominal_datatype trm = Var "name" -| App "trm'" "trm'" -| Lam x::"name" t::"trm'" bind x in t -| Let p::"pat'" "trm'" t::"trm'" bind "f p" in t -and pat' = +| App "trm" "trm" +| Lam x::"name" t::"trm" bind_set x in t +| Let p::"pat" "trm" t::"trm" bind_set "f p" in t +and pat = PN | PS "name" | PD "name" "name" binder - f::"pat' \ atom set" + f::"pat \ atom set" where "f PN = {}" | "f (PD x y) = {atom x, atom y}" | "f (PS x) = {atom x}" - -thm trm'_pat'.fv -thm trm'_pat'.eq_iff -thm trm'_pat'.bn -thm trm'_pat'.perm -thm trm'_pat'.induct -thm trm'_pat'.distinct -thm trm'_pat'.fv[simplified trm'_pat'.supp] +thm trm_pat.bn +thm trm_pat.perm +thm trm_pat.induct +thm trm_pat.distinct +thm trm_pat.fv[simplified trm_pat.supp(1-2)] end