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
| 1 | # Specification: Omega Trusted Verification Engine (`OMEGA_VERIFY`) |
| 2 | |
| 3 | ```text |
| 4 | Document ID: SPEC-OMEGA-M7 |
| 5 | Milestone: Milestone 7 (OMEGA_VERIFY) |
| 6 | Classification: Sovereign Machine Canonical Specification |
| 7 | Target Substrate: Multi-Tier Trusted Verification Ladder (V0, V1, V2) |
| 8 | Status: SPECIFIED / IN PROGRESS (aien-spark/omega#13) |
| 9 | Lineage: SILICON -> ATLAS (M1) -> PHYSICS (M2/M3) -> OMEGA (M4/M5/M6/M7) -> AIEN |
| 10 | ``` |
| 11 | |
| 12 | --- |
| 13 | |
| 14 | ## 1. Executive Summary & Verification Law |
| 15 | |
| 16 | > **AIEN MAY PROPOSE. OMEGA MUST VERIFY. PHYSICS MUST AUTHORIZE. EVIDENCE DECIDES WHAT SURVIVES.** |
| 17 | |
| 18 | All program candidates, lowering sequences, and realization artifacts produced by search procedures, heuristics, or external models are treated as **strictly untrusted**. |
| 19 | No candidate artifact is retained, evaluated, or committed to the persistent state ledger without passing the mandatory verification ladder: |
| 20 | |
| 21 | ```text |
| 22 | V0: Structural Verification (types, DAG, bounds, opcode validity, terminal RET) |
| 23 | V1: Differential Verification (semantic reference eval vs native realization execution) |
| 24 | V2: Property / Invariant Verification (commutativity, identity, associativity, overflow wrapping) |
| 25 | ``` |
| 26 | |
| 27 | --- |
| 28 | |
| 29 | ## 2. API Contract |
| 30 | |
| 31 | The verification engine exposes a unified interface: |
| 32 | |
| 33 | ```c |
| 34 | typedef enum { |
| 35 | VERIFY_TIER_V0 = 0, /* Structural */ |
| 36 | VERIFY_TIER_V1 = 1, /* Differential */ |
| 37 | VERIFY_TIER_V2 = 2, /* Property / Invariant */ |
| 38 | VERIFY_TIER_V3 = 3, /* Adversarial (stub) */ |
| 39 | VERIFY_TIER_V4 = 4, /* Symbolic (stub) */ |
| 40 | VERIFY_TIER_V5 = 5 /* Proof-Carrying (stub) */ |
| 41 | } VerifyTier; |
| 42 | |
| 43 | typedef struct { |
| 44 | bool passed; |
| 45 | VerifyTier tier; |
| 46 | uint32_t check_count; |
| 47 | uint32_t fail_count; |
| 48 | char error_detail[256]; |
| 49 | } VerifyReport; |
| 50 | |
| 51 | /* V0 Structural Verification */ |
| 52 | int omega_verify_v0_structural(const OmegaGraph *graph, const RealizationObject *real, VerifyReport *report); |
| 53 | |
| 54 | /* V1 Differential Verification */ |
| 55 | int omega_verify_v1_differential(const OmegaGraph *graph, const RealizationObject *real, |
| 56 | const uint64_t *test_inputs, size_t input_count, |
| 57 | VerifyReport *report); |
| 58 | |
| 59 | /* V2 Property Verification */ |
| 60 | int omega_verify_v2_properties(const OmegaGraph *graph, const RealizationObject *real, VerifyReport *report); |
| 61 | |
| 62 | /* Master Verification Pipeline */ |
| 63 | int omega_verify_pipeline(const OmegaGraph *graph, const RealizationObject *real, VerifyTier max_tier, VerifyReport *report); |
| 64 | ``` |