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

⊦ count(a, bag0 \ bag1) = (count(a, bag1) ≤ count(a, bag0) ⊃ count(a, bag0) - count(a, bag1);0)

System applied rule normalize

And obtained the following new goals

Rule argument

Additional information

Proof step 2 from proof difference (previous step) (back to tree)

count(a, bag0 \ bag1) ≠ (count(a, bag1) ≤ count(a, bag0) ⊃ count(a, bag0) - count(a, bag1);0) ⊦

User applied rule cut formula

And obtained the following new goals

Rule argument

fma: count(a, bag0 \ bag1) = (count(a, bag1) < count(a, bag0) ⊃ count(a, bag0) - count(a, bag1);0)

Additional information

Used formulas: count(a, bag0 \ bag1) = (count(a, bag1) < count(a, bag0) ⊃ count(a, bag0) - count(a, bag1);0)

Proof step 3 from proof difference (previous step) (back to tree)

count(a, bag0 \ bag1) = (count(a, bag1) < count(a, bag0) ⊃ count(a, bag0) - count(a, bag1);0), count(a, bag0 \ bag1) ≠ (count(a, bag1) ≤ count(a, bag0) ⊃ count(a, bag0) - count(a, bag1);0) ⊦

User applied rule case distinction

And closed the goal!

Rule argument

pos: left 1

Additional information

Used simplifier rules: ⊦ m < n ↔ ¬ n ≤ m; (ss) ⊦ m ≤ n → (n ≤ m ↔ m = n); (s) ⊦ m - m = 0; (s) ⊦ m < n → m ≤ n; (s)

Proof step 4 from proof difference (previous step) (back to tree)

count(a, bag0 \ bag1) ≠ (count(a, bag1) < count(a, bag0) ⊃ count(a, bag0) - count(a, bag1);0), count(a, bag0 \ bag1) ≠ (count(a, bag1) ≤ count(a, bag0) ⊃ count(a, bag0) - count(a, bag1);0) ⊦

User applied rule structural induction

And obtained the following new goals

Rule argument

indvar: bag1

Additional information

