Algorithm boxes (complete forms)
Notation: F is the discrete Fourier transform; · a Fourier coefficient; the 2/3 rule zeroes the top third of wavenumbers (dealiasing). These are the complete pseudocode forms of the in-body algorithm boxes. Each is written so that a reader, or an AI, can re-implement the result directly from this appendix—without opening the bundle—and reach the stated tolerance. [LOCK]
Notation: F is the discrete Fourier transform; · a Fourier coefficient; the 2/3 rule zeroes the top third of wavenumbers (dealiasing).
These are the complete pseudocode forms of the in-body algorithm boxes.
Each is written so that a reader, or an AI, can re-implement the result directly
from this appendix—without opening the bundle—and reach the stated tolerance.
Notation: is the discrete Fourier transform;
a Fourier
coefficient; the
rule zeroes the top third of wavenumbers (dealiasing).
Pillar I — 2D Euler/Navier–Stokes invariants
Input: grid , viscosity
, band-limited initial vorticity
, time
, domain
.\\
Steps:
- Build wavenumbers
;
; inverse
(zero at
); dealias mask
.
- Stream function
; velocity
,
.
- Nonlinear term
.
- Time step by integrating-factor RK4 using the exact viscous factor
(so the linear part is integrated exactly).
- Each step record
and
.
Pillar II — the RCCI capacity identity
Input: published audit samples, each a tuple .\\
Steps:
- For each sample compute the predicted count from the identity
, i.e.
.
- Residual
(and the analogous residuals of any derived metric reported in the audit).
Pillar III — length selection and the one-half law
Input: dispersion offsets , curvature
, hyper-diffusion
over a range (linear part), and a Swift–Hohenberg field (nonlinear part).\\
Steps:
- Linear growth rate
.
- Maximize:
, independent of
; selected length
.
- Sweep
; fit slope of
vs
.
- (Nonlinear) integrate Swift–Hohenberg to a steady pattern; measure the dominant wavenumber.
Pillar IV — budget closure and Onsager saturation
Input: injection , viscous coefficient
, binding coefficient
,
range of
.\\
Steps:
- Evolve
to steady state
.
- Split dissipation: viscous
, binding
.
- Check closure
; track
as
.
Pillar IV — events carry the flux (Burgers Duchon–Robert)
Input: viscosity , grid
, time
; decaying Burgers from
.\\
Steps:
- Integrate spectral Burgers (IF-RK4,
dealiasing) until a shock forms.
- Locate the shock (steepest descent,
); measure the jump
across it.
- Viscous dissipation
.
- Duchon–Robert flux density
with a Gaussian filter
, at an inertial scale
.
- Concentration: fraction of
within
of the shock.
Pillar IV — 2D NS flux concentrates on events (multid_flux.py)
Input: grid , viscosity
, time
, filter scale
;
band-limited random vorticity (energy near
).\\
Steps:
- Evolve 2D NS (vorticity, IF-RK4,
dealiasing) to a filamented snapshot.
- Gaussian-filter at
:
; recover
via the stream function.
- Subfilter vorticity flux
(filter the product, subtract the product of filtered fields).
- Local enstrophy flux
; palinstrophy density
.
- Sort cells by
(events first); cumulate the positive flux
; read the top-
fraction, the area carrying half, and
. Repeat for
at fixed physical
.
Pillar IV — 3D NS energy flux concentrates on strain events (ns3d.py)
Input: grid , viscosity
, step
, forcing energy
, filter
; random divergence-free IC.\\
Steps:
- Evolve 3D NS (velocity/rotational form, IF-RK4,
dealias), holding the energy in
at
(low-
forcing), until developed: the velocity-derivative skewness
.
- Gaussian-filter at
; form the subfilter stress
and the filtered strain
.
- Local energy flux
; strain density
.
- Sort cells by
(events first); cumulate the positive flux; read the forward fraction, the top-
share, the half-flux volume, and
. Repeat for
at fixed physical
.
Event RG — the plateau (
event_rg.py)
Input: exponents ; coarse-graining factor
;
steps; initial
.\\
Steps:
- Each step record
.
- Coarse-grain:
,
,
.
- Gap
.
Mechanism M — forced co-rotation, merger, pumping (corotation.py)
(M1) Frustration co-rotation. Build the contact graph of a square
and a triangular lattice; greedy two-colour it (counter-rotation attempt); count
frustrated edges.\\
pass: square
(bipartite
counter-rotate, net
);
triangular
(not bipartite
co-rotate forced).\\
(M2) Co-rotation
larger rotation. 2D Navier–Stokes; two strongly
overlapping Gaussian vortices, same or opposite sign; integrate; count connected
strong-vorticity blobs (
).\\
pass: same-sign
(merged); opposite
.\\
(M3) Rotation
through-flow. Ekman spiral
,
; radial inflow
transport
; fit
vs
.\\
pass: slope
(
), measured
.
G-Q — the lattice-with-inflow (
lattice_inflow.py)
Input: 3D lattice co-rotating cells
nozzle; planar
disk slice
for the Biot–Savart test; rotation
,
.\\
Steps:
- Net circulation around a loop enclosing the disk cells, for co-rotating signs and for an alternating control.
: net radial flux of a regular divergence-free field through an enclosing sphere
(Gauss
regularity, no external source).
: axial through-flux
fed by the Ekman radial inflow
(open rotation axis).
Universality U1–U3 (universality.py)
(U1) Burgers anomalous dissipation. Integrate Burgers at several ;
record
. pass:
saturates (
-indep,
spread).\\
(U2) Capacity identity in dimension
. For
form
and
from a packed core. pass:
(identity, dimension-general).\\
(U3) Reaction–diffusion selection. Two-species dispersion; locate the
fastest-growing mode
. pass:
matches the
extremum-selection prediction to
–
.
Extensibility E1–E4 (extensibility.py, rigid_shell.py)
(E1) Genome fluid. Condensate identity
in
; droplet preferred size at jamming
.
pass: residual
.\\
(E2) Droplet
length selection. Rayleigh–Plateau dispersion of a
liquid column; maximize growth. pass:
,
.\\
(E3) Plane breathes, sphere closes. Planar continuity
(axial outflow); spherical
(no axis). pass:
2D sustains, 3D closes.\\
(E4) Rigid shell.
,
empty (Legendre), so
;
-fold rate
; quantum length
triangulated
three ways. pass:
spread
; relative spread of
narrows
as coordination grows.
Marginal substrate — relaxed moduli and the fluidity intercept (marginal_fluidity.py)
setup: D bidisperse (
, ratio
) harmonic spheres,
for
, periodic box
;
,
(
values)
seeds.\\
minimize: L-BFGS
FIRE
L-BFGS to residual force
.
backbone: iteratively remove rattlers (contacts
);
.\\
moduli (analytic, FD-verified): affine (Born) shear
; bulk
with virial pressure
; mismatch
assembled per bond.\\
non-affine (the trap and its avoidance): never form an
eigendecomposition pseudoinverse—near the margin the soft modes make
over-subtract through near-zero
weights.
Instead pin
DOF of the most-coordinated backbone particle,
Cholesky-factor the reduced positive-definite
, solve, apply
iterative-refinement steps; then
with
by construction. Keep negative accepted
values if any occur (no clamping).\\
acceptance (physical, untuned): jammed (
),
positive-semidefinite (Cholesky succeeds), residual force
.\\
fit: pooled
; bootstrap (
) CI for
. pass: CI
;
monotone in
;
finite at the lowest-
quartile;
size-independent.\\
result:
, CI
(
); quartile means
;
spread
; softening
;
accepted,
negative.
Rotation unjams; forced-radius attractor (unjam_inflow.py)
packings: as above, ,
(
values)
seeds.\\
rigid rotation: extension per bond under
is
; measured
. PASS\\
shear reserve: per extending bond the breaking strain is
; track the distribution (
,
median) across the
ensemble against pressure. pass:
ratio
,
,
(the single first break is
extreme-value noise: reported, not gated).\\
attractor: integrate
(RK4) from
with inherited
. pass:
all
to
;
.
Transition class — the G-SOC rules land on DP (transition_dp.py, 3 stages)
model: 1D ring; reserve from the pseudogap
(
, flagged); inactive site unjams if
; active re-jams w.p.
; toggled sites
redraw
. All-inactive is absorbing.\\
stage 1: slope-matched bisection (
k,
k), then
curvature-minimised refine (
k,
k):
,
.\\
stages 2–3: spreading (
,
k):
windows
,
,
hyperscaling sum
vs
; lifetimes
(
censored); activity correlation (fit
):
vs
.\\
pass: five for five on DP (
d); mean-field (
) and
compact-DP (
) excluded. SOC avalanche
: cutoff
at
below threshold, thin statistics — reported, not gated.