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

⊦ m ≠ 0 → (m | dist(n, n0) ↔ n % m = n0 % m)

System applied rule normalize

And obtained the following new goals

Rule argument

Additional information

Proof step 2 from proof cong-equiv (previous step) (back to tree)

¬(m | dist(n, n0) ↔ n % m = n0 % m), m ≠ 0 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 3 from proof cong-equiv (previous step) (back to tree)

¬(m | dist(n, n0) ↔ n % m = n0 % m), m ≠ 0 ⊦

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 4 from proof cong-equiv (previous step) (back to tree)

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

Lemma dist-fst

Proof step 5 from proof cong-equiv (previous step) (back to tree)

¬(m | dist(n, n0) ↔ n % m = n0 % m), m ≠ 0, ¬ 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 6 from proof cong-equiv (previous step) (back to tree)

¬(m | dist(n, n0) ↔ n % m = n0 % m), m ≠ 0, n0 < n ⊦

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 7 from proof cong-equiv (previous step) (back to tree)

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

Lemma dist-snd

Proof step 8 from proof cong-equiv (previous step) (back to tree)

¬(m | n - n0 ↔ n % m = n0 % m), m ≠ 0, 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] → [n, n0, n1]

Additional information

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

Proof step 9 from proof cong-equiv (previous step) (back to tree)

n = n1 + n0, ¬(m | n1 ↔ n % m = n0 % m), m ≠ 0, n0 < n, n0 ≤ n ⊦

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)

Proof step 10 from proof cong-equiv (previous step) (back to tree)

¬(m | n1 ↔ (n1 + n0) % m = n0 % m), m ≠ 0, n1 ≠ 0 ⊦

User applied rule case distinction

And obtained the following new goals

Rule argument

pos: left 1

Additional information

Proof step 11 from proof cong-equiv (previous step) (back to tree)

(n1 + n0) % m ≠ n0 % m, m ≠ 0, n1 ≠ 0, m | n1 ⊦

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] → [n1, m], <all paths>

Additional information

Used simplifier rules: n ≠ 0 ⊦ (m + n0 * n) % n = 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 Used terms: n1, m

Proof step 12 from proof cong-equiv (previous step) (back to tree)

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

Lemma Divides

Proof step 13 from proof cong-equiv (previous step) (back to tree)

(n1 + n0) % m = n0 % m, m ≠ 0, n1 ≠ 0, ¬ m | n1 ⊦

User applied rule apply elim lemma

And obtained the following new goals

Rule argument

spec: nat-div, name:div-elim, seq:n ≠ 0 ⊦ m0 = m / n ∧ n0 = m % n ↔ m = m0 * n + n0 ∧ n0 < n, subst:[m, n, m0, n0] → [n1 + n0, m, m0, n2]

Additional information

Used simplifier rules: n ≠ 0 ⊦ m0 = m / n ∧ n0 = m % n ↔ m = m0 * n + n0 ∧ n0 < n; (elim) Used terms: n1 + n0, m, m0, n

Proof step 14 from proof cong-equiv (previous step) (back to tree)

n1 + n0 = m0 * m + n2, n2 = n0 % m, m ≠ 0, n1 ≠ 0, n2 < m, ¬ m | 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

Proof step 15 from proof cong-equiv (previous step) (back to tree)

n1 + n0 = m0 * m + n0 % m, n1 ≠ 0, n0 % m < m, ¬ m | n1 ⊦

User applied rule apply elim lemma

And obtained the following new goals

Rule argument

spec: nat-div, name:div-elim, seq:n ≠ 0 ⊦ m0 = m / n ∧ n0 = m % n ↔ m = m0 * n + n0 ∧ n0 < n, subst:[m, n, m0, n0] → [n0, m, m1, n2]

Additional information

Used simplifier rules: ⊦ 0 * n = 0; (s) mult-a: ⊦ m0 * m * n = (m0 * m) * n; from specification nat-mult mult-c: ⊦ m * n = n * m; from specification nat-mult ⊦ n + 0 = n; (s) a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic ⊦ ¬ n < 0; (s) n ≠ 0 ⊦ m0 = m / n ∧ n0 = m % n ↔ m = m0 * n + n0 ∧ n0 < n; (elim) Used terms: n0, m, m1, n

Proof step 16 from proof cong-equiv (previous step) (back to tree)

n1 + n0 = m0 * m + n2, n0 = m1 * m + n2, m ≠ 0, n1 ≠ 0, n2 < m, ¬ m | n1 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

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

Proof step 17 from proof cong-equiv (previous step) (back to tree)

n1 + m1 * m = m0 * m, n1 ≠ 0, n2 < m, ¬ m | n1 ⊦

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] → [n1, m], <all paths>

Additional information

Used terms: n1, m

Proof step 18 from proof cong-equiv (previous step) (back to tree)

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

Lemma Divides

Proof step 19 from proof cong-equiv (previous step) (back to tree)

n1 + m1 * m = m0 * m, n1 ≠ 0, n2 < m, ∀ n0. m * n0 ≠ n1 ⊦

User applied rule all left

And obtained the following new goals

Rule argument

pos: left 4 terms: m0 - m1 abort: F discard: T computed: F

Additional information

Used terms: m0 - m1

Proof step 20 from proof cong-equiv (previous step) (back to tree)

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

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

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

Additional information

Used simplifier rules: mult-c: ⊦ m * n = n * m; from specification nat-mult Used terms: m, m1, m0

Proof step 21 from proof cong-equiv (previous step) (back to tree)

⊦ m0 ≤ m → (m - m0) * n = m * n - m0 * n

A spec-lemma

Proof step 22 from proof cong-equiv (previous step) (back to tree)

n1 + m1 * m = m0 * m, m * (m0 - m1) ≠ n1, n1 ≠ 0, n2 < m, ¬ m1 ≤ 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 23 from proof cong-equiv (previous step) (back to tree)

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

User applied rule cut formula

And obtained the following new goals

Rule argument

fma: m0 * m < m1 * m

Additional information

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

Proof step 24 from proof cong-equiv (previous step) (back to tree)

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

User applied rule subst equation

And closed the goal!

Rule argument

pos: left 1, flags: rotate, discard

Additional information

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

Proof step 25 from proof cong-equiv (previous step) (back to tree)

n1 + m1 * m = m0 * m, m0 * m - m1 * m ≠ n1, n1 ≠ 0, n2 < m, m1 ≤ m0 ⊦

User applied rule subst equation

And closed the goal!

Rule argument

pos: left 1, flags: rotate, discard

Additional information

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

Proof step 26 from proof cong-equiv (previous step) (back to tree)

¬(m | n0 - n ↔ n % m = n0 % m), m ≠ 0, 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] → [n0, n, n1]

Additional information

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

Proof step 27 from proof cong-equiv (previous step) (back to tree)

n0 = n1 + n, ¬(m | n1 ↔ n % m = n0 % m), m ≠ 0, 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 28 from proof cong-equiv (previous step) (back to tree)

¬(m | n1 ↔ n % m = (n1 + n) % m), m ≠ 0 ⊦

User applied rule case distinction

And obtained the following new goals

Rule argument

pos: left 1

Additional information

Proof step 29 from proof cong-equiv (previous step) (back to tree)

n % m ≠ (n1 + n) % m, m ≠ 0, m | n1 ⊦

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] → [n1, m], <all paths>

Additional information

Used simplifier rules: n ≠ 0 ⊦ (m + n0 * n) % n = 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 Used terms: n1, m

Proof step 30 from proof cong-equiv (previous step) (back to tree)

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

Lemma Divides

Proof step 31 from proof cong-equiv (previous step) (back to tree)

n % m = (n1 + n) % m, m ≠ 0, ¬ m | n1 ⊦

User applied rule apply elim lemma

And obtained the following new goals

Rule argument

spec: nat-div, name:div-elim, seq:n ≠ 0 ⊦ m0 = m / n ∧ n0 = m % n ↔ m = m0 * n + n0 ∧ n0 < n, subst:[m, n, m0, n0] → [n, m, m0, n0]

Additional information

Used simplifier rules: n ≠ 0 ⊦ m0 = m / n ∧ n0 = m % n ↔ m = m0 * n + n0 ∧ n0 < n; (elim) Used terms: n, m, m0, n0

Proof step 32 from proof cong-equiv (previous step) (back to tree)

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

User applied rule subst equation

And obtained the following new goals

Rule argument

pos: left 1, flags: discard

Additional information

Proof step 33 from proof cong-equiv (previous step) (back to tree)

n0 = (n1 + m0 * m + n0) % m, m ≠ 0, n0 < m, ¬ m | 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 c: ⊦ m + n = n + m; from specification nat-basic a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic ⊦ m0 < n ∧ n ≠ 0 → ((m + m0) % n = m0 ↔ m % n = 0); (s) mult-c: ⊦ m * n = n * m; from specification nat-mult mult-a: ⊦ m0 * m * n = (m0 * m) * n; from specification nat-mult n ≠ 0 ⊦ (m + n0 * n) % n = m % n; (s)

Proof step 34 from proof cong-equiv (previous step) (back to tree)

n1 % m = 0, n0 < m, ¬ m | n1 ⊦

User applied rule apply elim lemma

And closed the goal!

Rule argument

spec: nat-div, name:div-elim, seq:n ≠ 0 ⊦ m0 = m / n ∧ n0 = m % n ↔ m = m0 * n + n0 ∧ n0 < n, subst:[m, n, m0, n0] → [n1, m, m0, n2]

Additional information

Used simplifier rules: divi-mult: ⊦ m | m * n0; ⊦ 0 < m ↔ m ≠ 0; (s) ⊦ m < n → n ≠ 0; (s) ⊦ n + 0 = n; (s) a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic mult-a: ⊦ m0 * m * n = (m0 * m) * n; from specification nat-mult mult-c: ⊦ m * n = n * m; from specification nat-mult ⊦ ¬ n < 0; (s) n ≠ 0 ⊦ m0 = m / n ∧ n0 = m % n ↔ m = m0 * n + n0 ∧ n0 < n; (elim) Used terms: n1, m, m0, n

Proof Tree for cong-equiv (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