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

⊦ #r mx = # vec1 ∧ # vec1 = # vec2 → (vec1 + vec2) * mx = vec1 * mx + vec2 * mx

System applied rule normalize

And obtained the following new goals

Rule argument

Additional information

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

# vec1 = # vec2, #r mx = # vec1, (vec1 + vec2) * mx ≠ vec1 * mx + vec2 * mx ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

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

# vec1 = # vec2, #r mx = # vec2, (vec1 + vec2) * mx ≠ vec1 * mx + vec2 * mx ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: array, name:Extension, seq: ⊦ ar1 = ar2 ↔ # ar1 = # ar2 ∧ (∀ n. n < # ar1 → ar1[n] = ar2[n]), subst:[ar1, ar2] → [(vec1 + vec2) * mx, vec1 * mx + vec2 * mx]; ['a] → [ring], <all paths>

Additional information

Used terms: (vec1 + vec2) * mx, vec1 * mx + vec2 * mx

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

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

A spec-lemma

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

# vec1 = # vec2, #r mx = # vec2, #((vec1 + vec2) * mx) ≠ #(vec1 * mx + vec2 * mx) ∨ (∃ n. ¬(n < #((vec1 + vec2) * mx) → ((vec1 + vec2) * mx)[n] = (vec1 * mx + vec2 * mx)[n])) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: addvec-size: ⊦ #(vec1 + vec2) = # vec1;

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

# vec1 = # vec2, #r mx = # vec2, #((vec1 + vec2) * mx) ≠ #(vec1 * mx) ∨ ¬(n < #((vec1 + vec2) * mx) → ((vec1 + vec2) * mx)[n] = (vec1 * mx + vec2 * mx)[n]) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:multvecmx-size, seq: ⊦ #r mx = # vec → #(vec * mx) = #c mx, subst:[vec, mx] → [vec1 + vec2, mx], <all paths>

Additional information

Used simplifier rules: addvec-size: ⊦ #(vec1 + vec2) = # vec1; Used terms: vec1 + vec2, mx

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

⊦ #r mx = # vec → #(vec * mx) = #c mx

Lemma multvecmx-size

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

# vec1 = # vec2, #r mx = # vec2, #r mx = #(vec1 + vec2), #c mx ≠ #(vec1 * mx) ∨ ¬(n < #c mx → ((vec1 + vec2) * mx)[n] = (vec1 * mx + vec2 * mx)[n]) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: addvec-size: ⊦ #(vec1 + vec2) = # vec1; multvecmx-size: ⊦ #r mx = # vec → #(vec * mx) = #c mx; ⊦ m < n → n ≠ 0; (s) f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic

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

# vec1 = # vec2, #r mx = # vec2, ((vec1 + vec2) * mx)[n] ≠ (vec1 * mx + vec2 * mx)[n], n < #c mx ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:multvecmx-get, seq:⊦ #r mx = # vec ∧ c < #c mx → (vec * mx)[c] = Σ(0 to # vec, λ n. vec[n] * mx[n, c]), subst:[vec, mx, c] → [vec1 + vec2, mx, n], <all paths>

Additional information

Used simplifier rules: addvec-size: ⊦ #(vec1 + vec2) = # vec1; Used terms: vec1 + vec2, mx, n

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

⊦ #r mx = # vec ∧ c < #c mx → (vec * mx)[c] = Σ(0 to # vec, λ n. vec[n] * mx[n, c])

Lemma multvecmx-get

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

# vec1 = # vec2, #r mx = # vec2, #r mx = #(vec1 + vec2), Σ(0 to #(vec1 + vec2), λ n0. (vec1 + vec2)[n0] * mx[n0, n]) ≠ (vec1 * mx + vec2 * mx)[n], n < #c mx ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: addvec-size: ⊦ #(vec1 + vec2) = # vec1;

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

# vec1 = # vec2, #r mx = # vec2, Σ(0 to # vec2, λ n0. (vec1 + vec2)[n0] * mx[n0, n]) ≠ (vec1 * mx + vec2 * mx)[n], n < #c mx ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:addmvec-get, seq: ⊦ n < # vec1 → (vec1 + vec2)[n] = vec1[n] + vec2[n], subst:[vec1, vec2, n] → [vec1 * mx, vec2 * mx, n], <all paths>

