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

⊦ ¬ maxenc(m) < m.2

System applied rule normalize

And obtained the following new goals

Rule argument

Additional information

Proof step 2 from proof max-snd-nls (previous step) (back to tree)

maxenc(m) < m.2 ⊦

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 3 from proof max-snd-nls (previous step) (back to tree)

maxenc(m) < m.2 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:dec-snd, seq: ⊦ m.2 = m - (maxenc(m) * (maxenc(m) + 1)) / 2, subst:[m] → [m], <all paths>

Additional information

Used terms: m

Proof step 4 from proof max-snd-nls (previous step) (back to tree)

⊦ m.2 = m - (maxenc(m) * (maxenc(m) + 1)) / 2

Lemma dec-snd

Proof step 5 from proof max-snd-nls (previous step) (back to tree)

maxenc(m) < m - (maxenc(m) * (maxenc(m) + 1)) / 2 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: max-nls: ⊦ ¬ m < (maxenc(m) * maxenc(m) + maxenc(m)) / 2; ⊦ m < n → n ≠ 0; (s) f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic n0 ≤ n ⊦ m < n - n0 ↔ m + n0 < n; (s) c: ⊦ m + n = n + m; from specification nat-basic a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic mult-c: ⊦ m * n = n * m; from specification nat-mult mult-a: ⊦ m0 * m * n = (m0 * m) * n; from specification nat-mult ⊦ m ≤ n ↔ ¬ n < m; (ss) ⊦ m * (n + 1) = m * n + m; (s)

Proof step 6 from proof max-snd-nls (previous step) (back to tree)

maxenc(m) + (maxenc(m) * maxenc(m) + maxenc(m)) / 2 < m ⊦

User applied rule apply lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:max-size, seq:⊦ (maxenc(m) * (maxenc(m) + 1)) / 2 ≤ m ∧ m < ((maxenc(m) + 1) * (maxenc(m) + 2)) / 2, subst:[m] → [m]

Additional information

Used terms: m

Proof step 7 from proof max-snd-nls (previous step) (back to tree)

⊦ (maxenc(m) * (maxenc(m) + 1)) / 2 ≤ m ∧ m < ((maxenc(m) + 1) * (maxenc(m) + 2)) / 2

Lemma max-size

Proof step 8 from proof max-snd-nls (previous step) (back to tree)

maxenc(m) + (maxenc(m) * maxenc(m) + maxenc(m)) / 2 < m, m < ((maxenc(m) + 1) * (maxenc(m) + 2)) / 2, (maxenc(m) * (maxenc(m) + 1)) / 2 ≤ m ⊦

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 c: ⊦ m + n = n + m; from specification nat-basic a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic n < n0 ⊦ (* n) ≠ m0 + (* n0); (s) ⊦ m0 * m = 0 ↔ m0 = 0 ∨ m = 0; (ws) ⊦ m + n = 0 ↔ m = 0 ∧ n = 0; (ws) ⊦ m + n = 1 ↔ m = 0 ∧ n = 1 ∨ n = 0 ∧ m = 1; (ws) ⊦ m / 2 = 0 ↔ m = 0 ∨ m = 1; (s) f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic fle: ⊦ m < n ∧ n ≤ n0 → m < n0; (forward) from specification nat let: ⊦ n ≤ n0 ∧ n0 ≤ n1 → n ≤ n1; (forward) from specification nat ⊦ m < n ↔ ¬ n ≤ m; (ss) ⊦ m < n + 1 ↔ ¬ n < m; (s) ⊦ (m + 2) / 2 = m / 2 + 1; (s) ⊦ m * (n + 1) = m * n + m; (s)

Proof step 9 from proof max-snd-nls (previous step) (back to tree)

