[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 div-mult-shift-holds (conclusion) (back to tree)

⊦ i % j * i0 < j ∧ 0 ≤ i ∧ 0 ≤ i0 ∧ 0 < j → (i * i0) / j = i / j * i0

System applied rule normalize

And obtained the following new goals

Rule argument

Additional information

Proof step 2 from proof div-mult-shift-holds (previous step) (back to tree)

(i * i0) / j ≠ i / j * i0, i % j * i0 < j, 0 < j, 0 ≤ i, 0 ≤ i0 ⊦

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 forward-le-05: ⊦ i < j ∧ 0 ≤ i → 0 < j; (forward) from specification int-abs

Proof step 3 from proof div-mult-shift-holds (previous step) (back to tree)

(i * i0) / j ≠ i / j * i0, i % j * i0 < j, 0 < j, 0 ≤ i0, 0 ≤ i ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:div-mult-rew, seq: ⊦ 0 ≤ i ∧ 0 ≤ i0 ∧ 0 < j → (i * i0) / j = i / j * i0 + (i % j * i0) / j, subst:[j, i0, i] → [j, i0, i], <all paths>

Additional information

Used simplifier rules: ⊦ i ≤ 0 ∧ 0 ≤ j → i ≤ j; (s) Used terms: j, i0, i

Proof step 4 from proof div-mult-shift-holds (previous step) (back to tree)

⊦ 0 ≤ i ∧ 0 ≤ i0 ∧ 0 < j → (i * i0) / j = i / j * i0 + (i % j * i0) / j

Lemma div-mult-rew

Proof step 5 from proof div-mult-shift-holds (previous step) (back to tree)

i / j * i0 + (i % j * i0) / j ≠ i / j * i0, i % j * i0 < j, 0 < j, 0 ≤ i, 0 ≤ i0 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: mult-split-mod: ⊦ 0 ≤ i ∧ 0 ≤ i0 ∧ 0 < j → i / j * i0 + (i0 * i % j) / j = (i0 * i) / j; add-c: ⊦ i + j = j + i; from specification int-basic2 add-a: ⊦ i + j + i0 = (i + j) + i0; from specification int-basic2 commutativity: ⊦ i * j = j * i; from specification int-mult associativity: ⊦ i * j * j0 = (i * j) * j0; from specification int-mult

Proof step 6 from proof div-mult-shift-holds (previous step) (back to tree)

(i0 * i) / j ≠ i / j * i0, 0 < j, i % j * i0 < j, 0 ≤ i0, 0 ≤ i ⊦

User applied rule apply elim lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, 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] → [i, j, i1, j0]

Additional information

Used simplifier rules: ⊦ i ≤ 0 ∧ 0 ≤ j → i ≤ j; (s) Used terms: i, j, i1, j0

Proof step 7 from proof div-mult-shift-holds (previous step) (back to tree)

⊦ 0 < j ∧ 0 ≤ i → (i0 = i / j ∧ j0 = i % j ↔ i = i0 * j + j0 ∧ 0 ≤ j0 ∧ j0 < j ∧ 0 ≤ i0)

Lemma div-elim-pospos

