MORPHOGENETIC CONSTRAINT CALCULUS

Program the organization.

One program. Three dynamical systems. Test what survives.

02REALIZE IN
3 MODELS
EVOLVING40 × 40 SITES / SEALED
BISTABLE ORDER PARAMETER
LOWHIGH
STATE PERTURBED
0000TICKS
Actual simulated state

Distance to target

measured MAE contract
0 ticksDimensionless time · t = 0.00
◌

A language experiment, grounded in explicit dynamics. These are three dimensionless model families. Pattern recovery uses an encoded template; the memory program tests retention after a temporary input. Physical feasibility and universal computation remain open questions.

ASK SOMETHING FALSIFIABLE

Same source. Different equations.

Measure conformance across models, or search for local constraints that satisfy your target.
Both use the current compiled program. Results are computed here, from the actual equations.

RestoreRing
EXPERIMENT 01

Cross-model conformance

Run one program across all three models and three fixed seeds. Scramble 20% of states, measure recovery, then compare with the external drive removed from the start.

3 MODELS3 SEEDS250 RECOVERY TICKS
EXPERIMENT 02

Constraint synthesis

Search 18 configurations of template density, strength and local coupling. Fit on two seeds; test on two unused seeds. The search favors low error and a smaller input proxy.

18 CANDIDATES2 TRAIN + 2 TESTBISTABLE MEDIUM

No answers before the experiment.

Run a suite to replace this space with measured results.

01 / EXECUTABLE GRAMMAR

Constraints are the program.

MCC 0.1 is deliberately bounded. It compiles named programs into a structured, validated constraint representation. There is no arbitrary JavaScript evaluation. Comments begin with #. Each declaration takes one line.

InstructionMeaning
domain grid 40 40 boundary sealed12–64 sites per axis. Sealed or periodic neighbors.
seed 42Reproducible initial conditions, mask, noise and perturbations.
initial noise 0.25Uniform state in [−0.25, +0.25]. Alternative: initial uniform low or high.
target ring radius 0.28 width 0.12Binary goal mask, in fractions of each domain axis.
target bands count 3Three vertical HIGH bands. Also: target disk radius 0.25 or target uniform high / low.
target bitmap 010/111/010Any rectangular binary mask, nearest-neighbor resampled onto the domain. Up to 64 × 64. Use Draw a target to create one.
couple local strength 0.45Four-neighbor interaction k ∈ [0, 2].
memory bistable strength 1.0Double-well strength, or regulatory self-activation.
guide target density 0.85 strength 1.25Randomly place persistent signed target biases. Density is a Bernoulli probability.
drive write strength 1.5 until 140Spatially uniform write pulse, off at tick 140. Use a negative pulse to write LOW.
noise 0.015Additive Gaussian diffusion amplitude σ; deterministic for a given seed.
evolve steps 650 dt 0.04Finite numerical horizon and dimensionless step size.
require error < 0.12Contract on the full-domain mean absolute readout error.

Required: a program Name { header, exactly one target (including an arbitrary bitmap), and a closing }. Other instructions have defaults visible in the IR. Unknown and duplicate declarations fail compilation.

02 / ACTUALLY DIFFERENT DYNAMICS

One interface, three realizations.

Each site has a signed state x. The graph Laplacian is Lxᵢ = Σⱼ(xⱼ − xᵢ) over surviving four-neighbors. A missing site removes its links. The local input b is a persistent masked target bias plus an optional write pulse.

These are phenomenological numerical models, not calibrated chemical, mechanical or biological twins. Reusing an interface does not establish that arbitrary physical materials support it.

Integration uses deterministic Heun (second-order explicit Runge–Kutta), followed by Euler–Maruyama noise. Mechanical noise is applied to velocity; the other models receive state noise. The grid spacing is one model unit: changing resolution changes the modeled system.

03 / MEASURE, THEN COMPARE

Give every claim a number.

  • Target error: y = clip((x + 1)/2, 0, 1). Mean |y − target| across the full grid. Removed sites receive maximum error 1.
  • State agreement: fraction of all original sites with the correct HIGH/LOW sign. Missing sites always fail.
  • Recovery T₉₀: first return to 90% of the immediate quality loss, sustained for 10 ticks. Time is in model units, not seconds. It is undefined if the perturbation did not reduce quality.
  • Input proxy: ∫ mean(b²)dt. It tracks the applied drive in dimensionless units. It is not energy in joules and does not support hardware-efficiency claims.
  • Cross-model distance: mean absolute difference between final bounded fields using seed 17. It tests a finite output relation, not full dynamical equivalence.
  • Constraint synthesis: minimize mean training error + 0.012 × density × strength² over 18 candidates. Evaluate the winning candidate on seeds 43 and 71 without retraining.

Conformance uses seeds 17, 43 and 71, equal ticks and dt, the same mask and initial-state draws per seed, and 250 extra ticks after state damage. Regulatory rates and mechanical relaxation are not calibrated to the same physical clock.

04 / THE CLAIM HAS A BOUNDARY

A useful prototype of a general idea.

This lab demonstrates an executable common representation for three families of local dynamical systems, plus bounded inverse design and numerical conformance tests. It does not prove Turing universality, substrate independence for arbitrary matter, spontaneous biological repair, an unknown field, or a new source of energy.

The target mask is known to the compiler. In guided programs it is encoded as local bias, not discovered from nothing. Scrambling state tests restoration; deleting matter tests performance with permanently missing sites. The current system cannot regrow deleted sites.

The retention program provides a separate test: a uniform input writes a bit, then turns off. Some nodes can remain in the wrong attractor after damage. Export both passing and failing runs.

Scientific starting points

Allen & Cahn’s bistable domain dynamics motivate the relaxational model. Gardner, Cantor & Collins’s toggle switch is a physical example of engineered bistable memory; this app does not reproduce its molecular equations. Turing’s morphogenesis paper provides context for local rules and spatial organization; these guided patterns are not a two-species Turing instability.

This workbench implements the MCC proposal in the supplied research, Toward a General Computational Language for Programming the Organization of Matter, as a small, inspectable numerical experiment.

KEEP THE EVIDENCE

Export this experiment

Capture the program, measured history, or exact state needed to continue this run.

Full application sourceZero dependencies · includes numerical tests↧

SPECIFY THE ORGANIZATION

Draw a target

Paint HIGH sites on a 24 × 24 mask. Drag to draw; start on a HIGH site to erase. The mask becomes part of the MCC source and is compiled into local constraints.

0% HIGH

For exact or keyboard editing, write target bitmap 010/111/010 in the source. 1 is HIGH, 0 is LOW.