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

⊦ m | dist(n, m0) ∧ m | dist(n0, m0) → m | dist(n, n0)

System applied rule normalize

And obtained the following new goals

Rule argument

Additional information

Proof step 2 from proof divi-same (previous step) (back to tree)

m | dist(n, m0), m | dist(n0, m0), ¬ m | dist(n, n0) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 3 from proof divi-same (previous step) (back to tree)

m | dist(n0, m0), m | dist(n, m0), ¬ m | dist(n, n0) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:Divides, seq: ⊦ m | n ↔ (∃ n0. m * n0 = n), subst:[n, m] → [dist(n0, m0), m], <all paths>

Additional information

Used terms: dist(n0, m0), m

Proof step 4 from proof divi-same (previous step) (back to tree)

⊦ m | n ↔ (∃ n0. m * n0 = n)

Lemma Divides

Proof step 5 from proof divi-same (previous step) (back to tree)

m | dist(n, m0), ¬ m | dist(n, n0), ∃ n1. m * n1 = dist(n0, m0) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 6 from proof divi-same (previous step) (back to tree)

m * n1 = dist(n0, m0), m | dist(n, m0), ¬ m | dist(n, n0) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:Divides, seq: ⊦ m | n ↔ (∃ n0. m * n0 = n), subst:[n, m] → [dist(n, m0), m], <all paths>

Additional information

Used terms: dist(n, m0), m

Proof step 7 from proof divi-same (previous step) (back to tree)

⊦ m | n ↔ (∃ n0. m * n0 = n)

Lemma Divides

Proof step 8 from proof divi-same (previous step) (back to tree)

m * n1 = dist(n0, m0), ¬ m | dist(n, n0), ∃ n0. m * n0 = dist(n, m0) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 9 from proof divi-same (previous step) (back to tree)

m * n2 = dist(n, m0), m * n1 = dist(n0, m0), ¬ m | dist(n, n0) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:dist-fst, seq: ⊦ m ≤ n → dist(m, n) = n - m, subst:[n, m] → [m0, n], <all paths>

Additional information

Used terms: m0, n

Proof step 10 from proof divi-same (previous step) (back to tree)

⊦ m ≤ n → dist(m, n) = n - m

Lemma dist-fst

Proof step 11 from proof divi-same (previous step) (back to tree)

m * n1 = dist(n0, m0), m * n2 = dist(n, m0), ¬ m | dist(n, n0), ¬ n ≤ m0 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ m < n → n ≠ 0; (s) f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic ⊦ m ≤ n ↔ ¬ n < m; (ss)

Proof step 12 from proof divi-same (previous step) (back to tree)

m * n1 = dist(n0, m0), m * n2 = dist(n, m0), m0 < n, ¬ m | dist(n, n0) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:dist-snd, seq: ⊦ n < m → dist(m, n) = m - n, subst:[n, m] → [m0, n], <all paths>

Additional information

Used terms: m0, n

Proof step 13 from proof divi-same (previous step) (back to tree)

⊦ n < m → dist(m, n) = m - n

Lemma dist-snd

Proof step 14 from proof divi-same (previous step) (back to tree)

m * n2 = n - m0, m * n1 = dist(n0, m0), m0 < n, ¬ m | dist(n, n0) ⊦

Heuristic elimination applied rule apply elim lemma

And obtained the following new goals

Rule argument

spec: nat, name:elim-sub, seq:n ≤ m ⊦ n0 = m - n ↔ m = n0 + n, subst:[m, n, n0] → [n, m0, n3]

Additional information

Used simplifier rules: ⊦ m ≤ n ↔ ¬ n < m; (ss) ⊦ m < n → ¬ n < m; (s) n ≤ m ⊦ n0 = m - n ↔ m = n0 + n; (elim) Used terms: n, m0, n3

Proof step 15 from proof divi-same (previous step) (back to tree)

