code wiki / (root) / nx_simhash_test.nx

nx_simhash_test.nx

buildroot/runtime/nx_simhash_test.nx

2313 B53 linesdepth 5pulls 8 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_simhash_test.nx -- KAT for the SimHash near-duplicate kernel. Native sovereign lane; exit 0 = pass, N = assertion N failed. Relational invariants (deterministic, no hand-computed fingerprints): identical => Hamming 0 / similarity 1.0; a near-dup is strictly closer than an unrelated doc; near-dup detection + clustering collapse copies while keeping unrelated content as its own canonical.

dependencies 3 imports · 0 importers

fx.nx nx_str.nx nx_simhash.nx nx_simhash_test.nx

imports: fx.nxnx_str.nxnx_simhash.nx

imported by: nobody (leaf or entry point)

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

main nx_simhash_fingerprint nx_inv_is_token_char nx_inv_hash_bytes_lower nx_str_len nx_simhash_hamming nx_bits_popcount64_soft nx_simhash_similarity_q16 nx_simhash_hamming ↻ fx_from_frac nx_simhash_is_near_dup nx_simhash_hamming ↻ nx_simhash_cluster nx_simhash_hamming ↻ nx_simhash_min_hamming nx_simhash_hamming ↻

structs

none

consts

none

functions

13func main() -> i64