TLA+ Model for GP-OIE NEB Control

This note captures the GP-OIE NEB control-loop policy. It models the state-machine behavior that is outside SymPy’s domain: target-selection priority, accepted-band rollback, oracle/refit phase boundaries, MPI rank synchronization, domain-decomposed oracle ownership, and the rule that final convergence is certified only from the accepted band.

Files:

The model abstracts geometry to a finite accepted-band level:

  • a certified surrogate step increases the accepted-band level

  • a trust- or variance-rejected surrogate trial creates an acquisition candidate and latches evalNextI

  • a rejected trial cannot mutate the accepted band

  • evalNextI target selection dominates climbing-image and variance targets

  • oracle evaluation and GP refit phases leave the accepted band unchanged

  • convergence requires the accepted band to reach the converged level

  • all ranks have synchronized control metadata after collectives

  • oracle work is partitioned so each evaluated slot has exactly one owner rank

The model intentionally does not cover:

  • GP kernel algebra

  • floating-point behavior

  • L-BFGS numerical convergence

  • posterior variance formulas

  • distributed-backend kernel-matrix ownership

Those are numerical and symbolic proof obligations, not controller transition-system obligations.

Repository task:

pixi run apalache-gp-oie-state-machine

Equivalent direct invocation. JAVA_HOME must name the selected JDK; the Apalache package path below is the system-wide default:

"${JAVA_HOME}/bin/java" -Xmx4096m -XX:+UseG1GC \
  -jar /usr/share/java/apalache/apalache.jar \
  check --no-deadlock \
  --config=docs/verification/gp_oie_state_machine.cfg \
  docs/verification/gp_oie_state_machine.tla

Apalache checks the typed finite model plus the listed safety invariants.

Oracle refusal coverage

The model’s OracleEval action always advances to append and increases the training count. It does not model contact rejection or exceptions from the potential, so its termination property does not cover refused acquisitions.

The native controller tests in GPNEBOieTest.cpp exercise these cases. GpOieContactRefusalDoesNotSpinOrCertifyMissingData requires an unconverged return without exhausting the outer loop or marking refused images as measured. GpOieOracleRefusalTriesOtherImagesWithoutRepeatingTheRequest requires distinct alternative requests and preserves the training set when every interior evaluation fails.

A panel of successful searches exercises these conditions only if it contains refused acquisitions. Saddle acceptance alone does not establish coverage of controller failure paths.