m * n1 = dist(n0, m0), m * n2 = n3, n = n3 + m0, m0 < n, m0 ≤ n, ¬ m | dist(n, n0) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: mult-c: ⊦ m * n = n * m; from specification nat-mult mult-a: ⊦ m0 * m * n = (m0 * m) * n; from specification nat-mult ⊦ m0 * m = 0 ↔ m0 = 0 ∨ m = 0; (ws) c: ⊦ m + n = n + m; from specification nat-basic a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic ⊦ m < m + n ↔ n ≠ 0; (s) ⊦ m < n → m ≤ n; (s)

Proof step 16 from proof divi-same (previous step) (back to tree)

m * n1 = dist(n0, m0), m ≠ 0, n2 ≠ 0, ¬ m | dist(m * n2 + m0, n0) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:dist-fst, seq: ⊦ m ≤ n → dist(m, n) = n - m, subst:[n, m] → [m0, n0], <all paths>

Additional information

Used terms: m0, n0

Proof step 17 from proof divi-same (previous step) (back to tree)

⊦ m ≤ n → dist(m, n) = n - m

Lemma dist-fst

Proof step 18 from proof divi-same (previous step) (back to tree)

m * n1 = dist(n0, m0), m ≠ 0, n2 ≠ 0, ¬ m | dist(m * n2 + m0, n0), ¬ n0 ≤ m0 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ m < n → n ≠ 0; (s) f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic ⊦ m ≤ n ↔ ¬ n < m; (ss)

Proof step 19 from proof divi-same (previous step) (back to tree)

m * n1 = dist(n0, m0), m ≠ 0, n2 ≠ 0, m0 < n0, ¬ m | dist(m * n2 + m0, n0) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:dist-snd, seq: ⊦ n < m → dist(m, n) = m - n, subst:[n, m] → [m0, n0], <all paths>

Additional information

Used terms: m0, n0

Proof step 20 from proof divi-same (previous step) (back to tree)

⊦ n < m → dist(m, n) = m - n

Lemma dist-snd

Proof step 21 from proof divi-same (previous step) (back to tree)

m * n1 = n0 - m0, m ≠ 0, n2 ≠ 0, m0 < n0, ¬ m | dist(m * n2 + m0, n0) ⊦

Heuristic elimination applied rule apply elim lemma

And obtained the following new goals

Rule argument

spec: nat, name:elim-sub, seq:n ≤ m ⊦ n0 = m - n ↔ m = n0 + n, subst:[m, n, n0] → [n0, m0, n3]

Additional information

Used simplifier rules: ⊦ m ≤ n ↔ ¬ n < m; (ss) ⊦ m < n → ¬ n < m; (s) n ≤ m ⊦ n0 = m - n ↔ m = n0 + n; (elim) Used terms: n0, m0, n

Proof step 22 from proof divi-same (previous step) (back to tree)

m * n1 = n3, n0 = n3 + m0, m ≠ 0, n2 ≠ 0, m0 < n0, m0 ≤ n0, ¬ m | dist(m * n2 + m0, n0) ⊦

Heuristic simplifier applied rule simplifier

And closed the goal!

Rule argument

Additional information

Used simplifier rules: dist-add-01: ⊦ dist(m + n, m0 + n) = dist(m, m0); dist-mult: ⊦ dist(m * n, m * n0) = m * dist(n, n0); divi-mult: ⊦ m | m * n0; mult-c: ⊦ m * n = n * m; from specification nat-mult mult-a: ⊦ m0 * m * n = (m0 * m) * n; from specification nat-mult c: ⊦ m + n = n + m; from specification nat-basic a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic ⊦ m0 * m = 0 ↔ m0 = 0 ∨ m = 0; (ws) ⊦ m < m + n ↔ n ≠ 0; (s) ⊦ m < n → m ≤ n; (s)

Proof step 23 from proof divi-same (previous step) (back to tree)

m * n1 = m0 - n0, m ≠ 0, n2 ≠ 0, n0 ≤ m0, ¬ m | dist(m * n2 + m0, n0) ⊦

Heuristic elimination applied rule apply elim lemma

