597
+ − 1
theory IntEx
600
+ − 2
imports "../QuotList"
597
+ − 3
begin
+ − 4
+ − 5
fun
+ − 6
intrel :: "(nat \<times> nat) \<Rightarrow> (nat \<times> nat) \<Rightarrow> bool" (infix "\<approx>" 50)
+ − 7
where
+ − 8
"intrel (x, y) (u, v) = (x + v = u + y)"
+ − 9
+ − 10
quotient my_int = "nat \<times> nat" / intrel
+ − 11
apply(unfold equivp_def)
+ − 12
apply(auto simp add: mem_def expand_fun_eq)
+ − 13
done
+ − 14
+ − 15
thm quotient_equiv
+ − 16
+ − 17
thm quotient_thm
+ − 18
+ − 19
thm my_int_equivp
+ − 20
+ − 21
print_theorems
+ − 22
print_quotients
+ − 23
+ − 24
quotient_def
+ − 25
ZERO::"my_int"
+ − 26
where
+ − 27
"ZERO \<equiv> (0::nat, 0::nat)"
+ − 28
+ − 29
ML {* print_qconstinfo @{context} *}
+ − 30
+ − 31
term ZERO
+ − 32
thm ZERO_def
+ − 33
+ − 34
ML {* prop_of @{thm ZERO_def} *}
+ − 35
+ − 36
ML {* separate *}
+ − 37
+ − 38
quotient_def
+ − 39
ONE::"my_int"
+ − 40
where
+ − 41
"ONE \<equiv> (1::nat, 0::nat)"
+ − 42
+ − 43
ML {* print_qconstinfo @{context} *}
+ − 44
+ − 45
term ONE
+ − 46
thm ONE_def
+ − 47
+ − 48
fun
+ − 49
my_plus :: "(nat \<times> nat) \<Rightarrow> (nat \<times> nat) \<Rightarrow> (nat \<times> nat)"
+ − 50
where
+ − 51
"my_plus (x, y) (u, v) = (x + u, y + v)"
+ − 52
+ − 53
quotient_def
+ − 54
PLUS::"my_int \<Rightarrow> my_int \<Rightarrow> my_int"
+ − 55
where
+ − 56
"PLUS \<equiv> my_plus"
+ − 57
+ − 58
term my_plus
+ − 59
term PLUS
+ − 60
thm PLUS_def
+ − 61
+ − 62
fun
+ − 63
my_neg :: "(nat \<times> nat) \<Rightarrow> (nat \<times> nat)"
+ − 64
where
+ − 65
"my_neg (x, y) = (y, x)"
+ − 66
+ − 67
quotient_def
+ − 68
NEG::"my_int \<Rightarrow> my_int"
+ − 69
where
+ − 70
"NEG \<equiv> my_neg"
+ − 71
+ − 72
term NEG
+ − 73
thm NEG_def
+ − 74
+ − 75
definition
+ − 76
MINUS :: "my_int \<Rightarrow> my_int \<Rightarrow> my_int"
+ − 77
where
+ − 78
"MINUS z w = PLUS z (NEG w)"
+ − 79
+ − 80
fun
+ − 81
my_mult :: "(nat \<times> nat) \<Rightarrow> (nat \<times> nat) \<Rightarrow> (nat \<times> nat)"
+ − 82
where
+ − 83
"my_mult (x, y) (u, v) = (x*u + y*v, x*v + y*u)"
+ − 84
+ − 85
quotient_def
+ − 86
MULT::"my_int \<Rightarrow> my_int \<Rightarrow> my_int"
+ − 87
where
+ − 88
"MULT \<equiv> my_mult"
+ − 89
+ − 90
term MULT
+ − 91
thm MULT_def
+ − 92
+ − 93
(* NOT SURE WETHER THIS DEFINITION IS CORRECT *)
+ − 94
fun
+ − 95
my_le :: "(nat \<times> nat) \<Rightarrow> (nat \<times> nat) \<Rightarrow> bool"
+ − 96
where
+ − 97
"my_le (x, y) (u, v) = (x+v \<le> u+y)"
+ − 98
+ − 99
quotient_def
+ − 100
LE :: "my_int \<Rightarrow> my_int \<Rightarrow> bool"
+ − 101
where
+ − 102
"LE \<equiv> my_le"
+ − 103
+ − 104
term LE
+ − 105
thm LE_def
+ − 106
+ − 107
+ − 108
definition
+ − 109
LESS :: "my_int \<Rightarrow> my_int \<Rightarrow> bool"
+ − 110
where
+ − 111
"LESS z w = (LE z w \<and> z \<noteq> w)"
+ − 112
+ − 113
term LESS
+ − 114
thm LESS_def
+ − 115
+ − 116
definition
+ − 117
ABS :: "my_int \<Rightarrow> my_int"
+ − 118
where
+ − 119
"ABS i = (if (LESS i ZERO) then (NEG i) else i)"
+ − 120
+ − 121
definition
+ − 122
SIGN :: "my_int \<Rightarrow> my_int"
+ − 123
where
+ − 124
"SIGN i = (if i = ZERO then ZERO else if (LESS ZERO i) then ONE else (NEG ONE))"
+ − 125
+ − 126
ML {* print_qconstinfo @{context} *}
+ − 127
+ − 128
lemma plus_sym_pre:
+ − 129
shows "my_plus a b \<approx> my_plus b a"
+ − 130
apply(cases a)
+ − 131
apply(cases b)
+ − 132
apply(auto)
+ − 133
done
+ − 134
+ − 135
lemma plus_rsp[quotient_rsp]:
+ − 136
shows "(intrel ===> intrel ===> intrel) my_plus my_plus"
+ − 137
by (simp)
+ − 138
+ − 139
lemma test1: "my_plus a b = my_plus a b"
+ − 140
apply(rule refl)
+ − 141
done
+ − 142
+ − 143
lemma "PLUS a b = PLUS a b"
+ − 144
apply(tactic {* procedure_tac @{context} @{thm test1} 1 *})
+ − 145
apply(tactic {* regularize_tac @{context} 1 *})
610
2bee5ca44ef5
removed "global" data and lookup functions; had to move a tactic out from the inj_repabs_match tactic since apply_rsp interferes with a trans2 rule for ===>
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 146
apply(tactic {* all_inj_repabs_tac @{context} 1*})
597
+ − 147
apply(tactic {* clean_tac @{context} 1 *})
+ − 148
done
+ − 149
+ − 150
thm lambda_prs
+ − 151
+ − 152
lemma test2: "my_plus a = my_plus a"
+ − 153
apply(rule refl)
+ − 154
done
+ − 155
610
2bee5ca44ef5
removed "global" data and lookup functions; had to move a tactic out from the inj_repabs_match tactic since apply_rsp interferes with a trans2 rule for ===>
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 156
2bee5ca44ef5
removed "global" data and lookup functions; had to move a tactic out from the inj_repabs_match tactic since apply_rsp interferes with a trans2 rule for ===>
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 157
597
+ − 158
lemma "PLUS a = PLUS a"
+ − 159
apply(tactic {* procedure_tac @{context} @{thm test2} 1 *})
606
+ − 160
apply(rule impI)
597
+ − 161
apply(rule ballI)
+ − 162
apply(rule apply_rsp[OF Quotient_my_int plus_rsp])
+ − 163
apply(simp only: in_respects)
610
2bee5ca44ef5
removed "global" data and lookup functions; had to move a tactic out from the inj_repabs_match tactic since apply_rsp interferes with a trans2 rule for ===>
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 164
apply(tactic {* all_inj_repabs_tac @{context} 1*})
597
+ − 165
apply(tactic {* clean_tac @{context} 1 *})
+ − 166
done
+ − 167
+ − 168
lemma test3: "my_plus = my_plus"
+ − 169
apply(rule refl)
+ − 170
done
+ − 171
+ − 172
lemma "PLUS = PLUS"
+ − 173
apply(tactic {* procedure_tac @{context} @{thm test3} 1 *})
606
+ − 174
apply(rule impI)
597
+ − 175
apply(rule plus_rsp)
610
2bee5ca44ef5
removed "global" data and lookup functions; had to move a tactic out from the inj_repabs_match tactic since apply_rsp interferes with a trans2 rule for ===>
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 176
apply(tactic {* all_inj_repabs_tac @{context} 1*})
597
+ − 177
apply(tactic {* clean_tac @{context} 1 *})
+ − 178
done
+ − 179
+ − 180
+ − 181
lemma "PLUS a b = PLUS b a"
+ − 182
apply(tactic {* procedure_tac @{context} @{thm plus_sym_pre} 1 *})
+ − 183
apply(tactic {* regularize_tac @{context} 1 *})
610
2bee5ca44ef5
removed "global" data and lookup functions; had to move a tactic out from the inj_repabs_match tactic since apply_rsp interferes with a trans2 rule for ===>
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 184
apply(tactic {* all_inj_repabs_tac @{context} 1*})
597
+ − 185
apply(tactic {* clean_tac @{context} 1 *})
+ − 186
done
+ − 187
+ − 188
lemma plus_assoc_pre:
+ − 189
shows "my_plus (my_plus i j) k \<approx> my_plus i (my_plus j k)"
+ − 190
apply (cases i)
+ − 191
apply (cases j)
+ − 192
apply (cases k)
+ − 193
apply (simp)
+ − 194
done
+ − 195
+ − 196
lemma plus_assoc: "PLUS (PLUS x xa) xb = PLUS x (PLUS xa xb)"
+ − 197
apply(tactic {* procedure_tac @{context} @{thm plus_assoc_pre} 1 *})
+ − 198
apply(tactic {* regularize_tac @{context} 1 *})
610
2bee5ca44ef5
removed "global" data and lookup functions; had to move a tactic out from the inj_repabs_match tactic since apply_rsp interferes with a trans2 rule for ===>
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 199
apply(tactic {* all_inj_repabs_tac @{context} 1*})
597
+ − 200
apply(tactic {* clean_tac @{context} 1 *})
+ − 201
done
+ − 202
+ − 203
lemma ho_tst: "foldl my_plus x [] = x"
+ − 204
apply simp
+ − 205
done
+ − 206
+ − 207
lemma "foldl PLUS x [] = x"
+ − 208
apply(tactic {* procedure_tac @{context} @{thm ho_tst} 1 *})
+ − 209
apply(tactic {* regularize_tac @{context} 1 *})
610
2bee5ca44ef5
removed "global" data and lookup functions; had to move a tactic out from the inj_repabs_match tactic since apply_rsp interferes with a trans2 rule for ===>
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 210
apply(tactic {* all_inj_repabs_tac @{context} 1*})
597
+ − 211
apply(tactic {* clean_tac @{context} 1 *})
+ − 212
apply(simp only: foldl_prs[OF Quotient_my_int Quotient_my_int] nil_prs[OF Quotient_my_int])
+ − 213
done
+ − 214
+ − 215
lemma ho_tst2: "foldl my_plus x (h # t) \<approx> my_plus h (foldl my_plus x t)"
+ − 216
sorry
+ − 217
+ − 218
lemma "foldl PLUS x (h # t) = PLUS h (foldl PLUS x t)"
+ − 219
apply(tactic {* procedure_tac @{context} @{thm ho_tst2} 1 *})
+ − 220
apply(tactic {* regularize_tac @{context} 1 *})
610
2bee5ca44ef5
removed "global" data and lookup functions; had to move a tactic out from the inj_repabs_match tactic since apply_rsp interferes with a trans2 rule for ===>
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 221
apply(tactic {* all_inj_repabs_tac @{context} 1*})
597
+ − 222
apply(tactic {* clean_tac @{context} 1 *})
+ − 223
apply(simp only: foldl_prs[OF Quotient_my_int Quotient_my_int] cons_prs[OF Quotient_my_int])
+ − 224
done
+ − 225
+ − 226
lemma ho_tst3: "foldl f (s::nat \<times> nat) ([]::(nat \<times> nat) list) = s"
+ − 227
by simp
+ − 228
+ − 229
lemma "foldl f (x::my_int) ([]::my_int list) = x"
+ − 230
apply(tactic {* procedure_tac @{context} @{thm ho_tst3} 1 *})
+ − 231
apply(tactic {* regularize_tac @{context} 1 *})
610
2bee5ca44ef5
removed "global" data and lookup functions; had to move a tactic out from the inj_repabs_match tactic since apply_rsp interferes with a trans2 rule for ===>
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 232
apply(tactic {* all_inj_repabs_tac @{context} 1*})
597
+ − 233
(* TODO: does not work when this is added *)
+ − 234
(* apply(tactic {* lambda_prs_tac @{context} 1 *})*)
+ − 235
apply(tactic {* clean_tac @{context} 1 *})
+ − 236
apply(simp only: foldl_prs[OF Quotient_my_int Quotient_my_int] nil_prs[OF Quotient_my_int])
+ − 237
done
+ − 238
+ − 239
lemma lam_tst: "(\<lambda>x. (x, x)) y = (y, (y :: nat \<times> nat))"
+ − 240
by simp
+ − 241
+ − 242
lemma "(\<lambda>x. (x, x)) (y::my_int) = (y, y)"
+ − 243
apply(tactic {* procedure_tac @{context} @{thm lam_tst} 1 *})
+ − 244
apply(tactic {* regularize_tac @{context} 1 *})
610
2bee5ca44ef5
removed "global" data and lookup functions; had to move a tactic out from the inj_repabs_match tactic since apply_rsp interferes with a trans2 rule for ===>
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 245
apply(tactic {* all_inj_repabs_tac @{context} 1*})
597
+ − 246
apply(tactic {* clean_tac @{context} 1 *})
+ − 247
apply(simp add: pair_prs)
+ − 248
done
+ − 249
+ − 250
lemma lam_tst2: "(\<lambda>(y :: nat \<times> nat). y) = (\<lambda>(x :: nat \<times> nat). x)"
+ − 251
by simp
+ − 252
605
120e479ed367
first attempt to deal with Babs in regularise and cleaning (not yet working)
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 253
(* test about lifting identity equations *)
597
+ − 254
605
120e479ed367
first attempt to deal with Babs in regularise and cleaning (not yet working)
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 255
ML {*
120e479ed367
first attempt to deal with Babs in regularise and cleaning (not yet working)
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 256
(* helper code from QuotMain *)
120e479ed367
first attempt to deal with Babs in regularise and cleaning (not yet working)
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 257
val pat_ball = @{term "Ball (Respects (R1 ===> R2)) P"}
120e479ed367
first attempt to deal with Babs in regularise and cleaning (not yet working)
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 258
val pat_bex = @{term "Bex (Respects (R1 ===> R2)) P"}
120e479ed367
first attempt to deal with Babs in regularise and cleaning (not yet working)
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 259
val simproc = Simplifier.simproc_i @{theory} "" [pat_ball, pat_bex] (K (ball_bex_range_simproc))
120e479ed367
first attempt to deal with Babs in regularise and cleaning (not yet working)
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 260
val simpset = (mk_minimal_ss @{context})
120e479ed367
first attempt to deal with Babs in regularise and cleaning (not yet working)
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 261
addsimps @{thms ball_reg_eqv bex_reg_eqv babs_reg_eqv}
120e479ed367
first attempt to deal with Babs in regularise and cleaning (not yet working)
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 262
addsimprocs [simproc] addSolver equiv_solver
120e479ed367
first attempt to deal with Babs in regularise and cleaning (not yet working)
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 263
*}
120e479ed367
first attempt to deal with Babs in regularise and cleaning (not yet working)
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 264
120e479ed367
first attempt to deal with Babs in regularise and cleaning (not yet working)
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 265
(* What regularising does *)
120e479ed367
first attempt to deal with Babs in regularise and cleaning (not yet working)
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 266
(*========================*)
120e479ed367
first attempt to deal with Babs in regularise and cleaning (not yet working)
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 267
120e479ed367
first attempt to deal with Babs in regularise and cleaning (not yet working)
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 268
(* 0. preliminary simplification step *)
606
+ − 269
thm ball_reg_eqv bex_reg_eqv (* of no use: babs_reg_eqv *)
605
120e479ed367
first attempt to deal with Babs in regularise and cleaning (not yet working)
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 270
ball_reg_eqv_range bex_reg_eqv_range
120e479ed367
first attempt to deal with Babs in regularise and cleaning (not yet working)
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 271
(* 1. first two rtacs *)
120e479ed367
first attempt to deal with Babs in regularise and cleaning (not yet working)
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 272
thm ball_reg_right bex_reg_left
120e479ed367
first attempt to deal with Babs in regularise and cleaning (not yet working)
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 273
(* 2. monos *)
120e479ed367
first attempt to deal with Babs in regularise and cleaning (not yet working)
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 274
(* 3. commutation rules *)
120e479ed367
first attempt to deal with Babs in regularise and cleaning (not yet working)
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 275
thm ball_all_comm bex_ex_comm
120e479ed367
first attempt to deal with Babs in regularise and cleaning (not yet working)
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 276
(* 4. then rel-equality *)
120e479ed367
first attempt to deal with Babs in regularise and cleaning (not yet working)
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 277
thm eq_imp_rel
120e479ed367
first attempt to deal with Babs in regularise and cleaning (not yet working)
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 278
(* 5. then simplification like 0 *)
120e479ed367
first attempt to deal with Babs in regularise and cleaning (not yet working)
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 279
(* finally jump to 1 *)
120e479ed367
first attempt to deal with Babs in regularise and cleaning (not yet working)
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 280
120e479ed367
first attempt to deal with Babs in regularise and cleaning (not yet working)
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 281
120e479ed367
first attempt to deal with Babs in regularise and cleaning (not yet working)
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 282
(* What cleaning does *)
120e479ed367
first attempt to deal with Babs in regularise and cleaning (not yet working)
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 283
(*====================*)
120e479ed367
first attempt to deal with Babs in regularise and cleaning (not yet working)
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 284
120e479ed367
first attempt to deal with Babs in regularise and cleaning (not yet working)
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 285
(* 1. conversion *)
120e479ed367
first attempt to deal with Babs in regularise and cleaning (not yet working)
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 286
thm lambda_prs
120e479ed367
first attempt to deal with Babs in regularise and cleaning (not yet working)
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 287
(* 2. simplification with *)
120e479ed367
first attempt to deal with Babs in regularise and cleaning (not yet working)
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 288
thm all_prs ex_prs
120e479ed367
first attempt to deal with Babs in regularise and cleaning (not yet working)
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 289
(* 3. Simplification with *)
120e479ed367
first attempt to deal with Babs in regularise and cleaning (not yet working)
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 290
thm fun_map.simps id_simps Quotient_abs_rep Quotient_rel_rep
120e479ed367
first attempt to deal with Babs in regularise and cleaning (not yet working)
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 291
(* 4. Test for refl *)
120e479ed367
first attempt to deal with Babs in regularise and cleaning (not yet working)
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 292
120e479ed367
first attempt to deal with Babs in regularise and cleaning (not yet working)
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 293
lemma
120e479ed367
first attempt to deal with Babs in regularise and cleaning (not yet working)
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 294
shows "equivp (op \<approx>)"
120e479ed367
first attempt to deal with Babs in regularise and cleaning (not yet working)
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 295
and "equivp ((op \<approx>) ===> (op \<approx>))"
120e479ed367
first attempt to deal with Babs in regularise and cleaning (not yet working)
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 296
apply -
120e479ed367
first attempt to deal with Babs in regularise and cleaning (not yet working)
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 297
apply(tactic {* equiv_tac @{context} 1 *})
120e479ed367
first attempt to deal with Babs in regularise and cleaning (not yet working)
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 298
apply(tactic {* equiv_tac @{context} 1 *})?
120e479ed367
first attempt to deal with Babs in regularise and cleaning (not yet working)
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 299
oops
120e479ed367
first attempt to deal with Babs in regularise and cleaning (not yet working)
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 300
606
+ − 301
lemma lam_tst3a: "(\<lambda>(y :: nat \<times> nat). y) = (\<lambda>(x :: nat \<times> nat). x)"
597
+ − 302
by auto
+ − 303
606
+ − 304
lemma "(\<lambda>(y :: my_int). y) = (\<lambda>(x :: my_int). x)"
+ − 305
apply(tactic {* procedure_tac @{context} @{thm lam_tst3a} 1 *})
597
+ − 306
defer
610
2bee5ca44ef5
removed "global" data and lookup functions; had to move a tactic out from the inj_repabs_match tactic since apply_rsp interferes with a trans2 rule for ===>
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 307
apply(tactic {* all_inj_repabs_tac @{context} 1*})
602
e56eeb9fedb3
make_inst for lambda_prs where the second quotient is not identity.
Cezary Kaliszyk <kaliszyk@in.tum.de>
diff
changeset
+ − 308
apply(tactic {* clean_tac @{context} 1 *})
606
+ − 309
apply(subst babs_rsp)
+ − 310
apply(tactic {* clean_tac @{context} 1 *})
+ − 311
apply(simp)
+ − 312
apply(tactic {* regularize_tac @{context} 1*})?
+ − 313
apply(subst babs_reg_eqv)
+ − 314
apply(tactic {* equiv_tac @{context} 1*})
+ − 315
apply(subst babs_reg_eqv)
+ − 316
apply(tactic {* equiv_tac @{context} 1*})
+ − 317
sorry
+ − 318
+ − 319
lemma lam_tst3b: "(\<lambda>(y :: nat \<times> nat \<Rightarrow> nat \<times> nat). y) = (\<lambda>(x :: nat \<times> nat \<Rightarrow> nat \<times> nat). x)"
+ − 320
by auto
+ − 321
+ − 322
lemma "(\<lambda>(y :: my_int => my_int). y) = (\<lambda>(x :: my_int => my_int). x)"
+ − 323
apply(tactic {* procedure_tac @{context} @{thm lam_tst3b} 1 *})
+ − 324
defer
610
2bee5ca44ef5
removed "global" data and lookup functions; had to move a tactic out from the inj_repabs_match tactic since apply_rsp interferes with a trans2 rule for ===>
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 325
apply(tactic {* all_inj_repabs_tac @{context} 1*})
606
+ − 326
apply(tactic {* clean_tac @{context} 1 *})
+ − 327
apply(subst babs_rsp)
+ − 328
apply(tactic {* clean_tac @{context} 1 *})
+ − 329
apply(simp)
+ − 330
apply(tactic {* regularize_tac @{context} 1*})?
597
+ − 331
sorry
601
+ − 332
+ − 333
end