Repository navigation
Fuzz: subnormal floor in the norm check - #165
Merged
Merged
Conversation
The nightly run of 2026-11-11 failed on tv1d_l2 with the row (d, d, 0, 0), d = 2^-1074: the piecewise mean d/2 comes back as d, so |z| = 2d against |x| = 1.41d. No double is closer to the mean; the check had only a relative tolerance. It now allows each entry of z a few subnormals, as check_structure does. The library is unchanged. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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.
The nightly fuzz run of 2026-11-11 (run 43008741247) failed with
a norm-like prox grew |z| beyond |x|ontv1d_l2(float64, γ = 1.703). This is a false positive in the harness; the library is unchanged.Cause
The row was (d, d, 0, 0) with d = 2^-1074, and the prox returned (d, d, d, d). The exact result is the row's mean d/2, which no double represents: 0 and d are equally close, and the kernel returns d. That gives ‖z‖ = 2d against ‖x‖ = 1.41d, and the check had only a relative tolerance.
Change
The norm check in
fuzz/fuzz_ops.cppnow allows each entry of z a few subnormals, the floorcheck_structurealready uses. Relative to the row's largest entry the allowance is below 1e-15 once that entry is a normal number, so the check is as strict as before at ordinary scales.Verification
fuzz_ops_standalonebefore the change and passes after it.🤖 Generated with Claude Code