TFL/tfl.ML
changeset 19876 11d447d5d68c
parent 19349 36e537f89585
child 19925 3f9341831812
equal deleted inserted replaced
19875:7405ce9d4f25 19876:11d447d5d68c
   553                  (name, Ty, S.list_mk_abs (args,rhs))
   553                  (name, Ty, S.list_mk_abs (args,rhs))
   554      val ([def0], theory) =
   554      val ([def0], theory) =
   555        thy
   555        thy
   556        |> PureThy.add_defs_i false
   556        |> PureThy.add_defs_i false
   557             [Thm.no_attributes (fid ^ "_def", defn)]
   557             [Thm.no_attributes (fid ^ "_def", defn)]
   558      val def = freezeT def0;
   558      val def = Thm.freezeT def0;
   559      val dummy = if !trace then writeln ("DEF = " ^ string_of_thm def)
   559      val dummy = if !trace then writeln ("DEF = " ^ string_of_thm def)
   560                            else ()
   560                            else ()
   561      (* val fconst = #lhs(S.dest_eq(concl def))  *)
   561      (* val fconst = #lhs(S.dest_eq(concl def))  *)
   562      val tych = Thry.typecheck theory
   562      val tych = Thry.typecheck theory
   563      val full_rqt_prop = map (Dcterm.mk_prop o tych) full_rqt
   563      val full_rqt_prop = map (Dcterm.mk_prop o tych) full_rqt