2570
|
1 |
theory Shallow
|
|
2 |
imports "../Nominal2"
|
|
3 |
begin
|
|
4 |
|
|
5 |
(*
|
|
6 |
Various shallow binders
|
|
7 |
*)
|
|
8 |
|
|
9 |
atom_decl name
|
|
10 |
|
|
11 |
text {* binding lists of names *}
|
|
12 |
|
|
13 |
nominal_datatype trm1 =
|
|
14 |
Var1 "name"
|
|
15 |
| App1 "trm1" "trm1"
|
2950
0911cb7bf696
changed bind to binds in specifications; bind will cause trouble with Monad_Syntax
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
16 |
| Lam1 xs::"name list" t::"trm1" binds xs in t
|
2570
|
17 |
|
2622
|
18 |
thm trm1.strong_exhaust
|
|
19 |
|
2570
|
20 |
|
|
21 |
text {* binding a finite set of names *}
|
|
22 |
|
|
23 |
nominal_datatype trm2 =
|
|
24 |
Var2 "name"
|
|
25 |
| App2 "trm2" "trm2"
|
2950
0911cb7bf696
changed bind to binds in specifications; bind will cause trouble with Monad_Syntax
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
26 |
| Lam2 xs::"name fset" t::"trm2" binds (set) xs in t
|
2570
|
27 |
|
2622
|
28 |
thm trm2.strong_exhaust
|
2570
|
29 |
|
|
30 |
text {* restricting a finite set of names *}
|
|
31 |
|
|
32 |
nominal_datatype trm3 =
|
|
33 |
Var3 "name"
|
|
34 |
| App3 "trm3" "trm3"
|
2950
0911cb7bf696
changed bind to binds in specifications; bind will cause trouble with Monad_Syntax
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
35 |
| Lam3 xs::"name fset" t::"trm3" binds (set+) xs in t
|
2570
|
36 |
|
2634
3ce1089cdbf3
changed res keyword to set+ for restrictions; comment by a referee
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
37 |
thm trm3.eq_iff
|
2570
|
38 |
|
|
39 |
end
|
|
40 |
|
|
41 |
|
|
42 |
|