[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 size-rmdup-del (conclusion) (back to tree)

⊦ a ∈ x → # rmdup(x -l a) = # rmdup(x) - 1

System applied rule normalize

And obtained the following new goals

Rule argument

Additional information

Proof step 2 from proof size-rmdup-del (previous step) (back to tree)

# rmdup(x -l a) ≠ # rmdup(x) - 1, a ∈ x ⊦

User applied rule structural induction

And obtained the following new goals

Rule argument

indvar: x

Additional information

Used simplifier rules: list('a) freely generated by [], +;;

Proof step 3 from proof size-rmdup-del (previous step) (back to tree)

# rmdup([] -l a) ≠ # rmdup([]) - 1, a ∈ [] ⊦

Heuristic simplifier applied rule simplifier

And closed the goal!

Rule argument

Additional information

Used simplifier rules: del-e: ⊦ [] -l a = []; ⊦ ¬ a ∈ []; (s) ⊦ # [] = 0; (s) ⊦ rmdup([]) = []; (s)

Proof step 4 from proof size-rmdup-del (previous step) (back to tree)

# rmdup((a0 + x0) -l a) ≠ # rmdup(a0 + x0) - 1, a ∈ a0 + x0, ∀ a. ¬(# rmdup(x0 -l a) ≠ # rmdup(x0) - 1 ∧ a ∈ x0) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list ⊦ a ∈ a0 ' ↔ a = a0; (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ a + x = a ' + x; (s)

Proof step 5 from proof size-rmdup-del (previous step) (back to tree)

# rmdup((a0 ' + x0) -l a) ≠ # rmdup(a0 ' + x0) - 1, ∀ a1. # rmdup(x0 -l a1) = # rmdup(x0) - 1 ∨ ¬ a1 ∈ x0, a = a0 ∨ a ∈ x0 ⊦

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] → [# rmdup(a0 ' + x0), m]

Additional information

Used simplifier rules: ⊦ # x = 0 ↔ x = []; (s) ⊦ rmdup(x) = [] ↔ x = []; (s) ⊦ x + y = [] ↔ x = [] ∧ y = []; (as) ⊦ a ' ≠ []; (s) a: ⊦ (x + y) + z = x + y + z; from specification list n ≠ 0 ⊦ m = n - 1 ↔ n = m + 1; (elim) Used terms: # rmdup(a0 ' + x0), m

Proof step 6 from proof size-rmdup-del (previous step) (back to tree)

# rmdup(a0 ' + x0) = m + 1, # rmdup(a0 ' + x0) ≠ 0, # rmdup((a0 ' + x0) -l a) ≠ m, ∀ a1. # rmdup(x0 -l a1) = # rmdup(x0) - 1 ∨ ¬ a1 ∈ x0, a = a0 ∨ a ∈ x0 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list ⊦ a ' + x ≠ []; (s) ⊦ rmdup(x) = [] ↔ x = []; (s) ⊦ # x = 0 ↔ x = []; (s)

Proof step 7 from proof size-rmdup-del (previous step) (back to tree)

# rmdup(a0 ' + x0) = m + 1, # rmdup((a0 ' + x0) -l a) ≠ m, ∀ a1. # rmdup(x0 -l a1) = # rmdup(x0) - 1 ∨ ¬ a1 ∈ x0, a = a0 ∨ a ∈ x0 ⊦

Heuristic weak cut applied rule cut formula

And obtained the following new goals

Rule argument

fma: a = a0

Additional information

Used formulas: a = a0

Proof step 8 from proof size-rmdup-del (previous step) (back to tree)

# rmdup(a0 ' + x0) = m + 1, a = a0, # rmdup((a0 ' + x0) -l a) ≠ m, ∀ a1. # rmdup(x0 -l a1) = # rmdup(x0) - 1 ∨ ¬ a1 ∈ x0, a = a0 ∨ a ∈ x0 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: del-y: ⊦ (a ' + x) -l a = x -l a; a: ⊦ (x + y) + z = x + y + z; from specification list

Proof step 9 from proof size-rmdup-del (previous step) (back to tree)

# rmdup(a0 ' + x0) = m + 1, # rmdup(x0 -l a0) ≠ m, ∀ a1. # rmdup(x0 -l a1) = # rmdup(x0) - 1 ∨ ¬ a1 ∈ x0 ⊦

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] → [# rmdup(x0), m0]

Additional information

Used simplifier rules: del-e: ⊦ [] -l a = []; ⊦ # x = 0 ↔ x = []; (s) ⊦ rmdup(x) = [] ↔ x = []; (s) ⊦ x + [] = x; (s) a: ⊦ (x + y) + z = x + y + z; from specification list ⊦ rmdup(a ') = a '; (s) ⊦ # a ' = 0 +1; (s) ⊦ 1 = m + 1 ↔ m = 0; (s) a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic ⊦ rmdup([]) = []; (s) ⊦ # [] = 0; (s) n ≠ 0 ⊦ m = n - 1 ↔ n = m + 1; (elim) Used terms: # rmdup(x0), m0

Proof step 10 from proof size-rmdup-del (previous step) (back to tree)

# rmdup(a0 ' + x0) = m + 1, # rmdup(x0) = m0 + 1, # rmdup(x0) ≠ 0, # rmdup(x0 -l a0) ≠ m, ∀ a1. # rmdup(x0 -l a1) = m0 ∨ ¬ a1 ∈ x0 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ rmdup(x) = [] ↔ x = []; (s) ⊦ # x = 0 ↔ x = []; (s)

Proof step 11 from proof size-rmdup-del (previous step) (back to tree)

# rmdup(x0) = m0 + 1, # rmdup(a0 ' + x0) = m + 1, # rmdup(x0 -l a0) ≠ m, x0 ≠ [], ∀ a1. # rmdup(x0 -l a1) = m0 ∨ ¬ a1 ∈ x0 ⊦

User applied rule all left

And closed the goal!

Rule argument

pos: left 5 terms: a0 abort: F discard: F computed: T

Additional information

Used simplifier rules: in-03: ⊦ ¬ a ∈ x → x -l a = x; ⊦ ¬ a ∈ x → rmdup(a ' + x) = a + rmdup(x); (s) ⊦ a + x = a ' + x; (s) ⊦ #(x + y) = # x + # y; (s) ⊦ # a ' = 0 +1; (s) ⊦ a ∈ x → rmdup(a ' + x) = rmdup(x); (s) a: ⊦ (x + y) + z = x + y + z; from specification list ⊦ 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: a0

Proof step 12 from proof size-rmdup-del (previous step) (back to tree)

# rmdup(a0 ' + x0) = m + 1, # rmdup((a0 ' + x0) -l a) ≠ m, a ≠ a0, ∀ a1. # rmdup(x0 -l a1) = # rmdup(x0) - 1 ∨ ¬ a1 ∈ x0, a = a0 ∨ a ∈ x0 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: del-n: ⊦ a ≠ b → (b ' + x) -l a = b ' + (x -l a); a: ⊦ (x + y) + z = x + y + z; from specification list

Proof step 13 from proof size-rmdup-del (previous step) (back to tree)

# rmdup(a0 ' + x0) = m + 1, # rmdup(a0 ' + (x0 -l a)) ≠ m, a ≠ a0, a ∈ x0, ∀ a1. # rmdup(x0 -l a1) = # rmdup(x0) - 1 ∨ ¬ a1 ∈ x0 ⊦

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] → [# rmdup(x0), m0]

Additional information

Used simplifier rules: del-e: ⊦ [] -l a = []; ⊦ # x = 0 ↔ x = []; (s) ⊦ rmdup(x) = [] ↔ x = []; (s) ⊦ 1 = m + 1 ↔ m = 0; (s) a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic ⊦ x + [] = x; (s) a: ⊦ (x + y) + z = x + y + z; from specification list ⊦ rmdup(a ') = a '; (s) ⊦ # a ' = 0 +1; (s) ⊦ ¬ a ∈ []; (s) n ≠ 0 ⊦ m = n - 1 ↔ n = m + 1; (elim) Used terms: # rmdup(x0), m0

Proof step 14 from proof size-rmdup-del (previous step) (back to tree)

# rmdup(a0 ' + x0) = m + 1, # rmdup(x0) = m0 + 1, # rmdup(x0) ≠ 0, # rmdup(a0 ' + (x0 -l a)) ≠ m, a ≠ a0, a ∈ x0, ∀ a1. # rmdup(x0 -l a1) = m0 ∨ ¬ a1 ∈ x0 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ rmdup(x) = [] ↔ x = []; (s) ⊦ # x = 0 ↔ x = []; (s)

Proof step 15 from proof size-rmdup-del (previous step) (back to tree)

# rmdup(x0) = m0 + 1, # rmdup(a0 ' + x0) = m + 1, # rmdup(a0 ' + (x0 -l a)) ≠ m, a ≠ a0, x0 ≠ [], a ∈ x0, ∀ a1. # rmdup(x0 -l a1) = m0 ∨ ¬ a1 ∈ x0 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: list-dup, name:rmdup-y, seq: ⊦ a ∈ x → rmdup(a ' + x) = rmdup(x), subst:[x, a] → [x0 -l a, a0], <all paths>

Additional information

Used terms: x0 -l a, a0

Proof step 16 from proof size-rmdup-del (previous step) (back to tree)

⊦ a ∈ x → rmdup(a ' + x) = rmdup(x)

A spec-lemma

Proof step 17 from proof size-rmdup-del (previous step) (back to tree)

# rmdup(a0 ' + x0) = m + 1, # rmdup(x0) = m0 + 1, # rmdup(a0 ' + (x0 -l a)) ≠ m, a ≠ a0, x0 ≠ [], a ∈ x0, ¬ a0 ∈ x0 -l a, ∀ a1. # rmdup(x0 -l a1) = m0 ∨ ¬ a1 ∈ x0 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list ⊦ # a ' = 0 +1; (s) ⊦ #(x + y) = # x + # y; (s) ⊦ a + x = a ' + x; (s) ⊦ ¬ a ∈ x → rmdup(a ' + x) = a + rmdup(x); (s)

Proof step 18 from proof size-rmdup-del (previous step) (back to tree)

# rmdup(x0) = m0 + 1, # rmdup(a0 ' + x0) = m + 1, 1 + # rmdup(x0 -l a) ≠ m, a ≠ a0, x0 ≠ [], a ∈ x0, ¬ a0 ∈ x0 -l a, ∀ a1. # rmdup(x0 -l a1) = m0 ∨ ¬ a1 ∈ x0 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: list-dup, name:rmdup-y, seq: ⊦ a ∈ x → rmdup(a ' + x) = rmdup(x), subst:[x, a] → [x0, a0], <all paths>

Additional information

Used simplifier rules: in: ⊦ a ∈ x ∧ a ≠ b → a ∈ x -l b; Used terms: x0, a0

Proof step 19 from proof size-rmdup-del (previous step) (back to tree)

⊦ a ∈ x → rmdup(a ' + x) = rmdup(x)

A spec-lemma

Proof step 20 from proof size-rmdup-del (previous step) (back to tree)

# rmdup(a0 ' + x0) = m + 1, # rmdup(x0) = m0 + 1, 1 + # rmdup(x0 -l a) ≠ m, a ≠ a0, x0 ≠ [], a ∈ x0, ¬ a0 ∈ x0, ¬ a0 ∈ x0 -l a, ∀ a1. # rmdup(x0 -l a1) = m0 ∨ ¬ a1 ∈ x0 ⊦

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 = m + n0 ↔ n = n0; (s) a: ⊦ (x + y) + z = x + y + z; from specification list ⊦ # a ' = 0 +1; (s) ⊦ #(x + y) = # x + # y; (s) ⊦ a + x = a ' + x; (s) ⊦ ¬ a ∈ x → rmdup(a ' + x) = a + rmdup(x); (s)

Proof step 21 from proof size-rmdup-del (previous step) (back to tree)

# rmdup(x0) = m0 + 1, # rmdup(x0 -l a) ≠ m0, a ≠ a0, x0 ≠ [], a ∈ x0, ¬ a0 ∈ x0 -l a, ¬ a0 ∈ x0, ∀ a1. # rmdup(x0 -l a1) = m0 ∨ ¬ a1 ∈ x0 ⊦

Heuristic quantifier closing applied rule all left

And closed the goal!

Rule argument

pos: left 8 terms: a

Additional information

Used terms: a

Proof step 22 from proof size-rmdup-del (previous step) (back to tree)

# rmdup(a0 ' + x0) = m + 1, # rmdup(x0) = m0 + 1, # rmdup(x0 -l a) ≠ m, a ≠ a0, x0 ≠ [], a ∈ x0, a0 ∈ x0 -l a, ∀ a1. # rmdup(x0 -l a1) = m0 ∨ ¬ a1 ∈ x0 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: in-01: ⊦ a ∈ x -l b → a ∈ x ∧ a ≠ b; in: ⊦ a ∈ x ∧ a ≠ b → a ∈ x -l b; 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) a: ⊦ (x + y) + z = x + y + z; from specification list ⊦ a ∈ x → rmdup(a ' + x) = rmdup(x); (s)

Proof step 23 from proof size-rmdup-del (previous step) (back to tree)

# rmdup(x0) = m0 + 1, # rmdup(x0 -l a) ≠ m0, a ≠ a0, x0 ≠ [], a0 ∈ x0, a ∈ x0, ∀ a1. # rmdup(x0 -l a1) = m0 ∨ ¬ a1 ∈ x0 ⊦

Heuristic quantifier closing applied rule all left

And closed the goal!

Rule argument

pos: left 7 terms: a

Additional information

Used terms: a

Proof Tree for size-rmdup-del (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