prefer local counter;
authorwenzelm
Wed, 24 Jul 2019 13:30:15 +0200
changeset 70409 f881efa6be50
parent 70408 be32cb8bfe25
child 70410 cafffcb7d383
prefer local counter;
src/Pure/proofterm.ML
--- a/src/Pure/proofterm.ML	Wed Jul 24 13:19:00 2019 +0200
+++ b/src/Pure/proofterm.ML	Wed Jul 24 13:30:15 2019 +0200
@@ -1688,6 +1688,8 @@
 
 (** theorems **)
 
+val proof_serial = Counter.make ();
+
 fun prepare_thm_proof thy name shyps hyps concl promises body =
   let
     val PBody {oracles = oracles0, thms = thms0, proof = prf} = body;
@@ -1731,7 +1733,7 @@
 
     fun new_prf () =
       let
-        val i = serial ();
+        val i = proof_serial ();
         val postproc =
           unconstrainT_body thy (atyp_map, constraints) #>
           name <> "" ? map_proof_of (clean_proof thy #> publish i);