waxmorph.emulator

waxmorph.emulator#

Differentiable Warp mechanics and graph diffusion for fixed-size tissue.

Each step discovers neighbors before warp.Tape recording and replays a frozen pair list. The gradient contract covers recorded state arithmetic. Mechanics records radii in its pair arithmetic when they require gradients; package bridges expose gradients for their documented inputs. The forward simulator provides type-dependent forces, chemistry, growth, and division.

Functions

diffusion_step_differentiable(tape, X, R, c, ...)

Record graph diffusion with concentration gradients.

mech_step_sticky_differentiable(tape, X, R, ...)

Record mechanics with frozen topology.