equal
deleted
inserted
replaced
236 | _ => NONE) |
236 | _ => NONE) |
237 fun find_eq t = |
237 fun find_eq t = |
238 (case t of |
238 (case t of |
239 \<^Const_>\<open>HOL.eq T for l r\<close> => |
239 \<^Const_>\<open>HOL.eq T for l r\<close> => |
240 if Sign.of_sort thy (T, \<^sort>\<open>metric_space\<close>) then SOME T |
240 if Sign.of_sort thy (T, \<^sort>\<open>metric_space\<close>) then SOME T |
241 else (case find_eq l of NONE => find_dist r (* FIXME find_eq!? *) | some => some) |
241 else (case find_eq l of NONE => find_eq r | some => some) |
242 | t1 $ t2 => (case find_eq t1 of NONE => find_eq t2 | some => some) |
242 | t1 $ t2 => (case find_eq t1 of NONE => find_eq t2 | some => some) |
243 | Abs _ => find_eq (#2 (Term.dest_abs_global t)) |
243 | Abs _ => find_eq (#2 (Term.dest_abs_global t)) |
244 | _ => NONE) |
244 | _ => NONE) |
245 in |
245 in |
246 (case find_dist tm of |
246 (case find_dist tm of |