author | Christian Urban <urbanc@in.tum.de> |
Fri, 06 Nov 2009 19:26:08 +0100 | |
changeset 297 | 28b264299590 |
child 299 | 893a8e789d7f |
permissions | -rw-r--r-- |
297
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
1 |
theory LFex |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
2 |
imports Nominal QuotMain |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
3 |
begin |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
4 |
|
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
5 |
atom_decl name id |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
6 |
|
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
7 |
nominal_datatype kind = |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
8 |
Type |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
9 |
| KPi "ty" "name" "kind" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
10 |
and ty = |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
11 |
TConst "id" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
12 |
| TApp "ty" "trm" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
13 |
| TPi "ty" "name" "ty" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
14 |
and trm = |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
15 |
Const "id" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
16 |
| Var "name" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
17 |
| App "trm" "trm" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
18 |
| Lam "ty" "name" "trm" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
19 |
|
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
20 |
function |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
21 |
fv_kind :: "kind \<Rightarrow> name set" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
22 |
and fv_ty :: "ty \<Rightarrow> name set" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
23 |
and fv_trm :: "trm \<Rightarrow> name set" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
24 |
where |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
25 |
"fv_kind (Type) = {}" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
26 |
| "fv_kind (KPi A x K) = (fv_ty A) \<union> ((fv_kind K) - {x})" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
27 |
| "fv_ty (TConst i) = {}" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
28 |
| "fv_ty (TApp A M) = (fv_ty A) \<union> (fv_trm M)" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
29 |
| "fv_ty (TPi A x B) = (fv_ty A) \<union> ((fv_ty B) - {x})" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
30 |
| "fv_trm (Const i) = {}" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
31 |
| "fv_trm (Var x) = {x}" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
32 |
| "fv_trm (App M N) = (fv_trm M) \<union> (fv_trm N)" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
33 |
| "fv_trm (Lam A x M) = (fv_ty A) \<union> ((fv_trm M) - {x})" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
34 |
sorry |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
35 |
|
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
36 |
termination fv_kind sorry |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
37 |
|
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
38 |
inductive |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
39 |
akind :: "kind \<Rightarrow> kind \<Rightarrow> bool" ("_ \<approx>ki _" [100, 100] 100) |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
40 |
and aty :: "ty \<Rightarrow> ty \<Rightarrow> bool" ("_ \<approx>ty _" [100, 100] 100) |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
41 |
and atrm :: "trm \<Rightarrow> trm \<Rightarrow> bool" ("_ \<approx>tr _" [100, 100] 100) |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
42 |
where |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
43 |
a1: "(Type) \<approx>ki (Type)" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
44 |
| a21: "\<lbrakk>A \<approx>ty A'; K \<approx>ki K'\<rbrakk> \<Longrightarrow> (KPi A x K) \<approx>ki (KPi A' x K')" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
45 |
| a22: "\<lbrakk>A \<approx>ty A'; K \<approx>ki ([(x,x')]\<bullet>K'); x \<notin> (fv_ty A'); x \<notin> ((fv_kind K') - {x'})\<rbrakk> |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
46 |
\<Longrightarrow> (KPi A x K) \<approx>ki (KPi A' x' K')" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
47 |
| a3: "i = j \<Longrightarrow> (TConst i) \<approx>ty (TConst j)" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
48 |
| a4: "\<lbrakk>A \<approx>ty A'; M \<approx>tr M'\<rbrakk> \<Longrightarrow> (TApp A M) \<approx>ty (TApp A' M')" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
49 |
| a51: "\<lbrakk>A \<approx>ty A'; B \<approx>ty B'\<rbrakk> \<Longrightarrow> (TPi A x B) \<approx>ty (TPi A' x B')" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
50 |
| a52: "\<lbrakk>A \<approx>ty A'; B \<approx>ty ([(x,x')]\<bullet>B'); x \<notin> (fv_ty B'); x \<notin> ((fv_ty B') - {x'})\<rbrakk> |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
51 |
\<Longrightarrow> (TPi A x B) \<approx>ty (TPi A' x' B')" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
52 |
| a6: "i = j \<Longrightarrow> (Const i) \<approx>trm (Const j)" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
53 |
| a7: "x = y \<Longrightarrow> (Var x) \<approx>trm (Var y)" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
54 |
| a8: "\<lbrakk>M \<approx>trm M'; N \<approx>tr N'\<rbrakk> \<Longrightarrow> (App M N) \<approx>tr (App M' N')" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
55 |
| a91: "\<lbrakk>A \<approx>ty A'; M \<approx>tr M'\<rbrakk> \<Longrightarrow> (Lam A x M) \<approx>tr (Lam A' x M')" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
56 |
| a92: "\<lbrakk>A \<approx>ty A'; M \<approx>tr ([(x,x')]\<bullet>M'); x \<notin> (fv_ty B'); x \<notin> ((fv_trm M') - {x'})\<rbrakk> |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
57 |
\<Longrightarrow> (Lam A x M) \<approx>tr (Lam A' x' M')" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
58 |
|
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
59 |
lemma al_refl: |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
60 |
fixes K::"kind" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
61 |
and A::"ty" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
62 |
and M::"trm" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
63 |
shows "K \<approx>ki K" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
64 |
and "A \<approx>ty A" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
65 |
and "M \<approx>tr M" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
66 |
apply(induct K and A and M rule: kind_ty_trm.inducts) |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
67 |
apply(auto intro: akind_aty_atrm.intros) |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
68 |
done |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
69 |
|
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
70 |
lemma alpha_EQUIVs: |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
71 |
shows "EQUIV akind" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
72 |
and "EQUIV aty" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
73 |
and "EQUIV atrm" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
74 |
sorry |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
75 |
|
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
76 |
quotient KIND = kind / akind |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
77 |
by (rule alpha_EQUIVs) |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
78 |
|
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
79 |
quotient TY = ty / aty |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
80 |
and TRM = trm / atrm |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
81 |
by (auto intro: alpha_EQUIVs) |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
82 |
|
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
83 |
print_quotients |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
84 |
|
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
85 |
quotient_def |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
86 |
TYP :: "KIND" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
87 |
where |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
88 |
"TYP \<equiv> Type" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
89 |
|
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
90 |
quotient_def |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
91 |
KPI :: "TY \<Rightarrow> name \<Rightarrow> KIND \<Rightarrow> KIND" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
92 |
where |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
93 |
"KPI \<equiv> KPi" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
94 |
|
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
95 |
quotient_def |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
96 |
TCONST :: "id \<Rightarrow> TY" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
97 |
where |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
98 |
"TCONST \<equiv> TConst" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
99 |
|
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
100 |
quotient_def |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
101 |
TAPP :: "TY \<Rightarrow> TRM \<Rightarrow> TY" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
102 |
where |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
103 |
"TAPP \<equiv> TApp" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
104 |
|
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
105 |
quotient_def |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
106 |
TPI :: "TY \<Rightarrow> name \<Rightarrow> TY \<Rightarrow> TY" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
107 |
where |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
108 |
"TPI \<equiv> TPi" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
109 |
|
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
110 |
(* FIXME: does not work with CONST *) |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
111 |
quotient_def |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
112 |
CONS :: "id \<Rightarrow> TRM" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
113 |
where |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
114 |
"CONS \<equiv> Const" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
115 |
|
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
116 |
quotient_def |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
117 |
VAR :: "name \<Rightarrow> TRM" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
118 |
where |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
119 |
"VAR \<equiv> Var" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
120 |
|
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
121 |
quotient_def |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
122 |
APP :: "TRM \<Rightarrow> TRM \<Rightarrow> TRM" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
123 |
where |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
124 |
"APP \<equiv> App" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
125 |
|
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
126 |
quotient_def |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
127 |
LAM :: "TY \<Rightarrow> name \<Rightarrow> TRM \<Rightarrow> TRM" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
128 |
where |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
129 |
"LAM \<equiv> Lam" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
130 |
|
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
131 |
thm TYP_def |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
132 |
thm KPI_def |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
133 |
thm TCONST_def |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
134 |
thm TAPP_def |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
135 |
thm TPI_def |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
136 |
thm VAR_def |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
137 |
thm CONS_def |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
138 |
thm APP_def |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
139 |
thm LAM_def |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
140 |
|
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
141 |
(* FIXME: print out a warning if the type contains a liftet type, like kind \<Rightarrow> name set *) |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
142 |
quotient_def |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
143 |
FV_kind :: "KIND \<Rightarrow> name set" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
144 |
where |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
145 |
"FV_kind \<equiv> fv_kind" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
146 |
|
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
147 |
quotient_def |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
148 |
FV_ty :: "TY \<Rightarrow> name set" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
149 |
where |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
150 |
"FV_ty \<equiv> fv_ty" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
151 |
|
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
152 |
quotient_def |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
153 |
FV_trm :: "TRM \<Rightarrow> name set" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
154 |
where |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
155 |
"FV_trm \<equiv> fv_trm" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
156 |
|
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
157 |
thm FV_kind_def |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
158 |
thm FV_ty_def |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
159 |
thm FV_trm_def |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
160 |
|
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
161 |
(* FIXME: does not work yet *) |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
162 |
(* |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
163 |
overloading |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
164 |
perm_kind \<equiv> "perm :: 'x prm \<Rightarrow> KIND \<Rightarrow> KIND" (unchecked) |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
165 |
perm_ty \<equiv> "perm :: 'x prm \<Rightarrow> TY \<Rightarrow> TY" (unchecked) |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
166 |
perm_trm \<equiv> "perm :: 'x prm \<Rightarrow> TRM \<Rightarrow> TRM" (unchecked) |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
167 |
begin |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
168 |
|
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
169 |
quotient_def |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
170 |
perm_kind :: "'x prm \<Rightarrow> KIND \<Rightarrow> KIND" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
171 |
where |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
172 |
"perm_kind \<equiv> (perm::'x prm \<Rightarrow> KIND \<Rightarrow> KIND)" |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
173 |
end |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
174 |
*) |
28b264299590
updated to new Isabelle version and added a new example file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
175 |