And closed the goal!

Rule argument

spec: nat, name:elim-sub, seq:n ≤ m ⊦ n0 = m - n ↔ m = n0 + n, subst:[m, n, n0] → [m0, n0, n3]

Additional information

Used simplifier rules: dist-add: ⊦ dist(m + n, m) = n; divi-add-01: ⊦ m | m * n + n0 ↔ m | n0; divi-mult: ⊦ m | m * n0; ⊦ m ≤ m + n; (s) mult-a: ⊦ m0 * m * n = (m0 * m) * n; from specification nat-mult mult-c: ⊦ m * n = n * m; from specification nat-mult a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic n ≤ m ⊦ n0 = m - n ↔ m = n0 + n; (elim) Used terms: m0, n0, n

Proof step 24 from proof divi-same (previous step) (back to tree)

m * n1 = dist(n0, m0), m * n2 = m0 - n, n ≤ m0, ¬ m | dist(n, n0) ⊦

Heuristic elimination applied rule apply elim lemma

And obtained the following new goals

Rule argument

spec: nat, name:elim-sub, seq:n ≤ m ⊦ n0 = m - n ↔ m = n0 + n, subst:[m, n, n0] → [m0, n, n3]

Additional information

Used simplifier rules: n ≤ m ⊦ n0 = m - n ↔ m = n0 + n; (elim) Used terms: m0, n, n3

Proof step 25 from proof divi-same (previous step) (back to tree)

m * n2 = n3, m * n1 = dist(n0, m0), m0 = n3 + n, n ≤ m0, ¬ m | dist(n, n0) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: c: ⊦ m + n = n + m; from specification nat-basic a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic ⊦ m ≤ m + n; (s)

Proof step 26 from proof divi-same (previous step) (back to tree)

m * n1 = dist(n0, m * n2 + n), ¬ m | dist(n, n0) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:dist-fst, seq: ⊦ m ≤ n → dist(m, n) = n - m, subst:[n, m] → [m * n2 + n, n0], <all paths>

Additional information

Used terms: m * n2 + n, n0

Proof step 27 from proof divi-same (previous step) (back to tree)

⊦ m ≤ n → dist(m, n) = n - m

Lemma dist-fst

Proof step 28 from proof divi-same (previous step) (back to tree)

m * n1 = dist(n0, m * n2 + n), ¬ m | dist(n, n0), ¬ n0 ≤ m * n2 + n ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ m < n → n ≠ 0; (s) f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic ⊦ m ≤ n ↔ ¬ n < m; (ss)

Proof step 29 from proof divi-same (previous step) (back to tree)

m * n1 = dist(n0, m * n2 + n), m * n2 + n < n0, ¬ m | dist(n, n0) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:dist-snd, seq: ⊦ n < m → dist(m, n) = m - n, subst:[n, m] → [m * n2 + n, n0], <all paths>

Additional information

Used terms: m * n2 + n, n0

Proof step 30 from proof divi-same (previous step) (back to tree)

⊦ n < m → dist(m, n) = m - n

Lemma dist-snd

Proof step 31 from proof divi-same (previous step) (back to tree)

m * n1 = n0 - m * n2 + n, m * n2 + n < n0, ¬ m | dist(n, n0) ⊦

Heuristic elimination applied rule apply elim lemma

And closed the goal!

Rule argument

spec: nat, name:elim-sub, seq:n ≤ m ⊦ n0 = m - n ↔ m = n0 + n, subst:[m, n, n0] → [n0, m * n2 + n, n3]

Additional information

