Repository navigation
SIDE24 periodization remainder: second-order term below 1e-218 (explicit D²Φ majorant; closes #144 §5 open item at candidate level) #156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
d6g8k5htny-coder
merged 2 commits into
main
from
claude/side24-periodization-remainder-20260929
Sep 29, 2026
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,97 @@ | ||
| name: SIDE24 periodization remainder checks | ||
|
|
||
| 'on': | ||
| pull_request: | ||
| paths: | ||
| - 'frontiers/side24_periodization_remainder_20260929/**' | ||
| - '.github/workflows/side24-periodization-remainder.yml' | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| exact-and-probe: | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 10 | ||
| steps: | ||
| - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 | ||
| with: | ||
| persist-credentials: false | ||
| - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 | ||
| with: | ||
| python-version: '3.11.16' | ||
| - name: Verify sources, replay both modes, reject mutants | ||
| env: | ||
| PYTHONDONTWRITEBYTECODE: '1' | ||
| run: | | ||
| set -euo pipefail | ||
| python -B -S - <<'PY' | ||
| import hashlib, json, pathlib, subprocess, sys | ||
| root = pathlib.Path('frontiers/side24_periodization_remainder_20260929').resolve() | ||
| manifest = json.loads((root / 'SOURCE_FILES.json').read_text()) | ||
| present = sorted(p.name for p in root.iterdir()) | ||
| expected_names = sorted([e['path'] for e in manifest['files']] + ['SOURCE_FILES.json']) | ||
| if present != expected_names: | ||
| raise ValueError('packet tree differs from manifest: ' + repr(present)) | ||
| for entry in manifest['files']: | ||
| path = root / entry['path'] | ||
| if pathlib.PurePosixPath(entry['path']).name != entry['path'] or path.is_symlink(): | ||
| raise ValueError('flat regular source required: ' + entry['path']) | ||
| data = path.read_bytes() | ||
| if len(data) != entry['bytes'] or hashlib.sha256(data).hexdigest() != entry['sha256']: | ||
| raise ValueError('source identity mismatch: ' + entry['path']) | ||
| # consumed sources must be the bytes the note binds to | ||
| for entry in manifest['consumed']: | ||
| data = pathlib.Path(entry['path']).read_bytes() | ||
| if len(data) != entry['bytes'] or hashlib.sha256(data).hexdigest() != entry['sha256']: | ||
| raise ValueError('consumed source drifted: ' + entry['path']) | ||
| # This key records the historical input, even after #144 merges. | ||
| # Never substitute the checkout's later, corrected #144 proof. | ||
| historical = manifest['consumed_unmerged'] | ||
| required_path = 'frontiers/side24_periodization_20260929/PROOF.md' | ||
| if (not isinstance(historical, list) or len(historical) != 1 | ||
| or historical[0]['path'] != required_path): | ||
| raise ValueError('historical #144 dependency is required') | ||
| for entry in historical: | ||
| commit = entry['commit'] | ||
| if (not isinstance(commit, str) or len(commit) != 40 | ||
| or any(c not in '0123456789abcdef' for c in commit)): | ||
| raise ValueError('full historical commit SHA required') | ||
| exists = subprocess.run( | ||
| ['git', 'cat-file', '-e', commit + '^{commit}'], | ||
| stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL).returncode == 0 | ||
| if not exists: | ||
| subprocess.run( | ||
| ['git', 'fetch', '--no-tags', '--depth=1', 'origin', commit], | ||
| check=True, timeout=120) | ||
| if subprocess.check_output(['git', 'cat-file', '-t', commit]).strip() != b'commit': | ||
| raise ValueError('historical source must name a commit') | ||
| tree = subprocess.check_output( | ||
| ['git', 'ls-tree', '-z', commit, '--', entry['path']]) | ||
| expected_tree = ('100644 blob ' + entry['git_blob'] + '\t' | ||
| + entry['path'] + '\0').encode() | ||
| if tree != expected_tree: | ||
| raise ValueError('historical source path/blob mismatch: ' + entry['path']) | ||
| data = subprocess.check_output(['git', 'cat-file', 'blob', entry['git_blob']]) | ||
| blob = hashlib.sha1(b'blob ' + str(len(data)).encode() + b'\0' + data).hexdigest() | ||
| if (len(data) != entry['bytes'] | ||
| or hashlib.sha256(data).hexdigest() != entry['sha256'] | ||
| or blob != entry['git_blob']): | ||
| raise ValueError('historical source identity mismatch: ' + entry['path']) | ||
| script = str(root / 'remainder_check.py') | ||
| expected = (root / 'RESULTS.json').read_bytes() | ||
| mutants = ['M1', 'M2', 'M3'] | ||
| for flags in (['-B', '-S'], ['-B', '-O', '-S']): | ||
| out = subprocess.run([sys.executable, *flags, script], | ||
| check=True, capture_output=True, timeout=300).stdout | ||
| if out != expected: | ||
| raise RuntimeError('output differs from RESULTS.json under ' + ' '.join(flags)) | ||
| for m in mutants: | ||
| rc = subprocess.run([sys.executable, *flags, script, '--mutant', m], | ||
| capture_output=True, timeout=300).returncode | ||
| if rc != 1: | ||
| raise RuntimeError('mutant ' + m + ' not rejected') | ||
| print(json.dumps({'scientific_effect': 'NONE', 'mathematical_acceptance': False})) | ||
| PY | ||
| git diff --exit-code | ||
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.