--- a/src/Pure/thm.ML Tue Jun 06 11:07:49 2023 +0200
+++ b/src/Pure/thm.ML Tue Jun 06 11:26:59 2023 +0200
@@ -92,7 +92,11 @@
val trim_context_ctyp: ctyp -> ctyp
val trim_context_cterm: cterm -> cterm
val transfer_ctyp: theory -> ctyp -> ctyp
+ val transfer_ctyp': Proof.context -> ctyp -> ctyp
+ val transfer_ctyp'': Context.generic -> ctyp -> ctyp
val transfer_cterm: theory -> cterm -> cterm
+ val transfer_cterm': Proof.context -> cterm -> cterm
+ val transfer_cterm'': Context.generic -> cterm -> cterm
val transfer: theory -> thm -> thm
val transfer': Proof.context -> thm -> thm
val transfer'': Context.generic -> thm -> thm
@@ -596,6 +600,9 @@
else Ctyp {cert = cert', T = T, maxidx = maxidx, sorts = sorts}
end;
+val transfer_ctyp' = transfer_ctyp o Proof_Context.theory_of;
+val transfer_ctyp'' = transfer_ctyp o Context.theory_of;
+
fun transfer_cterm thy' ct =
let
val Cterm {cert, t, T, maxidx, sorts} = ct;
@@ -609,6 +616,9 @@
else Cterm {cert = cert', t = t, T = T, maxidx = maxidx, sorts = sorts}
end;
+val transfer_cterm' = transfer_cterm o Proof_Context.theory_of;
+val transfer_cterm'' = transfer_cterm o Context.theory_of;
+
fun transfer thy' th =
let
val Thm (der, {cert, tags, maxidx, constraints, shyps, hyps, tpairs, prop}) = th;