|
39 | 39 | (declare-parameterized-const - ((T Type :implicit) (U Type :implicit)) (-> T U (arith_typeunion T U)) :left-assoc) |
40 | 40 | (declare-parameterized-const * ((T Type :implicit) (U Type :implicit)) (-> T U (arith_typeunion_nary T U)) :right-assoc-nil 1) |
41 | 41 |
|
42 | | -(declare-parameterized-const < ((T Type :implicit) (U Type :implicit) |
43 | | - (t T :requires ((is_arith_type T) true)) |
44 | | - (u U :requires ((is_arith_type U) true))) |
45 | | - Bool :chainable and) |
46 | | -(declare-parameterized-const <= ((T Type :implicit) (U Type :implicit) |
47 | | - (t T :requires ((is_arith_type T) true)) |
48 | | - (u U :requires ((is_arith_type U) true))) |
49 | | - Bool :chainable and) |
50 | | -(declare-parameterized-const > ((T Type :implicit) (U Type :implicit) |
51 | | - (t T :requires ((is_arith_type T) true)) |
52 | | - (u U :requires ((is_arith_type U) true))) |
53 | | - Bool :chainable and) |
54 | | -(declare-parameterized-const >= ((T Type :implicit) (U Type :implicit) |
55 | | - (t T :requires ((is_arith_type T) true)) |
56 | | - (u U :requires ((is_arith_type U) true))) |
57 | | - Bool :chainable and) |
| 42 | +(declare-parameterized-const < ((T Type :implicit) (U Type :implicit)) (-> (! T :requires ((is_arith_type T) true)) |
| 43 | + (! U :requires ((is_arith_type U) true)) |
| 44 | + Bool) |
| 45 | + :chainable and) |
| 46 | +(declare-parameterized-const <= ((T Type :implicit) (U Type :implicit)) (-> (! T :requires ((is_arith_type T) true)) |
| 47 | + (! U :requires ((is_arith_type U) true)) |
| 48 | + Bool) |
| 49 | + :chainable and) |
| 50 | +(declare-parameterized-const > ((T Type :implicit) (U Type :implicit)) (-> (! T :requires ((is_arith_type T) true)) |
| 51 | + (! U :requires ((is_arith_type U) true)) |
| 52 | + Bool) |
| 53 | + :chainable and) |
| 54 | +(declare-parameterized-const >= ((T Type :implicit) (U Type :implicit)) (-> (! T :requires ((is_arith_type T) true)) |
| 55 | + (! U :requires ((is_arith_type U) true)) |
| 56 | + Bool) |
| 57 | + :chainable and) |
58 | 58 |
|
59 | | -(declare-parameterized-const to_real ((T Type :implicit) (t T :requires ((is_arith_type T) true))) |
60 | | - Real) |
61 | | -(declare-parameterized-const to_int ((T Type :implicit) (t T :requires ((is_arith_type T) true))) |
62 | | - Int) |
63 | | -(declare-parameterized-const is_int ((T Type :implicit) (t T :requires ((is_arith_type T) true))) |
64 | | - Bool) |
65 | | -(declare-parameterized-const abs ((T Type :implicit) (t T :requires ((is_arith_type T) true))) |
66 | | - T) |
| 59 | +(declare-parameterized-const to_real ((T Type :implicit)) (-> (! T :requires ((is_arith_type T) true)) |
| 60 | + Real)) |
| 61 | +(declare-parameterized-const to_int ((T Type :implicit)) (-> (! T :requires ((is_arith_type T) true)) |
| 62 | + Int)) |
| 63 | +(declare-parameterized-const is_int ((T Type :implicit)) (-> (! T :requires ((is_arith_type T) true)) |
| 64 | + Bool)) |
| 65 | +(declare-parameterized-const abs ((T Type :implicit)) (-> (! T :requires ((is_arith_type T) true)) |
| 66 | + T)) |
67 | 67 |
|
68 | 68 | ; power |
69 | 69 | (declare-parameterized-const ^ ((T Type :implicit) (U Type :implicit)) (-> T U (arith_typeunion T U))) |
70 | 70 |
|
71 | 71 | ; currently unary negation cannot use overload |
72 | | -(declare-parameterized-const u- ((T Type :implicit) (t T :requires ((is_arith_type T) true))) |
73 | | - T) |
| 72 | +(declare-parameterized-const u- ((T Type :implicit)) (-> (! T :requires ((is_arith_type T) true)) |
| 73 | + T)) |
0 commit comments