equal
deleted
inserted
replaced
110 (*To let us treat subtraction as addition*) |
110 (*To let us treat subtraction as addition*) |
111 val diff_simps = [@{thm zdiff_def}, @{thm zminus_zadd_distrib}, @{thm zminus_zminus}]; |
111 val diff_simps = [@{thm zdiff_def}, @{thm zminus_zadd_distrib}, @{thm zminus_zminus}]; |
112 |
112 |
113 (*push the unary minus down: - x * y = x * - y *) |
113 (*push the unary minus down: - x * y = x * - y *) |
114 val int_minus_mult_eq_1_to_2 = |
114 val int_minus_mult_eq_1_to_2 = |
115 [@{thm zmult_zminus}, @{thm zmult_zminus_right} RS sym] MRS trans |> standard; |
115 [@{thm zmult_zminus}, @{thm zmult_zminus_right} RS sym] MRS trans |> Drule.standard; |
116 |
116 |
117 (*to extract again any uncancelled minuses*) |
117 (*to extract again any uncancelled minuses*) |
118 val int_minus_from_mult_simps = |
118 val int_minus_from_mult_simps = |
119 [@{thm zminus_zminus}, @{thm zmult_zminus}, @{thm zmult_zminus_right}]; |
119 [@{thm zminus_zminus}, @{thm zmult_zminus}, @{thm zmult_zminus_right}]; |
120 |
120 |