src/Pure/zterm.ML
changeset 79417 a4eae462f224
parent 79416 623789141e39
child 79418 3a66bcb208b8
equal deleted inserted replaced
79416:623789141e39 79417:a4eae462f224
   785         | _ => tab)));
   785         | _ => tab)));
   786   in (a, A, instT, inst) end;
   786   in (a, A, instT, inst) end;
   787 
   787 
   788 fun make_const_proof (f, g) (a, A, instT, inst) =
   788 fun make_const_proof (f, g) (a, A, instT, inst) =
   789   let
   789   let
   790     val typ = Same.function (fn ZTVar ((x, _), _) => try f x | _ => NONE);
   790     val typ = subst_type_same (Same.function (fn ((x, _), _) => try f x));
   791     val term = Same.function (fn ZVar ((x, _), _) => try g x | _ => NONE);
   791     val term = Same.function (fn ZVar ((x, _), _) => try g x | _ => NONE);
   792     val (instT', inst') = Same.commit (map_insts_same typ term) (instT, inst);
   792     val (instT', inst') = Same.commit (map_insts_same typ term) (instT, inst);
   793   in ZConstp (a, A, instT', inst') end;
   793   in ZConstp (a, A, instT', inst') end;
   794 
   794 
   795 
   795