| i0 < j, i0 < 0, 0 ≤ i, 0 < j, i0 + 1 < j ⊦ (i % j * i0) % j = (i * i0) % j |
(i % j * i0) % j = ~(i % j * ~ i0) % j, i0 < j, i0 < 0, 0 ≤ i, 0 < j, i0 + 1 < j ⊦ (i % j * i0) % j = (i * i0) % j
Used simplifier rules: minus-left: ⊦ ~ i * j = ~(i * j); from specification int-mult%associativity: ⊦ i * j * j0 = (i * j) * j0; from specification int-mult%commutativity: ⊦ i * j = j * i; from specification int-mult%neg-02: ⊦ ~ ~ i = i; from specification int-abs Used formulas: (i % j * i0) % j = ~(i % j * ~ i0) % j