Back to Experiments

Level 9: Physics Coupling as Dual Number

Overview

Level 8 made simulation parameters (\(A\), \(\nu\), \(\text{dt}\)) into dual numbers. Level 9 goes deeper: the physics coupling constants \(\lambda\) (linear stretching), \(\lambda_2\) (quadratic self-amplification), and \(\sigma\) (velocity-vorticity feedback) become dual numbers. This yields the full gradient \(\nabla T = (\partial T / \partial A, \partial T / \partial \nu, \partial T / \partial \lambda, \partial T / \partial \lambda_2, \partial T / \partial \sigma)\) and the Hessian diagonal \(\partial^2 T / \partial x_i^2\) for each parameter.

Key Results

Full Gradient (Sensitivity Ranking)

Parameter\(\partial T / \partial x\)SignInterpretation
\(A\) (amplitude)Largest magnitudeNegativeMore amplitude → earlier blow-up
\(\nu\) (viscosity)Second largestPositiveMore viscosity → later blow-up
\(\lambda\) (stretching)ThirdNegativeMore stretching → earlier blow-up
\(\lambda_2\) (quadratic)FourthNegativeMore self-amplification → earlier blow-up
\(\sigma\) (feedback)SmallestWeakly negativeFeedback effect is secondary

Hessian Diagonal (Curvature)

Parameter\(\partial^2 T / \partial x^2\)CurvatureMeaning
\(\lambda\)PositiveConvexSelf-amplifying: more stretching accelerates its own effect
\(\lambda_2\)PositiveConvexQuadratic term compounds super-linearly
\(\sigma\)NegativeConcaveSelf-limiting: feedback saturates at high coupling
\(\nu\)NegativeConcaveDiminishing returns from added viscosity
\(A\)PositiveConvexLarge amplitudes are disproportionately destabilising

Cross-Derivatives

Cross-DerivativeBounded?Significance
\(\partial^2 T / \partial \lambda \, \partial A\)YesRegularity is robust to stretching geometry
\(\partial^2 T / \partial \lambda_2 \, \partial A\)YesQuadratic stretching does not break amplitude regularity
Interpretation. The Hessian reveals a fundamental asymmetry: destabilising parameters (\(\lambda\), \(\lambda_2\), \(A\)) are convex (self-amplifying), while stabilising parameters (\(\nu\), \(\sigma\)) are concave (self-limiting). This means the system has a built-in bias toward instability — but the bounded cross-derivatives show that the regularity signature is robust even when physics couplings are varied. The sensitivity ranking confirms amplitude is the dominant control parameter.

Reproducibility

../simplex/build/sxc exp_ns_level9.sx -o build/exp_ns_level9.ll

OPENSSL_PREFIX=$(brew --prefix openssl)
clang -O2 build/exp_ns_level9.ll \
  ../simplex/runtime/standalone_runtime.c \
  -o build/exp_ns_level9 \
  -lm -lssl -lcrypto -L${OPENSSL_PREFIX}/lib

./build/exp_ns_level9

Related