[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 1 from proof gcd-rec-sub-03 (conclusion) (back to tree)

⊦ gcd(i, j) = gcd(j, j - i)

System applied rule normalize

And obtained the following new goals

Rule argument

Additional information

Proof step 2 from proof gcd-rec-sub-03 (previous step) (back to tree)

gcd(i, j) ≠ gcd(j, j - i) ⊦

Heuristic elimination applied rule apply elim lemma

And obtained the following new goals

Rule argument

spec: int-abs, name:elim-sub, seq: ⊦ i0 = i - j ↔ i = i0 + j, subst:[i, j, i0] → [j, i, i0]

Additional information

Used simplifier rules: ⊦ i0 = i - j ↔ i = i0 + j; (elim) Used terms: j, i, i0

Proof step 3 from proof gcd-rec-sub-03 (previous step) (back to tree)

j = i0 + i, gcd(i, j) ≠ gcd(j, i0) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 4 from proof gcd-rec-sub-03 (previous step) (back to tree)

gcd(i, i0 + i) ≠ gcd(i0 + i, i0) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:gcd-rec-sub-02, seq: ⊦ 0 < i ∧ i < j → gcd(i, j) = gcd(j, j - i), subst:[j, i] → [i0 + i, i], <all paths>

Additional information

Used simplifier rules: ⊦ i + j - i = j; (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: i0 + i, i

Proof step 5 from proof gcd-rec-sub-03 (previous step) (back to tree)

⊦ 0 < i ∧ i < j → gcd(i, j) = gcd(j, j - i)

Lemma gcd-rec-sub-02

Proof step 6 from proof gcd-rec-sub-03 (previous step) (back to tree)

gcd(i, i0 + i) ≠ gcd(i0 + i, i0) ⊦ 0 < i ∧ i < i0 + i

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 7 from proof gcd-rec-sub-03 (previous step) (back to tree)

gcd(i, i0 + i) ≠ gcd(i0 + i, i0) ⊦ 0 < i ∧ i < i0 + i

User applied rule cut formula

And obtained the following new goals

Rule argument

fma: i < 0

Additional information

Used formulas: i < 0

Proof step 8 from proof gcd-rec-sub-03 (previous step) (back to tree)

gcd(i, i0 + i) ≠ gcd(i0 + i, i0), i < 0 ⊦ 0 < i ∧ i < i0 + i

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: forward-le-02: ⊦ j < i ∧ i ≤ 0 → j < 0; (forward) from specification int-abs

Proof step 9 from proof gcd-rec-sub-03 (previous step) (back to tree)

gcd(i, i0 + i) ≠ gcd(i0 + i, i0), i < 0 ⊦ 0 < i ∧ i < i0 + i

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:gcd-abs-rew-02, seq: ⊦ gcd(i, j) = gcd(abs(i), abs(j)), subst:[j, i] → [i0 + i, i], <all paths>

Additional information

Used terms: i0 + i, i

Proof step 10 from proof gcd-rec-sub-03 (previous step) (back to tree)

⊦ gcd(i, j) = gcd(abs(i), abs(j))

Lemma gcd-abs-rew-02

Proof step 11 from proof gcd-rec-sub-03 (previous step) (back to tree)

gcd(abs(i), abs(i0 + i)) ≠ gcd(i0 + i, i0), i < 0 ⊦ 0 < i ∧ i < i0 + i

User applied rule cut formula

And obtained the following new goals

Rule argument

fma: i0 < 0

Additional information

Used formulas: i0 < 0

Proof step 12 from proof gcd-rec-sub-03 (previous step) (back to tree)

gcd(abs(i), abs(i0 + i)) ≠ gcd(i0 + i, i0), i < 0, i0 < 0 ⊦ 0 < i ∧ i < i0 + i

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:gcd-rec-sub-02, seq: ⊦ 0 < i ∧ i < j → gcd(i, j) = gcd(j, j - i), subst:[j, i] → [abs(i0 + i), abs(i)], <all paths>

Additional information

Used terms: abs(i0 + i), abs(i)

Proof step 13 from proof gcd-rec-sub-03 (previous step) (back to tree)

⊦ 0 < i ∧ i < j → gcd(i, j) = gcd(j, j - i)

Lemma gcd-rec-sub-02

Proof step 14 from proof gcd-rec-sub-03 (previous step) (back to tree)

gcd(abs(i), abs(i0 + i)) ≠ gcd(i0 + i, i0), i0 < 0, i < 0 ⊦ 0 < i ∧ i < i0 + i, 0 < abs(i) ∧ abs(i) < abs(i0 + i)

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: int-abs, name:absa, seq: ⊦ i ≤ 0 ∧ j ≤ 0 → abs(i + j) = abs(i) + abs(j), subst:[j, i] → [i, i0], <all paths>

Additional information

Used simplifier rules: gcd-neg: ⊦ gcd(~ i, j) = gcd(i, j); gcd-neg: ⊦ gcd(~ i, j) = gcd(i, j); gcd-com: ⊦ gcd(i, j) = gcd(j, i); ⊦ i < 0 ∧ 0 ≤ j → i ≤ j; (s) ⊦ i < j → ¬ j < i; (s) ⊦ 0 < ~ i ↔ i < 0; (s) ⊦ i < 0 → abs(i) = ~ i; (s) ⊦ ~ i + ~ j = ~(i + j); (s) ⊦ ~ j < ~ i ↔ i < j; (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: i, i0

Proof step 15 from proof gcd-rec-sub-03 (previous step) (back to tree)

⊦ i ≤ 0 ∧ j ≤ 0 → abs(i + j) = abs(i) + abs(j)

A spec-lemma

Proof step 16 from proof gcd-rec-sub-03 (previous step) (back to tree)

gcd(abs(i0 + i), abs(i0 + i) - abs(i)) ≠ gcd(i0 + i, i0), i0 < 0, i < 0, 0 < abs(i), abs(i) < abs(i0 + i) ⊦ 0 < i ∧ i < i0 + i

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: int-abs, name:absa, seq: ⊦ i ≤ 0 ∧ j ≤ 0 → abs(i + j) = abs(i) + abs(j), subst:[j, i] → [i, i0], <all paths>

Additional information

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

Proof step 17 from proof gcd-rec-sub-03 (previous step) (back to tree)

⊦ i ≤ 0 ∧ j ≤ 0 → abs(i + j) = abs(i) + abs(j)

A spec-lemma

Proof step 18 from proof gcd-rec-sub-03 (previous step) (back to tree)

gcd(abs(i), abs(i0 + i)) ≠ gcd(i0 + i, i0), i < 0, ¬ i0 < 0 ⊦ 0 < i ∧ i < i0 + i

User applied rule cut formula

And obtained the following new goals

Rule argument

fma: abs(i) < i0

Additional information

Used formulas: abs(i) < i0

Proof step 19 from proof gcd-rec-sub-03 (previous step) (back to tree)

gcd(abs(i), abs(i0 + i)) ≠ gcd(i0 + i, i0), i < 0, abs(i) < i0, ¬ i0 < 0 ⊦ 0 < i ∧ i < i0 + i

User applied rule cut formula

And obtained the following new goals

Rule argument

fma: abs(i0 + i) = i0 - abs(i)

Additional information

Used simplifier rules: gcd-neg: ⊦ gcd(~ i, j) = gcd(i, j); gcd-com: ⊦ gcd(i, j) = gcd(j, i); ⊦ i - ~ j = i + j; (s) ⊦ abs(i) = i ↔ 0 ≤ i; (s) ⊦ i ≤ j ↔ ¬ j < i; (ss) ⊦ i < 0 → abs(i) = ~ i; (s) ⊦ ~ i < j ↔ 0 < j + i; (s) ⊦ i < j → ¬ j < i; (s) Used formulas: abs(i0 + i) = i0 - abs(i)

Proof step 20 from proof gcd-rec-sub-03 (previous step) (back to tree)

abs(i0 + i) = i0 - abs(i), gcd(abs(i), abs(i0 + i)) ≠ gcd(i0 + i, i0), abs(i) < i0, i < 0, ¬ i0 < 0 ⊦ 0 < i ∧ i < i0 + i

User applied rule subst equation

And obtained the following new goals

Rule argument

pos: left 1, flags: discard

Additional information

Proof step 21 from proof gcd-rec-sub-03 (previous step) (back to tree)

gcd(abs(i), i0 - abs(i)) ≠ gcd(i0 + i, i0), i < 0, abs(i) < i0, ¬ i0 < 0 ⊦ 0 < i ∧ i < i0 + i

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:gcd-abs-rew-02, seq: ⊦ gcd(i, j) = gcd(abs(i), abs(j)), subst:[j, i] → [i0, i0 + i], <all paths>

Additional information

Used terms: i0, i0 + i

Proof step 22 from proof gcd-rec-sub-03 (previous step) (back to tree)

⊦ gcd(i, j) = gcd(abs(i), abs(j))

Lemma gcd-abs-rew-02

Proof step 23 from proof gcd-rec-sub-03 (previous step) (back to tree)

gcd(abs(i), i0 - abs(i)) ≠ gcd(abs(i0 + i), abs(i0)), abs(i) < i0, i < 0, ¬ i0 < 0 ⊦ 0 < i ∧ i < i0 + i

User applied rule cut formula

And obtained the following new goals

Rule argument

fma: abs(i0 + i) = i0 - abs(i)

Additional information

Used simplifier rules: gcd-neg: ⊦ gcd(~ i, j) = gcd(i, j); ⊦ abs(i) = i ↔ 0 ≤ i; (s) ⊦ i ≤ j ↔ ¬ j < i; (ss) ⊦ i - ~ j = i + j; (s) ⊦ ¬ j < 0 → abs(j) = j; (s) ⊦ i < 0 → abs(i) = ~ i; (s) ⊦ ~ i < j ↔ 0 < j + i; (s) ⊦ i < j → ¬ j < i; (s) Used formulas: abs(i0 + i) = i0 - abs(i)

Proof step 24 from proof gcd-rec-sub-03 (previous step) (back to tree)

abs(i0 + i) = i0 - abs(i), gcd(abs(i), i0 - abs(i)) ≠ gcd(abs(i0 + i), abs(i0)), i < 0, abs(i) < i0, ¬ i0 < 0 ⊦ 0 < i ∧ i < i0 + i

User applied rule subst equation

And obtained the following new goals

Rule argument

pos: left 1, flags: discard

Additional information

Proof step 25 from proof gcd-rec-sub-03 (previous step) (back to tree)

gcd(abs(i), i0 - abs(i)) ≠ gcd(i0 - abs(i), abs(i0)), abs(i) < i0, i < 0, ¬ i0 < 0 ⊦ 0 < i ∧ i < i0 + i

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:gcd-rec-sub-02, seq: ⊦ 0 < i ∧ i < j → gcd(i, j) = gcd(j, j - i), subst:[j, i] → [abs(i0), i0 - abs(i)], <all paths>

Additional information

Used simplifier rules: gcd-neg: ⊦ gcd(~ i, j) = gcd(i, j); ⊦ ¬ j < 0 → abs(j) = j; (s) ⊦ ~ i < j ↔ 0 < j + i; (s) ⊦ i < j ↔ ¬ j ≤ i; (ss) ⊦ i < 0 → abs(i) = ~ i; (s) ⊦ i - ~ j = i + j; (s) ⊦ 0 ≤ i → abs(i) = 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(i0), i0 - abs(i)

Proof step 26 from proof gcd-rec-sub-03 (previous step) (back to tree)

⊦ 0 < i ∧ i < j → gcd(i, j) = gcd(j, j - i)

Lemma gcd-rec-sub-02

Proof step 27 from proof gcd-rec-sub-03 (previous step) (back to tree)

gcd(abs(i), i0 - abs(i)) ≠ gcd(abs(i0), abs(i0) - (i0 - abs(i))), i < 0, abs(i) < i0, 0 < i0 - abs(i), i0 - abs(i) < abs(i0), ¬ i0 < 0 ⊦ 0 < i ∧ i < i0 + i

User applied rule cut formula

And obtained the following new goals

Rule argument

fma: abs(i0) - (i0 - abs(i)) = abs(i)

Additional information

Used simplifier rules: ⊦ ¬ j < 0 → abs(j) = j; (s) ⊦ i - ~ j = i + j; (s) ⊦ i - j + i = ~ j; (s) add-a: ⊦ i + j + i0 = (i + j) + i0; from specification int-basic2 add-c: ⊦ i + j = j + i; from specification int-basic2 ⊦ i < 0 → abs(i) = ~ i; (s) ⊦ ~ i = ~ j ↔ i = j; (s) Used formulas: abs(i0) - (i0 - abs(i)) = abs(i)

Proof step 28 from proof gcd-rec-sub-03 (previous step) (back to tree)

abs(i0) - (i0 - abs(i)) = abs(i), gcd(abs(i), i0 - abs(i)) ≠ gcd(abs(i0), abs(i0) - (i0 - abs(i))), i0 - abs(i) < abs(i0), 0 < i0 - abs(i), abs(i) < i0, i < 0, ¬ i0 < 0 ⊦ 0 < i ∧ i < i0 + i

User applied rule subst equation

And obtained the following new goals

Rule argument

pos: left 1, flags: discard

Additional information

Proof step 29 from proof gcd-rec-sub-03 (previous step) (back to tree)

gcd(abs(i), i0 - abs(i)) ≠ gcd(abs(i0), abs(i)), i < 0, abs(i) < i0, 0 < i0 - abs(i), i0 - abs(i) < abs(i0), ¬ i0 < 0 ⊦ 0 < i ∧ i < i0 + i

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:gcd-com, seq: ⊦ gcd(i, j) = gcd(j, i), subst:[j, i] → [abs(i), abs(i0)], <all paths>

Additional information

Used terms: abs(i), abs(i0)

Proof step 30 from proof gcd-rec-sub-03 (previous step) (back to tree)

⊦ gcd(i, j) = gcd(j, i)

Lemma gcd-com

Proof step 31 from proof gcd-rec-sub-03 (previous step) (back to tree)

gcd(abs(i), i0 - abs(i)) ≠ gcd(abs(i), abs(i0)), i0 - abs(i) < abs(i0), 0 < i0 - abs(i), abs(i) < i0, i < 0, ¬ i0 < 0 ⊦ 0 < i ∧ i < i0 + i

User applied rule apply rewrite lemma

And obtained the following new goals

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)], <all paths>

Additional information

Used simplifier rules: gcd-neg: ⊦ gcd(~ i, j) = gcd(i, j); gcd-neg: ⊦ gcd(~ i, j) = gcd(i, j); ⊦ ¬ j < 0 → abs(j) = j; (s) ⊦ i < 0 → abs(i) = ~ i; (s) ⊦ i - ~ j = i + j; (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 ⊦ i < j ↔ ¬ j ≤ i; (ss) ⊦ 0 < ~ i ↔ i < 0; (s) ⊦ i < 0 ∧ 0 ≤ j → i < j; (s) ⊦ 0 ≤ i → abs(i) = i; (s) ⊦ ~ i < j ↔ 0 < j + i; (s) Used terms: abs(i0), abs(i)

Proof step 32 from proof gcd-rec-sub-03 (previous step) (back to tree)

⊦ 0 < i ∧ i < j → gcd(i, j) = gcd(i, j - i)

Lemma gcd-rec-sub

Proof step 33 from proof gcd-rec-sub-03 (previous step) (back to tree)

gcd(abs(i), abs(i0 + i)) ≠ gcd(i0 + i, i0), i < 0, ¬ abs(i) < i0, ¬ i0 < 0 ⊦ 0 < i ∧ i < i0 + i

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:gcd-abs-rew-02, seq: ⊦ gcd(i, j) = gcd(abs(i), abs(j)), subst:[j, i] → [i0, i0 + i], <all paths>

Additional information

Used terms: i0, i0 + i

Proof step 34 from proof gcd-rec-sub-03 (previous step) (back to tree)

⊦ gcd(i, j) = gcd(abs(i), abs(j))

Lemma gcd-abs-rew-02

Proof step 35 from proof gcd-rec-sub-03 (previous step) (back to tree)

gcd(abs(i), abs(i0 + i)) ≠ gcd(abs(i0 + i), abs(i0)), i < 0, ¬ abs(i) < i0, ¬ i0 < 0 ⊦ 0 < i ∧ i < i0 + i

User applied rule cut formula

And obtained the following new goals

Rule argument

fma: abs(i0 + i) = abs(i) - abs(i0)

Additional information

Used simplifier rules: gcd-neg: ⊦ gcd(~ i, j) = gcd(i, j); ⊦ ~ i - j = ~(i + j); (s) ⊦ ~ i = j ↔ i + j = 0; (s) ⊦ abs(i) + i = 0 ↔ i ≤ 0; (s) ⊦ i ≤ j ↔ ¬ j < i; (ss) add-a: ⊦ i + j + i0 = (i + j) + i0; from specification int-basic2 add-c: ⊦ i + j = j + i; from specification int-basic2 ⊦ 0 < j → abs(j) = j; (s) ⊦ ¬ j < 0 → abs(j) = j; (s) ⊦ i < 0 → abs(i) = ~ i; (s) ⊦ ~ i < j ↔ 0 < j + i; (s) ⊦ i < j ↔ ¬ j ≤ i; (ss) ⊦ i < j → (j ≤ i ↔ false); (as) Used formulas: abs(i0 + i) = abs(i) - abs(i0)

Proof step 36 from proof gcd-rec-sub-03 (previous step) (back to tree)

abs(i0 + i) = abs(i) - abs(i0), gcd(abs(i), abs(i0 + i)) ≠ gcd(abs(i0 + i), abs(i0)), i < 0, ¬ abs(i) < i0, ¬ i0 < 0 ⊦ 0 < i ∧ i < i0 + i

User applied rule subst equation

And obtained the following new goals

Rule argument

pos: left 1, flags: discard

Additional information

Proof step 37 from proof gcd-rec-sub-03 (previous step) (back to tree)

gcd(abs(i), abs(i) - abs(i0)) ≠ gcd(abs(i) - abs(i0), abs(i0)), i < 0, ¬ abs(i) < i0, ¬ i0 < 0 ⊦ 0 < i ∧ i < i0 + i

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:gcd-com, seq: ⊦ gcd(i, j) = gcd(j, i), subst:[j, i] → [abs(i) - abs(i0), abs(i)], <all paths>

Additional information

Used terms: abs(i) - abs(i0), abs(i)

Proof step 38 from proof gcd-rec-sub-03 (previous step) (back to tree)

⊦ gcd(i, j) = gcd(j, i)

Lemma gcd-com

Proof step 39 from proof gcd-rec-sub-03 (previous step) (back to tree)

gcd(abs(i) - abs(i0), abs(i)) ≠ gcd(abs(i) - abs(i0), abs(i0)), i < 0, ¬ abs(i) < i0, ¬ i0 < 0 ⊦ 0 < i ∧ i < i0 + i

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:gcd-rec-sub-02, seq: ⊦ 0 < i ∧ i < j → gcd(i, j) = gcd(j, j - i), subst:[j, i] → [abs(i), abs(i) - abs(i0)], <all paths>

Additional information

Used terms: abs(i), abs(i) - abs(i0)

Proof step 40 from proof gcd-rec-sub-03 (previous step) (back to tree)

⊦ 0 < i ∧ i < j → gcd(i, j) = gcd(j, j - i)

Lemma gcd-rec-sub-02

Proof step 41 from proof gcd-rec-sub-03 (previous step) (back to tree)

gcd(abs(i) - abs(i0), abs(i)) ≠ gcd(abs(i) - abs(i0), abs(i0)), i < 0, ¬ abs(i) < i0, ¬ i0 < 0 ⊦ 0 < i ∧ i < i0 + i, 0 < abs(i) - abs(i0) ∧ abs(i) - abs(i0) < abs(i)

User applied rule case distinction

And obtained the following new goals

Rule argument

pos: right 2

Additional information

Used simplifier rules: gcd-neg: ⊦ gcd(~ i, j) = gcd(i, j); gcd-zero-04: ⊦ gcd(i, 0) = abs(i); gcd-com: ⊦ gcd(i, j) = gcd(j, i); ⊦ ¬ j < 0 → abs(j) = j; (s) ⊦ ~ i - j = ~(i + j); (s) ⊦ 0 < ~ i ↔ i < 0; (s) ⊦ ~ i < j ↔ 0 < j + i; (s) add-c: ⊦ i + j = j + i; from specification int-basic2 ⊦ i ≤ j → (j ≤ i ↔ i = j); (s) ⊦ i < 0 ∧ 0 ≤ j → i < j; (s) ⊦ i < j ↔ ¬ j ≤ i; (ss) forward-le-04: ⊦ j ≤ i ∧ i ≤ 0 → j ≤ 0; (forward) from specification int-abs forward-le-01: ⊦ i ≤ j ∧ 0 ≤ i → 0 ≤ j; (forward) from specification int-abs forward-lsle: ⊦ i < j ∧ j ≤ j0 → i < j0; (forward) from specification int-abs ⊦ i < 0 → abs(i) = ~ i; (s) ⊦ 0 ≤ i → abs(i) = i; (s) ⊦ ~ i = j ↔ i + j = 0; (s)

Proof step 42 from proof gcd-rec-sub-03 (previous step) (back to tree)

gcd(abs(i) - abs(i0), abs(i)) ≠ gcd(abs(i) - abs(i0), abs(i0)), i < 0, ¬ abs(i) - abs(i0) < abs(i), ¬ abs(i) < i0, ¬ i0 < 0 ⊦ 0 < i ∧ i < i0 + i

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: gcd-com: ⊦ gcd(i, j) = gcd(j, i); gcd-neg: ⊦ gcd(~ i, j) = gcd(i, j); gcd-zero-04: ⊦ gcd(i, 0) = abs(i); add-c: ⊦ i + j = j + i; from specification int-basic2 add-a: ⊦ i + j + i0 = (i + j) + i0; from specification int-basic2 ⊦ i + 0 = i; (s) ⊦ i < 0 ∧ 0 ≤ j → i ≤ j; (s) ⊦ ~ i = j ↔ i + j = 0; (s) ⊦ i < 0 → abs(i) = ~ i; (s) forward-le-04: ⊦ j ≤ i ∧ i ≤ 0 → j ≤ 0; (forward) from specification int-abs ⊦ i ≤ j → (j ≤ i ↔ i = j); (s) ⊦ i < j ↔ ¬ j ≤ i; (ss) ⊦ ~ i < j ↔ 0 < j + i; (s) ⊦ i + j ≤ i ↔ j ≤ 0; (s) ⊦ ~ j < ~ i ↔ i < j; (s) ⊦ ~ i - j = ~(i + j); (s) ⊦ ¬ j < 0 → abs(j) = j; (s)

Proof step 43 from proof gcd-rec-sub-03 (previous step) (back to tree)

i + gcd(i, i) ≠ 0, i < 0 ⊦ 0 < i ∧ i < i

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:gcd-same, seq: ⊦ i ≠ 0 → gcd(i, i) = abs(i), subst:[i] → [i], <all paths>

Additional information

Used simplifier rules: gcd-zero: ⊦ gcd(0, 0) = 0; ⊦ i < 0 → abs(i) = ~ i; (s) ⊦ ~ i + 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: i

Proof step 44 from proof gcd-rec-sub-03 (previous step) (back to tree)

⊦ i ≠ 0 → gcd(i, i) = abs(i)

Lemma gcd-same

Proof step 45 from proof gcd-rec-sub-03 (previous step) (back to tree)

gcd(abs(i), abs(i) - (abs(i) - abs(i0))) ≠ gcd(abs(i) - abs(i0), abs(i0)), i < 0, 0 < abs(i) - abs(i0), abs(i) - abs(i0) < abs(i), ¬ abs(i) < i0, ¬ i0 < 0 ⊦ 0 < i ∧ i < i0 + i

User applied rule cut formula

And obtained the following new goals

Rule argument

fma: abs(i) - (abs(i) - abs(i0)) = abs(i0)

Additional information

Used simplifier rules: ⊦ i < 0 → abs(i) = ~ i; (s) ⊦ ~ i - j = ~(i + j); (s) ⊦ ~ i - ~ j = j - i; (s) ⊦ i + j - i = j; (s) add-a: ⊦ i + j + i0 = (i + j) + i0; from specification int-basic2 add-c: ⊦ i + j = j + i; from specification int-basic2 ⊦ ¬ j < 0 → abs(j) = j; (s) Used formulas: abs(i) - (abs(i) - abs(i0)) = abs(i0)

Proof step 46 from proof gcd-rec-sub-03 (previous step) (back to tree)

abs(i) - (abs(i) - abs(i0)) = abs(i0), gcd(abs(i), abs(i) - (abs(i) - abs(i0))) ≠ gcd(abs(i) - abs(i0), abs(i0)), abs(i) - abs(i0) < abs(i), 0 < abs(i) - abs(i0), i < 0, ¬ abs(i) < i0, ¬ i0 < 0 ⊦ 0 < i ∧ i < i0 + i

User applied rule subst equation

And obtained the following new goals

Rule argument

pos: left 1, flags: discard

Additional information

Proof step 47 from proof gcd-rec-sub-03 (previous step) (back to tree)

gcd(abs(i), abs(i0)) ≠ gcd(abs(i) - abs(i0), abs(i0)), i < 0, 0 < abs(i) - abs(i0), abs(i) - abs(i0) < abs(i), ¬ abs(i) < i0, ¬ i0 < 0 ⊦ 0 < i ∧ i < i0 + i

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:gcd-com, seq: ⊦ gcd(i, j) = gcd(j, i), subst:[j, i] → [abs(i0), abs(i)], <all paths>

Additional information

Used terms: abs(i0), abs(i)

Proof step 48 from proof gcd-rec-sub-03 (previous step) (back to tree)

⊦ gcd(i, j) = gcd(j, i)

Lemma gcd-com

Proof step 49 from proof gcd-rec-sub-03 (previous step) (back to tree)

gcd(abs(i0), abs(i)) ≠ gcd(abs(i) - abs(i0), abs(i0)), abs(i) - abs(i0) < abs(i), 0 < abs(i) - abs(i0), i < 0, ¬ abs(i) < i0, ¬ i0 < 0 ⊦ 0 < i ∧ i < i0 + i

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:gcd-rec-sub, seq: ⊦ 0 < i ∧ i < j → gcd(i, j) = gcd(i, j - i), subst:[j, i] → [abs(i), abs(i0)], <all paths>

Additional information

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

Proof step 50 from proof gcd-rec-sub-03 (previous step) (back to tree)

⊦ 0 < i ∧ i < j → gcd(i, j) = gcd(i, j - i)

Lemma gcd-rec-sub

Proof step 51 from proof gcd-rec-sub-03 (previous step) (back to tree)

gcd(i, i0 + i) ≠ gcd(i0 + i, i0), ¬ i < 0 ⊦ 0 < i ∧ i < i0 + i

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: forward-le-01: ⊦ i ≤ j ∧ 0 ≤ i → 0 ≤ j; (forward) from specification int-abs ⊦ i < j ↔ ¬ j ≤ i; (ss)

Proof step 52 from proof gcd-rec-sub-03 (previous step) (back to tree)

gcd(i, i0 + i) ≠ gcd(i0 + i, i0), 0 ≤ i ⊦ 0 < i ∧ i < i0 + i

User applied rule cut formula

And obtained the following new goals

Rule argument

fma: i = 0

Additional information

Used formulas: i = 0

Proof step 53 from proof gcd-rec-sub-03 (previous step) (back to tree)

i = 0, gcd(i, i0 + i) ≠ gcd(i0 + i, i0), 0 ≤ i ⊦ 0 < i ∧ i < i0 + i

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: gcd-zero-04: ⊦ gcd(i, 0) = abs(i); gcd-com: ⊦ gcd(i, j) = gcd(j, i); add-c: ⊦ i + j = j + i; from specification int-basic2 add-a: ⊦ i + j + i0 = (i + j) + i0; from specification int-basic2 ⊦ i + 0 = i; (s)

Proof step 54 from proof gcd-rec-sub-03 (previous step) (back to tree)

abs(i0) ≠ gcd(i0, i0) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:gcd-same, seq: ⊦ i ≠ 0 → gcd(i, i) = abs(i), subst:[i] → [i0], <all paths>

Additional information

Used simplifier rules: gcd-zero: ⊦ gcd(0, 0) = 0; Used terms: i0

Proof step 55 from proof gcd-rec-sub-03 (previous step) (back to tree)

⊦ i ≠ 0 → gcd(i, i) = abs(i)

Lemma gcd-same

Proof step 56 from proof gcd-rec-sub-03 (previous step) (back to tree)

gcd(i, i0 + i) ≠ gcd(i0 + i, i0), i ≠ 0, 0 ≤ i ⊦ 0 < i ∧ i < i0 + i

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: forward-le-05: ⊦ i < j ∧ 0 ≤ i → 0 < j; (forward) from specification int-abs ⊦ i ≠ j → (i ≤ j ↔ i < j); (s)

Proof step 57 from proof gcd-rec-sub-03 (previous step) (back to tree)

gcd(i, i0 + i) ≠ gcd(i0 + i, i0), i ≠ 0, 0 < i, ¬ i < i0 + i ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: int-abs, name:ge-def, seq: ⊦ i ≥ j ↔ ¬ i < j, subst:[j, i] → [i0 + i, i], <rotated> <all paths>

Additional information

Used terms: i0 + i, i

Proof step 58 from proof gcd-rec-sub-03 (previous step) (back to tree)

⊦ i ≥ j ↔ ¬ i < j

A spec-lemma

Proof step 59 from proof gcd-rec-sub-03 (previous step) (back to tree)

gcd(i, i0 + i) ≠ gcd(i0 + i, i0), i ≠ 0, 0 < i, i ≥ i0 + i ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: forward-le-04: ⊦ j ≤ i ∧ i ≤ 0 → j ≤ 0; (forward) from specification int-abs forward-lels: ⊦ i ≤ j ∧ j < j0 → i < j0; (forward) from specification int-abs ⊦ i < j ↔ ¬ j ≤ i; (ss) add-c: ⊦ i + j = j + i; from specification int-basic2 add-a: ⊦ i + j + i0 = (i + j) + i0; from specification int-basic2 ⊦ i < i + j ↔ 0 < j; (s) ⊦ i ≥ j ↔ ¬ i < j; (s)

Proof step 60 from proof gcd-rec-sub-03 (previous step) (back to tree)

gcd(i, i0 + i) ≠ gcd(i0 + i, i0), i ≠ 0, 0 < i, i0 < i, i0 ≤ 0 ⊦

User applied rule cut formula

And obtained the following new goals

Rule argument

fma: i = 0

Additional information

Used formulas: i = 0

Proof step 61 from proof gcd-rec-sub-03 (previous step) (back to tree)

gcd(i, i0 + i) ≠ gcd(i0 + i, i0), i ≠ 0, i0 < i, 0 < i, i0 ≤ 0 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 62 from proof gcd-rec-sub-03 (previous step) (back to tree)

gcd(i, i0 + i) ≠ gcd(i0 + i, i0), i ≠ 0, 0 < i, i0 < i, i0 ≤ 0 ⊦

User applied rule cut formula

And obtained the following new goals

Rule argument

fma: i0 = 0

Additional information

Used simplifier rules: gcd-same: ⊦ i ≠ 0 → gcd(i, i) = abs(i); gcd-zero-03: ⊦ i ≠ 0 → gcd(i, 0) = abs(i); ⊦ i + 0 = i; (s) add-a: ⊦ i + j + i0 = (i + j) + i0; from specification int-basic2 add-c: ⊦ i + j = j + i; from specification int-basic2 ⊦ 0 < j → abs(j) = j; (s) Used formulas: i0 = 0

Proof step 63 from proof gcd-rec-sub-03 (previous step) (back to tree)

gcd(i, i0 + i) ≠ gcd(i0 + i, i0), i ≠ 0, i0 ≠ 0, i0 < i, 0 < i, i0 ≤ 0 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: forward-le-02: ⊦ j < i ∧ i ≤ 0 → j < 0; (forward) from specification int-abs ⊦ i ≠ j → (i ≤ j ↔ i < j); (s)

Proof step 64 from proof gcd-rec-sub-03 (previous step) (back to tree)

gcd(i, i0 + i) ≠ gcd(i0 + i, i0), i ≠ 0, i0 ≠ 0, 0 < i, i0 < i, i0 < 0 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:gcd-abs-rew-02, seq: ⊦ gcd(i, j) = gcd(abs(i), abs(j)), subst:[j, i] → [i0 + i, i], <all paths>

Additional information

Used terms: i0 + i, i

Proof step 65 from proof gcd-rec-sub-03 (previous step) (back to tree)

⊦ gcd(i, j) = gcd(abs(i), abs(j))

Lemma gcd-abs-rew-02

Proof step 66 from proof gcd-rec-sub-03 (previous step) (back to tree)

gcd(abs(i), abs(i0 + i)) ≠ gcd(i0 + i, i0), i ≠ 0, i0 ≠ 0, i0 < 0, i0 < i, 0 < i ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:gcd-abs-rew-02, seq: ⊦ gcd(i, j) = gcd(abs(i), abs(j)), subst:[j, i] → [i0, i0 + i], <all paths>

Additional information

Used terms: i0, i0 + i

Proof step 67 from proof gcd-rec-sub-03 (previous step) (back to tree)

⊦ gcd(i, j) = gcd(abs(i), abs(j))

Lemma gcd-abs-rew-02

Proof step 68 from proof gcd-rec-sub-03 (previous step) (back to tree)

gcd(abs(i), abs(i0 + i)) ≠ gcd(abs(i0 + i), abs(i0)), i ≠ 0, i0 ≠ 0, 0 < i, i0 < i, i0 < 0 ⊦

User applied rule cut formula

And obtained the following new goals

Rule argument

fma: abs(i0) < abs(i)

Additional information

Used formulas: abs(i0) < abs(i)

Proof step 69 from proof gcd-rec-sub-03 (previous step) (back to tree)

gcd(abs(i), abs(i0 + i)) ≠ gcd(abs(i0 + i), abs(i0)), i ≠ 0, i0 ≠ 0, i0 < 0, i0 < i, 0 < i, abs(i0) < abs(i) ⊦

User applied rule cut formula

And obtained the following new goals

Rule argument

fma: abs(i0 + i) = abs(i) - abs(i0)

Additional information

Used simplifier rules: gcd-neg: ⊦ gcd(~ i, j) = gcd(i, j); gcd-com: ⊦ gcd(i, j) = gcd(j, i); ⊦ i - ~ j = i + j; (s) add-c: ⊦ i + j = j + i; from specification int-basic2 ⊦ abs(i) = i ↔ 0 ≤ i; (s) ⊦ i ≤ j ↔ ¬ j < i; (ss) ⊦ i < 0 → abs(i) = ~ i; (s) ⊦ 0 < j → abs(j) = j; (s) ⊦ ~ i < j ↔ 0 < j + i; (s) ⊦ i < j → ¬ j < i; (s) Used formulas: abs(i0 + i) = abs(i) - abs(i0)

Proof step 70 from proof gcd-rec-sub-03 (previous step) (back to tree)

abs(i0 + i) = abs(i) - abs(i0), gcd(abs(i), abs(i0 + i)) ≠ gcd(abs(i0 + i), abs(i0)), i ≠ 0, i0 ≠ 0, abs(i0) < abs(i), 0 < i, i0 < i, i0 < 0 ⊦

User applied rule subst equation

And obtained the following new goals

Rule argument

pos: left 1, flags: discard

Additional information

Proof step 71 from proof gcd-rec-sub-03 (previous step) (back to tree)

gcd(abs(i), abs(i) - abs(i0)) ≠ gcd(abs(i) - abs(i0), abs(i0)), i ≠ 0, i0 ≠ 0, i0 < 0, i0 < i, 0 < i, abs(i0) < abs(i) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:gcd-com, seq: ⊦ gcd(i, j) = gcd(j, i), subst:[j, i] → [abs(i) - abs(i0), abs(i)], <all paths>

Additional information

Used terms: abs(i) - abs(i0), abs(i)

Proof step 72 from proof gcd-rec-sub-03 (previous step) (back to tree)

⊦ gcd(i, j) = gcd(j, i)

Lemma gcd-com

Proof step 73 from proof gcd-rec-sub-03 (previous step) (back to tree)

gcd(abs(i) - abs(i0), abs(i)) ≠ gcd(abs(i) - abs(i0), abs(i0)), i ≠ 0, i0 ≠ 0, abs(i0) < abs(i), 0 < i, i0 < i, i0 < 0 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:gcd-rec-sub-02, seq: ⊦ 0 < i ∧ i < j → gcd(i, j) = gcd(j, j - i), subst:[j, i] → [abs(i), abs(i) - abs(i0)], <all paths>

Additional information

Used simplifier rules: gcd-neg: ⊦ gcd(~ i, j) = gcd(i, j); gcd-com: ⊦ gcd(i, j) = gcd(j, i); ⊦ ~ i < j ↔ 0 < j + i; (s) ⊦ i < 0 → abs(i) = ~ i; (s) ⊦ i - ~ j = i + j; (s) ⊦ 0 < j → abs(j) = j; (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)

Proof step 74 from proof gcd-rec-sub-03 (previous step) (back to tree)

⊦ 0 < i ∧ i < j → gcd(i, j) = gcd(j, j - i)

Lemma gcd-rec-sub-02

Proof step 75 from proof gcd-rec-sub-03 (previous step) (back to tree)

gcd(abs(i), abs(i) - (abs(i) - abs(i0))) ≠ gcd(abs(i) - abs(i0), abs(i0)), i ≠ 0, i0 ≠ 0, i0 < 0, i0 < i, 0 < i, abs(i0) < abs(i), 0 < abs(i) - abs(i0), abs(i) - abs(i0) < abs(i) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: int-abs, name:sub-same, seq: ⊦ i - (i - j) = j, subst:[j, i] → [abs(i0), abs(i)], <all paths>

Additional information

Used terms: abs(i0), abs(i)

Proof step 76 from proof gcd-rec-sub-03 (previous step) (back to tree)

⊦ i - (i - j) = j

A spec-lemma

Proof step 77 from proof gcd-rec-sub-03 (previous step) (back to tree)

gcd(abs(i), abs(i0)) ≠ gcd(abs(i) - abs(i0), abs(i0)), i ≠ 0, i0 ≠ 0, abs(i) - abs(i0) < abs(i), 0 < abs(i) - abs(i0), abs(i0) < abs(i), 0 < i, i0 < i, i0 < 0 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:gcd-com, seq: ⊦ gcd(i, j) = gcd(j, i), subst:[j, i] → [abs(i0), abs(i)], <all paths>

Additional information

Used terms: abs(i0), abs(i)

Proof step 78 from proof gcd-rec-sub-03 (previous step) (back to tree)

⊦ gcd(i, j) = gcd(j, i)

Lemma gcd-com

Proof step 79 from proof gcd-rec-sub-03 (previous step) (back to tree)

gcd(abs(i0), abs(i)) ≠ gcd(abs(i) - abs(i0), abs(i0)), i ≠ 0, i0 ≠ 0, i0 < 0, i0 < i, 0 < i, abs(i0) < abs(i), 0 < abs(i) - abs(i0), abs(i) - abs(i0) < abs(i) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:gcd-rec-sub, seq: ⊦ 0 < i ∧ i < j → gcd(i, j) = gcd(i, j - i), subst:[j, i] → [abs(i), abs(i0)], <all paths>

Additional information

Used simplifier rules: gcd-neg: ⊦ gcd(~ i, j) = gcd(i, j); gcd-com: ⊦ gcd(i, j) = gcd(j, i); gcd-com: ⊦ gcd(i, j) = gcd(j, i); ⊦ i - ~ j = i + j; (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 ⊦ 0 < ~ i ↔ i < 0; (s) ⊦ i < 0 ∧ 0 ≤ j → i < j; (s) ⊦ i < 0 → abs(i) = ~ i; (s) ⊦ 0 < j → abs(j) = j; (s) ⊦ ~ i < j ↔ 0 < j + i; (s) Used terms: abs(i), abs(i0)

Proof step 80 from proof gcd-rec-sub-03 (previous step) (back to tree)

⊦ 0 < i ∧ i < j → gcd(i, j) = gcd(i, j - i)

Lemma gcd-rec-sub

Proof step 81 from proof gcd-rec-sub-03 (previous step) (back to tree)

gcd(abs(i), abs(i0 + i)) ≠ gcd(abs(i0 + i), abs(i0)), i ≠ 0, i0 ≠ 0, i0 < 0, i0 < i, 0 < i, ¬ abs(i0) < abs(i) ⊦

User applied rule cut formula

And obtained the following new goals

Rule argument

fma: abs(i0 + i) = abs(i0) - abs(i)

Additional information

Used simplifier rules: gcd-neg: ⊦ gcd(~ i, j) = gcd(i, j); gcd-com: ⊦ gcd(i, j) = gcd(j, i); ⊦ ~ i - j = ~(i + j); (s) ⊦ ~ i = j ↔ i + j = 0; (s) ⊦ abs(i) + i = 0 ↔ i ≤ 0; (s) ⊦ i ≤ j ↔ ¬ j < i; (ss) add-a: ⊦ i + j + i0 = (i + j) + i0; from specification int-basic2 add-c: ⊦ i + j = j + i; from specification int-basic2 ⊦ i < 0 → abs(i) = ~ i; (s) ⊦ 0 < j → abs(j) = j; (s) ⊦ ~ i < j ↔ 0 < j + i; (s) ⊦ i < j ↔ ¬ j ≤ i; (ss) ⊦ i < j → (j ≤ i ↔ false); (as) Used formulas: abs(i0 + i) = abs(i0) - abs(i)

Proof step 82 from proof gcd-rec-sub-03 (previous step) (back to tree)

abs(i0 + i) = abs(i0) - abs(i), gcd(abs(i), abs(i0 + i)) ≠ gcd(abs(i0 + i), abs(i0)), i ≠ 0, i0 ≠ 0, 0 < i, i0 < i, i0 < 0, ¬ abs(i0) < abs(i) ⊦

User applied rule subst equation

And obtained the following new goals

Rule argument

pos: left 1, flags: discard

Additional information

Proof step 83 from proof gcd-rec-sub-03 (previous step) (back to tree)

gcd(abs(i), abs(i0) - abs(i)) ≠ gcd(abs(i0) - abs(i), abs(i0)), i ≠ 0, i0 ≠ 0, i0 < 0, i0 < i, 0 < i, ¬ abs(i0) < abs(i) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:gcd-rec-sub-02, seq: ⊦ 0 < i ∧ i < j → gcd(i, j) = gcd(j, j - i), subst:[j, i] → [abs(i0), abs(i0) - abs(i)], <all paths>

Additional information

Used simplifier rules: gcd-neg: ⊦ gcd(~ i, j) = gcd(i, j); gcd-com: ⊦ gcd(i, j) = gcd(j, i); gcd-zero-03: ⊦ i ≠ 0 → gcd(i, 0) = abs(i); ⊦ ~ i < j ↔ 0 < j + i; (s) ⊦ 0 < ~ i ↔ i < 0; (s) ⊦ ~ i - j = ~(i + j); (s) ⊦ ~ j < ~ i ↔ i < j; (s) ⊦ i + j ≤ i ↔ j ≤ 0; (s) ⊦ i ≠ j → (i ≤ j ↔ i < j); (s) ⊦ i < j → ¬ j < i; (s) add-a: ⊦ i + j + i0 = (i + j) + i0; from specification int-basic2 add-c: ⊦ i + j = j + i; from specification int-basic2 ⊦ i < j ↔ ¬ j ≤ i; (ss) ⊦ i ≤ j → (j ≤ i ↔ i = j); (s) forward-le-04: ⊦ j ≤ i ∧ i ≤ 0 → j ≤ 0; (forward) from specification int-abs ⊦ 0 < j → abs(j) = j; (s) ⊦ i < 0 → abs(i) = ~ i; (s) ⊦ ~ i = j ↔ i + j = 0; (s) Used terms: abs(i0), abs(i0) - abs(i)

Proof step 84 from proof gcd-rec-sub-03 (previous step) (back to tree)

⊦ 0 < i ∧ i < j → gcd(i, j) = gcd(j, j - i)

Lemma gcd-rec-sub-02

Proof step 85 from proof gcd-rec-sub-03 (previous step) (back to tree)

gcd(abs(i), abs(i0) - abs(i)) ≠ gcd(abs(i0), abs(i0) - (abs(i0) - abs(i))), i ≠ 0, i0 ≠ 0, 0 < i, i0 < i, i0 < 0, 0 < abs(i0) - abs(i), abs(i0) - abs(i) < abs(i0), ¬ abs(i0) < abs(i) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: int-abs, name:sub-same, seq: ⊦ i - (i - j) = j, subst:[j, i] → [abs(i), abs(i0)], <all paths>

Additional information

Used terms: abs(i), abs(i0)

Proof step 86 from proof gcd-rec-sub-03 (previous step) (back to tree)

⊦ i - (i - j) = j

A spec-lemma

Proof step 87 from proof gcd-rec-sub-03 (previous step) (back to tree)

gcd(abs(i), abs(i0) - abs(i)) ≠ gcd(abs(i0), abs(i)), i ≠ 0, i0 ≠ 0, abs(i0) - abs(i) < abs(i0), 0 < abs(i0) - abs(i), i0 < 0, i0 < i, 0 < i, ¬ abs(i0) < abs(i) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:gcd-com, seq: ⊦ gcd(i, j) = gcd(j, i), subst:[j, i] → [abs(i), abs(i0)], <all paths>

Additional information

Used terms: abs(i), abs(i0)

Proof step 88 from proof gcd-rec-sub-03 (previous step) (back to tree)

⊦ gcd(i, j) = gcd(j, i)

Lemma gcd-com

Proof step 89 from proof gcd-rec-sub-03 (previous step) (back to tree)

gcd(abs(i), abs(i0) - abs(i)) ≠ gcd(abs(i), abs(i0)), i ≠ 0, i0 ≠ 0, 0 < i, i0 < i, i0 < 0, 0 < abs(i0) - abs(i), abs(i0) - abs(i) < abs(i0), ¬ abs(i0) < abs(i) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

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)], <all paths>

Additional information

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

Proof step 90 from proof gcd-rec-sub-03 (previous step) (back to tree)

⊦ 0 < i ∧ i < j → gcd(i, j) = gcd(i, j - i)

Lemma gcd-rec-sub

Proof Tree for gcd-rec-sub-03 (View conclusion)

The following image shows the proof tree of sequent calculus. The proved goal is at the bottom. You can click on the nodes to view additional rules. See here for details on colors in a proof tree.

the proof tree