Repository navigation
The least member of a set is found by search where its condition is not a bound - #1554
Merged
Merged
Conversation
…ot a bound min(x, x in S and P) was decided only where P is a bound. Where it is not, the members of ZZ+, ZZ* or PP are tried in order from the least, and the first whose condition evaluates to True is the least: Sullivan and Mackey's Prob 8.9.3, the least n with n binomial(n - 1, 2) >= 14, is 5. A condition that does not evaluate to a truth value, or none of the first 4096 members holding, leaves it as written. 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.
min(x, x in S and P)was decided only wherePis a bound, so Sullivan and Mackey's Prob 8.9.3 stayed as written:min(n, n in { n in ZZ+ : n binomial(n - 1, 2) >= 14 }). It is5now.The least member by search (
ExtremumOverSet): when the condition is not a bound, the members ofZZ+,ZZ*orPPare tried in order from the least, and the first one whose condition evaluates toTrueis returned. Every member before it was tried and came outFalse, so it is the least. Primes are stepped withNextPrime. The search declines if a condition does not evaluate to a truth value, or if none of the first 4096 members holds. Somin(x, x in ZZ+ and x^2 < 0), which has no member, stays as written.Suite: 132 tests pass on net10.0 in PrimeSetTest and ExtremumTest, and every target framework builds. The whole suite ran on this branch merged with the other open #1409 and #1540 branches: 13,422 passed, 0 failed. Gate on that merge: passed, with allocation as the baseline says on all 19 gated benchmarks.
BREAKING-CHANGES.md: theminentry is extended, with a row measured on 2.5.0.Part of #1409.
🤖 Generated with Claude Code
https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura