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

⊦ (b + x)[0 := a] = a + x

System applied rule normalize

And obtained the following new goals

Rule argument

Additional information

Proof step 2 from proof put-zero (previous step) (back to tree)

(b + x)[0 := a] ≠ a + x ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

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

Additional information

Used terms: b, x

Proof step 3 from proof put-zero (previous step) (back to tree)

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

A spec-lemma

Proof step 4 from proof put-zero (previous step) (back to tree)

(copy(x, 0, mkarray(# x + 1), 1, # x)[0 := b])[0 := a] ≠ a + x ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ (ar[m := a])[m := b] = ar[m := b]; (s)

Proof step 5 from proof put-zero (previous step) (back to tree)

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

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] → [copy(x, 0, mkarray(# x + 1), 1, # x)[0 := a], a + x], <all paths>

Additional information

Used terms: copy(x, 0, mkarray(# x + 1), 1, # x)[0 := a], a + x

Proof step 6 from proof put-zero (previous step) (back to tree)

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

A spec-lemma

Proof step 7 from proof put-zero (previous step) (back to tree)

# copy(x, 0, mkarray(# x + 1), 1, # x)[0 := a] ≠ #(a + x) ∨ (∃ n. ¬(n < # copy(x, 0, mkarray(# x + 1), 1, # x)[0 := a] → (copy(x, 0, mkarray(# x + 1), 1, # x)[0 := a])[n] = (a + x)[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 < n + 1 ↔ ¬ n < m; (s) ⊦ # mkarray(n) = n; (s) ⊦ # copy(ar, m, ar0, m0, n) = # ar0; (s) ⊦ # ar[n := a] = # ar; (s)

Proof step 8 from proof put-zero (previous step) (back to tree)

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

Heuristic weak cut applied rule cut formula

And obtained the following new goals

Rule argument

fma: n = 0

Additional information

Used formulas: n = 0

Proof step 9 from proof put-zero (previous step) (back to tree)

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

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

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

Proof step 10 from proof put-zero (previous step) (back to tree)

# x + 1 ≠ #(a + x) ∨ a ≠ (a + x)[0] ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

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

Additional information

Used simplifier rules: ⊦ # ar[n := a] = # ar; (s) ⊦ m + n = m + n0 ↔ n = n0; (s) ⊦ # 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 terms: a, x

Proof step 11 from proof put-zero (previous step) (back to tree)

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

A spec-lemma

Proof step 12 from proof put-zero (previous step) (back to tree)

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

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 13 from proof put-zero (previous step) (back to tree)

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

Additional information

Used terms: a, x

Proof step 14 from proof put-zero (previous step) (back to tree)

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

Lemma size-add

Proof step 15 from proof put-zero (previous step) (back to tree)

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

Proof step 16 from proof put-zero (previous step) (back to tree)

copy(x, 0, mkarray(# x + 1), 1, # x)[n] ≠ (a + x)[n], n ≠ 0, n ≤ # x ⊦

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] → [0, mkarray(# x + 1), 1, x, # x, n], <all paths>

Additional information

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

Proof step 17 from proof put-zero (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 step 18 from proof put-zero (previous step) (back to tree)

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

Proof step 19 from proof put-zero (previous step) (back to tree)

x[n - 1] ≠ (a + x)[n], n ≠ 0, n ≤ # 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] → [n, n0]

Additional information

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

Proof step 20 from proof put-zero (previous step) (back to tree)

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

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 ≠ 0; (s)

Proof step 21 from proof put-zero (previous step) (back to tree)

x[n0] ≠ (a + x)[n0 + 1], n0 < # x ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

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

Additional information

Used terms: a, x

Proof step 22 from proof put-zero (previous step) (back to tree)

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

A spec-lemma

Proof step 23 from proof put-zero (previous step) (back to tree)

x[n0] ≠ (copy(x, 0, mkarray(# x + 1), 1, # x)[0 := a])[n0 + 1], n0 < # x ⊦

Heuristic nonsplitting cut applied rule cut formula

And obtained the following new goals

Rule argument

fma: n0 + 1 = 0

Additional information

Used simplifier rules: ⊦ 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 Used formulas: n0 + 1 = 0

Proof step 24 from proof put-zero (previous step) (back to tree)

n0 + 1 ≠ 0, x[n0] ≠ (copy(x, 0, mkarray(# x + 1), 1, # x)[0 := a])[n0 + 1], n0 < # 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 + 1 ≠ 0; (s)

Proof step 25 from proof put-zero (previous step) (back to tree)

x[n0] ≠ (copy(x, 0, mkarray(# x + 1), 1, # x)[0 := a])[n0 + 1], n0 < # x ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: polyarray, name:Put-other, seq: ⊦ m ≠ n → (ar[n := a])[m] = ar[m], subst:[ar, n, a, m] → [copy(x, 0, mkarray(# x + 1), 1, # x), 0, a, n0 + 1], <all paths>

Additional information

Used simplifier rules: ⊦ 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 Used terms: copy(x, 0, mkarray(# x + 1), 1, # x), 0, a, n0 + 1

Proof step 26 from proof put-zero (previous step) (back to tree)

⊦ m ≠ n → (ar[n := a])[m] = ar[m]

A spec-lemma

Proof step 27 from proof put-zero (previous step) (back to tree)

n0 + 1 ≠ 0, x[n0] ≠ copy(x, 0, mkarray(# x + 1), 1, # x)[n0 + 1], n0 < # 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 + 1 ≠ 0; (s)

Proof step 28 from proof put-zero (previous step) (back to tree)

x[n0] ≠ copy(x, 0, mkarray(# x + 1), 1, # x)[n0 + 1], n0 < # x ⊦

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] → [0, mkarray(# x + 1), 1, x, # x, n0 + 1], <all paths>

Additional information

Used simplifier rules: ⊦ ¬ m < n → ¬ m + m0 < n; (s) ⊦ m + n ≤ m + n0 ↔ n ≤ n0; (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 < m + n0 ↔ n < n0; (s) ⊦ m < n ↔ ¬ n ≤ m; (ss) Used terms: 1, 0, mkarray(# x + 1), # x, n0 + 1, x

Proof step 29 from proof put-zero (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 put-zero (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