proper subgoal addressing;
authorwenzelm
Fri, 29 Oct 2021 20:15:59 +0200
changeset 74630 779ae499ca8b
parent 74629 9264ef3a2ba3
child 74631 f1099c7330b7
proper subgoal addressing;
src/HOL/Analysis/metric_arith.ML
--- a/src/HOL/Analysis/metric_arith.ML	Fri Oct 29 20:04:33 2021 +0200
+++ b/src/HOL/Analysis/metric_arith.ML	Fri Oct 29 20:15:59 2021 +0200
@@ -217,11 +217,11 @@
   end)
 
 (* decision procedure for linear real arithmetic *)
-fun lin_real_arith_tac ctxt metric_ty i goal =
+fun lin_real_arith_tac ctxt metric_ty = CSUBGOAL (fn (goal, i) =>
   let
-    val dist_thms = augment_dist_pos metric_ty (Thm.cprem_of goal 1)
+    val dist_thms = augment_dist_pos metric_ty goal
     val ctxt' = argo_trace_ctxt ctxt
-  in (Argo_Tactic.argo_tac ctxt' dist_thms) i goal end
+  in Argo_Tactic.argo_tac ctxt' dist_thms i end)
 
 fun basic_metric_arith_tac ctxt metric_ty =
   HEADGOAL (dist_refl_sym_tac ctxt THEN'