Nominal/Ex/Shallow.thy
author Christian Urban <urbanc@in.tum.de>
Wed, 24 Nov 2010 02:36:21 +0000
changeset 2581 3696659358c8
parent 2570 1c77e15c4259
child 2622 e6e6a3da81aa
permissions -rw-r--r--
added example from the F-ing paper by Rossberg, Russo and Dreyer

theory Shallow
imports "../Nominal2" 
begin

(* 
  Various shallow binders
*)

atom_decl name

text {* binding lists of names *}

nominal_datatype trm1 =
  Var1 "name"
| App1 "trm1" "trm1"
| Lam1 xs::"name list" t::"trm1" bind xs in t


text {* binding a finite set of names *}

nominal_datatype trm2 =
  Var2 "name"
| App2 "trm2" "trm2"
| Lam2 xs::"name fset" t::"trm2" bind (set) xs in t


text {* restricting a finite set of names *}

nominal_datatype trm3 =
  Var3 "name"
| App3 "trm3" "trm3"
| Lam3 xs::"name fset" t::"trm3" bind (res) xs in t


end