Additional information

Used terms: vec1 * mx, vec2 * mx, n

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

⊦ n < # vec1 → (vec1 + vec2)[n] = vec1[n] + vec2[n]

Lemma addmvec-get

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

# vec1 = # vec2, #r mx = # vec2, Σ(0 to # vec2, λ n0. (vec1 + vec2)[n0] * mx[n0, n]) ≠ (vec1 * mx + vec2 * mx)[n], n < #c mx, ¬ n < #(vec1 * mx) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: fle-01: ⊦ m ≤ n ∧ n < n0 → m < n0; (forward) from specification nat ⊦ m < n ↔ ¬ n ≤ m; (ss)

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

# vec1 = # vec2, #r mx = # vec2, Σ(0 to # vec2, λ n0. (vec1 + vec2)[n0] * mx[n0, n]) ≠ (vec1 * mx + vec2 * mx)[n], n < #c mx, #(vec1 * mx) < #c mx, #(vec1 * mx) ≤ n ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:multvecmx-size, seq: ⊦ #r mx = # vec → #(vec * mx) = #c mx, subst:[vec, mx] → [vec1, mx], <all paths>

Additional information

Used simplifier rules: ⊦ m < n → (n ≤ m ↔ false); (s) Used terms: vec1, mx

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

⊦ #r mx = # vec → #(vec * mx) = #c mx

Lemma multvecmx-size

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

# vec1 = # vec2, #r mx = # vec2, Σ(0 to # vec2, λ n0. (vec1 + vec2)[n0] * mx[n0, n]) ≠ (vec1 * mx)[n] + (vec2 * mx)[n], n < #c mx, n < #(vec1 * mx) ⊦

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 18 from proof distrvevecmx (previous step) (back to tree)

# vec1 = # vec2, #r mx = # vec2, Σ(0 to # vec2, λ n0. (vec1 + vec2)[n0] * mx[n0, n]) ≠ (vec1 * mx)[n] + (vec2 * mx)[n], n < #c mx, n < #(vec1 * mx) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:multvecmx-get, seq:⊦ #r mx = # vec ∧ c < #c mx → (vec * mx)[c] = Σ(0 to # vec, λ n. vec[n] * mx[n, c]), subst:[vec, mx, c] → [vec1, mx, n], <all paths>

Additional information

Used terms: vec1, mx, n

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

⊦ #r mx = # vec ∧ c < #c mx → (vec * mx)[c] = Σ(0 to # vec, λ n. vec[n] * mx[n, c])

Lemma multvecmx-get

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

# vec1 = # vec2, #r mx = # vec2, #r mx = # vec1, Σ(0 to # vec2, λ n0. (vec1 + vec2)[n0] * mx[n0, n]) ≠ Σ(0 to # vec1, λ n0. vec1[n0] * mx[n0, n]) + (vec2 * mx)[n], n < #(vec1 * mx), n < #c mx ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: multvecmx-size: ⊦ #r mx = # vec → #(vec * mx) = #c mx;

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

# vec1 = # vec2, #r mx = # vec2, Σ(0 to # vec2, λ n0. (vec1 + vec2)[n0] * mx[n0, n]) ≠ Σ(0 to # vec2, λ n0. vec1[n0] * mx[n0, n]) + (vec2 * mx)[n], n < #c mx ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:multvecmx-get, seq:⊦ #r mx = # vec ∧ c < #c mx → (vec * mx)[c] = Σ(0 to # vec, λ n. vec[n] * mx[n, c]), subst:[vec, mx, c] → [vec2, mx, n], <all paths>

Additional information

Used simplifier rules: multvecmx-get: ⊦ #r mx = # vec ∧ c < #c mx → (vec * mx)[c] = Σ(0 to # vec, λ n. vec[n] * mx[n, c]); Used terms: vec2, mx, n

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

⊦ #r mx = # vec ∧ c < #c mx → (vec * mx)[c] = Σ(0 to # vec, λ n. vec[n] * mx[n, c])

Lemma multvecmx-get

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

