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/discovery.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 / discovery.md` 64 lines · 3949 bytes Raw Blame History Source # Specification: Milestone 11 — Omega Library Discovery (`OMEGA_LIBRARY_DISCOVERY`) ``` Document ID: SPEC-OMEGA-M11 Milestone: Milestone 11 (OMEGA_LIBRARY_DISCOVERY) Classification: Sovereign Machine Canonical Specification Target Substrate: Autonomous Abstraction Discovery from Program Corpus with Verified Reuse Status: SPECIFIED / IN PROGRESS (aien-spark/omega#17, aien-spark/aien-architecture#23) Lineage: SILICON -> ATLAS (M1) -> PHYSICS (M2/M3) -> OMEGA (M4-M11) -> AIEN ``` ## 1. Executive Summary & Doctrine Milestone 10 established the verified program library (`OMEGA_LIBRARY_V1`), enabling storage and retrieval of verified components. Milestone 11 establishes autonomous abstraction discovery (`OMEGA_LIBRARY_DISCOVERY`): THE MACHINE MUST INVENT ITS OWN ABSTRACTIONS. IT EXTRACTS COMMON MEANINGS FROM PAST SOLUTIONS, PROVES THEM VALID, AND ADMITS THEM TO COMPRESS REASONING. ### The Four M11 Invariants: - Corpus Compression: Discovered abstraction compresses multiple verified programs across the corpus, reducing total description length ($\Delta \text{Cost} > 0$). - Semantic Preservation: Factoring the abstraction into corpus programs preserves exact input-output behavior on all validation domains ($f_{factored}(x) == f_{original}(x)$). - Reused on Held-Out Tasks: The discovered abstraction is successfully reused to solve previously unseen held-out synthesis tasks. - Search Cost Reduction: The discovered abstraction reduces synthesis search depth and candidate exploration count compared to the primitive baseline. ## 2. Abstraction Discovery Architecture ### 2.1 Corpus Representation (`OmegaCorpus`) A corpus contains verified programs $P_1, \dots, P_N$ generated by synthesis or manual specification to solve a collection of computational tasks. ### 2.2 Common Sub-Expression Mining The discovery engine enumerates contiguous instruction sub-sequences and composition slices across the corpus programs. Candidates occurring with frequency $\ge 2$ across distinct programs are extracted as candidate abstractions. ### 2.3 Non-Triviality & Utility Scoring - Non-triviality: Must contain at least two operations (cannot be an existing primitive). - Utility / Compression Metric: $$\Delta \text{Cost}(A) = \sum_{P \in \text{Occurrences}(A)} (\text{Cost}(P) - \text{Cost}(P/A)) - \text{Cost}(A)$$ where $\text{Cost}(P/A)$ is the cost of program $P$ refactored to call abstraction $A$ as a single component. ### 2.4 Verification Ladder & Admission Every proposed abstraction is subjected to the full M7 verification engine: - $V_0$ Structural/Type: Alignment, bounds, valid DAG, terminal `ret`. - $V_1$ Differential: Exact parity against reference semantics across test domains. - $V_2$ Property: Overflow wrapping, monotonic bounds. Only abstractions passing all three stages are admitted into `OmegaLibrary`. ## 3. Qualification Gates - `OMEGA_DISCOVERY_CORPUS_MINING_PASS`: Extract recurring sub-programs from corpus. - `OMEGA_DISCOVERY_NONTRIVIAL_PASS`: Reject trivial or single-op candidates. - `OMEGA_DISCOVERY_COMPRESSION_PASS`: Verify positive description length reduction ($\Delta \text{Cost} > 0$). - `OMEGA_DISCOVERY_SEMANTIC_PRESERVATION_PASS`: Behavioral equivalence preserved after refactoring. - `OMEGA_DISCOVERY_V0_STRUCTURAL_PASS`: M7 V0 verification passes on discovered abstraction. - `OMEGA_DISCOVERY_V1_DIFFERENTIAL_PASS`: M7 V1 differential verification passes on discovered abstraction. - `OMEGA_DISCOVERY_V2_PROPERTY_PASS`: M7 V2 property verification passes on discovered abstraction. - `OMEGA_DISCOVERY_LIBRARY_ADMISSION_PASS`: Discovered abstraction admitted to library catalog. - `OMEGA_DISCOVERY_SEARCH_ACCELERATION_PASS`: Held-out task solved at lower depth / candidate count. - `OMEGA_DISCOVERY_RECEIPT_PASS`: Master qualification receipt generated with full provenance.