src/Pure/thm.ML
changeset 79332 40cabd57aac3
parent 79331 8e0c80a9beb6
child 79335 6d167422bcb0
--- a/src/Pure/thm.ML	Fri Dec 22 13:53:03 2023 +0100
+++ b/src/Pure/thm.ML	Fri Dec 22 14:55:55 2023 +0100
@@ -1142,7 +1142,7 @@
       val _ = null tpairs orelse raise THM ("name_derivation: bad flex-flex constraints", 0, [thm]);
 
       val ps = map (apsnd (Future.map fulfill_body)) promises;
-      val (_, body') =
+      val body' =
         Proofterm.thm_proof thy (classrel_proof thy) (arity_proof thy)
           name_pos shyps hyps prop ps body;
     in Thm (make_deriv0 [] body', args) end);
@@ -2005,10 +2005,9 @@
       val _ = null tfrees orelse err ("illegal free type variables " ^ commas_quote tfrees);
 
       val ps = map (apsnd (Future.map fulfill_body)) promises;
-      val ((_, thm_node), body') =
+      val (prop', body') =
         Proofterm.unconstrain_thm_proof thy (classrel_proof thy) (arity_proof thy)
           shyps prop ps body;
-      val prop' = Proofterm.thm_node_prop thm_node;
     in
       Thm (make_deriv0 [] body',
        {cert = cert,