# vec1 = # vec2, #r mx = # vec2, Σ(0 to # vec2, λ n0. (vec1 + vec2)[n0] * mx[n0, n]) ≠ Σ(0 to # vec2, λ n0. vec1[n0] * mx[n0, n]) + Σ(0 to # vec2, λ n0. vec2[n0] * mx[n0, n]), n < #c mx ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:sum-add, seq: ⊦ Σ(ns, f1) + Σ(ns, f2) = Σ(ns, λ n. f1(n) + f2(n)), subst:[ns, f1, f2] → [0 to # vec2, λ n0. vec1[n0] * mx[n0, n], λ n0. vec2[n0] * mx[n0, n]], <all paths>

Additional information

Used terms: 0 to # vec2, λ n0. vec1[n0] * mx[n0, n], λ n0. vec2[n0] * mx[n0, n]

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

⊦ Σ(ns, f1) + Σ(ns, f2) = Σ(ns, λ n. f1(n) + f2(n))

Lemma sum-add

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

# vec1 = # vec2, #r mx = # vec2, Σ(0 to # vec2, λ n0. (vec1 + vec2)[n0] * mx[n0, n]) ≠ Σ(0 to # vec2, λ n0. vec1[n0] * mx[n0, n] + vec2[n0] * mx[n0, n]), n < #c mx ⊦

User applied rule apply lemma

And obtained the following new goals

Rule argument

spec: <toplevel>, name:sum-red, seq: ⊦ (∀ n. n ∈ ns → f1(n) = f2(n)) → Σ(ns, f1) = Σ(ns, f2), subst:[ns, f1, f2] → [0 to # vec2, λ n0. (vec1 + vec2)[n0] * mx[n0, n], λ n0. vec1[n0] * mx[n0, n] + vec2[n0] * mx[n0, n]]

Additional information

Used terms: 0 to # vec2, λ n0. (vec1 + vec2)[n0] * mx[n0, n], λ n0. vec1[n0] * mx[n0, n] + vec2[n0] * mx[n0, n]

Proof step 26 from proof distrvevecmx (previous step) (back to tree)

⊦ (∀ n. n ∈ ns → f1(n) = f2(n)) → Σ(ns, f1) = Σ(ns, f2)

Lemma sum-red

Proof step 27 from proof distrvevecmx (previous step) (back to tree)

# vec1 = # vec2, #r mx = # vec2, Σ(0 to # vec2, λ n0. (vec1 + vec2)[n0] * mx[n0, n]) ≠ Σ(0 to # vec2, λ n0. vec1[n0] * mx[n0, n] + vec2[n0] * mx[n0, n]), n < #c mx, (∀ n0. n0 ∈ 0 to # vec2 → (vec1 + vec2)[n0] * mx[n0, n] = vec1[n0] * mx[n0, n] + vec2[n0] * mx[n0, n]) → Σ(0 to # vec2, λ n0. (vec1 + vec2)[n0] * mx[n0, n]) = Σ(0 to # vec2, λ n0. vec1[n0] * mx[n0, n] + vec2[n0] * mx[n0, n]) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: addmvec-get: ⊦ n < # vec1 → (vec1 + vec2)[n] = vec1[n] + vec2[n]; ⊦ m < n → n ≠ 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 ⊦ 0 ≤ m; (s) ⊦ n0 ∈ m to n ↔ m ≤ n0 ∧ n0 < n; (s)

Proof step 28 from proof distrvevecmx (previous step) (back to tree)

# vec1 = # vec2, #r mx = # vec2, (vec1[n0] + vec2[n0]) * mx[n0, n] ≠ vec1[n0] * mx[n0, n] + vec2[n0] * mx[n0, n], Σ(0 to # vec2, λ n0. (vec1 + vec2)[n0] * mx[n0, n]) ≠ Σ(0 to # vec2, λ n0. vec1[n0] * mx[n0, n] + vec2[n0] * mx[n0, n]), n0 < # vec2, n < #c mx ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: ring, name:distr-l, seq: ⊦ (b + c) * a = b * a + c * a, subst:[b, c, a] → [vec1[n0], vec2[n0], mx[n0, n]], <all paths>

Additional information

Used terms: vec1[n0], vec2[n0], mx[n0, n]

Proof step 29 from proof distrvevecmx (previous step) (back to tree)

⊦ (b + c) * a = b * a + c * a

A spec-lemma

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