Used simplifier rules: bag('a) generated by ∅, ++;;

Proof step 5 from proof difference (previous step) (back to tree)

count(a, bag0 \ ∅) ≠ (count(a, ∅) < count(a, bag0) ⊃ count(a, bag0) - count(a, ∅);0), count(a, bag0 \ ∅) ≠ (count(a, ∅) ≤ count(a, bag0) ⊃ count(a, bag0) - count(a, ∅);0) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: diff-empty: ⊦ bag0 \ ∅ = bag0; ⊦ m - 0 = m; (s) ⊦ count(a, ∅) = 0; (s) ⊦ 0 < m ↔ m ≠ 0; (s)

Proof step 6 from proof difference (previous step) (back to tree)

count(a, bag0) ≠ (count(a, bag0) ≠ 0 ⊃ count(a, bag0);0), count(a, bag0) ≠ (0 ≤ count(a, bag0) ⊃ count(a, bag0);0) ⊦

User applied rule case distinction

And closed the goal!

Rule argument

pos: left 1

Additional information

Proof step 7 from proof difference (previous step) (back to tree)

count(a, bag0 \ (bag ++ a0)) ≠ (count(a, bag ++ a0) < count(a, bag0) ⊃ count(a, bag0) - count(a, bag ++ a0);0), count(a, bag0 \ (bag ++ a0)) ≠ (count(a, bag ++ a0) ≤ count(a, bag0) ⊃ count(a, bag0) - count(a, bag ++ a0);0), ∀ a, bag0. ¬ ( count(a, bag0 \ bag) ≠ (count(a, bag) < count(a, bag0) ⊃ count(a, bag0) - count(a, bag);0) ∧ count(a, bag0 \ bag) ≠ (count(a, bag) ≤ count(a, bag0) ⊃ count(a, bag0) - count(a, bag);0)) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: diff-rec: ⊦ bag0 \ (bag1 ++ a) = (bag0 -- a) \ bag1;

Proof step 8 from proof difference (previous step) (back to tree)

count(a, (bag0 -- a0) \ bag) ≠ (count(a, bag ++ a0) < count(a, bag0) ⊃ count(a, bag0) - count(a, bag ++ a0);0), count(a, (bag0 -- a0) \ bag) ≠ (count(a, bag ++ a0) ≤ count(a, bag0) ⊃ count(a, bag0) - count(a, bag ++ a0);0), ∀ a1, bag1. count(a1, bag1 \ bag) = (count(a1, bag) < count(a1, bag1) ⊃ count(a1, bag1) - count(a1, bag);0) ∨ count(a1, bag1 \ bag) = (count(a1, bag) ≤ count(a1, bag1) ⊃ count(a1, bag1) - count(a1, bag);0) ⊦

User applied rule all left

And obtained the following new goals

Rule argument

pos: left 3 terms: a, bag0 -- a0 abort: F discard: T computed: T

Additional information

Used terms: a, bag0 -- a0

Proof step 9 from proof difference (previous step) (back to tree)

count(a, (bag0 -- a0) \ bag) ≠ (count(a, bag ++ a0) < count(a, bag0) ⊃ count(a, bag0) - count(a, bag ++ a0);0), count(a, (bag0 -- a0) \ bag) ≠ (count(a, bag ++ a0) ≤ count(a, bag0) ⊃ count(a, bag0) - count(a, bag ++ a0);0), count(a, (bag0 -- a0) \ bag) = (count(a, bag) < count(a, bag0 -- a0) ⊃ count(a, bag0 -- a0) - count(a, bag);0) ∨ count(a, (bag0 -- a0) \ bag) = (count(a, bag) ≤ count(a, bag0 -- a0) ⊃ count(a, bag0 -- a0) - count(a, bag);0) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: count-del: ⊦ count(a, bag -- b) = count(a, bag) - (a = b ∧ count(a, bag) ≠ 0 ⊃ 1;0);

Proof step 10 from proof difference (previous step) (back to tree)

count(a, (bag0 -- a0) \ bag) ≠ (count(a, bag ++ a0) < count(a, bag0) ⊃ count(a, bag0) - count(a, bag ++ a0);0), count(a, (bag0 -- a0) \ bag) ≠ (count(a, bag ++ a0) ≤ count(a, bag0) ⊃ count(a, bag0) - count(a, bag ++ a0);0), count(a, (bag0 -- a0) \ bag) = (count(a, bag) < count(a, bag0) - (a = a0 ∧ count(a0, bag0) ≠ 0 ⊃ 1;0) ⊃ count(a, bag0) - (a = a0 ∧ count(a0, bag0) ≠ 0 ⊃ 1;0) - count(a, bag) ;0 ) ∨ count(a, (bag0 -- a0) \ bag) = (count(a, bag) ≤ count(a, bag0) - (a = a0 ∧ count(a0, bag0) ≠ 0 ⊃ 1;0) ⊃ count(a, bag0) - (a = a0 ∧ count(a0, bag0) ≠ 0 ⊃ 1;0) - count(a, bag);0) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: polybag-basic, name:count-other, seq: ⊦ a ≠ b → count(a, bag ++ b) = count(a, bag), subst:[b, bag, a] → [a0, bag, a], <all paths>

Additional information

Used simplifier rules: ⊦ m - 0 = m; (s) Used terms: a0, bag, a

Proof step 11 from proof difference (previous step) (back to tree)

⊦ a ≠ b → count(a, bag ++ b) = count(a, bag)

A spec-lemma

Proof step 12 from proof difference (previous step) (back to tree)

a = a0, count(a, (bag0 -- a0) \ bag) ≠ (count(a, bag ++ a0) < count(a, bag0) ⊃ count(a, bag0) - count(a, bag ++ a0);0), count(a, (bag0 -- a0) \ bag) ≠ (count(a, bag ++ a0) ≤ count(a, bag0) ⊃ count(a, bag0) - count(a, bag ++ a0);0), count(a, (bag0 -- a0) \ bag) = (count(a, bag) < count(a, bag0) - (a = a0 ∧ count(a0, bag0) ≠ 0 ⊃ 1;0) ⊃ count(a, bag0) - (a = a0 ∧ count(a0, bag0) ≠ 0 ⊃ 1;0) - count(a, bag) ;0 ) ∨ count(a, (bag0 -- a0) \ bag) = (count(a, bag) ≤ count(a, bag0) - (a = a0 ∧ count(a0, bag0) ≠ 0 ⊃ 1;0) ⊃ count(a, bag0) - (a = a0 ∧ count(a0, bag0) ≠ 0 ⊃ 1;0) - count(a, bag);0) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ count(a, bag ++ a) = count(a, bag) + 1; (s)

Proof step 13 from proof difference (previous step) (back to tree)

count(a0, (bag0 -- a0) \ bag) ≠ (count(a0, bag) + 1 < count(a0, bag0) ⊃ count(a0, bag0) - count(a0, bag) + 1;0), count(a0, (bag0 -- a0) \ bag) ≠ (count(a0, bag) + 1 ≤ count(a0, bag0) ⊃ count(a0, bag0) - count(a0, bag) + 1;0), count(a0, (bag0 -- a0) \ bag) = (count(a0, bag) < count(a0, bag0) - (count(a0, bag0) ≠ 0 ⊃ 1;0) ⊃ count(a0, bag0) - (count(a0, bag0) ≠ 0 ⊃ 1;0) - count(a0, bag);0) ∨ count(a0, (bag0 -- a0) \ bag) = (count(a0, bag) ≤ count(a0, bag0) - (count(a0, bag0) ≠ 0 ⊃ 1;0) ⊃ count(a0, bag0) - (count(a0, bag0) ≠ 0 ⊃ 1;0) - count(a0, bag);0) ⊦

Heuristic if-then-else split applied rule case distinction

And obtained the following new goals

Rule argument

pos: left 1

Additional information

Proof step 14 from proof difference (previous step) (back to tree)

count(a0, (bag0 -- a0) \ bag) ≠ count(a0, bag0) - count(a0, bag) + 1, count(a0, (bag0 -- a0) \ bag) ≠ (count(a0, bag) + 1 ≤ count(a0, bag0) ⊃ count(a0, bag0) - count(a0, bag) + 1;0), count(a0, bag) + 1 < count(a0, bag0), count(a0, (bag0 -- a0) \ bag) = (count(a0, bag) < count(a0, bag0) - (count(a0, bag0) ≠ 0 ⊃ 1;0) ⊃ count(a0, bag0) - (count(a0, bag0) ≠ 0 ⊃ 1;0) - count(a0, bag);0) ∨ count(a0, (bag0 -- a0) \ bag) = (count(a0, bag) ≤ count(a0, bag0) - (count(a0, bag0) ≠ 0 ⊃ 1;0) ⊃ count(a0, bag0) - (count(a0, bag0) ≠ 0 ⊃ 1;0) - count(a0, bag);0) ⊦

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 n0 ≤ n ⊦ m < n - n0 ↔ m + n0 < n; (s) ⊦ m < 1 ↔ m = 0; (s) ⊦ m ≤ n ↔ ¬ n < m; (ss)

Proof step 15 from proof difference (previous step) (back to tree)

count(a0, (bag0 -- a0) \ bag) ≠ (count(a0, bag) + 1 ≤ count(a0, bag0) ⊃ count(a0, bag0) - count(a0, bag) + 1;0), count(a0, (bag0 -- a0) \ bag) ≠ count(a0, bag0) - count(a0, bag) + 1, count(a0, bag) + 1 < count(a0, bag0), count(a0, (bag0 -- a0) \ bag) = count(a0, bag0) - 1 - count(a0, bag) ∨ count(a0, (bag0 -- a0) \ bag) = (count(a0, bag) ≤ count(a0, bag0) - 1 ⊃ count(a0, bag0) - 1 - count(a0, bag);0) ⊦

Heuristic elimination applied rule apply elim lemma

And obtained the following new goals

Rule argument

spec: nat, name:elim-pred-c, seq:n ≠ 0 ⊦ m = n - 1 ↔ n = m + 1, subst:[n, m] → [count(a0, bag0), n0]

Additional information

Used simplifier rules: ⊦ m < n → n ≠ 0; (s) n ≠ 0 ⊦ m = n - 1 ↔ n = m + 1; (elim) Used terms: count(a0, bag0), m

Proof step 16 from proof difference (previous step) (back to tree)

count(a0, bag0) = n0 + 1, count(a0, bag0) ≠ 0, count(a0, (bag0 -- a0) \ bag) ≠ (count(a0, bag) + 1 ≤ count(a0, bag0) ⊃ count(a0, bag0) - count(a0, bag) + 1;0), count(a0, (bag0 -- a0) \ bag) ≠ count(a0, bag0) - count(a0, bag) + 1, count(a0, bag) + 1 < count(a0, bag0), count(a0, (bag0 -- a0) \ bag) = n0 - count(a0, bag) ∨ count(a0, (bag0 -- a0) \ bag) = (count(a0, bag) ≤ n0 ⊃ n0 - count(a0, bag);0) ⊦

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 + n - n + n1 = m - n1; (s) ⊦ m + 1 ≠ 0; (s) f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic ⊦ m < n → n ≠ 0; (s)

Proof step 17 from proof difference (previous step) (back to tree)

count(a0, bag0) = n0 + 1, count(a0, (bag0 -- a0) \ bag) = 0, (count(a0, bag) ≤ n0 ⊃ n0 - count(a0, bag);0) ≠ n0 - count(a0, bag), 0 ≠ n0 - count(a0, bag), count(a0, bag) + 1 < n0 + 1, count(a0, bag) + 1 ≤ n0 + 1 ⊦

User applied rule case distinction

And closed the goal!

Rule argument

pos: left 3

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

Proof step 18 from proof difference (previous step) (back to tree)

count(a0, (bag0 -- a0) \ bag) ≠ 0, count(a0, (bag0 -- a0) \ bag) ≠ (count(a0, bag) + 1 ≤ count(a0, bag0) ⊃ count(a0, bag0) - count(a0, bag) + 1;0), ¬ count(a0, bag) + 1 < count(a0, bag0), count(a0, (bag0 -- a0) \ bag) = (count(a0, bag) < count(a0, bag0) - (count(a0, bag0) ≠ 0 ⊃ 1;0) ⊃ count(a0, bag0) - (count(a0, bag0) ≠ 0 ⊃ 1;0) - count(a0, bag);0) ∨ count(a0, (bag0 -- a0) \ bag) = (count(a0, bag) ≤ count(a0, bag0) - (count(a0, bag0) ≠ 0 ⊃ 1;0) ⊃ count(a0, bag0) - (count(a0, bag0) ≠ 0 ⊃ 1;0) - count(a0, bag);0) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ m < n ↔ ¬ n ≤ m; (ss)

Proof step 19 from proof difference (previous step) (back to tree)

count(a0, (bag0 -- a0) \ bag) ≠ 0, count(a0, (bag0 -- a0) \ bag) ≠ (count(a0, bag) + 1 ≤ count(a0, bag0) ⊃ count(a0, bag0) - count(a0, bag) + 1;0), count(a0, bag0) ≤ count(a0, bag) + 1, count(a0, (bag0 -- a0) \ bag) = (count(a0, bag) < count(a0, bag0) - (count(a0, bag0) ≠ 0 ⊃ 1;0) ⊃ count(a0, bag0) - (count(a0, bag0) ≠ 0 ⊃ 1;0) - count(a0, bag);0) ∨ count(a0, (bag0 -- a0) \ bag) = (count(a0, bag) ≤ count(a0, bag0) - (count(a0, bag0) ≠ 0 ⊃ 1;0) ⊃ count(a0, bag0) - (count(a0, bag0) ≠ 0 ⊃ 1;0) - count(a0, bag);0) ⊦

User applied rule case distinction

And obtained the following new goals

Rule argument

pos: left 2

Additional information

Proof step 20 from proof difference (previous step) (back to tree)

count(a0, (bag0 -- a0) \ bag) ≠ count(a0, bag0) - count(a0, bag) + 1, count(a0, (bag0 -- a0) \ bag) ≠ 0, count(a0, bag0) ≤ count(a0, bag) + 1, count(a0, bag) + 1 ≤ count(a0, bag0), count(a0, (bag0 -- a0) \ bag) = (count(a0, bag) < count(a0, bag0) - (count(a0, bag0) ≠ 0 ⊃ 1;0) ⊃ count(a0, bag0) - (count(a0, bag0) ≠ 0 ⊃ 1;0) - count(a0, bag);0) ∨ count(a0, (bag0 -- a0) \ bag) = (count(a0, bag) ≤ count(a0, bag0) - (count(a0, bag0) ≠ 0 ⊃ 1;0) ⊃ count(a0, bag0) - (count(a0, bag0) ≠ 0 ⊃ 1;0) - count(a0, bag);0) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ ¬ n < n; (s) c: ⊦ m + n = n + m; from specification nat-basic a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic ⊦ m < n + 1 ↔ ¬ n < m; (s) ⊦ m ≤ m; (s) ⊦ m - m = 0; (s) ⊦ m < n → n ≠ 0; (s) lf-01: ⊦ m < n ∧ n = n0 → m < n0; (forward) from specification nat-basic f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic eqle-one: ⊦ m = n + 1 ∧ n < n0 → m ≤ n0; (forward) from specification nat ⊦ m + 1 ≤ n ↔ m < n; (s) n0 ≤ n ⊦ m ≤ n - n0 ↔ m + n0 ≤ n; (s) ⊦ m < 1 ↔ m = 0; (s) ⊦ m ≤ n ↔ ¬ n < m; (ss) n0 ≤ n ⊦ m < n - n0 ↔ m + n0 < n; (s) ⊦ m < n → (n ≤ m + 1 ↔ n = m + 1); (s)

Proof step 21 from proof difference (previous step) (back to tree)

count(a0, bag0) = count(a0, bag) + 1, count(a0, (bag0 -- a0) \ bag) = count(a0, bag0) - 1 - count(a0, bag), count(a0, bag0) - 1 - count(a0, bag) ≠ 0, count(a0, bag) < count(a0, bag0) ⊦

Heuristic elimination applied rule apply elim lemma

And closed the goal!

Rule argument

spec: nat, name:elim-pred-c, seq:n ≠ 0 ⊦ m = n - 1 ↔ n = m + 1, subst:[n, m] → [count(a0, bag0), n0]

Additional information

Used simplifier rules: del-notin: ⊦ count(a, bag) = 0 → bag -- a = bag; ⊦ m < n → n ≠ 0; (s) eqle-one: ⊦ m = n + 1 ∧ n < n0 → m ≤ n0; (forward) from specification nat f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic lf-01: ⊦ m < n ∧ n = n0 → m < n0; (forward) from specification nat-basic ⊦ m + n = m + n0 ↔ n = n0; (s) ⊦ m + 1 ≠ 0; (s) ⊦ m + n ≤ m + n0 ↔ n ≤ n0; (s) ⊦ m < n + 1 ↔ ¬ n < m; (s) 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 = 0 ↔ n = m); (s) n ≠ 0 ⊦ m = n - 1 ↔ n = m + 1; (elim) Used terms: count(a0, bag0), m

Proof step 22 from proof difference (previous step) (back to tree)

count(a0, (bag0 -- a0) \ bag) ≠ 0, count(a0, bag0) ≤ count(a0, bag) + 1, ¬ count(a0, bag) + 1 ≤ count(a0, bag0), count(a0, (bag0 -- a0) \ bag) = (count(a0, bag) < count(a0, bag0) - (count(a0, bag0) ≠ 0 ⊃ 1;0) ⊃ count(a0, bag0) - (count(a0, bag0) ≠ 0 ⊃ 1;0) - count(a0, bag);0) ∨ count(a0, (bag0 -- a0) \ bag) = (count(a0, bag) ≤ count(a0, bag0) - (count(a0, bag0) ≠ 0 ⊃ 1;0) ⊃ count(a0, bag0) - (count(a0, bag0) ≠ 0 ⊃ 1;0) - count(a0, bag);0) ⊦

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 < n ↔ ¬ n ≤ m; (ss) ⊦ m + 1 ≤ n ↔ m < n; (s)

Proof step 23 from proof difference (previous step) (back to tree)

count(a0, (bag0 -- a0) \ bag) ≠ 0, count(a0, bag0) ≤ count(a0, bag) + 1, count(a0, bag0) ≤ count(a0, bag), count(a0, (bag0 -- a0) \ bag) = (count(a0, bag) < count(a0, bag0) - (count(a0, bag0) ≠ 0 ⊃ 1;0) ⊃ count(a0, bag0) - (count(a0, bag0) ≠ 0 ⊃ 1;0) - count(a0, bag);0) ∨ count(a0, (bag0 -- a0) \ bag) = (count(a0, bag) ≤ count(a0, bag0) - (count(a0, bag0) ≠ 0 ⊃ 1;0) ⊃ count(a0, bag0) - (count(a0, bag0) ≠ 0 ⊃ 1;0) - count(a0, bag);0) ⊦

User applied rule case distinction

And obtained the following new goals

Rule argument

pos: left 4

Additional information

Proof step 24 from proof difference (previous step) (back to tree)

count(a0, (bag0 -- a0) \ bag) = (count(a0, bag) < count(a0, bag0) - (count(a0, bag0) ≠ 0 ⊃ 1;0) ⊃ count(a0, bag0) - (count(a0, bag0) ≠ 0 ⊃ 1;0) - count(a0, bag);0), count(a0, (bag0 -- a0) \ bag) ≠ 0, count(a0, bag0) ≤ count(a0, bag), count(a0, bag0) ≤ count(a0, bag) + 1 ⊦

User applied rule case distinction

And obtained the following new goals

Rule argument

pos: left 1

Additional information

Proof step 25 from proof difference (previous step) (back to tree)

count(a0, (bag0 -- a0) \ bag) = count(a0, bag0) - (count(a0, bag0) ≠ 0 ⊃ 1;0) - count(a0, bag), count(a0, (bag0 -- a0) \ bag) ≠ 0, count(a0, bag) < count(a0, bag0) - (count(a0, bag0) ≠ 0 ⊃ 1;0), count(a0, bag0) ≤ count(a0, bag) + 1, count(a0, bag0) ≤ count(a0, bag) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ m < n → m ≤ n; (s) ⊦ m < n → n ≠ 0; (s) fle-01: ⊦ m ≤ n ∧ n < n0 → m < n0; (forward) from specification nat c: ⊦ m + n = n + m; from specification nat-basic a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic le-one: ⊦ m ≤ n + 1 ∧ n < n0 → m ≤ n0; (forward) from specification nat f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic

Proof step 26 from proof difference (previous step) (back to tree)

count(a0, (bag0 -- a0) \ bag) = count(a0, bag0) - (count(a0, bag0) ≠ 0 ⊃ 1;0) - count(a0, bag), count(a0, (bag0 -- a0) \ bag) ≠ 0, count(a0, bag0) < count(a0, bag0) - (count(a0, bag0) ≠ 0 ⊃ 1;0), count(a0, bag) < count(a0, bag0) - (count(a0, bag0) ≠ 0 ⊃ 1;0), count(a0, bag0) ≤ count(a0, bag) + 1, count(a0, bag0) ≤ count(a0, bag) ⊦

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] → [count(a0, bag0) - (count(a0, bag0) ≠ 0 ⊃ 1;0), count(a0, bag), n0]

Additional information

Used simplifier rules: ⊦ m < n → m ≤ n; (s) n ≤ m ⊦ n0 = m - n ↔ m = n0 + n; (elim) Used terms: count(a0, bag0) - (count(a0, bag0) ≠ 0 ⊃ 1;0), count(a0, bag), n0

Proof step 27 from proof difference (previous step) (back to tree)

count(a0, bag0) - (count(a0, bag0) ≠ 0 ⊃ 1;0) = n0 + count(a0, bag), count(a0, (bag0 -- a0) \ bag) = n0, count(a0, (bag0 -- a0) \ bag) ≠ 0, count(a0, bag) < count(a0, bag0) - (count(a0, bag0) ≠ 0 ⊃ 1;0), count(a0, bag0) < count(a0, bag0) - (count(a0, bag0) ≠ 0 ⊃ 1;0), count(a0, bag0) ≤ count(a0, bag), count(a0, bag0) ≤ count(a0, bag) + 1, count(a0, bag) ≤ count(a0, bag0) - (count(a0, bag0) ≠ 0 ⊃ 1;0) ⊦

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 → n ≠ 0; (s) le-one: ⊦ m ≤ n + 1 ∧ n < n0 → m ≤ n0; (forward) from specification nat fle-01: ⊦ m ≤ n ∧ n < n0 → m < n0; (forward) from specification nat lf-01: ⊦ m < n ∧ n = n0 → m < n0; (forward) from specification nat-basic f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic

Proof step 28 from proof difference (previous step) (back to tree)

count(a0, bag0) - (count(a0, bag0) ≠ 0 ⊃ 1;0) = count(a0, (bag0 -- a0) \ bag) + count(a0, bag), count(a0, (bag0 -- a0) \ bag) ≠ 0, count(a0, bag0) < count(a0, (bag0 -- a0) \ bag) + count(a0, bag), count(a0, bag0) ≤ count(a0, bag) + 1, count(a0, bag0) ≤ count(a0, bag) ⊦

User applied rule case distinction

And closed the goal!

Rule argument

pos: left 1

Additional information

Used simplifier rules: del-notin: ⊦ count(a, bag) = 0 → bag -- a = bag; ⊦ m - 0 = m; (s) f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic lf-02: ⊦ m < n ∧ m = n0 → n0 < n; (forward) from specification nat-basic lf-01: ⊦ m < n ∧ n = n0 → m < n0; (forward) from specification nat-basic fle: ⊦ m < n ∧ n ≤ n0 → m < n0; (forward) from specification nat ⊦ m < n → n ≠ 0; (s) ⊦ m ≤ n ↔ ¬ n < m; (ss) ⊦ m < 1 ↔ m = 0; (s) n0 ≤ n ⊦ m < n - n0 ↔ m + n0 < n; (s) ⊦ ¬ 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 29 from proof difference (previous step) (back to tree)

count(a0, (bag0 -- a0) \ bag) = (count(a0, bag) ≤ count(a0, bag0) - (count(a0, bag0) ≠ 0 ⊃ 1;0) ⊃ count(a0, bag0) - (count(a0, bag0) ≠ 0 ⊃ 1;0) - count(a0, bag);0), count(a0, (bag0 -- a0) \ bag) ≠ 0, count(a0, bag0) ≤ count(a0, bag), count(a0, bag0) ≤ count(a0, bag) + 1 ⊦

User applied rule case distinction

And obtained the following new goals

Rule argument

pos: left 1

Additional information

Proof step 30 from proof difference (previous step) (back to tree)

count(a0, (bag0 -- a0) \ bag) = count(a0, bag0) - (count(a0, bag0) ≠ 0 ⊃ 1;0) - count(a0, bag), count(a0, (bag0 -- a0) \ bag) ≠ 0, count(a0, bag0) ≤ count(a0, bag) + 1, count(a0, bag0) ≤ count(a0, bag), count(a0, bag) ≤ count(a0, bag0) - (count(a0, bag0) ≠ 0 ⊃ 1;0) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: let: ⊦ n ≤ n0 ∧ n0 ≤ n1 → n ≤ n1; (forward) from specification nat

Proof step 31 from proof difference (previous step) (back to tree)

count(a0, (bag0 -- a0) \ bag) = count(a0, bag0) - (count(a0, bag0) ≠ 0 ⊃ 1;0) - count(a0, bag), count(a0, (bag0 -- a0) \ bag) ≠ 0, count(a0, bag) ≤ count(a0, bag0) - (count(a0, bag0) ≠ 0 ⊃ 1;0), count(a0, bag0) ≤ count(a0, bag), count(a0, bag0) ≤ count(a0, bag) + 1, count(a0, bag0) ≤ count(a0, bag0) - (count(a0, bag0) ≠ 0 ⊃ 1;0) ⊦

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] → [count(a0, bag0) - (count(a0, bag0) ≠ 0 ⊃ 1;0), count(a0, bag), n0]

Additional information

Used simplifier rules: n ≤ m ⊦ n0 = m - n ↔ m = n0 + n; (elim) Used terms: count(a0, bag0) - (count(a0, bag0) ≠ 0 ⊃ 1;0), count(a0, bag), n0

Proof step 32 from proof difference (previous step) (back to tree)

count(a0, bag0) - (count(a0, bag0) ≠ 0 ⊃ 1;0) = n0 + count(a0, bag), count(a0, (bag0 -- a0) \ bag) = n0, count(a0, (bag0 -- a0) \ bag) ≠ 0, count(a0, bag0) ≤ count(a0, bag0) - (count(a0, bag0) ≠ 0 ⊃ 1;0), count(a0, bag0) ≤ count(a0, bag) + 1, count(a0, bag0) ≤ count(a0, bag), count(a0, bag) ≤ count(a0, bag0) - (count(a0, bag0) ≠ 0 ⊃ 1;0) ⊦

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) let: ⊦ n ≤ n0 ∧ n0 ≤ n1 → n ≤ n1; (forward) from specification nat

Proof step 33 from proof difference (previous step) (back to tree)

count(a0, bag0) - (count(a0, bag0) ≠ 0 ⊃ 1;0) = count(a0, (bag0 -- a0) \ bag) + count(a0, bag), count(a0, (bag0 -- a0) \ bag) ≠ 0, count(a0, bag0) ≤ count(a0, (bag0 -- a0) \ bag) + count(a0, bag), count(a0, bag0) ≤ count(a0, bag) + 1, count(a0, bag0) ≤ count(a0, bag) ⊦

User applied rule case distinction

And closed the goal!

Rule argument

pos: left 1

Additional information

Used simplifier rules: del-notin: ⊦ count(a, bag) = 0 → bag -- a = bag; ⊦ m - 0 = m; (s) let: ⊦ n ≤ n0 ∧ n0 ≤ n1 → n ≤ n1; (forward) from specification nat ⊦ m + n = 0 ↔ m = 0 ∧ n = 0; (ws) a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic leprf: ⊦ m ≤ m - 1 → m = 0; (forward) from specification nat

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