"""Independently reproducible exact finite result: every AP edge is essential. Run: python3 edge_essentiality.py [--json] No numerical optimization, tolerances, network access, or imported proof results. """ from functools import lru_cache from itertools import combinations import json, hashlib, sys A = (-19465109,0,3545689,5427075,6005963,7091378,7308461, 7545719,7671611,7710347,7782977,7797503,7813379, 7821803,7824395,7829255,7830227,7835411,7836059, 7836707,7849019,7874975,7884659,7894343,8078339, 8466237,8610959,8755681,11505399,19465109) def edges(a=A): return tuple((i,j,k) for i in range(len(a)) for j in range(i+1,len(a)) for k in range(j+1,len(a)) if a[i]+a[k]==2*a[j]) def exact_cover(a, ee, limit): """Branch on first uncovered 3-AP. Every hitting set chooses one endpoint.""" incidence = tuple(sum(1<>v)&1)] verify_survivor(survivors,exception,ee) rows.append({"removed_ap_indices_0based":list(exception), "surviving_18_indices_0based":survivors}) return {"schema":"nightfall-sidon-edge-essentiality-v1", "scope":"One frozen 30-point weak (4,5) integer set; no asymptotic conclusion", "points":list(A), "point_count":30,"ap_edge_count":28, "minimum_ap_hitting_set_size":13, "full_no_12_cover_states":states, "theorem":"Each of the 28 three-term AP constraints is essential: deleting any one admits 18 survivors with only that AP, whereas all 28 forbid 18 AP-free survivors.", "edge_deletion_witnesses":rows} def check(doc): assert doc["points"]==list(A) and doc["ap_edge_count"]==28 ee=edges() assert len(doc["edge_deletion_witnesses"])==len(ee) for e,row in zip(ee,doc["edge_deletion_witnesses"]): assert row["removed_ap_indices_0based"]==list(e) verify_survivor(row["surviving_18_indices_0based"],e,ee) answer,states=exact_cover(A,ee,12) assert answer is None and states==doc["full_no_12_cover_states"] # Mutation negative control: a corrupted witness is rejected. broken=list(doc["edge_deletion_witnesses"][0]["surviving_18_indices_0based"]) broken[0]=999 try: verify_survivor(broken,ee[0],ee) except AssertionError: pass else: raise AssertionError("corrupted certificate was accepted") if __name__=="__main__": doc=certificate() check(doc) raw=json.dumps(doc,sort_keys=True,indent=2,ensure_ascii=False)+"\n" print("PASS: all 28 AP constraints essential; exact no-12-cover states:", doc["full_no_12_cover_states"],file=sys.stderr) print("Certificate JSON SHA-256:",hashlib.sha256(raw.encode()).hexdigest(),file=sys.stderr) if "--json" in sys.argv: sys.stdout.write(raw)