Paper VIReading edition

Computational implementation

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

18 Computational implementation

The accompanying Python package implements the formulas and finite models used in the paper.

projector_transfer_semigroups

The computational organization mirrors the paper:

\[ \begin{array}{c|l} \texttt{packets.py} & \text{projectors, blocks, reconstruction, block composition}\\ \texttt{semigroup.py} & \text{matrix semigroups, defects, Feshbach operators, memory}\\ \texttt{markov.py} & \text{random walks, exact lumping, survival}\\ \texttt{bayes.py} & \text{normalized updates, packet evidence, conjugacy, flows, HMM}\\ \texttt{conditional.py} & \text{conditional expectation and Gaussian chaos}\\ \texttt{fractional.py} & \text{spectral powers, subordination, and fractional refinement certificates}\\ \texttt{pde.py} & \text{Dirichlet Laplacians, Green kernels, eigenvalue error}\\ \texttt{feynman\_kac.py} & \text{weighted transfer and exhaustive path enumeration}. \end{array} \]

18.1 Representative algorithms

def bayes_update(prior, likelihood):
    p = normalize(prior)
    evidence = likelihood @ p
    if evidence <= 0:
        raise ValueError("positive evidence required")
    return likelihood * p / evidence
def block_composition(left, right):
    result = []
    for beta in range(len(left)):
        row = []
        for alpha in range(len(left)):
            value = sum(
                left[beta][gamma] @ right[gamma][alpha]
                for gamma in range(len(left))
            )
            row.append(value)
        result.append(row)
    return result
def feshbach_effective_operator(A, retained, z):
    App, Apq, Aqp, Aqq = split_blocks(A, retained)
    return z*I - App - Apq @ inv(z*I - Aqq) @ Aqp

The full implementation, tests, tables, figure-generation code, and exact numerical record are included with the release rather than embedded in the typeset paper.

Source and conversion record

Source SHA-256: 736e615131f57daf341b6cb0600761d58950450947c85d433206148cca228333

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 VI

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