more robust indices
authorblanchet
Thu Mar 13 14:48:20 2014 +0100 (2014-03-13)
changeset 5610575dc126f5dcb
parent 56104 fd6e132ee4fb
child 56106 9cfea3ab002a
more robust indices
src/HOL/Tools/SMT2/smt2_normalize.ML
     1.1 --- a/src/HOL/Tools/SMT2/smt2_normalize.ML	Thu Mar 13 14:48:20 2014 +0100
     1.2 +++ b/src/HOL/Tools/SMT2/smt2_normalize.ML	Thu Mar 13 14:48:20 2014 +0100
     1.3 @@ -497,7 +497,7 @@
     1.4    let
     1.5      val (is, thms) = split_list ithms
     1.6      val (thms', extra_thms) = f thms
     1.7 -  in (is ~~ thms') @ tag_list (length is) extra_thms end
     1.8 +  in (is ~~ thms') @ tag_list (fold Integer.max is 0 + 1) extra_thms end
     1.9  
    1.10  fun unfold2 ctxt ithms =
    1.11    ithms