Paper VIIIReading edition

Three exact models

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

Three exact models before the general theory

These models use exact integers and rational numbers. Their costs and integer errors are declared illustrative quantities. The figures display the computed records. They do not report timings or identify actual hardware precision types.

A low rank action and its inverse

Set

\[ D={\operatorname{diag}}(2,3,4,5),\qquad u=(1,0,1,0)^T,\qquad v=(1,1,0,0)^T, \]

and define \(A=D+uv^T\). Its entries are shown in the figure. The same operator can be stored by its diagonal and two thin vectors rather than by every matrix entry. For \(x=(1,2,3,4)^T\), first form \(v^Tx=3\). Then

\[ Dx=(2,6,12,20)^T,\qquad u(v^Tx)=(3,0,3,0)^T, \]

so \(Ax=(5,6,15,20)^T\). Only the first and third output coordinates receive the correction.

Exact finite action of a diagonal operator plus one thin correction. The bars display the same action as the explicit matrix.
Exact finite action of a diagonal operator plus one thin correction. The bars display the same action as the explicit matrix.

View full-size figure (new tab)

The inverse starts with the same representation. Write \(y=Ax\). Since \(D\) is invertible,

\[ D^{-1}u=(1/2,0,1/4,0)^T,\qquad 1+v^TD^{-1}u=3/2\ne0. \]

The scalar Woodbury core is therefore invertible. Its correction coefficient is

\[ \frac{v^TD^{-1}y}{1+v^TD^{-1}u} =\frac{9/2}{3/2}=3. \]

Subtracting that correction recovers the original input:

\[ D^{-1}y-3D^{-1}u =(5/2,2,15/4,4)^T-(3/2,0,3/4,0)^T=x. \]

What the output contract preserves

The diagonal and thin vectors use twelve scalar slots, compared with sixteen for the explicit matrix. This small storage count assumes the full thin vectors are stored. It does not predict elapsed time. A compressed action returns \(Ax\). Materializing all entries of \(A\) produces another output and incurs its own work. The general formulas appear in Theorem 2.3 and Theorem 5.3.

A budget can select a point that no Lagrangian selects

Consider a rooted candidate tree. The root \(r\) has children \(a,b\), and \(a\) has children \(a_1,a_2\). Split overheads are zero. Each retained node has the following declared cost and integer error:

Candidate-tree node costs and errors
Node\(r\)\(a\)\(b\)\(a_1\)\(a_2\)
Cost12131
Error64010

Exactly three prunings are possible:

All three legal prunings
Selected nodesTotal costTotal error
\(r\)16
\(a,b\)34
\(a_1,a_2,b\)51

For a Lagrangian multiplier \(\lambda\ge0\), their objectives are \(1+6\lambda\), \(3+4\lambda\), and \(5+\lambda\). The middle pruning can be optimal only if

\[ 3+4\lambda\le1+6\lambda\quad\text{and}\quad 3+4\lambda\le5+\lambda. \]

These inequalities require \(\lambda\ge1\) and \(\lambda\le2/3\) simultaneously. There is no such multiplier. The root and full split exchange optimality at \(\lambda=4/5\), where both have objective \(29/5\).

The finite candidate tree has three prunings. The middle point is optimal under error budget four, although no nonnegative Lagrangian multiplier selects it.
The finite candidate tree has three prunings. The middle point is optimal under error budget four, although no nonnegative Lagrangian multiplier selects it.

View full-size figure (new tab)

The budget problem still selects that middle pruning. Under the constraint \({\operatorname{err}}\le4\), the root is infeasible. The two feasible costs are three and five, so the minimum is three. Under budget one, only the full split is feasible. Under budget six, the root is cheapest. Thus the budget program adds something that changing \(\lambda\) cannot recover.

The dynamic recurrence gives the same Lagrangian choices without listing prunings. At \(a\), it compares \(2+4\lambda\) with \(4+\lambda\). At \(r\), it compares \(1+6\lambda\) with \(1+F_\lambda(a)\). Its exactness follows from the finite tree and additive model in Theorem 9.4 and Theorem 9.8. Overlapping decompositions or nonlocal execution costs need another argument.

Discrete precision follows the sensitive edge

Suppose three packet edges each admit a fast option F and an accurate option A. The names describe the supplied model, rather than any actual scalar type. Exactly one option is chosen on each edge:

Fast and accurate options for each packet edge
FA
EdgeCostErrorCostError
11540
21230
31130

The all-fast assignment FFF has cost three and error eight. It exceeds budget three. Changing only edge one to A gives AFF, with cost \(4+1+1=6\) and error \(0+2+1=3\). Changing only edges two and three gives FAA, with cost seven and error five. That choice still exceeds the budget.

All eight assignments can be checked directly:

All eight discrete precision assignments
AssignmentCostErrorAssignmentCostError
FFF38AFF63
FFA57AFA82
FAF56AAF81
FAA75AAA100
The shaded region satisfies the supplied error budget. AFF is the unique minimum-cost assignment in that region. The model protects the first edge before spending on less sensitive edges.
The shaded region satisfies the supplied error budget. AFF is the unique minimum-cost assignment in that region. The model protects the first edge before spending on less sensitive edges.

View full-size figure (new tab)

The exact recurrence reaches the same result. After edge one, only \(({\operatorname{err}},{\operatorname{cost}})=(5,1)\) and \((0,4)\) are reachable. After edge two, the reachable states are \((7,2)\), \((5,4)\), \((2,5)\), and \((0,7)\). Extending these with either option on edge three gives the final eight assignments. Among states of error at most three, the lowest cost is six.

The certificate belongs to the model

The integer error weights must be supplied by a stated certificate or quantization rule. The recurrence solves that finite model exactly. Kernel accumulation, overflow, underflow, scaling, and shape support require their own assumptions before an actual implementation can use the result. The precise recurrence is Theorem 8.7.

The complete rational records, dynamic tables, and five rejected false controls are reproduced by generate_monograph_examples.py. Figure generation converts those records to plotting coordinates only after the exact checks pass.

Source and conversion record

Source SHA-256: 0fb4c0314e1bb6ee2b52b970019462160830ee5fcb5a7b1c0915514999ccf2d0

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