#!/usr/bin/env python3 """Exact core certificates, permanent tail, and conditional capacity arithmetic. Python 3.10+, standard library only. No assertions, floating point, external data, or numerical eigensolver. The low-degree absolute-minor coefficients are supplied here, not recomputed. The companion orbit/minor checker and retained geometric verifiers compute them separately. This is not an exact maximum-fiber calculation or a practical speed claim. """ from hashlib import sha256 from itertools import combinations, permutations, product from math import gcd from pathlib import Path import json Q=339949771344778 D=25000000000000000 H=4948372000 PIN='40bc6a1d52efab3d75cf343e65ac06b314f9c9c375fc02bf6d45bf6bb21f9529' def require(ok, message): if not ok: raise ArithmeticError(message) def graph(): vertices=set() for i in range(4): for s in (-1,1): v=[(0,0)]*4 v[i]=(2*s,0) vertices.add(tuple(v)) for signs in product((-1,1),repeat=4): vertices.add(tuple((s,0) for s in signs)) even=[p for p in permutations(range(4)) if sum(p[i]>p[j] for i in range(4) for j in range(i+1,4))%2==0] for a,b,c in product((-1,1),repeat=3): v=((0,0),(a,0),(0,b),(-c,c)) vertices.update(tuple(v[i] for i in p) for p in even) vertices=sorted(vertices) neighbors=[[] for _ in vertices] for i,j in combinations(range(len(vertices)),2): x=y=0 for (a,b),(c,d) in zip(vertices[i],vertices[j]): u,v=a-c,b-d x+=u*u+v*v y+=2*u*v+v*v if (x,y)==(8,-4): neighbors[i].append(j) neighbors[j].append(i) fixture={ 'coordinate_rule': 'vertex coordinate is (a+b*phi)/2 for pair [a,b]', 'neighbors':neighbors, 'schema':'OMEGA_600CELL_GRAPH_FIXTURE/1', 'vertex_order': 'Python lexicographic order of tuples of four integer pairs', 'vertices':vertices} raw=(json.dumps(fixture,sort_keys=True,separators=(',',':'))+'\n').encode() require(sha256(raw).hexdigest()==PIN,'graph identity') require(len(vertices)==120 and all(len(v)==12 for v in neighbors), 'dimension and degree') return neighbors def bareiss_positive(a): a=[list(row) for row in a] n=len(a) previous=1 minors=[] for k in range(n): pivot=a[k][k] require(pivot>0,'positive leading determinant') minors.append(pivot) for i in range(k+1,n): for j in range(k+1,n): num=a[i][j]*pivot-a[i][k]*a[k][j] value,remainder=divmod(num,previous) require(remainder==0,'exact Bareiss division') a[i][j]=value a[i][k]=0 previous=pivot return minors def multiply_M(a,neighbors): return [[13*a[i][k]+sum(a[j][k] for j in neighbors[i]) for k in range(120)] for i in range(120)] def polynomial_product(a,b): c=[0]*(len(a)+len(b)-1) for i,x in enumerate(a): for j,y in enumerate(b): c[i+j]+=x*y return c def permanent_coefficients(matrix): """All rectangular minor permanent sums by descending-mask updates.""" m=len(matrix) require(m>0 and all(len(row)==len(matrix[0]) for row in matrix), 'rectangular matching matrix') require(all(type(x) is int and x>=0 for row in matrix for x in row), 'nonnegative integer matching weights') dp=[1]+[0]*((1<D,'quantization inequalities') require(8**120==2**360,'modulo-eight capacity') require(2**430<12**120<2**431,'modulo-twelve capacity') require(0(2**351*delta)**13,'same-cover 351-bit obstruction') return { 'schema':'OMEGA_PAPER_IX_CORE_CERTIFICATE/1','status':'PASS', 'graph_sha256':PIN,'dimension':120,'degree':12, 'M_minus_9I_positive_leading_minors':len(positive), 'positive_leading_determinants':[str(v) for v in positive], 'inverse_denominator':H,'inverse_row_norm_numerator':norm, 'determinant_M':str(delta),'witness_bits':360, 'recomputed_permanent_coefficients':permanent, 'supplied_absolute_minor_coefficients_not_recomputed':supplied_a, 'partial_volume_L7':str(L7),'upper_volume_U':str(U), 'threshold_352_arithmetic_passes':True, 'same_cover_351_obstruction_arithmetic_passes':True, 'global_cover_checked_by_this_script':False, 'low_degree_coefficients_recomputed_by_this_script':False, 'source_sha256':sha256(Path(__file__).read_bytes()).hexdigest()} if __name__=='__main__': print(json.dumps(verify(),indent=2,sort_keys=True))