Used simplifier rules: dist-add: ⊦ dist(m + n, m) = n; dist-c: ⊦ dist(m, n) = dist(n, m); divi-add-01: ⊦ m | m * n + n0 ↔ m | n0; divi-mult: ⊦ m | m * n0; ⊦ m + n ≤ m + n0 ↔ n ≤ n0; (s) ⊦ m ≤ m + n; (s) ⊦ m + n < m + n0 ↔ n < n0; (s) ⊦ m < m + n ↔ n ≠ 0; (s) ⊦ m0 * m = 0 ↔ m0 = 0 ∨ m = 0; (ws) mult-a: ⊦ m0 * m * n = (m0 * m) * n; from specification nat-mult mult-c: ⊦ m * n = n * m; from specification nat-mult a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic ⊦ m ≤ n ↔ ¬ n < m; (ss) ⊦ m < n → ¬ n < m; (s) n ≤ m ⊦ n0 = m - n ↔ m = n0 + n; (elim) Used terms: n0, m * n2 + n, n3

Proof step 32 from proof divi-same (previous step) (back to tree)

m * n1 = m * n2 + n - n0, n0 ≤ m * n2 + n, ¬ m | dist(n, n0) ⊦

Heuristic elimination applied rule apply elim lemma

And obtained the following new goals

Rule argument

spec: nat, name:elim-sub, seq:n ≤ m ⊦ n0 = m - n ↔ m = n0 + n, subst:[m, n, n0] → [m * n2 + n, n0, n3]

Additional information

Used simplifier rules: n ≤ m ⊦ n0 = m - n ↔ m = n0 + n; (elim) Used terms: m * n2 + n, n0, n3

Proof step 33 from proof divi-same (previous step) (back to tree)

m * n1 = n3, m * n2 + n = n3 + n0, n0 ≤ m * n2 + n, ¬ m | dist(n, n0) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: c: ⊦ m + n = n + m; from specification nat-basic a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic ⊦ m ≤ m + n; (s)

Proof step 34 from proof divi-same (previous step) (back to tree)

m * n2 + n = m * n1 + n0, ¬ m | dist(n, n0) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:dist-fst, seq: ⊦ m ≤ n → dist(m, n) = n - m, subst:[n, m] → [n0, n], <all paths>

Additional information

Used terms: n0, n

Proof step 35 from proof divi-same (previous step) (back to tree)

⊦ m ≤ n → dist(m, n) = n - m

Lemma dist-fst

Proof step 36 from proof divi-same (previous step) (back to tree)

m * n2 + n = m * n1 + n0, ¬ m | dist(n, n0), ¬ n ≤ n0 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ m < n → n ≠ 0; (s) f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic ⊦ m ≤ n ↔ ¬ n < m; (ss)

Proof step 37 from proof divi-same (previous step) (back to tree)

m * n2 + n = m * n1 + n0, n0 < n, ¬ m | dist(n, n0) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:dist-snd, seq: ⊦ n < m → dist(m, n) = m - n, subst:[n, m] → [n0, n], <all paths>

Additional information

Used terms: n0, n

Proof step 38 from proof divi-same (previous step) (back to tree)

⊦ n < m → dist(m, n) = m - n

Lemma dist-snd

Proof step 39 from proof divi-same (previous step) (back to tree)

m * n2 + n = m * n1 + n0, n0 < n, ¬ m | n - n0 ⊦

Heuristic elimination applied rule apply elim lemma

And obtained the following new goals

Rule argument

spec: nat, name:elim-sub, seq:n ≤ m ⊦ n0 = m - n ↔ m = n0 + n, subst:[m, n, n0] → [n, n0, n3]

Additional information

Used simplifier rules: ⊦ m ≤ n ↔ ¬ n < m; (ss) ⊦ m < n → ¬ n < m; (s) n ≤ m ⊦ n0 = m - n ↔ m = n0 + n; (elim) Used terms: n, n0, n3

Proof step 40 from proof divi-same (previous step) (back to tree)

m * n2 + n = m * n1 + n0, n = n3 + n0, n0 < n, n0 ≤ n, ¬ m | n3 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: c: ⊦ m + n = n + m; from specification nat-basic a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic ⊦ m < m + n ↔ n ≠ 0; (s) ⊦ m < n → m ≤ n; (s) ⊦ m + n = m + n0 ↔ n = n0; (s)

Proof step 41 from proof divi-same (previous step) (back to tree)

