Repository navigation
E-STOP: valid CUSUM e-detector; swept collision check; honest bench - #5
Merged
Merged
Conversation
…nd docs - rt_fusion: the increment is log(cosh(mu z)) - mu^2/2, whose exponential has expectation exactly 1 under N(0,1), in a CUSUM e-detector (mean false-alarm run length >= threshold). Thresholds are 1e5 (WARN) and 1e9 (E_STOP); warm-up is 256. On pure noise, false E_STOP drops from 54% of 1 s runs to 0/2000; a 3-sigma shift is stopped in a median of 5 steps. - world_sim: collisions are checked on each step's segment, not its endpoint. - bench: the rollout loop is no longer optimised away (was 0 ns). - SreController docs say what it is (heuristic, not anytime-valid) and match the code (1.25x, actions returned). - Lean thresholds updated; the file checks on Lean 4.35.0. Fixes #2, fixes #3. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Owner
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #2 and #3.
Detector. The increment is now
log cosh(μz) − μ²/2. Its exponential has expectation exactly 1 under N(0,1), which a new test checks numerically. It runs inside a CUSUM e-detector, which guarantees that with no shift, the mean number of steps to a false alarm is at least the threshold. Defaults: WARN 1e5, E_STOP 1e9, warm-up 256 samples.Measured on pure noise (2,000 runs × 1,000 steps):
Rollout. Collisions are now checked against each step's segment, not just its endpoint. A regression test covers a step that jumps over an obstacle.
Bench. The rollout loop now does real work: 13 ns, where it printed 0 before.
Docs.
Tests: 8/8 on Zig 0.16.0, M2 Max.
🤖 Generated with Claude Code