# Problems and worked solutions
These exercises use small invented mathematical inputs. Each has an exact answer that can be checked independently of the market corpus.
## 1 · An invariant and a non-invariant
A cyclic path has log rates 0.4, −0.1 and −0.2 in consistent log units. Change vertex potentials by h(A)=0, h(B)=0.3, h(C)=−0.1. Find the transformed rates, the path sum and the open A→B→C sum.
The three corrections are 0.3, −0.4 and 0.1. The transformed rates are 0.7, −0.5 and −0.1. Their sum is 0.1, matching the original. The open sum changes from 0.3 to 0.2 because the endpoint potential differs from the starting potential by −0.1. Any method treating an open-chain sum as a gauge-invariant feature must fix endpoint frames or supply an appropriate covariant output law.
## 2 · When the symmetric graph lies
Consider directed edges A→B, B→C and C→A. Now reverse C→A. The undirected graph remains a triangle in either example. Which one supplies an ordered directed-flag two-simplex? Which contains a directed three-cycle?
The first example contains the directed cycle and lacks the transitive orientation needed for a directed-flag two-simplex. The reversed case has A→C along with A→B and B→C, so (A,B,C) is an allowed two-simplex. It has no directed cycle. A model that consumes only an undirected degree sequence gives the same answer to both. Supplying one extra direction-sensitive feature can separate these two cases without solving general graph isomorphism.
## 3 · A face representative changes
Suppose z and z′ are closed edge chains with z′−z equal to the boundary of a face f. The measured curl at f is 0.7. What changes when a reader uses z′ to measure a period? Can a gauge change remove that difference?
The difference of the integrals is x paired with the face boundary, hence +0.7 in the stated orientation. A change by a vertex coboundary pairs to zero with both closed chains. Therefore the difference survives any such unit change. Zero face curl would have made the integral independent of these representatives.
## 4 · A legal flow with multiple parents
Draw a terminal with two parents. On reaching that terminal the backward policy chooses each parent with probability one half. Its target reward is 2 and the partition function is 4. What trajectory mass must arrive through each of the two single-parent trajectories?
With deterministic backward histories outside this choice, trajectory balance gives Z times trajectory probability equal to R times one half. Each trajectory therefore has probability one quarter and the terminal has probability one half. If both full trajectories were assigned one half, the terminal's probability would double while the stated normalization would no longer hold.
## 5 · A conditional bootstrap
One sampled day contains one hundred paired rows with mean MAE difference −0.02. A second contains ten rows with mean +0.05. Derive the empirical row-weighted difference and compare it to the equal-day-weighted difference.
The total difference is −2.0 + 0.5 = −1.5 across 110 rows, or about −0.01364 per row. Equally weighting the two daily averages gives +0.015. The two estimands have opposite signs. The implemented bootstrap resamples UTC days, aggregates their error totals and divides by their resampled row counts. Announcing that results were block-bootstrapped does not specify the estimand without that last detail.
## 6 · A classification denominator
Three windows contain two positive opportunities. A predictor acts twice, chooses one positive route correctly and selects the wrong orientation in the other positive window. Compute proposal precision and positive-window recall. What happens if a new split has no positive observations?
Both precision and recall are one half on the first three windows. In the second split recall is undefined because its denominator is zero. Precision is zero if the model still makes at least one proposal, and undefined if it makes none. The aggregate receipts encode undefined quantities as JSON null. Replacing them with zero or one changes how averages over splits are interpreted.
# Sources and reproducibility record
The theoretical chapters link to primary references at the point of use. They describe the scope of reported results and selected constructions. The numerical claims use local aggregate training and evaluation receipts. This edition has no private quote rows, weights or model-service credentials. The documented implementation reader contains selected source functions from the research checkout.
## Evidence for the results
The campaign aggregate contains 26 unique configurations and checkpoint digests, five coordinate-check widths and 12 selected-checkpoint holdout entries. The phase aggregate contains 12 configurations and 36 holdout entries. The matched circuit-rule aggregate adds six configurations and 18 holdout entries. All three identify the same frozen data-manifest digest. The companion source directory retains these aggregate JSON records and the measured convergence summaries available at compilation.
A public tree inventory recorded 6,535 source blobs and 119 PDF objects. Counts include multiple source editions and generated files. The underlying review covered atlas pages, immediate mathematical constructions and selected predecessor interfaces. This book does not claim a proof audit of every file. The figure code and phase tables can be regenerated from the bundled aggregates without weights or raw data.
! Pinned research atlas and source tree | https://github.com/amelie-iska/GRH-research/tree/e941b50772fb5aff322644badfbe9fb260b4d46c
! Interactive experiment tables | https://amelie-iska.github.io/phaseweave-lab/results.html
! Public model card and gated checkpoint downloads | https://huggingface.co/AmelieSchreiber/PhaseWeave-FX-Pilot
! Public dataset catalog and access terms | https://huggingface.co/datasets/AmelieSchreiber/PhaseWeave-FX-Windows-Catalog
! Project inference interface and hosted demo status | https://amelie-iska.github.io/phaseweave-lab/#inference
## Rebuilding this edition
The standalone TeX source and two plotted figure PDFs compile with XeLaTeX and latexmk. The HTML edition includes the text, searchable navigation, offline calculators and a reader-controlled public lab embed. Store the figures directory beside the HTML and TeX. To recreate both editions from their text sources, run the following commands in the book directory. Python uses its standard library. TeX requires the packages named in the preamble and the Georgia, Arial and Courier New fonts or suitable local replacements.
```
python3 source/make_results.py
python3 build_book.py
latexmk -xelatex -outdir=build phaseweave.tex
cp build/phaseweave.pdf phaseweave.pdf
```
The plot data come from the model summary receipts and epoch-level validation aggregates. To recreate either chart, regenerate its PGFPlots source and compile the corresponding figure from the figures directory, then convert its first PDF page to a PNG for the HTML edition. Original quote archives remain external to the book.
## License and attribution
Required Notice: Copyright 2026 Amelie Schreiber. The project applies the PolyForm Noncommercial License 1.0.0 to its original software and documentation. Separately identified third-party materials, provider data and model weights retain their accompanying terms. The source bundle includes the project license and notice.
! PolyForm Noncommercial License 1.0.0 | https://polyformproject.org/licenses/noncommercial/1.0.0/
