# HG changeset patch # User wenzelm # Date 1701888353 -3600 # Node ID 16a144eaf67dbe3f9d47601de40321a41b96ad42 # Parent 4189e10f15249b1f92776a665fe788ab3dd9af2a tuned; diff -r 4189e10f1524 -r 16a144eaf67d src/Pure/zterm.ML --- a/src/Pure/zterm.ML Wed Dec 06 16:04:00 2023 +0100 +++ b/src/Pure/zterm.ML Wed Dec 06 19:45:53 2023 +0100 @@ -291,12 +291,6 @@ fun map_proof_types_same typ = map_proof_same typ (subst_term_same typ Same.same); - -(* instantiation *) - -fun init_instT t = ZTVars.build (ZTVars.add_tvars t) |> ZTVars.map (fn v => fn _ => ZTVar v); -fun init_inst t = ZVars.build (ZVars.add_vars t) |> ZVars.map (fn v => fn _ => ZVar v); - fun map_const_proof (f, g) prf = (case prf of ZConstP (a, A, instT, inst) => @@ -375,8 +369,8 @@ fun const_proof thy a A = let val t = global_zterm_of thy A; - val instT = init_instT t; - val inst = init_inst t; + val instT = ZTVars.build (ZTVars.add_tvars t) |> ZTVars.map (fn v => fn _ => ZTVar v); + val inst = ZVars.build (ZVars.add_vars t) |> ZVars.map (fn v => fn _ => ZVar v); in ZConstP (a, t, instT, inst) end; fun axiom_proof thy name = const_proof thy (ZAxiom name);