src/HOL/ex/SVC_Oracle.ML
changeset 17314 04e21a27c0ad
parent 16836 45a3dc4688bc
child 17415 ec859c451f59
equal deleted inserted replaced
17313:7d97f60293ae 17314:04e21a27c0ad
    36         end;
    36         end;
    37     fun replace t =
    37     fun replace t =
    38         case t of
    38         case t of
    39             Free _  => t  (*but not existing Vars, lest the names clash*)
    39             Free _  => t  (*but not existing Vars, lest the names clash*)
    40           | Bound _ => t
    40           | Bound _ => t
    41           | _ => (case gen_assoc Pattern.aeconv (!pairs, t) of
    41           | _ => (case AList.lookup Pattern.aeconv (!pairs) t of
    42                       SOME v => v
    42                       SOME v => v
    43                     | NONE   => insert t)
    43                     | NONE   => insert t)
    44     (*abstraction of a numeric literal*)
    44     (*abstraction of a numeric literal*)
    45     fun lit (t as Const("0", _)) = t
    45     fun lit (t as Const("0", _)) = t
    46       | lit (t as Const("1", _)) = t
    46       | lit (t as Const("1", _)) = t