equal
deleted
inserted
replaced
327 String.isPrefix lightweight_tags_sym_formula_prefix ident then |
327 String.isPrefix lightweight_tags_sym_formula_prefix ident then |
328 Isa_Reflexive_or_Trivial |> some |
328 Isa_Reflexive_or_Trivial |> some |
329 else if String.isPrefix helper_prefix ident then |
329 else if String.isPrefix helper_prefix ident then |
330 case space_explode "_" ident of |
330 case space_explode "_" ident of |
331 _ :: const :: j :: _ => |
331 _ :: const :: j :: _ => |
332 nth (AList.lookup (op =) helper_table const |> the |> snd) |
332 nth (helper_table |> filter (curry (op =) const o fst) |
|
333 |> maps (snd o snd)) |
333 (the (Int.fromString j) - 1) |
334 (the (Int.fromString j) - 1) |
334 |> prepare_helper |> Isa_Raw |> some |
335 |> prepare_helper |> Isa_Raw |> some |
335 | _ => raise Fail ("malformed helper identifier " ^ quote ident) |
336 | _ => raise Fail ("malformed helper identifier " ^ quote ident) |
336 else case try (unprefix conjecture_prefix) ident of |
337 else case try (unprefix conjecture_prefix) ident of |
337 SOME s => |
338 SOME s => |