Skip to content

Commit 6217a49

Browse files
committed
Fix compiler/encoders/monadic_enc for drule change
1 parent 318ce07 commit 6217a49

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

compiler/encoders/monadic_enc/monadic_enc32Script.sml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -201,18 +201,18 @@ val lookup_ins_table_32_correct = Q.prove(`
201201
disch_then drule>>
202202
fs[]);
203203

204-
val enc_line_hash_32_correct = Q.prove(`
204+
val enc_line_hash_32_correct = Q.prove(
205205
∀line.
206-
good_table_32 enc n s ∧ 0 < n ⇒
207-
∃s'.
208-
enc_line_hash_32 enc skip_len n line s =
209-
(Success (enc_line enc skip_len line),s') ∧
210-
good_table_32 enc n s'`,
206+
good_table_32 enc n s ∧ 0 < n ⇒
207+
∃s'.
208+
enc_line_hash_32 enc skip_len n line s =
209+
(Success (enc_line enc skip_len line),s') ∧
210+
good_table_32 enc n s',
211211
Cases>>fs[enc_line_hash_32_def,enc_line_def]>>
212212
fs msimps>>
213213
qmatch_goalsub_abbrev_tac`lookup_ins_table_32 _ _ aa`>>
214214
rw[]>>
215-
drule lookup_ins_table_32_correct>>rw[]>>simp[]);
215+
old_drule lookup_ins_table_32_correct>>rw[]>>simp[]);
216216

217217
val enc_line_hash_32_ls_correct = Q.prove(`
218218
∀xs s.
@@ -224,7 +224,7 @@ val enc_line_hash_32_ls_correct = Q.prove(`
224224
Induct>>fs[enc_line_hash_32_ls_def]>>
225225
fs msimps>>
226226
rw[]>> simp[]>>
227-
drule enc_line_hash_32_correct>>
227+
old_drule enc_line_hash_32_correct>>
228228
disch_then (qspec_then `h` assume_tac)>>rfs[]>>
229229
first_x_assum drule>>
230230
rw[]>>simp[]);
@@ -240,7 +240,7 @@ val enc_sec_hash_32_ls_correct = Q.prove(`
240240
fs msimps>>
241241
rw[]>> simp[]>>
242242
TOP_CASE_TAC>>simp[]>>
243-
drule enc_line_hash_32_ls_correct>>
243+
old_drule enc_line_hash_32_ls_correct>>
244244
simp[]>>
245245
disch_then(qspec_then`l` assume_tac)>>fs[]>>
246246
first_x_assum drule>>rw[]>>

compiler/encoders/monadic_enc/monadic_enc64Script.sml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -190,15 +190,15 @@ val lookup_ins_table_64_correct = Q.prove(`
190190
>- (
191191
fs[good_table_64_def]>>
192192
match_mp_tac IMP_EVERY_LUPDATE>>fs[]>>
193-
drule EL_MEM>>
193+
old_drule EL_MEM>>
194194
metis_tac[EVERY_MEM])
195195
>>
196196
fs[good_table_64_def]>>
197-
drule EL_MEM>>
198-
drule ALOOKUP_MEM>>
197+
old_drule EL_MEM>>
198+
old_drule ALOOKUP_MEM>>
199199
fs[EVERY_MEM]>>
200-
rw[]>> first_x_assum drule>>
201-
disch_then drule>>
200+
rw[]>> first_x_assum old_drule>>
201+
disch_then old_drule>>
202202
fs[]);
203203

204204
val enc_line_hash_64_correct = Q.prove(`
@@ -212,7 +212,7 @@ val enc_line_hash_64_correct = Q.prove(`
212212
fs msimps>>
213213
qmatch_goalsub_abbrev_tac`lookup_ins_table_64 _ _ aa`>>
214214
rw[]>>
215-
drule lookup_ins_table_64_correct>>rw[]>>simp[]);
215+
old_drule lookup_ins_table_64_correct>>rw[]>>simp[]);
216216

217217
val enc_line_hash_64_ls_correct = Q.prove(`
218218
∀xs s.
@@ -224,9 +224,9 @@ val enc_line_hash_64_ls_correct = Q.prove(`
224224
Induct>>fs[enc_line_hash_64_ls_def]>>
225225
fs msimps>>
226226
rw[]>> simp[]>>
227-
drule enc_line_hash_64_correct>>
227+
old_drule enc_line_hash_64_correct>>
228228
disch_then (qspec_then `h` assume_tac)>>rfs[]>>
229-
first_x_assum drule>>
229+
first_x_assum old_drule>>
230230
rw[]>>simp[]);
231231

232232
val enc_sec_hash_64_ls_correct = Q.prove(`
@@ -240,10 +240,10 @@ val enc_sec_hash_64_ls_correct = Q.prove(`
240240
fs msimps>>
241241
rw[]>> simp[]>>
242242
TOP_CASE_TAC>>simp[]>>
243-
drule enc_line_hash_64_ls_correct>>
243+
old_drule enc_line_hash_64_ls_correct>>
244244
simp[]>>
245245
disch_then(qspec_then`l` assume_tac)>>fs[]>>
246-
first_x_assum drule>>rw[]>>
246+
first_x_assum old_drule>>rw[]>>
247247
simp[enc_sec_def]);
248248

249249
Theorem enc_secs_64_correct:

0 commit comments

Comments
 (0)