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

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

System applied rule normalize

And obtained the following new goals

Rule argument

Additional information

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

gcd(i, j) ≠ gcd(abs(j), abs(i) % abs(j)), j ≠ 0 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

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

gcd(i, j) ≠ gcd(abs(j), abs(i) % abs(j)), j ≠ 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] → [j, i], <all paths>

Additional information

Used terms: j, i

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

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

Lemma gcd-abs-rew-02

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

gcd(abs(i), abs(j)) ≠ gcd(abs(j), abs(i) % abs(j)), j ≠ 0 ⊦

User applied rule apply elim lemma

And obtained the following new goals

Rule argument

spec: int-div, name:div-elim-pospos, seq:⊦ 0 < j ∧ 0 ≤ i → (i0 = i / j ∧ j0 = i % j ↔ i = i0 * j + j0 ∧ 0 ≤ j0 ∧ j0 < j ∧ 0 ≤ i0), subst:[i, j, i0, j0] → [abs(i), abs(j), i0, j0]

Additional information

Used simplifier rules: ⊦ 0 < abs(i) ↔ i ≠ 0; (s) ⊦ 0 ≤ abs(i); (s) ⊦ 0 < j ∧ 0 ≤ i → (i0 = i / j ∧ j0 = i % j ↔ i = i0 * j + j0 ∧ 0 ≤ j0 ∧ j0 < j ∧ 0 ≤ i0); (elim) Used terms: abs(i), abs(j), i0, j0

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

abs(i) = i0 * abs(j) + j0, gcd(abs(i), abs(j)) ≠ gcd(abs(j), j0), j ≠ 0, j0 < abs(j), 0 < abs(j), 0 ≤ j0, 0 ≤ i0, 0 ≤ abs(i) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

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

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

abs(i) = i0 * abs(j) + j0, gcd(abs(i), abs(j)) ≠ gcd(abs(j), j0), j ≠ 0, j0 < abs(j), 0 ≤ j0, 0 ≤ i0 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: int-basic1, name:lst-01, seq: ⊦ ¬ i < j → (i = j ↔ ¬ j < i), subst:[j, i] → [gcd(abs(j), j0), gcd(abs(i), abs(j))], <all paths>

Additional information

Used terms: gcd(abs(j), j0), gcd(abs(i), abs(j))

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

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

A spec-lemma

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

abs(i) = i0 * abs(j) + j0, gcd(abs(i), abs(j)) ≠ gcd(abs(j), j0), j ≠ 0, gcd(abs(i), abs(j)) < gcd(abs(j), j0), j0 < abs(j), 0 ≤ i0, 0 ≤ j0 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

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

abs(i) = i0 * abs(j) + j0, gcd(abs(i), abs(j)) ≠ gcd(abs(j), j0), j ≠ 0, j0 < abs(j), gcd(abs(i), abs(j)) < gcd(abs(j), j0), 0 ≤ j0, 0 ≤ i0 ⊦

User applied rule apply lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:gcd-less, seq: ⊦ i1 | i ∧ i1 | j ∧ 0 ≠ i → i1 ≤ gcd(i, j), subst:[i1, i, j] → [gcd(abs(j), j0), abs(i), abs(j)]

Additional information

Used terms: gcd(abs(j), j0), abs(i), abs(j)

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

⊦ i1 | i ∧ i1 | j ∧ 0 ≠ i → i1 ≤ gcd(i, j)

Lemma gcd-less

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

abs(i) = i0 * abs(j) + j0, gcd(abs(i), abs(j)) ≠ gcd(abs(j), j0), j ≠ 0, gcd(abs(i), abs(j)) < gcd(abs(j), j0), j0 < abs(j), 0 ≤ i0, 0 ≤ j0, gcd(abs(j), j0) | abs(i) ∧ gcd(abs(j), j0) | abs(j) ∧ 0 ≠ abs(i) → gcd(abs(j), j0) ≤ gcd(abs(i), abs(j)) ⊦

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); gcd-nls-01: ⊦ i ≠ 0 → ¬ abs(i) < gcd(abs(i), j); ⊦ abs(abs(i)) = abs(i); (s) ⊦ i < j → ¬ j < i; (s) ⊦ i ≠ j → (i ≤ j ↔ i < j); (s) ⊦ abs(i) = 0 ↔ i = 0; (s)

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

