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

⊦ x = [] ∨ x = x.first + x.rest

System applied rule normalize

And obtained the following new goals

Rule argument

Additional information

Proof step 2 from proof case-list (previous step) (back to tree)

x ≠ [], x ≠ x.first + x.rest ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: polyarray, name:Extension, seq: ⊦ ar1 = ar2 ↔ # ar1 = # ar2 ∧ (∀ n. n < # ar1 → ar1[n] = ar2[n]), subst:[ar1, ar2] → [x, x.first + x.rest], <all paths>

Additional information

Used terms: x, x.first + x.rest

Proof step 3 from proof case-list (previous step) (back to tree)

⊦ ar1 = ar2 ↔ # ar1 = # ar2 ∧ (∀ n. n < # ar1 → ar1[n] = ar2[n])

A spec-lemma

Proof step 4 from proof case-list (previous step) (back to tree)

x ≠ [], # x ≠ #(x.first + x.rest) ∨ (∃ n. ¬(n < # x → x[n] = (x.first + x.rest)[n])) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 5 from proof case-list (previous step) (back to tree)

x ≠ [], # x ≠ #(x.first + x.rest) ∨ ¬(n < # x → x[n] = (x.first + x.rest)[n]) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:size-add, seq: ⊦ #(a + x) = (# x)+1, subst:[a, x] → [x.first, x.rest], <all paths>

Additional information

Used terms: x.first, x.rest

Proof step 6 from proof case-list (previous step) (back to tree)

⊦ #(a + x) = (# x)+1

Lemma size-add

Proof step 7 from proof case-list (previous step) (back to tree)

x ≠ [], # x ≠ (# x.rest)+1 ∨ ¬(n < # x → x[n] = (x.first + x.rest)[n]) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ m +1 = m + 1; (s)

Proof step 8 from proof case-list (previous step) (back to tree)

x ≠ [], # x ≠ # x.rest + 1 ∨ ¬(n < # x → x[n] = (x.first + x.rest)[n]) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: polyarray-listops, name:rest, seq: ⊦ ar.rest = subarray(ar, 1, # ar - 1), subst:[ar] → [x], <all paths>

Additional information

Used terms: x

Proof step 9 from proof case-list (previous step) (back to tree)

⊦ ar.rest = subarray(ar, 1, # ar - 1)

A spec-lemma

Proof step 10 from proof case-list (previous step) (back to tree)

x ≠ [], # x ≠ # subarray(x, 1, # x - 1) + 1 ∨ ¬(n < # x → x[n] = (x.first + subarray(x, 1, # x - 1))[n]) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ # subarray(ar, m, n) = n; (s)

Proof step 11 from proof case-list (previous step) (back to tree)

x ≠ [], # x ≠ (# x - 1) + 1 ∨ ¬(n < # x → x[n] = (x.first + subarray(x, 1, # x - 1))[n]) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: polyarray-listops, name:first, seq: ⊦ ar.first = ar[0], subst:[ar] → [x], <all paths>

Additional information

Used terms: x

Proof step 12 from proof case-list (previous step) (back to tree)

⊦ ar.first = ar[0]

A spec-lemma

Proof step 13 from proof case-list (previous step) (back to tree)

x ≠ [], # x ≠ (# x - 1) + 1 ∨ ¬(n < # x → x[n] = (x[0] + subarray(x, 1, # x - 1))[n]) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: nat, name:prop-01, seq:n ≤ m ⊦ (m - n) + n = m, subst:[m, n] → [# x, 1], <all paths>

Additional information

Used terms: # x, 1

Proof step 14 from proof case-list (previous step) (back to tree)

n ≤ m ⊦ (m - n) + n = m

A spec-lemma

Proof step 15 from proof case-list (previous step) (back to tree)

x ≠ [], ¬ 1 ≤ # x, # x ≠ (# x - 1) + 1 ∨ ¬(n < # x → x[n] = (x[0] + subarray(x, 1, # x - 1))[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 + 1 ≠ 0; (s) ⊦ m < 1 ↔ m = 0; (s) ⊦ m ≤ n ↔ ¬ n < m; (ss)

Proof step 16 from proof case-list (previous step) (back to tree)

# x = 0, x ≠ [] ⊦

User applied rule constructor cut

And obtained the following new goals

Rule argument

var: x

Additional information

Used simplifier rules: array('a) generated by mkarray, [ := ];; ⊦ # ar[n := a] = # ar; (s) ⊦ ar[n := a] = ar ↔ ¬ n < # ar ∨ ar[n] = a; (s) ⊦ m < n → n ≠ 0; (s)

Proof step 17 from proof case-list (previous step) (back to tree)

# x = 0, x = mkarray(n), x ≠ [] ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ # mkarray(n) = n; (s)

Proof step 18 from proof case-list (previous step) (back to tree)

mkarray(0) ≠ [] ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: polyarray-listops, name:nil, seq: ⊦ [] = mkarray(0), subst:, <all paths>

Additional information

Used terms:

Proof step 19 from proof case-list (previous step) (back to tree)

⊦ [] = mkarray(0)

A spec-lemma

Proof step 20 from proof case-list (previous step) (back to tree)

x ≠ [], 1 ≤ # x, # x ≠ # x ∨ ¬(n < # x → x[n] = (x[0] + subarray(x, 1, # x - 1))[n]) ⊦

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 21 from proof case-list (previous step) (back to tree)

x[n] ≠ (x[0] + subarray(x, 1, # x - 1))[n], x ≠ [], n < # x, 1 ≤ # x ⊦

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] → [# x, n0]

Additional information

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

Proof step 22 from proof case-list (previous step) (back to tree)

# x = n0 + 1, # x ≠ 0, x[n] ≠ (x[0] + subarray(x, 1, n0))[n], x ≠ [], n < # x, 1 ≤ # x ⊦

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

Proof step 23 from proof case-list (previous step) (back to tree)

# x = n0 + 1, x[n] ≠ (x[0] + subarray(x, 1, n0))[n], x ≠ [], n ≤ n0 ⊦

User applied rule constructor cut

And obtained the following new goals

Rule argument

var: n

Additional information

Used simplifier rules: nat freely generated by 0, +1;;

Proof step 24 from proof case-list (previous step) (back to tree)

# x = n0 + 1, n = 0, x[n] ≠ (x[0] + subarray(x, 1, n0))[n], x ≠ [], n ≤ n0 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ 0 ≤ m; (s)

Proof step 25 from proof case-list (previous step) (back to tree)

# x = n0 + 1, x[0] ≠ (x[0] + subarray(x, 1, n0))[0], x ≠ [] ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:get-zero, seq: ⊦ (a + x)[0] = a, subst:[a, x] → [x[0], subarray(x, 1, n0)], <all paths>

Additional information

Used terms: x[0], subarray(x, 1, n0)

Proof step 26 from proof case-list (previous step) (back to tree)

⊦ (a + x)[0] = a

Lemma get-zero

Proof step 27 from proof case-list (previous step) (back to tree)

# x = n0 + 1, n = n1 +1, x[n] ≠ (x[0] + subarray(x, 1, n0))[n], x ≠ [], 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 c: ⊦ m + n = n + m; from specification nat-basic a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic ⊦ m + 1 ≤ n ↔ m < n; (s) ⊦ m +1 = m + 1; (s)

Proof step 28 from proof case-list (previous step) (back to tree)

# x = n0 + 1, x[n1 + 1] ≠ (x[0] + subarray(x, 1, n0))[n1 + 1], x ≠ [], n1 < n0 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:get-succ, seq: ⊦ (a + x)[n + 1] = x[n], subst:[a, x, n] → [x[0], subarray(x, 1, n0), n1], <all paths>

Additional information

Used simplifier rules: ⊦ n0 < n → subarray(ar, m, n)[n0] = ar[m + n0]; (s) c: ⊦ m + n = n + m; from specification nat-basic Used terms: x[0], subarray(x, 1, n0), n1

Proof step 29 from proof case-list (previous step) (back to tree)

⊦ (a + x)[n + 1] = x[n]

Lemma get-succ

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