How statement and proof provenance work
The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.
- Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
- AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
- AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.
These labels describe origin, not correctness: citations and verification chips remain separate evidence.
CSR matrix-vector multiplication returns the represented product
Statement
Let be a field, let , let a valid CSR record represent
, and let . Let
be the column matrix with for , and
define by
using Rectangular matrix multiplication and the identity matrix , including zero-sized shapes. Then the algorithm
Validated compressed sparse row matrix-vector product returns ok with output
in exact field arithmetic.
Facts & Assumptions
Given: A field , , a valid CSR record representing , and .
Compressed sparse row matrices with stored-entry semantics: , with an empty sum equal to .
Validated compressed sparse row matrix-vector product: each row starts at and accumulates once for every .
Rectangular matrix multiplication and the identity matrix , including zero-sized shapes: for the column matrix with , .
A finite sum in a commutative monoid indexed by an arbitrary finite set: a finite sum is independent of its enumeration and an empty sum is its identity element.
Field: multiplication distributes over addition.
The vector space of all functions with pointwise operations, and as the case : is the set of functions ; when it has exactly one element, the empty function.
Multiplication by zero: : in a field, for every .
Field: multiplication is commutative on all of , and for every ; hence .
Proof
Fix a row . Initially its output coordinate is , the empty partial sum. After entries of that row have been visited, induction on gives : the next algorithmic update adds exactly the next summand. Taking yields .
By [L1] and [L3], . Repeated application of [L5], by induction on the finite number of summands, distributes the products over these sums. Re-enumerating the resulting finite sum over pairs as is permitted by [L4]. For each fixed , exactly the term survives, so the result is . By step 1.1 this equals .
If , both and are the unique empty vector by [L6]. If , step 2.1 gives equality in every coordinate , hence .
Depends on
- Field
- A finite sum in a commutative monoid indexed by an arbitrary finite set
- The vector space $F^{X}$ of all functions $X \to F$ with pointwise operations, and $F^{n}$ as the case $X = n = \{0, 1, \dots, n-1\}$
- The vector space $M_{m \times n}(F) := F^{\,m \times n}$ of $m$ by $n$ matrices over a field, with entrywise operations
- Compressed sparse row matrices with stored-entry semantics
- Validated compressed sparse row matrix-vector product
- Rectangular matrix multiplication and the identity matrix $I_n$, including zero-sized shapes
- Multiplication by zero: $0 \cdot a = 0$
Used by
Dependency tree · two levels
18 results within two dependency steps of this one, each drawn at its shortest distance from it. An arrow runs from a result to what uses it, so the chart reads left to right and ends at this result, which carries a heavier outline. Every node is a link to that result. Click elsewhere on the chart to enlarge it.
Sources
- Yousef Saad, Iterative Methods for Sparse Linear Systems, 2nd ed., Chapter 3 §§3.4–3.5, printed pp. 92–96 (standard reference, not scraped)
- Richard Barrett et al., Templates for the Solution of Linear Systems: Building Blocks for Iterative Methods, 2nd ed., Chapter 4 §4.3.1–4.3.2, printed pp. 57–63 (standard reference, not scraped)