src/HOL/Tools/coinduction.ML
changeset 59058 a78612c67ec0
parent 58839 ccda99401bc8
child 59158 05cb83f083b9
--- a/src/HOL/Tools/coinduction.ML	Wed Nov 26 16:55:43 2014 +0100
+++ b/src/HOL/Tools/coinduction.ML	Wed Nov 26 20:05:34 2014 +0100
@@ -65,8 +65,8 @@
             |> fold Variable.declare_thm (raw_thm :: prems);
           val thm_concl = Thm.cprop_of raw_thm |> strip_imp_concl;
           val (rhoTs, rhots) = Thm.match (thm_concl, concl)
-            |>> map (pairself typ_of)
-            ||> map (pairself term_of);
+            |>> map (apply2 typ_of)
+            ||> map (apply2 term_of);
           val xs = hd (Thm.prems_of raw_thm) |> HOLogic.dest_Trueprop |> strip_comb |> snd
             |> map (subst_atomic_types rhoTs);
           val raw_eqs = map (fn x => (x, AList.lookup op aconv rhots x |> the)) xs;