[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-01 (conclusion) (back to tree)

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

System applied rule normalize

And obtained the following new goals

Rule argument

Additional information

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

gcd(i, j) ≠ gcd(i, 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-01 (previous step) (back to tree)

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

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

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

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] → [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-01 (previous step) (back to tree)

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

Lemma gcd-rec-sub

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

gcd(i, i0 + i) ≠ gcd(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-01 (previous step) (back to tree)

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

User applied rule cut formula

And obtained the following new goals

Rule argument

fma: i = 0 ∨ i0 = 0

Additional information

Used simplifier rules: gcd-zero-04: ⊦ gcd(i, 0) = abs(i); gcd-com: ⊦ gcd(i, j) = gcd(j, i); 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 Used formulas: i = 0 ∨ i0 = 0

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

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

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

gcd(i, i0 + i) ≠ gcd(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: i < 0

Additional information

Used formulas: i < 0

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

gcd(i, i0 + i) ≠ gcd(i, i0), i ≠ 0, i0 ≠ 0, 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 11 from proof gcd-rec-sub-01 (previous step) (back to tree)

gcd(i, i0 + i) ≠ gcd(i, i0), i ≠ 0, i0 ≠ 0, 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-01 (previous step) (back to tree)

gcd(i, i0 + i) ≠ gcd(i, i0), i ≠ 0, i0 ≠ 0, 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-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 13 from proof gcd-rec-sub-01 (previous step) (back to tree)

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

Lemma gcd-abs-rew-02

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

gcd(abs(i), abs(i0 + i)) ≠ gcd(i, i0), i ≠ 0, i0 ≠ 0, i0 < 0, 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-rec-sub, seq: ⊦ 0 < i ∧ i < j → gcd(i, j) = gcd(i, j - i), subst:[j, i] → [abs(i0 + i), abs(i)], <all paths>

Additional information

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

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

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

Lemma gcd-rec-sub

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

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

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

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

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

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: int-abs, name:Abs-neg, seq: ⊦ j < 0 → abs(j) = 0 - j, subst:[j] → [i0 + 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; (s) ⊦ i + ~ j = i - j; (s) ⊦ i - j + i = ~ j; (s) ⊦ ~ i ≤ j ↔ 0 ≤ i + j; (s) ⊦ 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 ⊦ i ≠ j → (i ≤ j ↔ i < j); (s) ⊦ i < j → ¬ j < i; (s) ⊦ ¬ j < 0 → abs(j) = j; (s) ⊦ i + i = 2 * i; (s) ⊦ i < 0 ∧ j < 0 → i + j < 0; (s) Used terms: i0 + i

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

⊦ j < 0 → abs(j) = 0 - j

A spec-lemma

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

gcd(abs(i), abs(i0 + i) - abs(i)) ≠ gcd(i, i0), i ≠ 0, i0 ≠ 0, i < 0, i0 < 0, 0 < abs(i), abs(i) < abs(i0 + 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-neg: ⊦ gcd(~ i, j) = gcd(i, j); ⊦ i < 0 ∧ 0 ≤ j → i < j; (s) forward-le-02: ⊦ j < i ∧ i ≤ 0 → j < 0; (forward) from specification int-abs forward-le-05: ⊦ i < j ∧ 0 ≤ i → 0 < j; (forward) from specification int-abs ⊦ 0 < ~ i ↔ i < 0; (s) ⊦ i < 0 → abs(i) = ~ i; (s) ⊦ ~ i < j ↔ 0 < j + i; (s) ⊦ i - ~ j = i + j; (s)

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

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

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: int-abs, name:Abs-neg, seq: ⊦ j < 0 → abs(j) = 0 - j, subst:[j] → [i0 + 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; (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 ⊦ ¬ j < 0 → abs(j) = j; (s) ⊦ i + i = 2 * i; (s) ⊦ i < 0 ∧ j < 0 → i + j < 0; (s) Used terms: i0 + i

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

⊦ j < 0 → abs(j) = 0 - j

A spec-lemma

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

gcd(i, i0 + i) ≠ gcd(i, i0), i ≠ 0, i0 ≠ 0, i < 0, ¬ 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: forward-le-05: ⊦ i < j ∧ 0 ≤ i → 0 < j; (forward) from specification int-abs ⊦ i < j → ¬ j < i; (s) ⊦ ¬ i < j → (i = j ↔ ¬ j < i); (ss)

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

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

User applied rule cut formula

And obtained the following new goals

Rule argument

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

Additional information

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

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

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

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-01 (previous step) (back to tree)

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

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

Additional information

Used terms: i0, i

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

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

Lemma gcd-abs-rew-02

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

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

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); ⊦ 0 < j → abs(j) = j; (s) ⊦ i < 0 → abs(i) = ~ i; (s) ⊦ i - ~ j = i + j; (s) Used terms: abs(i0), abs(i)

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

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

Lemma gcd-rec-sub

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

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

User applied rule case distinction

And obtained the following new goals

Rule argument

pos: right 1

Additional information

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

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

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

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: int-basic1, name:l, seq: ⊦ i < j ↔ ¬(i = j ∨ j < i), subst:[j, i] → [abs(i0), abs(i)], <all paths>

Additional information

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

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

⊦ i < j ↔ ¬(i = j ∨ j < i)

A spec-lemma

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

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

User applied rule case distinction

And obtained the following new goals

Rule argument

pos: left 5

Additional information

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

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

User applied rule subst equation

And obtained the following new goals

Rule argument

pos: left 1, flags:

Additional information

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

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

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

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

Additional information

Used simplifier rules: gcd-zero-03: ⊦ i ≠ 0 → gcd(i, 0) = abs(i); gcd-same-01: ⊦ 0 < j → gcd(j, j) = j; gcd-zero-03: ⊦ i ≠ 0 → gcd(i, 0) = abs(i); ⊦ i - i = 0; (s) ⊦ i < 0 → abs(i) = ~ i; (s) ⊦ 0 < j → abs(j) = j; (s) ⊦ ~ i = j ↔ i + j = 0; (s) Used terms: abs(i0)

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

⊦ 0 < j → gcd(j, j) = j

Lemma gcd-same-01

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

gcd(i, i0 - abs(i)) ≠ gcd(abs(i), abs(i0)), i ≠ 0, 0 < i0, i < 0, 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(i0), abs(i)], <all paths>

Additional information

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

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

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

Lemma gcd-com

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

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

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); ⊦ i - ~ j = i + j; (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 39 from proof gcd-rec-sub-01 (previous step) (back to tree)

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

Lemma gcd-rec-sub

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

gcd(i, i0 - abs(i)) ≠ gcd(abs(i0), abs(i) - abs(i0)), i ≠ 0, 0 < i0, i < 0, 0 < abs(i0), abs(i0) < abs(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 - abs(i), i], <all paths>

Additional information

Used terms: i0 - abs(i), i

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

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

Lemma gcd-abs-rew-02

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

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

User applied rule cut formula

And obtained the following new goals

Rule argument

fma: abs(i0 - abs(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 = 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 - ~ j = i + j; (s) ⊦ ~ i - j = ~(i + j); (s) ⊦ 0 < j → abs(j) = j; (s) ⊦ i < 0 → abs(i) = ~ i; (s) ⊦ i < ~ j ↔ i + j < 0; (s) ⊦ i < j → ¬ j < i; (s) Used formulas: abs(i0 - abs(i)) = abs(i) - abs(i0)

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

abs(i0 - abs(i)) = abs(i) - abs(i0), gcd(abs(i), abs(i0 - abs(i))) ≠ gcd(abs(i0), abs(i) - abs(i0)), i ≠ 0, 0 < i0, i < 0, 0 < abs(i0), 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 44 from proof gcd-rec-sub-01 (previous step) (back to tree)

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

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)], <rotated> <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) ⊦ 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 45 from proof gcd-rec-sub-01 (previous step) (back to tree)

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

Lemma gcd-rec-sub

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

gcd(abs(i), abs(i) - abs(i0)) ≠ gcd(abs(i0), abs(i)), i ≠ 0, 0 < i0, i < 0, 0 < 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-02, seq: ⊦ 0 < i ∧ i < j → gcd(i, j) = gcd(j, 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); ⊦ ~ i - j = ~(i + j); (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 47 from proof gcd-rec-sub-01 (previous step) (back to tree)

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

Lemma gcd-rec-sub-02

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

gcd(i, i0 + i) ≠ gcd(i, i0), i ≠ 0, i0 ≠ 0, ¬ 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-05: ⊦ i < j ∧ 0 ≤ i → 0 < j; (forward) from specification int-abs ⊦ i < j → ¬ j < i; (s) ⊦ ¬ i < j → (i = j ↔ ¬ j < i); (ss)

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

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

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: int-abs, name:lels, seq: ⊦ i < j ↔ ¬ j ≤ i, subst:[j, i] → [i0 + i, i], <all paths>

Additional information

Used terms: i0 + i, i

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

⊦ i < j ↔ ¬ j ≤ i

A spec-lemma

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

gcd(i, i0 + i) ≠ gcd(i, i0), i0 ≠ 0, 0 < i, i0 + i ≤ 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 add-c: ⊦ i + j = j + i; from specification int-basic2 add-a: ⊦ i + j + i0 = (i + j) + i0; from specification int-basic2 ⊦ i ≠ j → (i ≤ j ↔ i < j); (s) ⊦ i + j ≤ i ↔ j ≤ 0; (s)

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

gcd(i, i0 + i) ≠ gcd(i, i0), i0 ≠ 0, 0 < 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 53 from proof gcd-rec-sub-01 (previous step) (back to tree)

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

Lemma gcd-abs-rew-02

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

gcd(abs(i), abs(i0 + i)) ≠ gcd(i, i0), i0 ≠ 0, i0 < 0, 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, i], <all paths>

Additional information

Used terms: i0, i

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

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

Lemma gcd-abs-rew-02

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

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

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); ⊦ ~ i - j = ~(i + j); (s) ⊦ 0 < j → abs(j) = j; (s) ⊦ i < ~ j ↔ i + j < 0; (s) add-c: ⊦ i + j = j + i; from specification int-basic2 ⊦ i < 0 → abs(i) = ~ i; (s) Used terms: abs(i0), abs(i)

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

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

Lemma gcd-rec-sub

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

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

User applied rule case distinction

And obtained the following new goals

Rule argument

pos: right 1

Additional information

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

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

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

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: int-basic1, name:l, seq: ⊦ i < j ↔ ¬(i = j ∨ j < i), subst:[j, i] → [abs(i0), abs(i)], <all paths>

Additional information

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

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

⊦ i < j ↔ ¬(i = j ∨ j < i)

A spec-lemma

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

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

User applied rule case distinction

And obtained the following new goals

Rule argument

pos: left 5

Additional information

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

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

User applied rule cut formula

And obtained the following new goals

Rule argument

fma: abs(i0 + i) = 0

Additional information

Used simplifier rules: ⊦ 0 < j → abs(j) = j; (s) ⊦ i < 0 → abs(i) = ~ i; (s) ⊦ ~ i = j ↔ i + j = 0; (s) ⊦ abs(i) = 0 ↔ i = 0; (s) Used formulas: abs(i0 + i) = 0

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

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

User applied rule subst equation

And obtained the following new goals

Rule argument

pos: left 2, flags: discard

Additional information

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

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

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

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

Additional information

Used terms: abs(i)

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

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

Lemma gcd-zero-04

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

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

User applied rule subst equation

And obtained the following new goals

Rule argument

pos: left 1, flags:

Additional information

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

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

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

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

Additional information

Used simplifier rules: gcd-neg: ⊦ gcd(~ i, j) = gcd(i, j); gcd-same: ⊦ i ≠ 0 → gcd(i, i) = abs(i); gcd-com: ⊦ gcd(i, j) = gcd(j, i); ⊦ 0 < j → abs(j) = j; (s) ⊦ ~ i = j ↔ i + j = 0; (s) ⊦ abs(~ i) = abs(i); (s) ⊦ i < 0 → abs(i) = ~ i; (s) ⊦ ~ i = ~ j ↔ i = j; (s) Used terms: abs(i0)

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

⊦ 0 < j → gcd(j, j) = j

Lemma gcd-same-01

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

gcd(abs(i), abs(i0 + i)) ≠ gcd(abs(i), abs(i0)), i0 ≠ 0, 0 < i, i0 < 0, 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-01 (previous step) (back to tree)

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

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-01 (previous step) (back to tree)

gcd(abs(i), abs(i) - abs(i0)) ≠ gcd(abs(i), abs(i0)), i0 ≠ 0, 0 < i, i0 < 0, 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(i0), abs(i)], <all paths>

Additional information

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

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

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

Lemma gcd-com

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

gcd(abs(i), abs(i) - abs(i0)) ≠ gcd(abs(i0), abs(i)), i0 ≠ 0, abs(i0) < abs(i), i0 < 0, 0 < 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(i0)], <all paths>

Additional information

Used simplifier rules: gcd-neg: ⊦ gcd(~ i, j) = gcd(i, j); ⊦ i - ~ j = i + j; (s) ⊦ 0 < ~ i ↔ i < 0; (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 74 from proof gcd-rec-sub-01 (previous step) (back to tree)

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

Lemma gcd-rec-sub-02

Proof Tree for gcd-rec-sub-01 (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