abs(i) = i0 * abs(j) + j0, gcd(abs(i), abs(j)) ≠ gcd(abs(j), j0), i ≠ 0, j ≠ 0, gcd(abs(i), abs(j)) < gcd(abs(j), j0), j0 < abs(j), 0 ≤ i0, 0 ≤ j0 ⊦ gcd(abs(j), j0) | abs(j) ∧ gcd(abs(j), j0) | abs(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 14 from proof gcd-rec (previous step) (back to tree)

abs(i) = i0 * abs(j) + j0, gcd(abs(i), abs(j)) ≠ gcd(abs(j), j0), i ≠ 0, j ≠ 0, j0 < abs(j), gcd(abs(i), abs(j)) < gcd(abs(j), j0), 0 ≤ j0, 0 ≤ i0 ⊦ gcd(abs(j), j0) | abs(j) ∧ gcd(abs(j), j0) | abs(i)

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

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

abs(i) = i0 * abs(j) + j0, gcd(abs(i), abs(j)) ≠ gcd(abs(j), j0), i ≠ 0, j ≠ 0, gcd(abs(i), abs(j)) < gcd(abs(j), j0), j0 < abs(j), 0 ≤ i0, 0 ≤ j0 ⊦ gcd(abs(j), j0) | abs(j) ∧ gcd(abs(j), j0) | abs(i)

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:gcd-div1, seq: ⊦ gcd(i, j) | i, subst:[j, i] → [j0, abs(j)], <all paths>

Additional information

Used terms: j0, abs(j)

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

⊦ gcd(i, j) | i

Lemma gcd-div1

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

abs(i) = i0 * abs(j) + j0, gcd(abs(i), abs(j)) ≠ gcd(abs(j), j0), i ≠ 0, j ≠ 0, j0 < abs(j), gcd(abs(i), abs(j)) < gcd(abs(j), j0), 0 ≤ j0, 0 ≤ i0 ⊦ true ∧ gcd(abs(j), j0) | abs(i)

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

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

abs(i) = i0 * abs(j) + j0, gcd(abs(i), abs(j)) ≠ gcd(abs(j), j0), i ≠ 0, j ≠ 0, gcd(abs(i), abs(j)) < gcd(abs(j), j0), j0 < abs(j), 0 ≤ i0, 0 ≤ j0, ¬ gcd(abs(j), j0) | abs(i) ⊦

User applied rule subst equation

And obtained the following new goals

Rule argument

pos: left 1, flags:

Additional information

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

abs(i) = i0 * abs(j) + j0, gcd(i0 * abs(j) + j0, abs(j)) ≠ gcd(abs(j), j0), i ≠ 0, j ≠ 0, j0 < abs(j), gcd(i0 * abs(j) + j0, abs(j)) < gcd(abs(j), j0), 0 ≤ j0, 0 ≤ i0, ¬ gcd(abs(j), j0) | i0 * abs(j) + j0 ⊦

User applied rule apply lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:gcd-div1, seq: ⊦ gcd(i, j) | i, subst:[i, j] → [abs(j), j0]

Additional information

Used terms: abs(j), j0

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

⊦ gcd(i, j) | i

Lemma gcd-div1

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

abs(i) = i0 * abs(j) + j0, gcd(i0 * abs(j) + j0, abs(j)) ≠ gcd(abs(j), j0), i ≠ 0, j ≠ 0, gcd(i0 * abs(j) + j0, abs(j)) < gcd(abs(j), j0), j0 < abs(j), gcd(abs(j), j0) | abs(j), 0 ≤ i0, 0 ≤ j0, ¬ gcd(abs(j), j0) | i0 * abs(j) + j0 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

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

abs(i) = i0 * abs(j) + j0, gcd(abs(i), abs(j)) ≠ gcd(abs(j), j0), i ≠ 0, j ≠ 0, j0 < abs(j), gcd(abs(i), abs(j)) < gcd(abs(j), j0), gcd(abs(j), j0) | abs(j), 0 ≤ j0, 0 ≤ i0, ¬ gcd(abs(j), j0) | abs(i) ⊦

User applied rule apply lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:gcd-div2, seq: ⊦ gcd(i, j) | j, subst:[i, j] → [abs(j), j0]

Additional information

Used terms: abs(j), j0

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

⊦ gcd(i, j) | j

Lemma gcd-div2

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

abs(i) = i0 * abs(j) + j0, gcd(abs(i), abs(j)) ≠ gcd(abs(j), j0), i ≠ 0, j ≠ 0, gcd(abs(i), abs(j)) < gcd(abs(j), j0), j0 < abs(j), gcd(abs(j), j0) | abs(j), gcd(abs(j), j0) | j0, 0 ≤ i0, 0 ≤ j0, ¬ gcd(abs(j), j0) | abs(i) ⊦

User applied rule subst equation

And obtained the following new goals

Rule argument

pos: left 1, flags:

Additional information

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

abs(i) = i0 * abs(j) + j0, gcd(i0 * abs(j) + j0, abs(j)) ≠ gcd(abs(j), j0), i ≠ 0, j ≠ 0, j0 < abs(j), gcd(i0 * abs(j) + j0, abs(j)) < gcd(abs(j), j0), gcd(abs(j), j0) | j0, gcd(abs(j), j0) | abs(j), 0 ≤ j0, 0 ≤ i0, ¬ gcd(abs(j), j0) | i0 * abs(j) + j0 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:divides, seq: ⊦ i | j ↔ (∃ i0. i * i0 = j), subst:[j, i] → [j0, gcd(abs(j), j0)], <all paths>

Additional information

Used terms: j0, gcd(abs(j), j0)

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

⊦ i | j ↔ (∃ i0. i * i0 = j)

Lemma divides

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

abs(i) = i0 * abs(j) + j0, gcd(i0 * abs(j) + j0, abs(j)) ≠ gcd(abs(j), j0), i ≠ 0, j ≠ 0, gcd(i0 * abs(j) + j0, abs(j)) < gcd(abs(j), j0), j0 < abs(j), gcd(abs(j), j0) | abs(j), 0 ≤ i0, 0 ≤ j0, ¬ gcd(abs(j), j0) | i0 * abs(j) + j0, ∃ i0. gcd(abs(j), j0) * i0 = j0 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

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

gcd(abs(j), j0) * i1 = j0, abs(i) = i0 * abs(j) + j0, gcd(abs(i), abs(j)) ≠ gcd(abs(j), j0), i ≠ 0, j ≠ 0, j0 < abs(j), gcd(abs(i), abs(j)) < gcd(abs(j), j0), gcd(abs(j), j0) | abs(j), 0 ≤ j0, 0 ≤ i0, ¬ gcd(abs(j), j0) | abs(i) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:divides, seq: ⊦ i | j ↔ (∃ i0. i * i0 = j), subst:[j, i] → [abs(j), gcd(abs(j), j0)], <all paths>

Additional information

Used terms: abs(j), gcd(abs(j), j0)

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

⊦ i | j ↔ (∃ i0. i * i0 = j)

Lemma divides

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

gcd(abs(j), j0) * i1 = j0, abs(i) = i0 * abs(j) + j0, gcd(abs(i), abs(j)) ≠ gcd(abs(j), j0), i ≠ 0, j ≠ 0, gcd(abs(i), abs(j)) < gcd(abs(j), j0), j0 < abs(j), 0 ≤ i0, 0 ≤ j0, ¬ gcd(abs(j), j0) | abs(i), ∃ i0. gcd(abs(j), j0) * i0 = abs(j) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

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

gcd(abs(j), j0) * i2 = abs(j), gcd(abs(j), j0) * i1 = j0, abs(i) = i0 * abs(j) + j0, gcd(abs(i), abs(j)) ≠ gcd(abs(j), j0), i ≠ 0, j ≠ 0, j0 < abs(j), gcd(abs(i), abs(j)) < gcd(abs(j), j0), 0 ≤ j0, 0 ≤ i0, ¬ gcd(abs(j), j0) | abs(i) ⊦

User applied rule subst equation

And obtained the following new goals

Rule argument

pos: left 3, flags:

Additional information

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

gcd(abs(j), j0) * i1 = j0, gcd(abs(j), j0) * i2 = abs(j), abs(i) = i0 * abs(j) + j0, gcd(i0 * abs(j) + j0, abs(j)) ≠ gcd(abs(j), j0), i ≠ 0, j ≠ 0, gcd(i0 * abs(j) + j0, abs(j)) < gcd(abs(j), j0), j0 < abs(j), 0 ≤ i0, 0 ≤ j0, ¬ gcd(abs(j), j0) | i0 * abs(j) + j0 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:divides, seq: ⊦ i | j ↔ (∃ i0. i * i0 = j), subst:[j, i] → [i0 * abs(j) + j0, gcd(abs(j), j0)], <all paths>

Additional information

Used terms: i0 * abs(j) + j0, gcd(abs(j), j0)

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

⊦ i | j ↔ (∃ i0. i * i0 = j)

Lemma divides

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

gcd(abs(j), j0) * i2 = abs(j), gcd(abs(j), j0) * i1 = j0, abs(i) = i0 * abs(j) + j0, gcd(i0 * abs(j) + j0, abs(j)) ≠ gcd(abs(j), j0), i ≠ 0, j ≠ 0, j0 < abs(j), gcd(i0 * abs(j) + j0, abs(j)) < gcd(abs(j), j0), 0 ≤ j0, 0 ≤ i0, ∀ i1. gcd(abs(j), j0) * i1 ≠ i0 * abs(j) + j0 ⊦

User applied rule all left

And obtained the following new goals

Rule argument

pos: left 11 terms: i2 * i0 + i1 abort: F discard: T computed: F

Additional information

Used terms: i2 * i0 + i1

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

gcd(abs(j), j0) * i1 = j0, gcd(abs(j), j0) * i2 = abs(j), abs(i) = i0 * abs(j) + j0, gcd(abs(j), j0) * (i2 * i0 + i1) ≠ i0 * abs(j) + j0, gcd(i0 * abs(j) + j0, abs(j)) ≠ gcd(abs(j), j0), i ≠ 0, j ≠ 0, gcd(i0 * abs(j) + j0, abs(j)) < gcd(abs(j), j0), j0 < abs(j), 0 ≤ i0, 0 ≤ j0 ⊦

User applied rule subst equation

And closed the goal!

Rule argument

pos: left 1, flags: rotate, discard, [[1,4,1,2,2]]

Additional information

Used simplifier rules: ⊦ (i + j) * i0 = j0 + j * i0 ↔ i * i0 = j0; (s) add-a: ⊦ i + j + i0 = (i + j) + i0; from specification int-basic2 add-c: ⊦ i + j = j + i; from specification int-basic2 neq-not-zero: ⊦ i * j ≠ i * j0 → i ≠ 0; (forward) from specification int-mult ⊦ i ≠ 0 → (i * j = i * j0 ↔ j = j0); (s) associativity: ⊦ i * j * j0 = (i * j) * j0; from specification int-mult commutativity: ⊦ i * j = j * i; from specification int-mult

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

abs(i) = i0 * abs(j) + j0, j ≠ 0, j0 < abs(j), gcd(abs(j), j0) < gcd(abs(i), abs(j)), 0 ≤ i0, 0 ≤ j0, ¬ gcd(abs(i), abs(j)) < gcd(abs(j), j0) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ i < j → ¬ j < i; (s)

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

abs(i) = i0 * abs(j) + j0, j ≠ 0, gcd(abs(j), j0) < gcd(abs(i), abs(j)), j0 < abs(j), 0 ≤ j0, 0 ≤ i0 ⊦

User applied rule apply lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:gcd-less, seq: ⊦ i1 | i ∧ i1 | j ∧ 0 ≠ i → i1 ≤ gcd(i, j), subst:[i1, i, j] → [gcd(abs(i), abs(j)), abs(j), j0]

Additional information

Used terms: gcd(abs(i), abs(j)), abs(j), j0

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

⊦ i1 | i ∧ i1 | j ∧ 0 ≠ i → i1 ≤ gcd(i, j)

Lemma gcd-less

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

abs(i) = i0 * abs(j) + j0, j ≠ 0, j0 < abs(j), gcd(abs(j), j0) < gcd(abs(i), abs(j)), 0 ≤ i0, 0 ≤ j0, gcd(abs(i), abs(j)) | abs(j) ∧ gcd(abs(i), abs(j)) | j0 ∧ 0 ≠ abs(j) → gcd(abs(i), abs(j)) ≤ gcd(abs(j), j0) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ i < j → (j ≤ i ↔ false); (as) ⊦ abs(i) = 0 ↔ i = 0; (s)

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

abs(i) = i0 * abs(j) + j0, j ≠ 0, gcd(abs(j), j0) < gcd(abs(i), abs(j)), j0 < abs(j), 0 ≤ j0, 0 ≤ i0 ⊦ gcd(abs(i), abs(j)) | abs(j) ∧ gcd(abs(i), abs(j)) | j0

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

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

Additional information

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

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

⊦ gcd(i, j) | j

Lemma gcd-div2

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

abs(i) = i0 * abs(j) + j0, j ≠ 0, j0 < abs(j), gcd(abs(j), j0) < gcd(abs(i), abs(j)), 0 ≤ i0, 0 ≤ j0 ⊦ true ∧ gcd(abs(i), abs(j)) | j0

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

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

abs(i) = i0 * abs(j) + j0, j ≠ 0, gcd(abs(j), j0) < gcd(abs(i), abs(j)), j0 < abs(j), 0 ≤ j0, 0 ≤ i0, ¬ gcd(abs(i), abs(j)) | j0 ⊦

User applied rule apply lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:gcd-div1, seq: ⊦ gcd(i, j) | i, subst:[i, j] → [abs(i), abs(j)]

Additional information

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

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

⊦ gcd(i, j) | i

Lemma gcd-div1

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

abs(i) = i0 * abs(j) + j0, j ≠ 0, j0 < abs(j), gcd(abs(j), j0) < gcd(abs(i), abs(j)), gcd(abs(i), abs(j)) | abs(i), 0 ≤ i0, 0 ≤ j0, ¬ gcd(abs(i), abs(j)) | j0 ⊦

User applied rule apply lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:gcd-div2, seq: ⊦ gcd(i, j) | j, subst:[i, j] → [abs(i), abs(j)]

Additional information

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

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

⊦ gcd(i, j) | j

Lemma gcd-div2

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

abs(i) = i0 * abs(j) + j0, j ≠ 0, gcd(abs(j), j0) < gcd(abs(i), abs(j)), j0 < abs(j), gcd(abs(i), abs(j)) | abs(i), gcd(abs(i), abs(j)) | abs(j), 0 ≤ j0, 0 ≤ i0, ¬ gcd(abs(i), abs(j)) | j0 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:divides, seq: ⊦ i | j ↔ (∃ i0. i * i0 = j), subst:[j, i] → [abs(j), gcd(abs(i), abs(j))], <all paths>

Additional information

Used terms: abs(j), gcd(abs(i), abs(j))

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

⊦ i | j ↔ (∃ i0. i * i0 = j)

Lemma divides

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

abs(i) = i0 * abs(j) + j0, j ≠ 0, j0 < abs(j), gcd(abs(j), j0) < gcd(abs(i), abs(j)), gcd(abs(i), abs(j)) | abs(i), 0 ≤ i0, 0 ≤ j0, ¬ gcd(abs(i), abs(j)) | j0, ∃ i0. gcd(abs(i), abs(j)) * i0 = abs(j) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

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

gcd(abs(i), abs(j)) * i1 = abs(j), abs(i) = i0 * abs(j) + j0, j ≠ 0, gcd(abs(j), j0) < gcd(abs(i), abs(j)), j0 < abs(j), gcd(abs(i), abs(j)) | abs(i), 0 ≤ j0, 0 ≤ i0, ¬ gcd(abs(i), abs(j)) | j0 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:divides, seq: ⊦ i | j ↔ (∃ i0. i * i0 = j), subst:[j, i] → [abs(i), gcd(abs(i), abs(j))], <all paths>

Additional information

Used terms: abs(i), gcd(abs(i), abs(j))

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

⊦ i | j ↔ (∃ i0. i * i0 = j)

Lemma divides

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

gcd(abs(i), abs(j)) * i1 = abs(j), abs(i) = i0 * abs(j) + j0, j ≠ 0, j0 < abs(j), gcd(abs(j), j0) < gcd(abs(i), abs(j)), 0 ≤ i0, 0 ≤ j0, ¬ gcd(abs(i), abs(j)) | j0, ∃ i0. gcd(abs(i), abs(j)) * i0 = abs(i) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

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

gcd(abs(i), abs(j)) * i2 = abs(i), gcd(abs(i), abs(j)) * i1 = abs(j), abs(i) = i0 * abs(j) + j0, j ≠ 0, gcd(abs(j), j0) < gcd(abs(i), abs(j)), j0 < abs(j), 0 ≤ j0, 0 ≤ i0, ¬ gcd(abs(i), abs(j)) | j0 ⊦

User applied rule cut formula

And obtained the following new goals

Rule argument

fma: j0 = abs(i) - i0 * abs(j)

Additional information

Used simplifier rules: ⊦ i - j = i0 ↔ i = i0 + j; (s) add-c: ⊦ i + j = j + i; from specification int-basic2 Used formulas: j0 = abs(i) - i0 * abs(j)

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

gcd(abs(i), abs(j)) * i1 = abs(j), gcd(abs(i), abs(j)) * i2 = abs(i), abs(i) = i0 * abs(j) + j0, j0 = abs(i) - i0 * abs(j), j ≠ 0, j0 < abs(j), gcd(abs(j), j0) < gcd(abs(i), abs(j)), 0 ≤ i0, 0 ≤ j0, ¬ gcd(abs(i), abs(j)) | j0 ⊦

User applied rule subst equation

And obtained the following new goals

Rule argument

pos: left 4, flags: discard, [[1,10,1,2]]

Additional information

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

gcd(abs(i), abs(j)) * i2 = abs(i), gcd(abs(i), abs(j)) * i1 = abs(j), abs(i) = i0 * abs(j) + j0, j ≠ 0, gcd(abs(j), j0) < gcd(abs(i), abs(j)), j0 < abs(j), 0 ≤ j0, 0 ≤ i0, ¬ gcd(abs(i), abs(j)) | abs(i) - i0 * abs(j) ⊦

User applied rule subst equation

And closed the goal!

Rule argument

pos: left 1, flags: rotate, discard, [[1,9,1,2,1]]

Additional information

Used simplifier rules: divides-mult-sub: ⊦ i | i * j - j0 ↔ i | j0; gcd-divides: ⊦ gcd(i, j) | i * i0; gcd-com: ⊦ gcd(i, j) = gcd(j, i); associativity: ⊦ i * j * j0 = (i * j) * j0; from specification int-mult commutativity: ⊦ i * j = j * i; from specification int-mult

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