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 / r10-omega-faculty.md

123 lines · 5707 bytes Raw Blame History Source

R10: Omega as a resident realization faculty

ADR 0016 §43. Gate R10_CONTINUOUS_OMEGA_PASS.

Rule

Omega is not a service. Nothing calls Omega and waits for an answer.

world state changes
      ↓
Omega dependencies become ready
      ↓
Omega reaction acts
      ↓
publishes objects/evidence
      ↓
other faculties naturally become ready

What runs

Code: src/runtime/rx_omega.{c,h}, src/omega_matvec_quad.{c,h}. Test: tests/runtime/rx_r10_omega.c, make test-r10 (AArch64 hosts only).

The operation is Omega's integer matrix-vector product from M12 (omega_matvec): y[i] = Σ_j A[i·N+j]·x[j] mod 2^64, for M ≥ 1 and N ≥ 1.

ReactionWakes onPublishesADR 0016 object
workload.matvec.serverequestresult, demandproduction path
omega.watchdemand window field onlysearchCostEstimate
omega.synthesize.ksearch epochcandidate[k]RealizationCandidate
omega.verify.kcandidate[k]verdict[k]verification evidence
omega.measure.kverdict[k]measure[k]measured cost
omega.selectevery measure[k]selectionrecorded, eligible

Production reads selection as an ordinary input on its next request. It does not wait for it. A regime runs the semantic reference until a selection for that regime exists.

Findings

  1. **M12's three emitters never beat the compiled reference on the DGX Spark.**
    • On Cortex-X925 they land between 4% faster and 8% slower than it.
    • On Cortex-A725 they are 1.8–2.1× slower.
    • Cause: every element load post-increments its base register. Each row is therefore one serial chain of address updates.
    • omega_matvec_dispatch's fixed rule (unroll4 when N > 8) therefore picks a slower realization on A725 cores.
  2. quad4 is a new Omega emitter. It keeps four independent accumulators, loads at fixed offsets, and moves each base once per four elements. Pinned single-thread timings at 64×256, in µs per call:
    Corereferencegcc -O3 acc4quad4
    X9254.582.642.69
    A7256.275.926.08

    quad4 matches the compiler on both core types. It lives in its own file so the M12 sources keep the digests recorded in evidence/m12_corpus_digests.txt.

  3. The best realization depends on the core class. The R10 test pins itself to the X925 cores when they exist, and records that in its receipt.
  4. Engine fix (rx_world.c).
    • The bug: an activation invalidated by a change to a read-only input was never run again, so the stimulus that woke it was dropped.
    • R10 hit it when a new selection landed while production was serving a request.
    • Invalidation now re-arms the activation under the same cause. Conflict limits still apply.
    • Regression test: invalidation_by_read_only_input_reruns in test-r3. It fails without the fix.

Not claimed / limits