Back to Experiments

25-Case S-Smoothness Contingency

Hypothesis

The sign of the convergence score \(S\) predicts solution smoothness: \(S \geq 0\) implies smooth evolution, while \(S < 0\) precedes blow-up. A refined threshold \(S \geq -\epsilon\) for small \(\epsilon\) may improve classification by tolerating transient negative excursions that do not lead to blow-up.

Method

  1. Run 25 simulations of the viscous Burgers equation with varied initial conditions and viscosity values spanning laminar to turbulent regimes.
  2. Classify each simulation as smooth (gradient bounded throughout) or non-smooth (gradient exceeds blow-up threshold).
  3. Record the minimum \(S\) value attained during each simulation. Classify as \(S \geq 0\) or \(S < 0\).
  4. Build the \(2 \times 2\) contingency table. Sweep threshold \(\epsilon\) from 0 to 1 and compute precision/recall at each.
  5. For non-smooth cases, record the temporal gap between first \(S < 0\) and blow-up onset.

Results

Contingency Table (threshold \(S = 0\))

SmoothNon-smoothTotal
\(S \geq 0\) throughout505
\(S < 0\) at some step14620
Total19625

At \(S = 0\): precision = 6/20 = 0.30, recall = 6/6 = 1.00. Zero false negatives, but 14 false positives.

Refined Threshold: \(S \geq -0.2\)

SmoothNon-smoothTotal
\(S \geq -0.2\) throughout19019
\(S < -0.2\) at some step066
Total19625

At \(S = -0.2\): precision = 6/6 = 1.00, recall = 6/6 = 1.00. Perfect classification on all 25 cases.

Temporal Lead Analysis

Case\(S < 0\) timeBlow-up timeLead (time units)
10.411.230.82
20.381.050.67
30.521.180.66
40.290.980.69
50.441.100.66
60.351.070.72

Average lead: 0.70 time units. \(S\) is always negative BEFORE blow-up — never simultaneous or after.

Analysis

  • S = 0 is necessary but noisy. At threshold 0, recall is perfect (all blow-ups caught) but precision is poor (70% false positive rate). Many smooth solutions have transient negative \(S\) excursions.
  • \(S = -0.2\) is the sweet spot. Shifting the threshold to \(-0.2\) eliminates all false positives while retaining perfect recall. The 14 smooth-but-\(S < 0\) cases all have \(\min(S) > -0.2\).
  • Temporal ordering is strict. In all 6 non-smooth cases, \(S\) goes negative before blow-up, with an average lead of 0.70 time units. This is consistent with \(S\) detecting the regularity loss mechanism before it manifests as gradient blow-up.
  • Physical interpretation. The \(-0.2\) threshold may represent the boundary between recoverable and irrecoverable force imbalance: small negative excursions are self-correcting, but \(S < -0.2\) indicates runaway dynamics.
Caveats. (1) 25 cases is a small sample; the optimal threshold \(-0.2\) may overfit this dataset. (2) The threshold is likely viscosity- and resolution-dependent. (3) Results are for 1D Burgers only. (4) Perfect precision/recall on 25 cases does not imply a universal classifier.

Conclusion

The 25-case contingency study confirms that \(S \geq 0\) is a necessary condition for smoothness (zero false negatives at threshold 0). A refined threshold of \(S \geq -0.2\) achieves perfect precision and recall on this dataset. Temporally, \(S\) always becomes negative before blow-up, with a consistent lead of ~0.70 time units, supporting its use as an early-warning diagnostic for regularity loss.

Reproducibility

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

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

./build/exp_ns_smoothness

Related