1911
|
1 |
theory SingleLet
|
2024
|
2 |
imports "../NewParser"
|
1596
|
3 |
begin
|
|
4 |
|
|
5 |
atom_decl name
|
|
6 |
|
1911
|
7 |
nominal_datatype trm =
|
|
8 |
Var "name"
|
|
9 |
| App "trm" "trm"
|
2024
|
10 |
| Lam x::"name" t::"trm" bind_set x in t
|
|
11 |
| Let a::"assg" t::"trm" bind_set "bn a" in t
|
1911
|
12 |
and assg =
|
|
13 |
As "name" "trm"
|
1596
|
14 |
binder
|
1911
|
15 |
bn::"assg \<Rightarrow> atom set"
|
1596
|
16 |
where
|
1911
|
17 |
"bn (As x t) = {atom x}"
|
|
18 |
|
|
19 |
thm trm_assg.fv
|
|
20 |
thm trm_assg.supp
|
2024
|
21 |
thm trm_assg.eq_iff
|
1911
|
22 |
thm trm_assg.bn
|
|
23 |
thm trm_assg.perm
|
|
24 |
thm trm_assg.induct
|
|
25 |
thm trm_assg.inducts
|
|
26 |
thm trm_assg.distinct
|
|
27 |
ML {* Sign.of_sort @{theory} (@{typ trm}, @{sort fs}) *}
|
2024
|
28 |
thm trm_assg.fv[simplified trm_assg.supp(1-2)]
|
|
29 |
|
|
30 |
declare permute_trm_raw_permute_assg_raw.simps[eqvt]
|
|
31 |
declare alpha_gen_eqvt[eqvt]
|
2064
2725853f43b9
solved the problem with equivariance by first eta-normalising the goal
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
32 |
|
2024
|
33 |
equivariance alpha_trm_raw
|
2064
2725853f43b9
solved the problem with equivariance by first eta-normalising the goal
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
34 |
|
1596
|
35 |
|
|
36 |
end
|
|
37 |
|
|
38 |
|
|
39 |
|