2 Packet operator representations
On this page · Visual guide: Compute the representation first · Permalink · Source line 56
2.1 Exact semantics
On this page · Permalink · Source line 58
Definition 2.1: Packet layout
A packet layout is a finite family of finite dimensional Hilbert spaces
with direct sum
Write
The coordinate inclusion and projection are \(\iota_\alpha:X_\alpha\to X\) and \(\pi_\alpha:X\to X_\alpha\). The ambient coordinate projector is \(P_\alpha=\iota_\alpha\pi_\alpha\).
Visual guide: The objects and their contracts · Permalink · Source line 60 · Claim record · Lean coverage · Code · Worked examples
Definition 2.2: Packet operator representation
A finite packet operator representation consists of
where
and
Local blocks are identified with their ambient extensions by inclusion and projection. In particular, the notation \(P_\beta AP_\alpha\) denotes either the ambient block or its restriction \(X_\alpha\to X_\beta\) according to the displayed domain; \(\iota_\beta B_{\beta\alpha}\pi_\alpha\) is the corresponding ambient extension. Its evaluation is
where \(\iota_\beta:X_\beta\to X\) is the coordinate inclusion.
Visual guide: The objects and their contracts · Permalink · Source line 78 · Claim record · Lean coverage · Code · Worked examples
Theorem 2.3: Exact evaluation
Let \(A\in{\operatorname{End}}(X)\). Set
and let \(E\) contain exactly the nonzero blocks. Then
For every matrix of right hand sides \(Z\),
Read proof · Visual guide: A dense-looking matrix, one scalar coupling · Visual guide: Close the loop on the running example · Read statement and proof side by side · Permalink · Source line 101 · Claim record · Lean coverage · Code · Worked examples
Proof of Theorem 2.3
Insert the identity on both sides of \(A\):
The zero blocks can be removed. Applying the identity to \(Z\) gives the second formula.
Back to statement · Read statement and proof side by side · Permalink · Source line 123 · Claim record · Lean coverage · Code · Worked examples
Definition 2.4: Support graph
The support graph \(G_A\) has vertex set \(I\). It has a directed edge
when \(P_\beta AP_\alpha\neq0\).
Permalink · Source line 137 · Claim record · Lean coverage · Code · Worked examples

Theorem 2.5: Block composition
Let \(A,B\in{\operatorname{End}}(X)\). Then
Consequently,
where relational composition is defined by
when some \(\beta\) satisfies
Read proof · Visual guide: Two routes can cancel exactly · Read statement and proof side by side · Permalink · Source line 152 · Claim record · Lean coverage · Code · Worked examples
Proof of Theorem 2.5
Insert the packet identity between \(A\) and \(B\):
A summand can be nonzero only when both block addresses are active.
Back to statement · Read statement and proof side by side · Permalink · Source line 180 · Claim record · Lean coverage · Code · Worked examples
Corollary 2.6: Adjoint and tensor semantics
The adjoint representation has blocks
If \(A\) and \(B\) are packet resolved on \(X\) and \(Y\), then
Read proof · Read statement and proof side by side · Permalink · Source line 191 · Claim record · Lean coverage · Code · Worked examples
Proof of Corollary 2.6
Both identities follow by inserting the corresponding coordinate projectors and using
The tensor identity follows from
Back to statement · Read statement and proof side by side · Permalink · Source line 204 · Claim record · Lean coverage · Code · Worked examples
2.2 Output contracts
On this page · Permalink · Source line 219
Definition 2.7: Output contract
An output contract specifies the mathematical object returned by an algorithm. The contract may require an explicit vector, an explicit matrix, block factors, low rank factors, spectral factors, or an implicit operator with a declared application rule.
Visual guide: The objects and their contracts · Permalink · Source line 221 · Claim record · Lean coverage · Code · Worked examples
Definition 2.8: Timing scope
A timing scope states which costs are included. Possible costs include structure discovery, compilation, host transfer, device transfer, kernel execution, graph capture, graph replay, factor reconstruction, and explicit materialization.
Permalink · Source line 225 · Claim record · Lean coverage · Code · Worked examples
Proposition 2.9: Contract conversion
Suppose one algorithm returns a compressed representation \(R\) and another returns an explicit object \(Y\). A direct timing comparison is valid only if
and the time required by \(\operatorname{decode}\) is included, or if the downstream task consumes \(R\) directly.
Read proof · Visual guide: Same output before comparing times · Read statement and proof side by side · Permalink · Source line 229 · Claim record · Lean coverage · Code · Worked examples
Proof of Proposition 2.9
Without decoding, the two procedures return different mathematical objects. A timing ratio between different outputs does not compare implementations of the same map. Including the decoding cost gives two procedures with the same output. If the next operation consumes \(R\), decoding is not part of the declared computation.
Back to statement · Read statement and proof side by side · Permalink · Source line 237 · Claim record · Lean coverage · Code · Worked examples
Remark 2.10
A compressed product and an explicit matrix product may both be exact. They still have different contracts. This distinction becomes decisive when materialization costs \(n^2\) entries.