src/HOL/Tools/Metis/metis_translate.ML
changeset 44016 4ca344fe0aca
parent 44015 f497a1e97d37
child 44021 283114859d6c
     1.1 --- a/src/HOL/Tools/Metis/metis_translate.ML	Mon Jun 06 20:36:35 2011 +0200
     1.2 +++ b/src/HOL/Tools/Metis/metis_translate.ML	Mon Jun 06 20:36:35 2011 +0200
     1.3 @@ -329,7 +329,8 @@
     1.4        else if String.isPrefix helper_prefix ident then
     1.5          case space_explode "_" ident  of
     1.6            _ :: const :: j :: _ =>
     1.7 -          nth (AList.lookup (op =) helper_table const |> the |> snd)
     1.8 +          nth (helper_table |> filter (curry (op =) const o fst)
     1.9 +                            |> maps (snd o snd))
    1.10                (the (Int.fromString j) - 1)
    1.11            |> prepare_helper |> Isa_Raw |> some
    1.12          | _ => raise Fail ("malformed helper identifier " ^ quote ident)