fix monotonicity type of None
authorblanchet
Mon, 06 Dec 2010 13:46:45 +0100
changeset 41018 83f241623b86
parent 41017 666d8ed0b73a
child 41019 b63cb15e96aa
child 41027 c599955d9806
child 41038 9592334001d5
child 41057 8dbc951a291c
fix monotonicity type of None
src/HOL/Tools/Nitpick/nitpick_mono.ML
--- a/src/HOL/Tools/Nitpick/nitpick_mono.ML	Mon Dec 06 13:36:28 2010 +0100
+++ b/src/HOL/Tools/Nitpick/nitpick_mono.ML	Mon Dec 06 13:46:45 2010 +0100
@@ -848,8 +848,8 @@
        case t of
          @{const False} =>
          (MRaw (t, bool_M), accum ||> add_comp_frame (A Fls) Leq frame)
-       | Const (@{const_name None}, _) =>
-         (MRaw (t, bool_M), accum ||> add_comp_frame (A Fls) Leq frame)
+       | Const (@{const_name None}, T) =>
+         (MRaw (t, mtype_for T), accum ||> add_comp_frame (A Fls) Leq frame)
        | @{const True} =>
          (MRaw (t, bool_M), accum ||> add_comp_frame (A Tru) Leq frame)
        | (t0 as Const (@{const_name HOL.eq}, _)) $ Bound 0 $ t2 =>