m * n2 + n3 = m * n1, n3 ≠ 0, ¬ m | n3 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:Divides, seq: ⊦ m | n ↔ (∃ n0. m * n0 = n), subst:[n, m] → [n3, m], <all paths>

Additional information

Used terms: n3, m

Proof step 42 from proof divi-same (previous step) (back to tree)

⊦ m | n ↔ (∃ n0. m * n0 = n)

Lemma Divides

Proof step 43 from proof divi-same (previous step) (back to tree)

m * n2 + n3 = m * n1, n3 ≠ 0, ∀ n0. m * n0 ≠ n3 ⊦

User applied rule all left

And obtained the following new goals

Rule argument

pos: left 3 terms: n1 - n2 abort: F discard: T computed: F

Additional information

Used terms: n1 - n2

Proof step 44 from proof divi-same (previous step) (back to tree)

m * n2 + n3 = m * n1, m * (n1 - n2) ≠ n3, n3 ≠ 0 ⊦

User applied rule apply elim lemma

And obtained the following new goals

Rule argument

spec: nat, name:elim-sub, seq:n ≤ m ⊦ n0 = m - n ↔ m = n0 + n, subst:[m, n, n0] → [n1, n2, n0]

Additional information

Used simplifier rules: n ≤ m ⊦ n0 = m - n ↔ m = n0 + n; (elim) Used terms: n1, n2, n0

Proof step 45 from proof divi-same (previous step) (back to tree)

m * n2 + n3 = m * n1, m * (n1 - n2) ≠ n3, n3 ≠ 0, ¬ n2 ≤ n1 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ m < n → n ≠ 0; (s) f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic ⊦ m ≤ n ↔ ¬ n < m; (ss)

Proof step 46 from proof divi-same (previous step) (back to tree)

m * n2 + n3 = m * n1, m * (n1 - n2) ≠ n3, n3 ≠ 0, n1 < n2 ⊦

User applied rule cut formula

And closed the goal!

Rule argument

fma: m * n1 < m * n2

Additional information

Used simplifier rules: ⊦ m0 * m < m0 * n ↔ m0 ≠ 0 ∧ m < n; (ws) ⊦ 0 + m = m; (s) a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic ⊦ m * 0 = 0; (s) mult-a: ⊦ m0 * m * n = (m0 * m) * n; from specification nat-mult mult-c: ⊦ m * n = n * m; from specification nat-mult ⊦ m * n1 = m * m0 + n0 ∧ m ≠ 0 → ¬ n1 < m0; (s) Used formulas: m * n1 < m * n2

Proof step 47 from proof divi-same (previous step) (back to tree)

m * n2 + n3 = m * n1, n1 = n0 + n2, m * n0 ≠ n3, n3 ≠ 0, n2 ≤ n1 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: c: ⊦ m + n = n + m; from specification nat-basic a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic ⊦ m ≤ m + n; (s)

Proof step 48 from proof divi-same (previous step) (back to tree)

m * n2 + n3 = m * (n0 + n2), m * n0 ≠ n3, n3 ≠ 0 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: nat-mult, name:dist, seq: ⊦ m0 * (m + n) = m0 * m + m0 * n, subst:[n, m, m0] → [n2, n0, m], <all paths>

Additional information

Used simplifier rules: ⊦ m + n = m + n0 ↔ n = n0; (s) a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic Used terms: n2, n0, m

Proof step 49 from proof divi-same (previous step) (back to tree)

⊦ m0 * (m + n) = m0 * m + m0 * n

A spec-lemma

Proof step 50 from proof divi-same (previous step) (back to tree)

m * n2 + n = m * n1 + n0, n ≤ n0, ¬ m | n0 - n ⊦

Heuristic elimination applied rule apply elim lemma

And obtained the following new goals

Rule argument

spec: nat, name:elim-sub, seq:n ≤ m ⊦ n0 = m - n ↔ m = n0 + n, subst:[m, n, n0] → [n0, n, n3]

