Repository navigation
RH-CRYPTO-26 / RH-05: exact finite-field count-to-find negative-control gym - #64
Draft
patrickdugan wants to merge 5 commits into
Draft
patrickdugan wants to merge 5 commits into
patrickdugan wants to merge 5 commits into
Conversation
5 tasks
Comment on lines
+22
to
+39
| runs-on: ubuntu-latest | ||
| timeout-minutes: 10 | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: "3.12" | ||
| - name: Install EvalMath test requirements | ||
| run: python -m pip install -e ".[test]" | ||
| - name: Exact finite domain tests | ||
| run: python -m pytest -q tests/test_rh_count_to_find.py | ||
| - name: Generate development-only receipt | ||
| run: PYTHONPATH=src python scripts/verify_rh_count_to_find.py --phase dev --output output/rh_count_to_find/dev.json | ||
| - uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: rh-count-to-find-development | ||
| path: output/rh_count_to_find/dev.json | ||
| if-no-files-found: error |
This branch has not been deployed
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.
Adds
An exact affine finite-field gym where each two-variable equation has p solutions over F_p². The count stays constant while lexicographic first-witness search ranges from 1 to p²-p+1; an explicit algebraic solver constructs a witness in one query. Computes the exact worst-case bound and negative-hypergeometric random-query expectation, verifies counts by exhaustive enumeration, and scores explicit point-query sequences.
Scientific boundary
This is a finite exact control that demonstrates why a point-count estimate does not imply a cheap given search procedure. It does not establish hardness for affine systems, Semaev, cryptographic signatures, or stronger GRH. Independent units, source hashes, evidence classification and confirmation-phase sealing are recorded.
Reproduction
PYTHONPATH=src python -m pytest -q tests/test_rh_count_to_find.pyPYTHONPATH=src python scripts/verify_rh_count_to_find.py --phase dev --output output/rh_count_to_find/dev.jsonDraft pending external CI.