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

⊦ Σ(ns1 ∪ ns2, f) = Σ(ns1, f) + Σ(ns2 \ ns1, f)

System applied rule normalize

And obtained the following new goals

Rule argument

Additional information

Proof step 2 from proof sum-union (previous step) (back to tree)

Σ(ns1 ∪ ns2, f) ≠ Σ(ns1, f) + Σ(ns2 \ ns1, f) ⊦

User applied rule structural induction

And obtained the following new goals

Rule argument

term: ns2

Additional information

Used simplifier rules: sum-base: ⊦ Σ(∅, f) = O; set('a) generated by ∅, ++;; ⊦ s ∪ ∅ = s; (s) una: ⊦ (s ∪ s0) ∪ s1 = s ∪ s0 ∪ s1; from specification set-union unc: ⊦ s ∪ s0 = s0 ∪ s; from specification set-union ⊦ ∅ \ s = ∅; (s) ⊦ a + O = a; (s) addassoc: ⊦ (a + b) + c = a + b + c; from specification ring addcom: ⊦ a + b = b + a; from specification ring

Proof step 3 from proof sum-union (previous step) (back to tree)

Σ(ns1 ∪ (ns ++ r), f) ≠ Σ(ns1, f) + Σ((ns ++ r) \ ns1, f), ∀ ns1, f. Σ(ns1 ∪ ns, f) = Σ(ns1, f) + Σ(ns \ ns1, f) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: unc: ⊦ s ∪ s0 = s0 ∪ s; from specification set-union una: ⊦ (s ∪ s0) ∪ s1 = s ∪ s0 ∪ s1; from specification set-union ⊦ (s ++ a) ∪ s0 = (s ∪ s0) ++ a; (s)

Proof step 4 from proof sum-union (previous step) (back to tree)

Σ((ns ∪ ns1) ++ r, f) ≠ Σ(ns1, f) + Σ((ns ++ r) \ ns1, f), ∀ ns1, f. Σ(ns1 ∪ ns, f) = Σ(ns1, f) + Σ(ns \ ns1, f) ⊦

User applied rule all left

And obtained the following new goals

Rule argument

pos: left 2 terms: ns1, f abort: F discard: T computed: F

Additional information

Used terms: ns1, f

Proof step 5 from proof sum-union (previous step) (back to tree)

Σ(ns1 ∪ ns, f) = Σ(ns1, f) + Σ(ns \ ns1, f), Σ((ns ∪ ns1) ++ r, f) ≠ Σ(ns1, f) + Σ((ns ++ r) \ ns1, f) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: set-basic, name:eq, seq: ⊦ a ∈ s → s ++ a = s, subst:[a, s] → [r, ns ∪ ns1]; ['a] → [nat], <all paths>

Additional information

Used terms: r, ns ∪ ns1

Proof step 6 from proof sum-union (previous step) (back to tree)

⊦ a ∈ s → s ++ a = s

A spec-lemma

Proof step 7 from proof sum-union (previous step) (back to tree)

Σ(ns1 ∪ ns, f) = Σ(ns1, f) + Σ(ns \ ns1, f), Σ((ns ∪ ns1) ++ r, f) ≠ Σ(ns1, f) + Σ((ns ++ r) \ ns1, f), ¬ r ∈ ns ∪ ns1 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: sum-rec: ⊦ ¬ n ∈ ns → Σ(ns ++ n, f) = f(n) + Σ(ns, f); ⊦ ¬ a ∈ s1 → (s ++ a) \ s1 = (s \ s1) ++ a; (s) unc: ⊦ s ∪ s0 = s0 ∪ s; from specification set-union una: ⊦ (s ∪ s0) ∪ s1 = s ∪ s0 ∪ s1; from specification set-union ⊦ a ∈ s ∪ s0 ↔ ¬(¬ a ∈ s ∧ ¬ a ∈ s0); (ss)

Proof step 8 from proof sum-union (previous step) (back to tree)

Σ(ns1 ∪ ns, f) = Σ(ns1, f) + Σ(ns \ ns1, f), f(r) + Σ(ns ∪ ns1, f) ≠ Σ(ns1, f) + Σ((ns \ ns1) ++ r, f), ¬ r ∈ ns, ¬ r ∈ ns1 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: set-basic, name:eq, seq: ⊦ a ∈ s → s ++ a = s, subst:[a, s] → [r, ns \ ns1]; ['a] → [nat], <all paths>

Additional information

Used simplifier rules: ⊦ a ∈ s1 \ s2 ↔ a ∈ s1 ∧ ¬ a ∈ s2; (ws) Used terms: r, ns \ ns1

Proof step 9 from proof sum-union (previous step) (back to tree)

⊦ a ∈ s → s ++ a = s

A spec-lemma

Proof step 10 from proof sum-union (previous step) (back to tree)

Σ(ns1 ∪ ns, f) = Σ(ns1, f) + Σ(ns \ ns1, f), f(r) + Σ(ns ∪ ns1, f) ≠ Σ(ns1, f) + Σ((ns \ ns1) ++ r, f), ¬ r ∈ ns \ ns1, ¬ r ∈ ns, ¬ r ∈ ns1 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: sum-rec: ⊦ ¬ n ∈ ns → Σ(ns ++ n, f) = f(n) + Σ(ns, f); ⊦ a ∈ s1 \ s2 ↔ a ∈ s1 ∧ ¬ a ∈ s2; (ws) addassoc: ⊦ (a + b) + c = a + b + c; from specification ring

Proof step 11 from proof sum-union (previous step) (back to tree)

Σ(ns1 ∪ ns, f) = Σ(ns1, f) + Σ(ns \ ns1, f), f(r) + Σ(ns ∪ ns1, f) ≠ Σ(ns1, f) + f(r) + Σ(ns \ ns1, f), ¬ r ∈ ns1, ¬ r ∈ ns ⊦

User applied rule subst equation

And closed the goal!

Rule argument

pos: left 1, flags: discard

Additional information

Used simplifier rules: unc: ⊦ s ∪ s0 = s0 ∪ s; from specification set-union addassoc: ⊦ (a + b) + c = a + b + c; from specification ring addcom: ⊦ a + b = b + a; from specification ring

Proof step 12 from proof sum-union (previous step) (back to tree)

Σ(ns1 ∪ ns, f) = Σ(ns1, f) + Σ(ns \ ns1, f), Σ(ns ∪ ns1, f) ≠ Σ(ns1, f) + Σ((ns ++ r) \ ns1, f), r ∈ ns ∪ ns1 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: size-zero-01: ⊦ s ≠ ∅ → # s ≠ 0; (forward) from specification set-basic ne-01: ⊦ a ∈ s → s ≠ ∅; (forward) from specification set-basic

Proof step 13 from proof sum-union (previous step) (back to tree)

Σ(ns1 ∪ ns, f) = Σ(ns1, f) + Σ(ns \ ns1, f), #(ns ∪ ns1) ≠ 0, Σ(ns ∪ ns1, f) ≠ Σ(ns1, f) + Σ((ns ++ r) \ ns1, f), ns ∪ ns1 ≠ ∅, r ∈ ns ∪ ns1 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: set-basic, name:eq, seq: ⊦ a ∈ s → s ++ a = s, subst:[a, s] → [r, ns]; ['a] → [nat], <all paths>

Additional information

Used simplifier rules: unc: ⊦ s ∪ s0 = s0 ∪ s; from specification set-union ⊦ ¬ a ∈ s → (a ∈ s ∪ s0 ↔ a ∈ s0); (s) una: ⊦ (s ∪ s0) ∪ s1 = s ∪ s0 ∪ s1; from specification set-union ⊦ a ∈ s1 → (s ++ a) \ s1 = s \ s1; (s) Used terms: r, ns

Proof step 14 from proof sum-union (previous step) (back to tree)

⊦ a ∈ s → s ++ a = s

A spec-lemma

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