code wiki / (root) / nx_debt_strategy_gate.nx

nx_debt_strategy_gate.nx

buildroot/runtime/nx_debt_strategy_gate.nx

3318 B65 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind gate/prooftopic debt
docsdependenciesstructsconstsfunctions

about

nx_debt_strategy_gate.nx -- proves the debt-payoff strategist on hand-verified fixtures: monthly interest, avalanche vs snowball target selection, a full single-debt payoff (3 months, $1.52 interest), the avalanche- minimises-interest invariant on a 2-debt case, and the underwater (can't-meet-minimums) hardship signal. Exits 0 iff all pass. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_gate.nx nx_debt_strategy.nx nx_debt_strategy_gate.nx

imports: nx_gate.nxnx_debt_strategy.nx

imported by: nobody (leaf or entry point)

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

main chk gw sys_write gn sys_write ↻ sys_mmap ds_month_interest ds_simulate sys_mmap ↻ ds_month_interest ↻ ds_snowball_target ds_avalanche_target ds_avalanche_target ↻ ds_snowball_target ↻ ds_can_meet_minimums sys_mmap ↻ ds_simulate ↻ gw ↻ gn ↻

structs

none

consts

none

functions

8func chk(name: *u8, got: i64, want: i64, st: *i64) -> i64
called by 1: main calls 2: gwgn
14func main() -> i64