[Imprint][Data Privacy Statement][E-Mail]
View long theorem info.
View the proof.
Back to main index.
View the specification.
View theorem base summary,
View theorem base listing,
the used properties by spec,
the dependency list,
the symbol table,
Proof step 55 from proof gcd-rec-sub-01 (previous step)
| 0 < i, i0 < 0 ⊦ gcd(abs(i), abs(i0 + i)) = gcd(abs(i), abs(i0)), i0 = 0 |
User applied rule insert rewrite lemma
And obtained the following new goals
- Proof step 56:
⊦ 0 < i ∧ i < j → gcd(i, j) = gcd(i, j - i)
- Proof step 57:
i0 < 0, 0 < i ⊦ gcd(abs(i), abs(i0 + i)) = gcd(abs(i), abs(i0)), i0 = 0, 0 < abs(i) ∧ abs(i) < abs(i0)
Rule argument
spec: <toplevel>
name: gcd-rec-sub
seq: ⊦ 0 < i ∧ i < j → gcd(i, j) = gcd(i, j - i)
subst: [j, i] → [abs(i0), abs(i)]
flags: <all paths>Additional information
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 ↔ i + j < 0; (s)%add-c: ⊦ i + j = j + i; from specification int-basic2
Used terms: abs(i0), abs(i)