Repository navigation
[VFDLIBM-33] State the contract of functions of two arguments in the docs - #127
Merged
Merged
Conversation
…docs Generated-by: Claude Code (Fable 5.2)
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.
Purpose
Part of #33.
atan2is in the nightly and the next release, and the docs state the contract as raw bits on every lane, which is false onatan2's lane of two NaNs with different bits. The wording is the owner's to amend: each edited sentence is short, so it is easy to change. Docs and Javadoc only; no code.What changed
The three drafts quoted in #115 are applied: the contract sentence in
AGENTS.md("Releases";CLAUDE.mdis its symlink), oneCHANGELOG.mdline underUnreleased/Changed(a clarification of the contract that changes no result and asks a client for nothing; the file's rules put what a user reads under Added, Changed or Fixed), and "a raw-operator row (SqrtBenchmark) may take the*Benchmarkname" inAGENTS.md's benchmark bullet. Every statement of the contract was grepped for inAGENTS.md,CHANGELOG.md,README.md,PLAN.md,PROOFS.md,SKILLS.md,VFdlibm's Javadoc,bench/,dev/andpom.xml:AGENTS.md: the opening line, "Bit identity" (a function of two arguments is compared byPairBits), "Same result, proven", the harness line (Oracle,PairBits), the arm sentence (every arm gives the same bits; on a two-NaN lane, one of the declared candidates), the contract sentence (exception withOPERANDSforatan2andpow,MAGNITUDESforhypot; unary functions keep raw bits, NaN payloads included), and "each lane still meets that contract".CHANGELOG.md: the header sentence gets the exception, and the one new line above. The per-function Added lines are true as they are (theatan2line already states the exception).README.md: the headline and the Status paragraph (the exception isatan2's, unreleased; no released function has a two-NaN lane), the property sentence, and the nightly sentence, which said every night sweeps all high words: a function of two arguments is swept one argument a night, the two alternating by default (pair-passes). The "Bit identity" bullet already had the exception; "forhypot, also with the sign bit cleared" now reads "the same".PLAN.md: the goal, step 2 of "How it grows", the rule that every lane stays bit-identical, and "The contract". The "what it holds" line is about the five unary ports and is true as it is.PROOFS.md: the first sentence.VFdlibm's Javadoc: the class exception names a function of two arguments (atan2) and its candidate.SKILLS.md,bench/: no statement of the contract. Left as they are:pom.xml's description ("bit-identical tojava.lang.StrictMath", the artifact's tagline) anddev/jar-check.sh's messages ("gets StrictMath's bits"), whose consumer already applies the pair rule; the owner can decide on either.NightlyJavadoc nits are already fixed on main.How it was tested
Docs only. The unchanged suite compiles (the Javadoc edit) and
ProofsTest,ProofFilesTest,NightlyTestandPairHarnessTestpass. No line this PR adds is over 100 columns.Compatibility
None: no code and no result changes.
AI tooling
Generated-by: Claude Code (Fable 5.2)