interplane.Get Omega
Read in your language

omega-mv

Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.

Brought by drakestapleton

branch main Branches Tags History

omega-mv / evidence / MIXED_ALGEBRA / phase_twin_receipt.5d6ca45e970faf19986490264e35db453211ffe6dfff03d1cfb10937f329a22b.json

68 lines · 14338 bytes Raw Blame History
1{
2 "schema": "OMEGA_MIXED_ALGEBRA_PHASE_TWIN_V1",
3 "stage": "ADR 0019 MA-8 step 0: simulated precursor of the physical phase realization (ADR 0018 AR2-style simulation); not MA-8 itself",
4 "run_mode": "full",
5 "provenance": "SIMULATED_DEVELOPMENT",
6 "label": "digital twin of phase-domain Z3 (software model). Under the declared model profile only: candidate phase-domain realizations vs the oma_z3 oracle. No physical, speed, latency or energy claim (ARCH-0018). No selection, no ranking, no semantic id or digest minted. Does not claim the Turing gate DIGITAL_PHASE_EQUIVALENCE.",
7 "git_commit": "48ef003762fe8acaa61cde139ccee56cc4f23b6d",
8 "tree_dirty": 0,
9 "run_id": "phase_twin-48ef003762fe8acaa61cde139ccee56cc4f23b6d",
10 "toolchain": "cc (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0",
11 "seeds": "fixed per scenario in tests/algebra/test_phase_twin.c (0x5A31.., 0x1B00, 0x2000.., 0x2100, 0x3000..)",
12 "turing_fields": {"note": "field names follow src/turing/field.h; values are text only, no digest is computed here", "contract": {"name": "z3_add", "statement": "c = (a + b) mod 3, a, b in {0,1,2}", "exactness": "BOUNDED_STOCHASTIC (noisy model); EXACT in the noiseless model", "overflow": "none (Z3 is closed)", "oracle": "oma_z3_add", "source": "spec/mixed-algebra-phase-twin.md", "max_n": 1}, "realizations": [{"rz_id": "PT_corr_product", "algorithm": "per-channel I/Q correlation, phasor product", "algebra": "Z3", "representation": "phase.z3", "precision": "declared ADC/DAC bits", "language": "C11", "backend": "cpu_model", "machine_class": "SIMULATED_DEVELOPMENT", "exact": 0}, {"rz_id": "PT_mixer", "algorithm": "analog mixer, 2 f_c correlation", "algebra": "Z3", "representation": "phase.z3", "precision": "declared ADC/DAC bits", "language": "C11", "backend": "cpu_model", "machine_class": "SIMULATED_DEVELOPMENT", "exact": 0}, {"rz_id": "PT_nco", "algorithm": "32-bit NCO phase-word add, one tone", "algebra": "Z3", "representation": "phase.z3", "precision": "declared ADC/DAC bits", "language": "C11", "backend": "cpu_model", "machine_class": "SIMULATED_DEVELOPMENT", "exact": 0}], "tier_source": "ADR 0019 section 8, aien-architecture origin/main 1438799"},
13 "oracle": "oma_z3_add / oma_z3_mul (src/algebra/oma_z3.c)",
14 "rng": "xoshiro256** seeded by splitmix64 (fixed seeds per scenario); Gaussian by Marsaglia polar method",
15 "model": {"encoding": "k -> A cos(2 pi n / 64 + 2 pi k / 3), f_c = f_s / 64", "measurement": "I/Q correlation at the carrier bin (2 f_c for mixer and doubler)", "decision": "k = mod(round(theta / 120 deg), 3), cells +/-60 deg", "calibration": "reference frames: k = 0 averaged over reps sets each path offset and magnitude; k = 1 must read 120 +/- tol; repeated every interval", "flags": "erasure (magnitude < frac x reference), reject (> reject_deg from a center), calibration fault; any flag fails the trial", "simplifications": ["analog path is a pure phase shift at f_c, applied before the DAC", "AWGN added at the ADC input; white, Gaussian, independent per channel", "phase jitter is one Gaussian phase per channel per frame", "drift is linear in simulated time", "converters are ideal mid-tread quantizers with clipping; no INL/DNL, no spurs", "mixer and doubler are ideal multipliers", "shared clock: no sample slip, no frequency offset"]},
16 "self_checks": {"decoder_boundaries": true, "nco_wrap": true, "arg_rejection": true, "rng_moments": true, "add_exact_grid_3600_vs_7200_at_10db": [1.961270e-03, 1.961242e-03], "pass": true},
17 "gate1_noiseless": {
18 "pairs": 9, "reps": 1000,
19 "add": [
20 {"design": "A_125MSps_N4096_14bit", "mode": "corr_product", "checks": 9000, "mismatches": 0, "flagged": 0, "max_phase_err_deg": 1.353970e-03, "pass": true},
21 {"design": "A_125MSps_N4096_14bit", "mode": "mixer", "checks": 9000, "mismatches": 0, "flagged": 0, "max_phase_err_deg": 1.775450e-03, "pass": true},
22 {"design": "A_125MSps_N4096_14bit", "mode": "nco", "checks": 9000, "mismatches": 0, "flagged": 0, "max_phase_err_deg": 6.769848e-04, "pass": true},
23 {"design": "B_1MSps_N1024_12bit", "mode": "corr_product", "checks": 9000, "mismatches": 0, "flagged": 0, "max_phase_err_deg": 1.504188e-03, "pass": true},
24 {"design": "B_1MSps_N1024_12bit", "mode": "mixer", "checks": 9000, "mismatches": 0, "flagged": 0, "max_phase_err_deg": 3.634453e-02, "pass": true},
25 {"design": "B_1MSps_N1024_12bit", "mode": "nco", "checks": 9000, "mismatches": 0, "flagged": 0, "max_phase_err_deg": 7.520942e-04, "pass": true},
26 {"design": "B_1MSps_N1024_ideal", "mode": "corr_product", "checks": 9000, "mismatches": 0, "flagged": 0, "max_phase_err_deg": 2.798888e-13, "pass": true},
27 {"design": "B_1MSps_N1024_ideal", "mode": "mixer", "checks": 9000, "mismatches": 0, "flagged": 0, "max_phase_err_deg": 7.633331e-14, "pass": true},
28 {"design": "B_1MSps_N1024_ideal", "mode": "nco", "checks": 9000, "mismatches": 0, "flagged": 0, "max_phase_err_deg": 1.117587e-07, "pass": true}
29 ],
30 "mul_const": {"design": "B_1MSps_N1024_12bit", "realization": "b=0 constant k=0 source, b=1 identity, b=2 frequency doubler (squarer, 2 f_c bin)", "checks": 9000, "mismatches": 0, "flagged": 0, "max_phase_err_deg": 3.634453e-02, "pass": true},
31 "quantization_sweep_corr_product_N1024": [{"bits": 16, "max_phase_err_deg": 3.748205e-04, "mismatches": 0, "flagged": 0}, {"bits": 14, "max_phase_err_deg": 1.353970e-03, "mismatches": 0, "flagged": 0}, {"bits": 12, "max_phase_err_deg": 1.504188e-03, "mismatches": 0, "flagged": 0}, {"bits": 10, "max_phase_err_deg": 3.456441e-03, "mismatches": 0, "flagged": 0}, {"bits": 8, "max_phase_err_deg": 2.451743e-02, "mismatches": 0, "flagged": 0}, {"bits": 6, "max_phase_err_deg": 3.607312e-01, "mismatches": 0, "flagged": 0}, {"bits": 4, "max_phase_err_deg": 1.875000e+00, "mismatches": 0, "flagged": 0}, {"bits": 3, "max_phase_err_deg": 3.750000e+00, "mismatches": 0, "flagged": 0}, {"bits": 2, "max_phase_err_deg": 3.750000e+00, "mismatches": 0, "flagged": 0}, {"bits": 1, "max_phase_err_deg": 0.000000e+00, "mismatches": 12, "flagged": 18}],
32 "evidence_tier": "E3 (exhaustive over the 9-pair Z3 domain, per declared model configuration; the ideal map is E4 by theory section 6.1)",
33 "pass": true
34 },
35 "gate1b_reference_operating_point": {"condition": "research note pass condition: 9 pairs x 1000, zero mismatches", "snr1_db": 80.0, "fs_hz": 1.250000e+08, "fc_hz": 1.953125e+06, "N": 4096, "amplitude_fs": 0.5000, "dac_bits": 14, "adc_bits": 14, "noise_sigma_fs": 3.535534e-05, "jitter_deg_rms": 7.0312e-04, "offset_deg": [0.000, 3.350], "drift_deg_per_s": [0.000, 0.000], "frame_s": 6.553600e-05, "calibration": {"enabled": true, "interval_ops": 1000, "reps": 8, "check_tol_deg": 5.0}, "flags": {"erasure_frac": 0.30, "reject_deg": 30.0}, "checks": 9000, "mismatches": 0, "flagged": 0, "max_phase_err_deg": 7.209933e-03, "pass": true},
36 "gate2_snr_curve": {
37 "model": "corr_product add, both inputs at symbol SNR rho (correlator output, rho = N SNR_1 / 2), ideal converters, no jitter, no offset, flags off; sampled AWGN per sample",
38 "config": {"fs_hz": 1.000000e+06, "fc_hz": 1.562500e+04, "N": 64, "amplitude_fs": 0.5000, "dac_bits": 0, "adc_bits": 0, "noise_sigma_fs": 0.000000e+00, "jitter_deg_rms": 0.0000e+00, "offset_deg": [0.000, 0.000], "drift_deg_per_s": [0.000, 0.000], "frame_s": 1.280000e-04, "calibration": {"enabled": false, "interval_ops": 0, "reps": 0, "check_tol_deg": 0.0}, "flags": {"erasure_frac": 0.00, "reject_deg": 0.0}},
39 "tolerance": "exact reference inside the measured Wilson 99.9% interval; research-note Monte Carlo within 5% of the exact reference at 10 and 12 dB",
40 "points": [
41 {"rho_db": 0.0, "trials": 100000, "add_errors": 35314, "add_p_hat": 3.531400e-01, "add_wilson999": [3.481829e-01, 3.581289e-01], "add_exact_reference": 3.517068e-01, "add_research_note_mc": 3.520000e-01, "rel_diff_note_vs_exact": 8.335788e-04, "single_errors": 18214, "single_p_hat": 1.821400e-01, "single_wilson999": [1.781584e-01, 1.861905e-01], "single_craig_exact": 1.834171e-01, "single_gated": true, "pass": true},
42 {"rho_db": 6.0, "trials": 200000, "add_errors": 11585, "add_p_hat": 5.792500e-02, "add_wilson999": [5.623001e-02, 5.966786e-02], "add_exact_reference": 5.770821e-02, "add_research_note_mc": 5.760000e-02, "rel_diff_note_vs_exact": 1.875135e-03, "single_errors": 2732, "single_p_hat": 1.366000e-02, "single_wilson999": [1.283188e-02, 1.454077e-02], "single_craig_exact": 1.370586e-02, "single_gated": true, "pass": true},
43 {"rho_db": 8.0, "trials": 400000, "add_errors": 6104, "add_p_hat": 1.526000e-02, "add_wilson999": [1.463521e-02, 1.591103e-02], "add_exact_reference": 1.513550e-02, "add_research_note_mc": 1.520000e-02, "rel_diff_note_vs_exact": 4.261192e-03, "single_errors": 828, "single_p_hat": 2.070000e-03, "single_wilson999": [1.846630e-03, 2.320326e-03], "single_craig_exact": 2.037200e-03, "single_gated": true, "pass": true},
44 {"rho_db": 10.0, "trials": 1000000, "add_errors": 1938, "add_p_hat": 1.938000e-03, "add_wilson999": [1.798576e-03, 2.088210e-03], "add_exact_reference": 1.961242e-03, "add_research_note_mc": 1.960000e-03, "rel_diff_note_vs_exact": 6.332983e-04, "single_errors": 102, "single_p_hat": 1.020000e-04, "single_wilson999": [7.374389e-05, 1.410814e-04], "single_craig_exact": 1.065105e-04, "single_gated": true, "pass": true},
45 {"rho_db": 12.0, "trials": 4000000, "add_errors": 365, "add_p_hat": 9.125000e-05, "add_wilson999": [7.682943e-05, 1.083770e-04], "add_exact_reference": 8.530433e-05, "add_research_note_mc": 8.460000e-05, "rel_diff_note_vs_exact": 8.256665e-03, "single_errors": 4, "single_p_hat": 1.000000e-06, "single_wilson999": [2.230217e-07, 4.483857e-06], "single_craig_exact": 1.081747e-06, "single_gated": false, "pass": true}
46 ],
47 "jitter_check": {"jitter_deg_per_input": 15.0, "trials": 400000, "errors": 1871, "p_hat": 4.677500e-03, "wilson999": [4.335663e-03, 5.046152e-03], "formula_2Q": 4.677735e-03, "pass": true},
48 "evidence_tier": "model validation (statistical agreement with analytic reference); not a contract",
49 "pass": true
50 },
51 "gate3_calibration": {
52 "contract": {"kind": "BOUNDED_STOCHASTIC", "operation": "Z3 add (a+b) mod 3, corr_product realization", "bound": "symbol failure probability (mismatch or any flag) <= 1e-06", "confidence": 0.95, "required_trials_zero_failures": 2995733, "operating_point": {"rho_db_per_input": 25.0, "fs_hz": 1.000000e+06, "fc_hz": 1.562500e+04, "N": 64, "amplitude_fs": 0.5000, "dac_bits": 12, "adc_bits": 12, "noise_sigma_fs": 1.124683e-01, "jitter_deg_rms": 1.0000e+00, "offset_deg": [0.000, 0.000], "drift_deg_per_s": [0.000, 0.000], "frame_s": 1.280000e-04, "calibration": {"enabled": false, "interval_ops": 1000, "reps": 32, "check_tol_deg": 5.0}, "flags": {"erasure_frac": 0.30, "reject_deg": 30.0}}},
53 "cases": [
54 {"case": "offset_only", "calibrated": false, "offset_deg": [50.0, 20.0], "drift_deg_per_s": [0.00, 0.00], "trials": 200000, "failures": 200000, "mismatches": 199563, "flagged": 200000, "p_hat": 1.000000e+00, "wilson95": [9.999808e-01, 1.000000e+00], "calibrations": 0, "calibration_faults": 0, "simulated_time_s": 25.600, "contract_case": false, "verdict": "CONTRACT_VIOLATED", "pass": true},
55 {"case": "offset_only", "calibrated": true, "offset_deg": [50.0, 20.0], "drift_deg_per_s": [0.00, 0.00], "trials": 200000, "failures": 0, "mismatches": 0, "flagged": 0, "p_hat": 0.000000e+00, "wilson95": [0.000000e+00, 1.920693e-05], "e1_bound_95": 1.497866e-05, "calibrations": 200, "calibration_faults": 0, "simulated_time_s": 27.238, "contract_case": false, "verdict": "ZERO_FAILURES", "pass": true},
56 {"case": "drift_only", "calibrated": false, "offset_deg": [0.0, 0.0], "drift_deg_per_s": [2.00, 1.50], "trials": 1000000, "failures": 799006, "mismatches": 598269, "flagged": 529987, "p_hat": 7.990060e-01, "wilson95": [7.982194e-01, 7.997903e-01], "calibrations": 0, "calibration_faults": 0, "simulated_time_s": 128.000, "contract_case": false, "verdict": "CONTRACT_VIOLATED", "pass": true},
57 {"case": "drift_only", "calibrated": true, "offset_deg": [0.0, 0.0], "drift_deg_per_s": [2.00, 1.50], "trials": 1000000, "failures": 0, "mismatches": 0, "flagged": 0, "p_hat": 0.000000e+00, "wilson95": [0.000000e+00, 3.841444e-06], "e1_bound_95": 2.995732e-06, "calibrations": 1000, "calibration_faults": 0, "simulated_time_s": 136.192, "contract_case": false, "verdict": "ZERO_FAILURES", "pass": true},
58 {"case": "offset_and_drift", "calibrated": false, "offset_deg": [50.0, 20.0], "drift_deg_per_s": [2.00, 1.50], "trials": 200000, "failures": 200000, "mismatches": 199995, "flagged": 66074, "p_hat": 1.000000e+00, "wilson95": [9.999808e-01, 1.000000e+00], "calibrations": 0, "calibration_faults": 0, "simulated_time_s": 25.600, "contract_case": true, "verdict": "CONTRACT_VIOLATED", "pass": true},
59 {"case": "offset_and_drift", "calibrated": true, "offset_deg": [50.0, 20.0], "drift_deg_per_s": [2.00, 1.50], "trials": 4000000, "failures": 0, "mismatches": 0, "flagged": 0, "p_hat": 0.000000e+00, "wilson95": [0.000000e+00, 9.603638e-07], "e1_bound_95": 7.489331e-07, "calibrations": 4000, "calibration_faults": 0, "simulated_time_s": 544.768, "contract_case": true, "verdict": "CONTRACT_MET", "pass": true}
60 ],
61 "evidence_tier": "E1 for the contract case (zero failures in 4000000 independent trials, p <= -ln(0.05)/N at 95% confidence), under the declared model only",
62 "pass": true
63 },
64 "z3_multiply": {"two_unknown_operands": "NOT_REALIZABLE in this model: phasor multiplication realizes Z3 addition; Z3 a*b corresponds to w^(ab) = (w^a)^b, exponentiation, and no bilinear phasor operation computes it (theory section 6.4). A decode-then-select circuit (decode b digitally, then identity / doubler / constant) is a hybrid digital realization, not a phase-domain one, and is not claimed.", "known_constant": "REALIZED (gate 1 mul_const): b = 0 constant source, b = 1 identity, b = 2 frequency doubler (w^(2a) = conj(w^a))"},
65 "evidence_tiers_adr0019_s8": {"add_noiseless": "E3", "mul_const_noiseless": "E3", "add_bounded_contract": "E1", "mul_two_unknowns": "E0 (not realizable, no realization exists)", "scope": "all tiers hold for the twin model only; physical transfer needs AR4 evidence on a real board"},
66 "verified": 1,
67 "overall": "PASS"
68}