Skip to content

Commit 2588965

Browse files
committed
Fix cfAppLib's arrow-handling for change in drule
Retains same fragility that it had before
1 parent 4c2a4e8 commit 2588965

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

characteristic/cfAppLib.sml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,9 @@ fun app_of_Arrow_rule ffi_ty thm = let
134134
(assume_tac asm)) \\
135135
ASSUM_LIST (fn assums =>
136136
foldr (fn (asm, tac_acc) =>
137-
drule (INST_TYPE [ffi_varty |-> ffi_ty] Arrow_IMP_app_basic) \\
137+
(* use old_drule and hope that p in theorem will be the same as p
138+
in the goal *)
139+
old_drule (INST_TYPE [ffi_varty |-> ffi_ty] Arrow_IMP_app_basic) \\
138140
disch_then (fn th => mp_tac (MATCH_MP th asm)) \\
139141
match_mp_tac app_basic_weaken \\
140142
Cases THEN_LT REVERSE_LT THEN1 (simp [cfHeapsBaseTheory.POSTv_def]) \\

0 commit comments

Comments
 (0)