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 storage and exact matrix-vector operation counts
Statement
Let be a field, let , and let a valid CSR record have stored entries. Its input arrays use exactly field-value slots, integer column-index slots, and integer row-pointer slots, for a total of data slots. On valid input, the algorithm Validated compressed sparse row matrix-vector product performs exactly field multiplications, field additions, and zero initializations. Its index validation and loop-control work is . Counting the CSR arrays and returned output but excluding the supplied vector and constant-size workspace, it uses exactly data slots, hence slots; for this is . Here means bounded by for a constant independent of the dimensions and input values.
For a square record of order with at least one stored entry in each row, , so the work and storage are . For a canonical record as defined in Compressed sparse row matrices with stored-entry semantics, ; without that convention, the cost is in terms of stored entries, not . These are arithmetic, index, and storage counts, not runtime, memory-bandwidth, convergence, or factorization-cost bounds.
Facts & Assumptions
Given: A valid CSR record with dimensions and stored entries.
Compressed sparse row matrices with stored-entry semantics: the arrays have lengths , , and ; the row pointers satisfy .
Compressed sparse row matrices with stored-entry semantics: a record is canonical when no row repeats a column and no stored value is zero; then .
Validated compressed sparse row matrix-vector product: on a valid record the algorithm initializes outputs and visits each row interval , performing one multiply-add per visited index.
Proof
The value, column-index, and row-pointer arrays have lengths , , and , respectively, so their input representation contains exactly data slots.
The number of visits in row is . Summing these lengths telescopes to ; monotonicity makes the intervals disjoint and their endpoints cover every stored index once. Thus the accumulation loop executes exactly multiply-add updates, and the initialization loop executes exactly times. The two validation scans examine at most pointers and column indices, so validation and loop control take work.
The returned vector occupies additional field slots. Counting it with the CSR arrays, and excluding the supplied and fixed workspace, gives exactly data slots, hence . If , then and the additive constant is absorbed into a fixed multiple of .
For a square record of order with every row storing at least one entry, summing its row lengths gives ; substituting into the preceding bounds yields . By [L2], a canonical record has ; no such equality is asserted when duplicate columns or explicit zeros are stored.
Depends on
Used by
Dependency tree · two levels
5 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)