Repository navigation
Floors and ceilings of n over a whole number are decided over its residues - #1566
Merged
Merged
Conversation
…idues A comparison between floors and ceilings of linear functions of n and a linear part repeats with the least common multiple of the floors' denominators where the drifts cancel: over a period, a floor of (p/q) n + b rises by as much as the linear terms do. The residues then decide it, as they decide a divisibility: floor(n/2) + ceil(n/2) = n and Hermite's identity for thirds hold for every whole n. Part of #1409. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
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.
forall n in ZZ : floor(n/2) + ceil(n/2) = nwas left as written. It isTruenow, as is Hermite's identity for thirds,floor(n/3) + floor((n + 1)/3) + floor((n + 2)/3) = n.Floors and ceilings over residues (
Quantifiers.DriftlessPeriod, in the comparison case ofPeriod):(p/q) n + brises by exactlypwhennrises byq, and a linear term rises by its slope timesq.n, beside a linear part, repeats with the least common multiple of theqs wherever those rises cancel.floor(n/2) = n/2isFalsefor all wholen,ceil(n/2) - floor(n/2) <= 1isTrueoverZZ+, and no wholenhasfloor(n/2) + ceil(n/2) = n + 1.It declines unless each argument is linear in
nwith a rational slope and the rises sum to nothing. The residue periods already in place then answer, or nothing does.Suite: 13,363 passed, 0 failed on net10.0, and every target framework builds. Gate: passed, with allocation as the baseline says on all 19 gated benchmarks.
BREAKING-CHANGES.mdhas the entry, after the one for congruences, with 2.5.0 measured.Part of #1409.
🤖 Generated with Claude Code
https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura