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

⊦ ar = [] ∨ (∃ a, ar0. ar = a + ar0)

System applied rule normalize

And obtained the following new goals

Rule argument

Additional information

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

ar ≠ [] ⊦ ∃ a, ar0. ar = a + ar0

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

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

ar ≠ [] ⊦ ∃ a, ar0. ar = a + ar0

User applied rule exists right

And obtained the following new goals

Rule argument

pos: right 1 terms: ar.first, ar.rest abort: F discard: T computed: F

Additional information

Used terms: ar.first, ar.rest

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

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

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:[ar2, ar1] → [ar.first + ar.rest, ar], <all paths>

Additional information

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

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

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

A spec-lemma

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

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

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

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

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:first, seq: ⊦ ar.first = ar[0], subst:[ar] → [ar], <all paths>

Additional information

Used terms: ar

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

⊦ ar.first = ar[0]

Lemma first

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

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

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

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

Additional information

Used terms: ar

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

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

Lemma rest

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

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

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:cons, seq: ⊦ a + ar = copy(ar, 0, mkarray(# ar + 1), 1, # ar)[0 := a], subst:[ar, a] → [subarray(ar, 1, # ar - 1), ar[0]], <all paths>

Additional information

Used terms: subarray(ar, 1, # ar - 1), ar[0]

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

⊦ a + ar = copy(ar, 0, mkarray(# ar + 1), 1, # ar)[0 := a]

Lemma cons

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

ar ≠ [], # ar ≠ # copy(subarray(ar, 1, # ar - 1), 0, mkarray(# subarray(ar, 1, # ar - 1) + 1), 1, # subarray(ar, 1, # ar - 1))[0 := ar[0]] ∨ ¬ ( n < # ar → ar[n] = (copy(subarray(ar, 1, # ar - 1), 0, mkarray(# subarray(ar, 1, # ar - 1) + 1), 1, # subarray(ar, 1, # ar - 1))[0 := ar[0]] )[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 n0 + n1 ≤ # ar0, m + m1 ≤ n1 ⊦ copy(subarray(ar0, n0, n1), m, ar1, m0, m1) = copy(ar0, n0 + m, ar1, m0, m1); (s) ⊦ ¬ n + (m - n) < m; (s) ⊦ m ≤ n ↔ ¬ n < m; (ss) n0 ≤ n ⊦ n - n0 ≤ m ↔ n ≤ m + n0; (s) ⊦ m < n → n ≠ 0; (s) ⊦ m < 1 ↔ m = 0; (s) ⊦ n + 0 = n; (s) ⊦ m ≤ m; (s) ⊦ # subarray(ar, m, n) = n; (s) ⊦ # mkarray(n) = n; (s) ⊦ # copy(ar, m, ar0, m0, n) = # ar0; (s) ⊦ # ar[n := a] = # ar; (s)

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

ar ≠ [], # ar ≠ (# ar - 1) + 1 ∨ ¬(n < # ar → ar[n] = (copy(ar, 1, mkarray((# ar - 1) + 1), 1, # ar - 1)[0 := ar[0]])[n]) ⊦

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

Additional information

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

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

# ar = 0, ar ≠ [], # ar ≠ (# ar - 1) + 1 ∨ ¬(n < # ar → ar[n] = (copy(ar, 1, mkarray((# ar - 1) + 1), 1, # ar - 1)[0 := ar[0]])[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)

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

# ar = 0, ar ≠ [] ⊦

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:[ar2, ar1] → [[], ar], <all paths>

Additional information

Used terms: [], ar

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

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

A spec-lemma

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

# ar = 0, # ar ≠ # [] ∨ (∃ n. ¬(n < # ar → ar[n] = [][n])) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ ¬ n < 0; (s)

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

# ar = 0, 0 ≠ # [] ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

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

Additional information

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

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

⊦ [] = mkarray(0)

Lemma nil

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

# ar = n0 + 1, # ar ≠ 0, ar ≠ [], # ar ≠ n0 + 1 ∨ ¬(n < # ar → ar[n] = (copy(ar, 1, mkarray(n0 + 1), 1, n0)[0 := ar[0]])[n]) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ m < n ↔ ¬ n ≤ m; (ss) 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 + 1 ≠ 0; (s) f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic ⊦ m < n → n ≠ 0; (s)

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

# ar = n0 + 1, ar[n] ≠ (copy(ar, 1, mkarray(n0 + 1), 1, n0)[0 := ar[0]])[n], ar ≠ [], n ≤ n0 ⊦

Heuristic nonsplitting cut applied rule cut formula

And obtained the following new goals

Rule argument

fma: n = 0

Additional information

Used simplifier rules: ⊦ # copy(ar, m, ar0, m0, n) = # ar0; (s) ⊦ # mkarray(n) = n; (s) ⊦ 0 < m ↔ m ≠ 0; (s) ⊦ m + 1 ≠ 0; (s) a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic m < # ar ⊦ (ar[m := a])[m] = a; (s) Used formulas: n = 0

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

# ar = n0 + 1, ar[n] ≠ (copy(ar, 1, mkarray(n0 + 1), 1, n0)[0 := ar[0]])[n], ar ≠ [], n ≠ 0, n ≤ n0 ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ m ≠ n → (ar[n := a])[m] = ar[m]; (s)

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

# ar = n0 + 1, ar[n] ≠ copy(ar, 1, mkarray(n0 + 1), 1, n0)[n], ar ≠ [], n ≠ 0, n ≤ n0 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: polyarray-copy, name:at-copy, seq:⊦ m0 < # ar1 → copy(ar0, n, ar1, n0, m)[m0] = (m0 < n0 ∨ n0 + m ≤ m0 ⊃ ar1[m0];ar0[m0 + n - n0]), subst:[n, ar1, n0, ar0, m, m0] → [1, mkarray(n0 + 1), 1, ar, n0, n], <all paths>

Additional information

Used simplifier rules: ⊦ m < 1 ↔ m = 0; (s) ⊦ m + 1 ≤ n ↔ m < n; (s) ⊦ m ≤ n → (n < m ↔ false); (s) ⊦ n ≤ m → m + n0 - n = (m - n) + n0; (s) ⊦ n + 0 = n; (s) a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic ⊦ # mkarray(n) = n; (s) ⊦ m < n + 1 ↔ ¬ n < m; (s) Used terms: 1, 1, mkarray(n0 + 1), n0, n, ar

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

⊦ m0 < # ar1 → copy(ar0, n, ar1, n0, m)[m0] = (m0 < n0 ∨ n0 + m ≤ m0 ⊃ ar1[m0];ar0[m0 + n - n0])

A spec-lemma

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