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.
Sparse matrix models and kernel costs — Examples
1 · Prerequisites
- Binary Operations, Monoids, Groups and Subgroups
- Construction of the Natural Numbers
- Construction of the Real Numbers via Cauchy Sequences
- Construction of the Real Numbers via Dedekind Cuts
- Countability and Uncountability
- Finite Counting, Factorials and Binomial Coefficients
- Foundations of the Real Numbers for Analysis
- Matrices, the Matrix of a Linear Map, and Change of Basis
- Relations, Functions, and Quotients
- Rings, Subrings, Integral Domains and Fields
- Roots, Rational Powers, and Classical Inequalities
- Sparse matrix models and kernel costs
- The ZFC Axioms and the Basic Set Constructions
- Vector Spaces, Linear Subspaces, Span and Direct Sums
2 · Summary
The examples construct a four-row tridiagonal matrix in CSR form, evaluate one matrix-vector product and count its stored entries, and work through an ordered elimination that creates a fill edge. Two additional checks show how duplicate entries and explicit zeros affect , and how numerical cancellation can leave an edge in the symbolic pattern after the corresponding Schur-complement entry has become zero.
3 · Logical flowchart
4 · Definitions, theorems and proofs
None yet.
5 · Examples, counterexamples and false statements
A four-row tridiagonal matrix in CSR form
Example
Let have diagonal entries , entries immediately above and below the diagonal, and all other entries . A CSR record for is
This record stores entries and has no empty row, duplicate column, or explicit zero.
Facts & Assumptions
Given: The displayed arrays and the zero-based CSR convention.
Compressed sparse row matrices with stored-entry semantics: the row pointers delimit each row's stored-index interval, and each stored value contributes to the matrix entry at its row and column index.
The rationals form a field: the rational numbers with their standard operations form a field.
Verification
The row-pointer array has length , starts at , ends at , and is nondecreasing. Every listed column index lies in , so the data satisfy the CSR invariants for a by matrix.
Row uses columns with values ; row uses columns with values ; row uses columns with values ; row uses columns with values . These rational sums are the specified entries of , so the record represents .
An exact CSR product and its stored-entry count
Example
Use the CSR record with , , and for the four-row tridiagonal matrix. For , the algorithm returns . It uses field multiplications, field additions, and zero initializations; the input CSR arrays occupy data slots.
Facts & Assumptions
Given: The displayed CSR data, the vector over , and exact rational arithmetic.
Compressed sparse row matrices with stored-entry semantics: the row pointers delimit the stored entries in each row and each entry contributes its value at its stored column.
Validated compressed sparse row matrix-vector product: on valid input, the algorithm initializes each output coordinate to zero and adds for each stored entry in its row.
CSR matrix-vector multiplication returns the represented product: for valid data, the returned vector is the represented matrix times .
CSR storage and exact matrix-vector operation counts: a valid record with stored entries uses multiplications, additions, initializations, and CSR input slots.
The rationals form a field: the rational numbers with their standard operations form a field.
Verification
The row formulas give , , , and in .
By [L3], these row values are the exact matrix-vector output, so the algorithm returns .
The CSR has entries and rows. [L4] gives multiplications, additions, initializations, and input slots.
Eliminating the middle vertex creates structural fill
Example
Work over , which is a field, and take
with vertices and elimination order . The initial structural graph is the path . Eliminating its middle vertex creates the edge , and the first Schur complement has a nonzero entry in that position. The pivots in the full order are nonzero, so the ordered elimination is defined throughout.
Facts & Assumptions
Given: The displayed symmetric matrix over , the vertex labels, and the elimination order .
Structural graphs and ordered symmetric elimination: a pivot's remaining neighbors are joined pairwise when that pivot is eliminated.
The rationals form a field: the rational numbers with their standard operations form a field.
Use the Schur-update convention : at stage , set and, if , define for the remaining vertices . Each update is defined after its current pivot has been checked.
The filled graph contains every off-diagonal Schur-complement nonzero: for a symmetric matrix over a field and a fixed ordering, if every pivot in the Schur updates is nonzero, every nonzero off-diagonal entry of each Schur complement is an edge of the corresponding filled graph.
Verification
The off-diagonal nonzero entries of are exactly and , so the initial structural graph is the path with edges and . The first pivot is , so [A1] defines on the remaining labels . Now , so the next update is defined and gives . Hence , and its update leaves the empty matrix. Thus all three pivots are nonzero and every stage is defined.
The first eliminated vertex is , whose later-neighbor set is . By [L1] its elimination adds the previously absent edge ; the computed is nonzero. Since is symmetric over the field and step 1.1 verifies all pivots, [L4] applies to these Schur complements. After the first elimination only two vertices remain, so later eliminations cannot join a new pair. Thus this ordering creates exactly one fill edge, realized by a numerical nonzero.
This ordering creates one structural fill edge. The computation gives a finite example only and supplies no general fill bound.
Numerical cancellation can zero an entry while the filled graph retains its edge
Example
Work over , which is a field, and take
with vertices and elimination order . The initial structural graph is a triangle. After eliminating vertex , the numerical entry between vertices and cancels to zero, although the symbolic graph retains that edge. Every pivot in this ordering is nonzero.
Facts & Assumptions
Given: The displayed symmetric matrix over , the vertex labels, and the elimination order .
Structural graphs and ordered symmetric elimination: the graph update retains existing edges between remaining vertices and completes the later-neighbor set to a clique.
The rationals form a field: the rational numbers with their standard operations form a field.
The filled graph contains every off-diagonal Schur-complement nonzero: assume each pivot is nonzero and define .
The filled graph contains every off-diagonal Schur-complement nonzero: every nonzero off-diagonal entry of each Schur complement is an edge of the corresponding filled graph.
Verification
All three off-diagonal positions of are nonzero, so the initial graph has edges , , and . Eliminating vertex leaves as a later-neighbor pair, and [L1] retains its edge in the filled graph.
The first pivot is , and the update in [L3] gives . The two remaining diagonal entries are , so the last two pivots are both and are nonzero. Thus all pivots are nonzero while the numerical support loses .
By [L4], the filled graph contains the numerical support; step 1.1 shows its edge remains, while step 2.1 shows the corresponding numerical entry is zero. Thus the inclusion is strict in this example.
Duplicate columns and explicit zeros count as stored entries
Example
Let , , and use , , . The repeated column in row cancels, and the last stored entry is an explicit zero, so the represented matrix is the zero by matrix even though and . For , the algorithm returns with multiplications, additions, and zero initializations.
Facts & Assumptions
Given: The displayed arrays, over , and exact rational arithmetic.
Compressed sparse row matrices with stored-entry semantics: repeated column entries are summed, explicit zero values remain stored, and counts stored entries rather than nonzero matrix entries.
Validated compressed sparse row matrix-vector product: each stored entry contributes one product-add update to its row accumulator.
CSR matrix-vector multiplication returns the represented product: the result equals the represented matrix-vector product in exact field arithmetic.
CSR storage and exact matrix-vector operation counts: a valid record with stored entries uses multiplications, additions, initializations, and CSR input slots.
The rationals form a field: the rational numbers with their standard operations form a field.
Multiplication by zero: : in a field, multiplying zero by any element gives zero.
Verification
The pointers delimit two entries in row and one in row ; all column indices lie in . Row contributes to column , and row contributes to column . Thus every matrix entry is zero, while all three values are stored.
The products in row are and , which sum to ; the row product is . By [L3], the algorithm returns .
There are three stored entries and two rows, so [L4] gives multiplications, additions, initializations, and CSR input slots. This noncanonical record has .
Sources
- Yousef Saad, Iterative Methods for Sparse Linear Systems, 2nd ed., Chapter 3 §3.4, printed pp. 92–94
- David Bindel, Matrix Computations (CS 6210), Cornell University, Fall 2012, Lecture 32, The 1D model problem, p. 1
- Yousef Saad, Iterative Methods for Sparse Linear Systems, 2nd ed., Chapter 3 §3.5, printed pp. 95–96
- Yousef Saad, Iterative Methods for Sparse Linear Systems, 2nd ed., Chapter 3 §§3.2.1, 3.3.2 and 3.6, printed pp. 77–83 and 96–98
- Prabhakar Poupart and Jingjing Wan, CS475/CS675 Lecture 4: Sparse Gaussian Elimination, Graph Representation, slides 6–10, University of Waterloo, May 12, 2016