Additional information

Used simplifier rules: n ≤ m ⊦ n0 = m - n ↔ m = n0 + n; (elim) Used terms: n0, n, n3

Proof step 51 from proof divi-same (previous step) (back to tree)

m * n2 + n = m * n1 + n0, n0 = n3 + n, n ≤ n0, ¬ m | n3 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: c: ⊦ m + n = n + m; from specification nat-basic a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic ⊦ m ≤ m + n; (s) ⊦ m + n = m + n0 ↔ n = n0; (s)

Proof step 52 from proof divi-same (previous step) (back to tree)

m * n2 = m * n1 + n3, ¬ m | n3 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:Divides, seq: ⊦ m | n ↔ (∃ n0. m * n0 = n), subst:[n, m] → [n3, m], <all paths>

Additional information

Used terms: n3, m

Proof step 53 from proof divi-same (previous step) (back to tree)

⊦ m | n ↔ (∃ n0. m * n0 = n)

Lemma Divides

Proof step 54 from proof divi-same (previous step) (back to tree)

m * n2 = m * n1 + n3, ∀ n0. m * n0 ≠ n3 ⊦

User applied rule all left

And obtained the following new goals

Rule argument

pos: left 2 terms: n2 - n1 abort: F discard: T computed: F

Additional information

Used terms: n2 - n1

Proof step 55 from proof divi-same (previous step) (back to tree)

m * n2 = m * n1 + n3, m * (n2 - n1) ≠ n3 ⊦

User applied rule apply elim lemma

And obtained the following new goals

Rule argument

spec: nat, name:elim-sub, seq:n ≤ m ⊦ n0 = m - n ↔ m = n0 + n, subst:[m, n, n0] → [n2, n1, n0]

Additional information

Used simplifier rules: n ≤ m ⊦ n0 = m - n ↔ m = n0 + n; (elim) Used terms: n2, n1, n0

Proof step 56 from proof divi-same (previous step) (back to tree)

m * n2 = m * n1 + n3, m * (n2 - n1) ≠ n3, ¬ n1 ≤ n2 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ m < n → n ≠ 0; (s) f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic ⊦ m ≤ n ↔ ¬ n < m; (ss)

Proof step 57 from proof divi-same (previous step) (back to tree)

m * n2 = m * n1 + n3, m * (n2 - n1) ≠ n3, n2 < n1 ⊦

User applied rule cut formula

And closed the goal!

Rule argument

fma: m * n2 < m * n1

Additional information

Used simplifier rules: ⊦ m0 * m < m0 * n ↔ m0 ≠ 0 ∧ m < n; (ws) ⊦ 0 + m = m; (s) a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic ⊦ m * 0 = 0; (s) mult-a: ⊦ m0 * m * n = (m0 * m) * n; from specification nat-mult mult-c: ⊦ m * n = n * m; from specification nat-mult ⊦ m * n1 = m * m0 + n0 ∧ m ≠ 0 → ¬ n1 < m0; (s) Used formulas: m * n2 < m * n1

Proof step 58 from proof divi-same (previous step) (back to tree)

m * n2 = m * n1 + n3, n2 = n0 + n1, m * n0 ≠ n3, n1 ≤ n2 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: c: ⊦ m + n = n + m; from specification nat-basic a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic ⊦ m ≤ m + n; (s)

Proof step 59 from proof divi-same (previous step) (back to tree)

m * (n0 + n1) = m * n1 + n3, m * n0 ≠ n3 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: nat-mult, name:dist, seq: ⊦ m0 * (m + n) = m0 * m + m0 * n, subst:[n, m, m0] → [n1, n0, m], <all paths>

Additional information

Used simplifier rules: ⊦ m + n = m + n0 ↔ n = n0; (s) a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic Used terms: n1, n0, m

Proof step 60 from proof divi-same (previous step) (back to tree)

⊦ m0 * (m + n) = m0 * m + m0 * n

A spec-lemma

Proof Tree for divi-same (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