src/HOL/Tools/arith_data.ML
changeset 47108 2a1953f0d20d
parent 45620 f2a587696afb
child 48372 868dc809c8a2
equal deleted inserted replaced
47107:35807a5d8dc2 47108:2a1953f0d20d
    66     "various arithmetic decision procedures";
    66     "various arithmetic decision procedures";
    67 
    67 
    68 
    68 
    69 (* some specialized syntactic operations *)
    69 (* some specialized syntactic operations *)
    70 
    70 
    71 fun mk_number T n = HOLogic.number_of_const T $ HOLogic.mk_numeral n;
    71 fun mk_number T 1 = HOLogic.numeral_const T $ HOLogic.one_const
       
    72   | mk_number T n = HOLogic.mk_number T n;
    72 
    73 
    73 val mk_plus = HOLogic.mk_binop @{const_name Groups.plus};
    74 val mk_plus = HOLogic.mk_binop @{const_name Groups.plus};
    74 
    75 
    75 fun mk_minus t = 
    76 fun mk_minus t = 
    76   let val T = Term.fastype_of t
    77   let val T = Term.fastype_of t