recursive find_eq, not find_dist;
authorwenzelm
Fri, 29 Oct 2021 19:49:11 +0200
changeset 74628 cd030003efa8
parent 74627 c690435c47ee
child 74629 9264ef3a2ba3
recursive find_eq, not find_dist;
src/HOL/Analysis/metric_arith.ML
--- a/src/HOL/Analysis/metric_arith.ML	Fri Oct 29 19:43:32 2021 +0200
+++ b/src/HOL/Analysis/metric_arith.ML	Fri Oct 29 19:49:11 2021 +0200
@@ -238,7 +238,7 @@
       (case t of
         \<^Const_>\<open>HOL.eq T for l r\<close> =>
           if Sign.of_sort thy (T, \<^sort>\<open>metric_space\<close>) then SOME T
-          else (case find_eq l of NONE => find_dist r (* FIXME find_eq!? *) | some => some)
+          else (case find_eq l of NONE => find_eq r | some => some)
       | t1 $ t2 => (case find_eq t1 of NONE => find_eq t2 | some => some)
       | Abs _ => find_eq (#2 (Term.dest_abs_global t))
       | _ => NONE)