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 / spec / verify.md

64 lines · 2440 bytes Raw Blame History Rendered
1# Specification: Omega Trusted Verification Engine (`OMEGA_VERIFY`)
2
3```text
4Document ID: SPEC-OMEGA-M7
5Milestone: Milestone 7 (OMEGA_VERIFY)
6Classification: Sovereign Machine Canonical Specification
7Target Substrate: Multi-Tier Trusted Verification Ladder (V0, V1, V2)
8Status: SPECIFIED / IN PROGRESS (aien-spark/omega#13)
9Lineage: 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
18All program candidates, lowering sequences, and realization artifacts produced by search procedures, heuristics, or external models are treated as **strictly untrusted**.
19No candidate artifact is retained, evaluated, or committed to the persistent state ledger without passing the mandatory verification ladder:
20
21```text
22V0: Structural Verification (types, DAG, bounds, opcode validity, terminal RET)
23V1: Differential Verification (semantic reference eval vs native realization execution)
24V2: Property / Invariant Verification (commutativity, identity, associativity, overflow wrapping)
25```
26
27---
28
29## 2. API Contract
30
31The verification engine exposes a unified interface:
32
33```c
34typedef 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
43typedef 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 */
52int omega_verify_v0_structural(const OmegaGraph *graph, const RealizationObject *real, VerifyReport *report);
53
54/* V1 Differential Verification */
55int 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 */
60int omega_verify_v2_properties(const OmegaGraph *graph, const RealizationObject *real, VerifyReport *report);
61
62/* Master Verification Pipeline */
63int omega_verify_pipeline(const OmegaGraph *graph, const RealizationObject *real, VerifyTier max_tier, VerifyReport *report);
64```