src/HOL/Tools/SMT/smt_real.ML
changeset 66551 4df6b0ae900d
parent 62913 13252110a6fe
child 69205 8050734eee3e
equal deleted inserted replaced
66550:e5d82cf3c387 66551:4df6b0ae900d
    30   fun times _ _ ts = if is_linear ts then SOME ("*", 2, ts, mk_times) else NONE
    30   fun times _ _ ts = if is_linear ts then SOME ("*", 2, ts, mk_times) else NONE
    31 in
    31 in
    32 
    32 
    33 val setup_builtins =
    33 val setup_builtins =
    34   SMT_Builtin.add_builtin_typ SMTLIB_Interface.smtlibC
    34   SMT_Builtin.add_builtin_typ SMTLIB_Interface.smtlibC
    35     (@{typ real}, K (SOME "Real"), real_num) #>
    35     (@{typ real}, K (SOME ("Real", [])), real_num) #>
    36   fold (SMT_Builtin.add_builtin_fun' SMTLIB_Interface.smtlibC) [
    36   fold (SMT_Builtin.add_builtin_fun' SMTLIB_Interface.smtlibC) [
    37     (@{const less (real)}, "<"),
    37     (@{const less (real)}, "<"),
    38     (@{const less_eq (real)}, "<="),
    38     (@{const less_eq (real)}, "<="),
    39     (@{const uminus (real)}, "-"),
    39     (@{const uminus (real)}, "-"),
    40     (@{const plus (real)}, "+"),
    40     (@{const plus (real)}, "+"),