| abs(i0) < abs(i), 0 < i, i0 < i, i0 < 0 ⊦ gcd(abs(i) - abs(i0), abs(i)) = gcd(abs(i) - abs(i0), abs(i0)), i = 0, i0 = 0 |
⊦ 0 < i ∧ i < j → gcd(i, j) = gcd(j, j - i)
i0 < 0, i0 < i, 0 < i, abs(i0) < abs(i), 0 < abs(i) - abs(i0), abs(i) - abs(i0) < abs(i) ⊦ gcd(abs(i), abs(i) - (abs(i) - abs(i0))) = gcd(abs(i) - abs(i0), abs(i0)), i = 0, i0 = 0
Used simplifier rules: gcd-neg: ⊦ gcd(~ i, j) = gcd(i, j);%gcd-com: ⊦ gcd(i, j) = gcd(j, i);% ⊦ 0 < j → abs(j) = j; (s)% ⊦ i < 0 → abs(i) = ~ i; (s)% ⊦ i - ~ j = i + j; (s)% ⊦ ~ i < j ↔ 0 < j + i; (s)% ⊦ i + j < j ↔ i < 0; (s)%add-a: ⊦ i + j + i0 = (i + j) + i0; from specification int-basic2%add-c: ⊦ i + j = j + i; from specification int-basic2 Used terms: abs(i), abs(i) - abs(i0)