Skip to content

Commit 718b3aa

Browse files
committed
fix EVERY_CASE_TAC proof
1 parent c02dc61 commit 718b3aa

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

examples/formal-languages/regular/regexp_compilerScript.sml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,7 +1107,7 @@ QED
11071107

11081108

11091109
Theorem extend_states_thm :
1110-
!next_state state_map table states next_state' state_map' table'.
1110+
next_state state_map table states next_state' state_map' table'.
11111111
(extend_states next_state state_map table states
11121112
= (next_state',state_map',table')) /\
11131113
invariant regexp_compare state_map
@@ -1143,11 +1143,8 @@ Proof
11431143
>> `good_cmp regexp_compare` by metis_tac [regexp_compare_good]
11441144
>> rw [lookup_insert_thm,regexp_compare_eq]
11451145
>> metis_tac [THE_DEF])
1146-
>- (rename1 ‘x = fapply regexp_compare state_map' r’ >>
1147-
gvs[submap_def,fapply_def] >>
1148-
first_x_assum $ mp_tac o Q.SPEC `r` >>
1149-
rw [fdom_def]
1150-
>> metis_tac [THE_DEF])
1146+
>- (gvs[submap_def,fapply_def,fdom_def,EXTENSION,PULL_EXISTS] >>
1147+
first_x_assum drule >> disch_then (SUBST_ALL_TAC o SYM) >> rw[])
11511148
QED
11521149

11531150
(*---------------------------------------------------------------------------*)

0 commit comments

Comments
 (0)