src/HOL/TPTP/TPTP_Parser/tptp_reconstruct_library.ML
changeset 74525 c960bfcb91db
parent 74282 c2ee8d993d6a
equal deleted inserted replaced
74524:8ee3d5d3c1bf 74525:c960bfcb91db
   319 
   319 
   320 (*like strip_top_All_vars but for "Pure.all" instead of "HOL.All"*)
   320 (*like strip_top_All_vars but for "Pure.all" instead of "HOL.All"*)
   321 fun strip_top_all_vars acc t =
   321 fun strip_top_all_vars acc t =
   322   if Logic.is_all t then
   322   if Logic.is_all t then
   323     let
   323     let
   324       val (v, t') = Logic.dest_all t
   324       val (v, t') = Logic.dest_all_global t
   325       (*bound instances in t' are replaced with free vars*)
   325       (*bound instances in t' are replaced with free vars*)
   326     in
   326     in
   327       strip_top_all_vars (v :: acc) t'
   327       strip_top_all_vars (v :: acc) t'
   328     end
   328     end
   329   else (acc, (*variables are returned in FILO order*)
   329   else (acc, (*variables are returned in FILO order*)