code wiki / (root) / nx_commons_sybilcost_gate.nx

nx_commons_sybilcost_gate.nx

buildroot/runtime/nx_commons_sybilcost_gate.nx

4433 B83 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind gate/prooftopic commons
docsdependenciesstructsconstsfunctions

about

nx_commons_sybilcost_gate.nx -- measures the sybil bound instead of asserting it. The claim under test is the trust-flow theorem: total standing reachable by an attacker depends on ATTACK EDGES, not on the number of identities minted. T2 is the tooth -- multiply the sybils by 1000 with the attack edges held fixed, and the attacker's total must not move by one unit. T1 bite-proves it against the naive vouch-counting rule kept as a negative control, which grows linearly with identities and is therefore farmable for free. license_tier: ORIGINAL expect_exit: 0

dependencies 2 imports · 0 importers

nx_gate_verdict.nx nx_commons_sybilcost.nx nx_commons_sybilcost_gate.nx

imports: nx_gate_verdict.nxnx_commons_sybilcost.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main gv_ctr sys_mmap nxa_die sys_write sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ gv_head gv_puts sys_write ↻ sc_standing_flowbound sc_standing_naive sc_per_sybil sc_standing_flowbound ↻ sc_cost_permil gv_puts ↻ gv_num sys_mmap ↻ sys_write ↻ sys_munmap gv_bite gv_puts ↻ gv_check gv_puts ↻ sc_honest_unchanged gv_verdict gv_note_bare_rate gv_bare_rate gv_at gv_obj_has_n

structs

none

consts

12const SG_UNIT: i64 = 100 // standing per vouch under the naive rule
13const SG_VOUCH_EACH: i64 = 3 // vouches each sybil awards itself via its ring

functions

15func main() -> i64