Reference evaluator, stdlib round 1: 217 functions from the chapters — 412/610 evaluated, 409 agree, abstains 434 to 198; exact float text; findings F7-F10 - #42
Merged
Conversation
…shortest digits (ALS-T13), round-half-even to_fixed on the exact binary value (ALS-T9), correctly rounded decimal-to-binary64 for any digit count (ALS-T2); two host-oracle tests hold it to ~6000 samples, the host appearing only as the test oracle
…05/0006 rules — code-point strings with the T1 whitespace set and Final_Sigma, T8 parse grammars as the fixtures pin them (unicode trim, the real from_hex), T6 termination aborts, T14-T16 masks and truncation doctrines, T23 zero-order min/max, T24 conversions, first-err fallible callbacks, in-place mutators; bindings become shared slots (closure writes flow, shadowing freezes), propagation carries its polarity (Option channels, C-211), fan.any/settle, unique-field-set record retag
…ted, 409 agree with native, 0 faults); the T23 zero-order fixtures carry @ref-allow while 0.58.0 lags the ratified rule; PARSER-NOTES second pass records P14-P16 and findings F7-F10 (T16 vs C-054, S3 per-predicate lifts, T8's real grammars, the T23 lag)
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 stdlib long tail, first burn-down round (#10's standing ratchet).
Numbers over
spec/wasm_cross+spec/programs(610 programs)@ref-allowproofs/ref-abstain.toml, shrink-only)What lands
ref/src/fmtfloat.rs— the evaluator's own float text: exact big-integer Dragon4 shortest digits (ALS-T13),to_fixedas round-half-even on the exact binary value (ALS-T9), and correctly rounded decimal→binary64 for ANY digit count/exponent (ALS-T2, denormals and saturation included). Held to the host formatter/parser by two oracle tests over ~6,000 samples — the host appears only as a test oracle.division by zero,integer overflow, clamp/rotate/chunk messages), T8 parse grammars as pinned, T14/T16 mask and truncation doctrines, T23 zero-order min/max, T24 conversions, ADR-0006 first-err fallible callbacks in every HOF, in-place mutators.varwrite is observed outside — closure_captured_list_mutation, sort_by_call_count; a shadowingletstays frozen — ref_gleam_capture_shadow); propagation carries its polarity so an Option-returning pure fn propagatesnoneasnone(C-211, pure_bang_propagation);fan.any/fan.settle; checker-style nominal retag of anonymous records with a unique field set.New findings (PARSER-NOTES F7–F10) — normative prose vs executable evidence, before any implementation is judged
string.take(s, -1)= WHOLE (the as-usize doctrine). Prose and evidence disagree.is_alphanumeric("")= false,is_digitis ASCII-only and empty-false,is_whitespace("")= TRUE,is_upper/lowerare Python-style.int.parsetrims the T1 Unicode whitespace set (T8 is silent);int.from_hexis notfrom_str_radix— lowercase0xprefixes strip repeatedly (0x0x0x10= 16),0Xdoes not, the sign may follow the prefix (0x-ff= -255).@ref-allowtracks both fixtures until the pin advances (the T23 chapter already declares its suite files red).🤖 Generated with Claude Code