code wiki / (root) / nx_em_experiment.nx

nx_em_experiment.nx

buildroot/runtime/nx_em_experiment.nx

7318 B176 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind orphan library
docsdependenciesstructsconstsfunctions

about

nx_em_experiment.nx -- substrate primitive that turns Tesla-class claims into bits-up, repeatable, falsifiable Nishi experiments. Doctrinal stance: we do NOT take secondhand "mainstream physics says no" or "Wardenclyffe never demonstrated it" as the verdict. The substrate is the apparatus. Every claim is held as TBD until our own measurements -- driven by nxc2-compiled .nx code with no external dependency -- produce a sealed verdict. Each experiment is a record: - claim_id (sealed enum, declared below) - hypothesis_text (caller-provided pointer, audit-only) - rig_id (sealed enum: which apparatus rig) - protocol_seed (rng seed for reproducibility) - measured_q10 (scalar result; Q10 fixed-point so MCUs work) - threshold_q10 (verdict threshold, Q10) - verdict (sealed enum below) Genealogy: this primitive composes nx_perf_verdict (sealed verdict pattern) + nx_self_audit (introspection) + the cardinal feedback-honest-perf-verdict-no-aspirational-claims. Every Tesla claim becomes a row in our self-audit; the operator can read which rig reached which verdict on which date, and what the next improvement is. genealogy_id: feedback-honest-perf-verdict-no-aspirational-claims + nx_perf_verdict + nx_self_audit + tesla_wardenclyffe_1901 + schumann_1952_cavity_resonance + zenneck_1907_surface_wave lineage_id: nishi_em_experiment_sealed_q10

dependencies 1 imports · 0 importers

nx_syscalls_x86_64.nx nx_em_experiment.nx

imports: nx_syscalls_x86_64.nx

imported by: nobody (leaf or entry point)

structs

80struct EmExperiment

consts

42const NX_EM_CLAIM_UNKNOWN: i64 = 0
43const NX_EM_CLAIM_SCHUMANN_DATA_BANDWIDTH: i64 = 1
44const NX_EM_CLAIM_SCHUMANN_VIDEO_BANDWIDTH: i64 = 2
45const NX_EM_CLAIM_LONGITUDINAL_WAVE_COUPLING: i64 = 3
46const NX_EM_CLAIM_SCALAR_FIELD_NONLOCAL: i64 = 4
47const NX_EM_CLAIM_EARTH_CURRENT_RETURN_EFFICIENCY: i64 = 5
48const NX_EM_CLAIM_GROUND_WAVE_RANGE_VS_FREQ: i64 = 6
49const NX_EM_CLAIM_NVIS_REGIONAL_COVERAGE: i64 = 7
50const NX_EM_CLAIM_RESONANT_WIRELESS_POWER_DISTANCE: i64 = 8
51const NX_EM_CLAIM_NEAR_FIELD_COUPLING_DROP_OFF: i64 = 9
52const NX_EM_CLAIM_METEOR_BURST_DATA_RATE: i64 = 10
53const NX_EM_CLAIM_FREE_SPACE_OPTICAL_NEIGHBOURHOOD: i64 = 11
54const NX_EM_CLAIM_POWERLINE_CARRIER_INTRA_HOME: i64 = 12
55const NX_EM_CLAIM_N: i64 = 13
58const NX_EM_RIG_UNKNOWN: i64 = 0
59const NX_EM_RIG_SIMULATION_ONLY: i64 = 1 // pure NishiLang model; no RF
60const NX_EM_RIG_SDR_RTLSDR_RX: i64 = 2 // receive-only via RTL-SDR
61const NX_EM_RIG_SDR_HACKRF_DUPLEX: i64 = 3 // tx+rx via HackRF
62const NX_EM_RIG_LOOP_ANTENNA: i64 = 4
63const NX_EM_RIG_GROUND_DIPOLE: i64 = 5
64const NX_EM_RIG_RESONANT_COIL_PAIR: i64 = 6
65const NX_EM_RIG_FREE_SPACE_LASER: i64 = 7
66const NX_EM_RIG_POWERLINE_MODEM: i64 = 8
67const NX_EM_RIG_N: i64 = 9
70const NX_EM_VERDICT_UNKNOWN: i64 = 0
71const NX_EM_VERDICT_REPRODUCED: i64 = 1 // measured >= threshold under our rig
72const NX_EM_VERDICT_NOT_REPRODUCED_HERE: i64 = 2 // measured < threshold; named improvement required
73const NX_EM_VERDICT_INCONCLUSIVE: i64 = 3 // SNR / sample count too low
74const NX_EM_VERDICT_NEEDS_HARDWARE: i64 = 4 // apparatus not yet built
75const NX_EM_VERDICT_PROTOCOL_ERROR: i64 = 5 // rig misconfigured
76const NX_EM_VERDICT_N: i64 = 6
95const NX_EM_Q10_ONE: i64 = 1024

functions

98func nx_em_init(e: *EmExperiment, claim_id: i64, rig_id: i64,
125func nx_em_grade(e: *EmExperiment) -> i64
148func nx_em_note(e: *EmExperiment, src: *u8, src_len: i64, note_buf_cap: i64) -> i64
162func nx_em_claim_is_valid(c: i64) -> i64
167func nx_em_rig_is_valid(r: i64) -> i64
172func nx_em_verdict_is_valid(v: i64) -> i64