Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/blob/main/spec/realize_synth.md # 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 Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / spec / realize_synth.md` 85 lines · 4282 bytes Raw Blame History Source # Specification: Milestone 14 — Omega Realization Synthesis (`OMEGA_REALIZATION_SYNTHESIS`) ``` Document ID: SPEC-OMEGA-M14 Milestone: Milestone 14 (OMEGA_REALIZATION_SYNTHESIS) Classification: Sovereign Machine Canonical Specification Target Substrate: Automated $G_S \times G_M \to G_R$ Synthesis Targeting Declared Hardware Capabilities Status: SPECIFIED / IN PROGRESS (aien-spark/omega#19, aien-spark/aien-architecture#25) Lineage: SILICON -> ATLAS (M1) -> PHYSICS (M2/M3) -> OMEGA (M4-M14) -> AIEN ``` ## 1. Executive Summary & Doctrine Milestone 14 establishes automated machine-aware realization synthesis: LOWERING IS NOT A HARDCODED COMPILER BACKEND. REALIZATION IS SYNTHESIS: $G_S \times G_M \to G_R$. THE MACHINE DISCOVERS HOW BEST TO EXECUTE A GIVEN SEMANTIC GRAPH ON PHYSICAL SILICON. In the sovereign hierarchy: - $G_S$ defines what computation means. - $G_M$ defines the physical hardware topology (issue width, units, latencies, memory hierarchy), certified by Physics. - $G_R$ is the synthesized native realization, bound to BOTH $G_S$ and $G_M$ via a cryptographic triple binding: $$\text{REALIZATION_ID} = \text{SHA256}(\text{OMG0} \mid \text{SEMANTIC_ID} \mid \text{MACHINE_ID} \mid \text{code_bytes})$$ ## 2. Core Invariants - Triple Identity Binding: $REALIZATION_ID$ deterministically incorporates $SEMANTIC_ID$ ($G_S$), $MACHINE_ID$ ($G_M$), and machine code bytes. - Machine-Aware Scheduling: Synthesis evaluates candidate instruction schedules and registers to exploit $G_M$'s issue width (e.g., 4-wide dispatch on DGX Spark Neoverse V2 vs 2-wide on QEMU virt) and functional unit concurrency. - Strict Semantic Preservation: Executing $G_R$ natively produces outputs bit-for-bit identical to semantic evaluation of $G_S$. - Zero Foreign Toolchain: Direct machine byte generation without LLVM, Clang, GCC assembler, or GNU `as`. - Mandatory M7 Verification: Every synthesized realization passes $V_0$ structural, $V_1$ differential, and $V_2$ property verification before admission. ## 3. Data Structures & Declarations ``` typedef struct { const OmegaProgram *program; const OmegaMachineGraph *machine; bool optimize_latency; uint32_t max_unroll_factor; } RealizationSynthesisTask; typedef struct { bool solved; RealizationObject realization; SemanticId realization_id; uint32_t estimated_cycles; uint32_t code_bytes_len; VerifyReport verify_report; } RealizationSynthesisResult; int omega_synthesize_realization(const RealizationSynthesisTask *task, RealizationSynthesisResult *result); ``` ## 4. Qualification Gates - `OMEGA_REAL_SYNTH_INIT_PASS`: Synthesis task initialized with valid $G_S$ and $G_M$. - `OMEGA_REAL_SYNTH_TRIPLE_ID_PASS`: `REALIZATION_ID` deterministically incorporates $SEMANTIC_ID$ and $MACHINE_ID$. - `OMEGA_REAL_SYNTH_SCHEDULE_OPT_PASS`: Machine-aware schedule optimization generates valid AArch64 machine words. - `OMEGA_REAL_SYNTH_DGX_SPARK_PASS`: Realization specialized for 4-wide DGX Spark Grace V2 pipeline. - `OMEGA_REAL_SYNTH_QEMU_VIRT_PASS`: Realization specialized for 2-wide QEMU virt pipeline. - `OMEGA_REAL_SYNTH_SEMANTIC_PARITY_PASS`: Native execution matches semantic evaluation on test inputs. - `OMEGA_REAL_SYNTH_V0_STRUCTURAL_PASS`: Synthesized realization passes M7 V0 structural verification. - `OMEGA_REAL_SYNTH_V1_DIFFERENTIAL_PASS`: Synthesized realization passes M7 V1 differential evaluation. - `OMEGA_REAL_SYNTH_V2_PROPERTY_PASS`: Synthesized realization passes M7 V2 property verification. - `OMEGA_REAL_SYNTH_RECEIPT_PASS`: Master qualification receipt generated binding $G_S$, $G_M$, and $G_R$. ## 5. Amendment: program-driven realization Until `spec/program-realization.md`, `omega_synthesize_realization` emitted the fixed `f(x) = 3x - 2` schedule for every program and checked it against hard-coded `3x - 2` values. It now compiles the task's program body (schedule chosen from $G_M$, meaning never) and verifies native execution against the independent semantic evaluator. The ten gates above still pass; for the 3x-2 program the DGX Spark (preload) and QEMU virt (sequential) bytes are unchanged.