← The living map spec / 04-physics

4. Physical model

This document specifies the physics: what each layer models at its most accurate (reference) level. How each layer is computed, including cheaper numerical levels, is in 06-compute.md; the fidelity lattice (§3 there) lists the levels per layer. Every layer is a component with a defined interface (07-platform.md).

L1: Electrical (cable)

L2: Ion channels (genome-anchored)

L3: Chemical synapses (per synapse, per site)

L4: Electrical synapses (latent)

L5: Volume transmission (neuropeptides and monoamines)

L6: Ion homeostasis, glia and energy

L7: Slow regulation and plasticity (Regulatory Closure, H*)

This layer defines the developmental outcome that H* predicts: the complete regulatory dynamics, the initial state, the developmental schedule, and the rule that selects an equilibrium. The fixed-point solver in 06-compute.md §5 is a shortcut for this definition. It is valid only under the conditions stated there.

Regulatory program

For each cell type c, a regulatory program R_c includes:

Regulatory dynamics (canonical form)

For neuron i of type c, let z_i ∈ ℝⁿ be the regulatory state. Its coordinates are the integrator variables of the n regulated quantities: channel and receptor densities in log coordinates, synaptic scaling factors, and fast-path shifts of voltage-dependence. Biophysical parameters follow from it through the steady state of the expression cascade, θ_i = h_c(z_i). Every rule, in both families below, is written as

dz_i/dt = G_c(z_i) · e_i  −  D_c (z_i − z_c^ref)  +  O(‖e_i‖²)
e_i     = E_closed-loop[ s*_c(m_t) − σ_i(t) ]          (k-vector)

where:

Rules may include terms of higher order in e. Without leak, these terms vanish wherever e = 0, so they do not change the set of equilibria; they can change which equilibrium is reached ("When history matters", below).

Averaging is valid when regulation is slow relative to the mixing of closed-loop activity, including behavioral-state switching: ε = τ_mix / τ_reg ≪ 1, where τ_reg is the fastest regulatory timescale (the inverse of the largest eigenvalue magnitude of the loop gain, below). The averaged dynamics then follow the true regulated trajectory with error O(ε) over times O(1/ε). Coordinates with ε not small, typically parts of the fast path, are simulated in time together with activity, not averaged.

Rule families

Two families are fitted and compared, both in the canonical form:

  1. Mechanistic: calcium-sensor rules after Liu et al. (1998) and O'Leary et al. (2014). Both are constant-gain integral control: G_c is constant (in log coordinates for Liu's multiplicative rule) and D_c = 0.
  2. Learned local: small neural networks per family of cell types parameterize G_c(z), D_c, the sensor filters and the higher-order terms. Their inputs are restricted to the cell's own signals (voltage, Ca²⁺ bands, second messengers) and its own regulatory state. The number of sensors k is a hyperparameter.

The locality restriction is the hypothesis; the functional form is not. If only the learned family fits, the mechanistic rule was wrong but H* survives.

Two regulation timescales. Both families include:

The fast path explains immediate partial compensation after a perturbation and relaxes as the slow path takes over; the slow path explains persistent change. F3 time courses are fitted with both.

Set points can depend on neuromodulatory state. Neuromodulators from L5 can shift a type's set points (e.g. between fed and starved states), so homeostasis maintains a state-appropriate target instead of fighting modulation. This is a per-type function of local GPCR signaling, so it stays within the locality claim.

Initial state and developmental schedule

Equilibrium selection

Let M = {z : e(z) = 0} be the set where every neuron's averaged sensors meet its set points. With k sensors and n regulated quantities per neuron, M has dimension n − k per neuron. Meeting the set points therefore does not determine the parameters when k < n. What the dynamics select from M depends on the structure of the rule.

Case 1: integral control with constant gain (G_c constant, D_c = 0). This includes the mechanistic family.

Case 2: leak (D_c ≠ 0).

Case 3: state-dependent gain G_c(z).

When history matters

Activity history during development can leave a lasting effect on adult parameters, after conditions are restored, only through:

  1. several stable equilibria on the same slice or leaf;
  2. a non-involutive gain G_c(z) (Case 3);
  3. terms of higher order in e; a term in e² changes the state along directions outside range(G) whatever the sign of the error;
  4. active bounds on regulated quantities (saturation of expression), which break the conservation law while active;
  5. state outside the regulatory program, such as associative plasticity;
  6. a leak whose decay is slow compared with the animal's age (Case 2): a memory that fades rather than a lasting change.

In particular, constant-gain mechanistic rules predict no lasting effect of a transient developmental manipulation unless mechanism 1 or 4 applies. F7 tests the equilibrium shift during a sustained manipulation (F7a) separately from the effect that remains after it ends (F7b) (02-hypotheses.md).

Noise. Under Case 1 the slice conservation holds for every realization of activity, so fluctuations in e(t) only jitter the state around the slice equilibrium. Under mechanisms 2 and 3 the state is not confined in this way. Whether fluctuations then produce within-type variability that grows with age is an open question for the demonstrator. It is not assumed as a prediction: a first synthetic test with a non-involutive rule (n = 3, k = 2) showed no growth.

Identifiability from equilibria and from transients

Predicted within-type covariance

Linearize Case 1 around the slice equilibrium. Let δz₀ be the deviation of a neuron's initial state from its type mean, and δr the deviation of its averaged sensors from the type's set points that does not come from z: per-neuron set-point jitter, and differences in input and position in the circuit. The adult deviation is then

δz* = P δz₀ + G (J G)⁻¹ δr,      P = I − G (J G)⁻¹ J
Cov(z*) = P Σ₀ Pᵀ + G (J G)⁻¹ Σ_r (J G)⁻ᵀ Gᵀ

F4 tests these structures (02-hypotheses.md).

Development follows the measured connectome series, with uncertainty

Wiring changes during development, and under H* regulation tracks it. The worm has connectomes from the first larval stage to adulthood (Witvliet et al. 2021), but each comes from a different animal. Interpolating them directly would mix age-related change with individual variation. CAKE therefore uses a probabilistic developmental wiring model:

This gives an extra test: H* predicts how parameters change from stage to stage, and whether adult parameters depend on the developmental path.

Associative plasticity (learning)

Distinct from homeostasis, which pulls activity back to set points, learning changes synapses in response to experience and reward. It is modeled where the rules are well characterized: dopamine-gated depression of Kenyon cell → mushroom body output neuron synapses in the fly, and the identified circuits for salt and temperature associative learning in the worm. Plasticity rules are CKL mechanisms like any other.

Rearing history is an explicit input

Under H*, θ can depend on the activity each neuron experienced while it settled. The burn-in therefore needs a defined rearing environment: the distribution of sensory conditions, temperature and behavior during development. Default: the standard lab conditions of the animals that produced the data (e.g. 20 °C, fed, on agar for worms).

Sensitivity analysis re-runs burn-in under alternative rearing distributions and measures how much θ and the Emulation Ladder scores change. It reports two components separately:

Large sensitivity is a finding in its own right: it predicts that differently reared animals should differ in measurable ways (testable, e.g. in temperature-raised worms).

L8: Body and environment (closing the sensory loop)

Timescales and conservation