Paper VIIIReading edition

Packet operator representations

Reading tools
Reading libraryFind statementsInspect Lean
Switch work

Saved reading

Read side by side

Start reading

Resources & source

Original TeX with line links · Download TeX

The wording and mathematics follow the retained manuscript. This reading format does not add a proof review or extend Lean coverage.

Skip contents and start reading

2 Packet operator representations

2.1 Exact semantics

Definition 2.1: Packet layout

A packet layout is a finite family of finite dimensional Hilbert spaces

\[ {\mathcal P}=(X_\alpha)_{\alpha\in I} \]

with direct sum

\[ X=\bigoplus_{\alpha\in I}X_\alpha. \]

Write

\[ n_\alpha=\dim X_\alpha, \qquad n=\sum_{\alpha\in I}n_\alpha. \]

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\).

Definition 2.2: Packet operator representation

A finite packet operator representation consists of

\[ {\mathsf{IR}}=({\mathcal P},E,(B_{\beta\alpha})_{(\beta,\alpha)\in E}), \]

where

\[ E\subseteq I\times I \]

and

\[ B_{\beta\alpha}:X_\alpha\longrightarrow X_\beta. \]

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

\[ \operatorname{eval}({\mathsf{IR}}) = \sum_{(\beta,\alpha)\in E} \iota_\beta B_{\beta\alpha}\pi_\alpha, \]

where \(\iota_\beta:X_\beta\to X\) is the coordinate inclusion.

Theorem 2.3: Exact evaluation

Let \(A\in{\operatorname{End}}(X)\). Set

\[ B_{\beta\alpha}=\pi_\beta A\iota_\alpha \]

and let \(E\) contain exactly the nonzero blocks. Then

\[ \boxed{ A= \sum_{(\beta,\alpha)\in E} P_\beta AP_\alpha. } \]

For every matrix of right hand sides \(Z\),

\[ AZ = \sum_{(\beta,\alpha)\in E} \iota_\beta B_{\beta\alpha}\pi_\alpha Z. \]

Proof of Theorem 2.3

Insert the identity on both sides of \(A\):

\[ A = \left(\sum_\beta P_\beta\right) A \left(\sum_\alpha P_\alpha\right) = \sum_{\alpha,\beta}P_\beta AP_\alpha. \]

The zero blocks can be removed. Applying the identity to \(Z\) gives the second formula.

Definition 2.4: Support graph

The support graph \(G_A\) has vertex set \(I\). It has a directed edge

\[ \alpha\longrightarrow\beta \]

when \(P_\beta AP_\alpha\neq0\).

A packet intermediate representation stores active block addresses together with dimensions, block types, tolerances, and scheduling metadata.
A packet intermediate representation stores active block addresses together with dimensions, block types, tolerances, and scheduling metadata.

View full-size figure (new tab)

Theorem 2.5: Block composition

Let \(A,B\in{\operatorname{End}}(X)\). Then

\[ \boxed{ (AB)_{\gamma\alpha} = \sum_{\beta\in I} A_{\gamma\beta}B_{\beta\alpha}. } \]

Consequently,

\[ {\operatorname{supp}}(AB) \subseteq {\operatorname{supp}}(A)\circ{\operatorname{supp}}(B), \]

where relational composition is defined by

\[ (\gamma,\alpha)\in E\circ F \]

when some \(\beta\) satisfies

\[ (\gamma,\beta)\in E, \qquad (\beta,\alpha)\in F. \]

Proof of Theorem 2.5

Insert the packet identity between \(A\) and \(B\):

\[ P_\gamma ABP_\alpha = \sum_\beta P_\gamma AP_\beta BP_\alpha. \]

A summand can be nonzero only when both block addresses are active.

Corollary 2.6: Adjoint and tensor semantics

The adjoint representation has blocks

\[ (A^*)_{\alpha\beta}=A_{\beta\alpha}^*. \]

If \(A\) and \(B\) are packet resolved on \(X\) and \(Y\), then

\[ (A\otimes B)_{(\beta,\delta),(\alpha,\gamma)} = A_{\beta\alpha}\otimes B_{\delta\gamma}. \]

Proof of Corollary 2.6

Both identities follow by inserting the corresponding coordinate projectors and using

\[ (P_\beta AP_\alpha)^*=P_\alpha A^*P_\beta. \]

The tensor identity follows from

\[ (P_\beta\otimes Q_\delta) (A\otimes B) (P_\alpha\otimes Q_\gamma) = A_{\beta\alpha}\otimes B_{\delta\gamma}. \]

2.2 Output contracts

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.

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.

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

\[ \operatorname{decode}(R)=Y \]

and the time required by \(\operatorname{decode}\) is included, or if the downstream task consumes \(R\) directly.

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.

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.

Source and conversion record

Source SHA-256: ef616bca9291ac766d492b88f3166be4bc2b39f9ba6034dea3a4bcf2d2bf5d7f

Unsupported prose commands stop the build. The mathematical expression sequence is checked against the source, with manuscript macros expanded for display.

Conversion records

Notation in Paper VIII

Look up a symbol without leaving this chapter. Select text before opening help to search for it.

Search this work’s notation.

    Symbols can have different meanings in different passages. Read each result in its own context.

    Open the full notation index