Proof step 8 from proof div-mult-shift-holds (previous step) (back to tree)

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ i ≤ 0 ∧ 0 ≤ j → i ≤ j; (s) forward-le-01: ⊦ i ≤ j ∧ 0 ≤ i → 0 ≤ j; (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 commutativity: ⊦ i * j = j * i; from specification int-mult associativity: ⊦ i * j * j0 = (i * j) * j0; from specification int-mult ⊦ 0 ≤ j1 ∧ j1 < j → (0 ≤ i0 * j + j1 ↔ 0 ≤ i0); (s)

Proof step 9 from proof div-mult-shift-holds (previous step) (back to tree)

(i0 * (i1 * j + j0)) / j ≠ i1 * i0, j0 * i0 < j, 0 < j, j0 < j, 0 ≤ i0, 0 ≤ j0, 0 ≤ i1 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: int-mult, name:dist-lsplit, seq: ⊦ (i + i0) * j = i * j + i0 * j, subst:[j, i0, i] → [i0, j0, i1 * j], <all paths>

Additional information

Used simplifier rules: commutativity: ⊦ i * j = j * i; from specification int-mult Used terms: i0, j0, i1 * j

Proof step 10 from proof div-mult-shift-holds (previous step) (back to tree)

⊦ (i + i0) * j = i * j + i0 * j

A spec-lemma

Proof step 11 from proof div-mult-shift-holds (previous step) (back to tree)

((i1 * j) * i0 + j0 * i0) / j ≠ i1 * i0, j0 < j, 0 < j, j0 * i0 < j, 0 ≤ i1, 0 ≤ j0, 0 ≤ i0 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:div-add1-pospos, seq: ⊦ i % j = 0 ∧ 0 ≤ i ∧ 0 ≤ i0 ∧ 0 < j → (i + i0) / j = i / j + i0 / j, subst:[j, i0, i] → [j, j0 * i0, (i1 * j) * i0], <all paths>

Additional information

Used simplifier rules: mod-mult-04: j ≠ 0 ⊦ (i * j) % j = 0; ⊦ i * 0 = 0; (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 ⊦ 0 < i → (0 ≤ i * j ↔ 0 ≤ j); (s) ⊦ 0 ≤ i → (0 ≤ i * j ↔ i = 0 ∨ 0 ≤ j); (s) associativity: ⊦ i * j * j0 = (i * j) * j0; from specification int-mult commutativity: ⊦ i * j = j * i; from specification int-mult Used terms: j, j0 * i0, (i1 * j) * i0

Proof step 12 from proof div-mult-shift-holds (previous step) (back to tree)

⊦ i % j = 0 ∧ 0 ≤ i ∧ 0 ≤ i0 ∧ 0 < j → (i + i0) / j = i / j + i0 / j

Lemma div-add1-pospos

Proof step 13 from proof div-mult-shift-holds (previous step) (back to tree)

((i1 * j) * i0) % j = 0, ((i1 * j) * i0) / j + (j0 * i0) / j ≠ i1 * i0, j0 * i0 < j, j0 < j, 0 < j, 0 ≤ i0, 0 ≤ j0, 0 ≤ i1, 0 ≤ (i1 * j) * i0, 0 ≤ j0 * i0 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: div-mult-03: j ≠ 0 ⊦ (i * j) / j = i; commutativity: ⊦ i * j = j * i; from specification int-mult associativity: ⊦ i * j * j0 = (i * j) * j0; from specification int-mult ⊦ i ≤ 0 ∧ 0 ≤ j → i ≤ j; (s) ⊦ 0 ≤ i → (0 ≤ i * j ↔ i = 0 ∨ 0 ≤ j); (s) ⊦ 0 < i → (0 ≤ i * j ↔ 0 ≤ j); (s) 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 ↔ j = 0; (s) ⊦ i * 0 = 0; (s) ⊦ i ≤ j → (j ≤ i ↔ i = j); (s) ⊦ i < 0 → (0 ≤ i * j ↔ j ≤ 0); (s)

Proof step 14 from proof div-mult-shift-holds (previous step) (back to tree)

((i1 * j) * i0) % j = 0, (j0 * i0) / j ≠ 0, 0 < j, j0 < j, j0 * i0 < j, 0 ≤ i1, 0 ≤ j0, 0 ≤ i0 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:div-zero, seq:0 < j, 0 ≤ i, i < j ⊦ i / j = 0, subst:[j, i] → [j, j0 * i0], <all paths>

Additional information

Used simplifier rules: ⊦ 0 ≤ i → (0 ≤ i * j ↔ i = 0 ∨ 0 ≤ j); (s) associativity: ⊦ i * j * j0 = (i * j) * j0; from specification int-mult commutativity: ⊦ i * j = j * i; from specification int-mult Used terms: j, j0 * i0

Proof step 15 from proof div-mult-shift-holds (previous step) (back to tree)

0 < j, 0 ≤ i, i < j ⊦ i / j = 0

Lemma div-zero

Proof Tree for div-mult-shift-holds (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