code wiki / (root) / nx_var_gate.nx

nx_var_gate.nx

buildroot/runtime/nx_var_gate.nx

4889 B110 linesdepth 8pulls 13 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_var_gate.nx -- F991 INDEPENDENT GATE: VaR + Expected Shortfall. Proves exact quantile + tail-mean on a known series, ES >= VaR (coherence), monotonicity in confidence, sort-independence of input order, and the fail-closed refusal on an insufficient sample. license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0

dependencies 1 imports · 0 importers

nx_var_lib.nx nx_var_gate.nx

imports: nx_var_lib.nx

imported by: nobody (leaf or entry point)

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

main vg_puts vg_ck vg_puts ↻ vg_putn var_historical var_min_sample var_sorted_copy var_sort var_index var_expected_shortfall var_min_sample ↻ var_sorted_copy ↻ var_index ↻ var_min_sample ↻ vg_putn ↻

structs

none

consts

none

functions

8func vg_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 2: vg_ckmain
9func vg_putn(v: i64) -> i64
called by 2: vg_ckmain
23func vg_ck(cnt: *i64, name: *u8, got: i64, want: i64) -> i64
called by 1: main calls 2: vg_putsvg_putn
35func main(argc: i64, argv: *i64) -> i64