(maxenc(m) + 2) * maxenc(m) + maxenc(m) ≠ 0, maxenc(m) ≠ 0, maxenc(m) + (maxenc(m) * maxenc(m) + maxenc(m)) / 2 < m, maxenc(m) + (maxenc(m) * maxenc(m) + maxenc(m)) / 2 < ((maxenc(m) + 2) * maxenc(m) + maxenc(m)) / 2, (maxenc(m) * maxenc(m) + maxenc(m)) / 2 ≤ m, m ≤ ((maxenc(m) + 2) * maxenc(m) + maxenc(m)) / 2, (maxenc(m) * maxenc(m) + maxenc(m)) / 2 ≤ ((maxenc(m) + 2) * maxenc(m) + maxenc(m)) / 2 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: nat-div, name:two-le-02, seq: ⊦ m % 2 = 0 ∧ n % 2 = 0 → (m / 2 ≤ n / 2 ↔ m ≤ n), subst:[n, m] → [(maxenc(m) + 2) * maxenc(m) + maxenc(m), maxenc(m) * maxenc(m) + maxenc(m)], <all paths>

Additional information

Used simplifier rules: ⊦ (m * m + m) % 2 = 0; (s) ⊦ ((n + 2) * n + n) % 2 = 0; (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: (maxenc(m) + 2) * maxenc(m) + maxenc(m), maxenc(m) * maxenc(m) + maxenc(m)

Proof step 10 from proof max-snd-nls (previous step) (back to tree)

⊦ m % 2 = 0 ∧ n % 2 = 0 → (m / 2 ≤ n / 2 ↔ m ≤ n)

A spec-lemma

Proof step 11 from proof max-snd-nls (previous step) (back to tree)

(maxenc(m) * maxenc(m) + maxenc(m)) % 2 = 0, ((maxenc(m) + 2) * maxenc(m) + maxenc(m)) % 2 = 0, (maxenc(m) + 2) * maxenc(m) + maxenc(m) ≠ 0, maxenc(m) ≠ 0, maxenc(m) + (maxenc(m) * maxenc(m) + maxenc(m)) / 2 < ((maxenc(m) + 2) * maxenc(m) + maxenc(m)) / 2, maxenc(m) + (maxenc(m) * maxenc(m) + maxenc(m)) / 2 < m, maxenc(m) * maxenc(m) + maxenc(m) ≤ (maxenc(m) + 2) * maxenc(m) + maxenc(m), m ≤ ((maxenc(m) + 2) * maxenc(m) + maxenc(m)) / 2, (maxenc(m) * maxenc(m) + maxenc(m)) / 2 ≤ m ⊦

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

Proof step 12 from proof max-snd-nls (previous step) (back to tree)

(maxenc(m) + 2) * maxenc(m) + maxenc(m) ≠ 0, maxenc(m) ≠ 0, maxenc(m) + (maxenc(m) * maxenc(m) + maxenc(m)) / 2 < m, maxenc(m) + (maxenc(m) * maxenc(m) + maxenc(m)) / 2 < ((maxenc(m) + 2) * maxenc(m) + maxenc(m)) / 2, (maxenc(m) * maxenc(m) + maxenc(m)) / 2 ≤ m, m ≤ ((maxenc(m) + 2) * maxenc(m) + maxenc(m)) / 2 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: nat-div, name:two-ls-05, seq: ⊦ m % 2 = 0 → (n < m / 2 ↔ n * 2 < m), subst:[m, n] → [(maxenc(m) + 2) * maxenc(m) + maxenc(m), maxenc(m) + (maxenc(m) * maxenc(m) + maxenc(m)) / 2], <all paths>

Additional information

Used simplifier rules: ⊦ ((n + 2) * n + n) % 2 = 0; (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: (maxenc(m) + 2) * maxenc(m) + maxenc(m), maxenc(m) + (maxenc(m) * maxenc(m) + maxenc(m)) / 2

Proof step 13 from proof max-snd-nls (previous step) (back to tree)

⊦ m % 2 = 0 → (n < m / 2 ↔ n * 2 < m)

A spec-lemma

Proof step 14 from proof max-snd-nls (previous step) (back to tree)

((maxenc(m) + 2) * maxenc(m) + maxenc(m)) % 2 = 0, (maxenc(m) + 2) * maxenc(m) + maxenc(m) ≠ 0, maxenc(m) ≠ 0, (maxenc(m) + (maxenc(m) * maxenc(m) + maxenc(m)) / 2) * 2 < (maxenc(m) + 2) * maxenc(m) + maxenc(m), maxenc(m) + (maxenc(m) * maxenc(m) + maxenc(m)) / 2 < m, m ≤ ((maxenc(m) + 2) * maxenc(m) + maxenc(m)) / 2, (maxenc(m) * maxenc(m) + maxenc(m)) / 2 ≤ m ⊦

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 mult-c: ⊦ m * n = n * m; from specification nat-mult mult-a: ⊦ m0 * m * n = (m0 * m) * n; from specification nat-mult ⊦ ((n + 2) * n + n) % 2 = 0; (s)

Proof step 15 from proof max-snd-nls (previous step) (back to tree)

maxenc(m) ≠ 0, (maxenc(m) + (maxenc(m) * maxenc(m) + maxenc(m)) / 2) * 2 < (maxenc(m) + 2) * maxenc(m) + maxenc(m), maxenc(m) + (maxenc(m) * maxenc(m) + maxenc(m)) / 2 < m, m ≤ ((maxenc(m) + 2) * maxenc(m) + maxenc(m)) / 2, (maxenc(m) * maxenc(m) + maxenc(m)) / 2 ≤ m ⊦

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:[m0, n, m] → [2, (maxenc(m) * maxenc(m) + maxenc(m)) / 2, maxenc(m)], <all paths>

Additional information

Used simplifier rules: mult-c: ⊦ m * n = n * m; from specification nat-mult Used terms: 2, (maxenc(m) * maxenc(m) + maxenc(m)) / 2, maxenc(m)

Proof step 16 from proof max-snd-nls (previous step) (back to tree)

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

A spec-lemma

Proof step 17 from proof max-snd-nls (previous step) (back to tree)

maxenc(m) ≠ 0, maxenc(m) + (maxenc(m) * maxenc(m) + maxenc(m)) / 2 < m, 2 * maxenc(m) + 2 * (maxenc(m) * maxenc(m) + maxenc(m)) / 2 < (maxenc(m) + 2) * maxenc(m) + maxenc(m), (maxenc(m) * maxenc(m) + maxenc(m)) / 2 ≤ m, m ≤ ((maxenc(m) + 2) * maxenc(m) + maxenc(m)) / 2 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: max-zero: ⊦ maxenc(m) = 0 ↔ m = 0; mult-c: ⊦ m * n = n * m; from specification nat-mult mult-a: ⊦ m0 * m * n = (m0 * m) * n; from specification nat-mult ⊦ 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 n < n0 ⊦ (* n) ≠ m0 + (* n0); (s) ⊦ m0 * m = 0 ↔ m0 = 0 ∨ m = 0; (ws) f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic ⊦ m0 * 1 = m0; (s) m2 ≠ 0 ⊦ (* m2) * m + n < m + n0 ↔ (m2 - 1) * m + n < n0; (s) m0 ≠ 0 ⊦ n ≤ m / m0 ↔ n * m0 ≤ m; (s)

Proof step 18 from proof max-snd-nls (previous step) (back to tree)

maxenc(m) + 2 * (maxenc(m) * maxenc(m) + maxenc(m)) / 2 < (maxenc(m) + 2) * maxenc(m), maxenc(m) + (maxenc(m) * maxenc(m) + maxenc(m)) / 2 < m, (maxenc(m) * maxenc(m) + maxenc(m)) / 2 ≤ m, m * 2 ≤ (maxenc(m) + 2) * maxenc(m) + maxenc(m) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: nat-div, name:mult-div, seq: ⊦ n % m = 0 ∧ m ≠ 0 → m * n / m = n, subst:[m, n] → [2, maxenc(m) * maxenc(m) + maxenc(m)], <all paths>

Additional information

Used simplifier rules: ⊦ (m * m + m) % 2 = 0; (s) ⊦ m + m = 2 * m; (s) ⊦ m * n + m0 * n < m1 * n ↔ m + m0 < m1 ∧ n ≠ 0; (s) ⊦ m + n < m + n0 ↔ n < n0; (s) ⊦ ¬ n < 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: 2, maxenc(m) * maxenc(m) + maxenc(m)

Proof step 19 from proof max-snd-nls (previous step) (back to tree)

⊦ n % m = 0 ∧ m ≠ 0 → m * n / m = n

A spec-lemma

Proof Tree for max-snd-nls (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