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

[OMEGA-UNIVERSAL P0] Per-lowering translation validation and checker2-bound proof receipts

Open · #623 · open 2026-10-22 21:42 UTC

Imported from GitHub aien-dev/omega-mv#623, by drakestapleton

drakestapleton wrote on 2026-10-22 21:42 UTC

Governing update: .om only; .osc is legacy

Drake reaffirmed on 2026-10-23 that .osc is being retired and .om is the only forward source-language path. This update supersedes older wording below wherever it would require new .osc production features, .osc authoring, a mandatory legacy OSC execution route, or a new foreign compiler/runtime fallback. Extend the existing handwritten seeded .om implementation and current owners; retain legacy formats/code/receipts only under an explicit compatibility, migration or independent-reference role. Preserve historical bytes and trust guarantees; version any changed semantic profile, format, checker boundary or identity rather than relabelling an old OSC ID as .om. This is not permission to remove validation. Current seeded candidates must be inspected alongside main: #621 core cd2c41f3c697524629585b2a228e2f0ab5b99c45, #622 importer 50f75da28845f21b118bcf8e3499b96c35ddb587. The latter already uses bounded recursive parsing. Therefore legacy main's recursion rejection is not a statement that .om lacks recursion. Existing issue comments describe bounded reviewed slices, not whole-program completion.

Recursive lowering and fixed-point validation extension

Consume #645/#646/#647. Bind .om source/profile, bounded recursion contract, upper representation version, transformation, native code, target and verifier identities. Independently validate preserved return/trap/effect/fuel behavior for supported lowering. Controls must catch omitted fuel, frame overflow, wrong continuation/argument order, wrong cache key and missed worklist propagation. Keep observed no-trap IR proof distinct from source/native translation equivalence, as the existing #623 boundary experiment demonstrates. Port/reuse the existing trust mechanism under the owned seeded .om migration; never treat legacy checker compatibility as proof of the new path. Existing reference checkers remain comparators until the corresponding native validation is qualified.


Parent: https://github.com/aien-dev/aien-architecture-mv/issues/295 Existing: src/checker2/c2_ir.c, c2_check.c, c2_lrat.c, c2_receipt.c, src/compiler/osc_interp.c, osc_cg.c, src/omega_receipt.c. Omega #446 was closed after adding independent checker and signed receipts; do not fork these systems. Related scoped E05 aien-architecture-mv #248 and Omega #450 hardening follow-ups.

Implement: a versioned translation-validation obligation for each source dialect -> Omega upper semantic layer -> OSC -> native/interop target; bind source/dialect/version/profile, target ABI/ISA, transform digests, runtime prerequisites, proof or bounded counterexample trace, independent checker version, unknown/timeouts and capability effects. Define how source observation set and target observation set relate (refinement, exact equivalence, approximate declared); supply an independent validation runner/checker adapter using checker2's trust boundary. Have a known-good lowering and mutated invalid examples; never label a timeout PASS.

Acceptance: exact mutation tests for flipped overflow flag, invalid sign extension, altered branch, invalid proof, wrong target, modified source, stale policy/receipt, dropped exception/side effect, race/aliasing and unsupported operation. Tampered code/IR/provenance must refuse. Minimum 20 well-defined SMT/proof-eligible arithmetic examples with independently checked outcomes; larger cases may return UNKNOWN. Report proof assumptions, solver/toolchain pin, run ID and exact confidence class. Cross-check Alive2 only within its documented bounds.

References: https://doi.org/10.1145/3453483.3454030 ; https://doi.org/10.1145/3763147 ; https://doi.org/10.1145/3676641.3716270 .

Relational security and composed certificate binding

Consume #756 quantities, #758 source/native secrecy, #759 resource observations and #760 safe-state certificates under #625. Extend the existing validation boundary; do not create an alternate signer/checker or relabel IR NO-TRAP evidence as native security.

  • Bind source and executable hashes, semantic/profile version, policy/disclosure contract, compiler/optimization/ABI/target, concrete transition abstraction, memory/leakage/persistence model, checker version and solver certificate. Reject stale/missing bindings.
  • Independently check state-invariant preservation AND the claimed relational observation property. Ordinary per-run trace inclusion can select a secret-dependent allowed trace; include source {0,1} with a faulty secret-selecting lowering as a counterexample.
  • For #760, check initial inclusion, admissible action coverage and closure over all modeled disturbances; a feasible safe subset is not a maximality proof. Unsupported/timeout/partial certificates are UNKNOWN, never proof.
  • Mutation controls alter native branches/addresses, quantity semantics, policy epochs, quantified disturbance coverage, observation model, executable bytes and checker identity. Require the appropriate obligation to fail.
  • Maintain explicit proof-vs-test classes and trusted assumptions. External proof search may be untrusted only when its output is checked by the qualified small checker. Source/binary identity and signatures alone establish neither refinement nor secrecy.

drakestapleton wrote on 2026-10-22 22:15 UTC

Executed prerequisite evidence for #623 and architecture #248, without replacing checker2 or claiming translation validation is implemented.

Published experiment and complete proof corpus, reproducible probe.

  • Unmodified checker2 LRAT gate at c1da86d6: exit 0, 20 IR NO-TRAP proofs verified, nine expected-trap programs, 56 refused negative controls. All 29 executed fixtures were reconciled against the pinned corpus; source/IR/CNF/proofs, raw output and actual checker/producer/solver hashes are retained in the archive/inventory.
  • Compiled the existing abs8 fixture to actual AArch64 code, confirmed its IR matched the proved IR, then changed the first native instruction to RET without executing the changed image.
  • Both original and newly issued changed-image TEST receipts verify when their own supplied bytes match. Using the original receipt with changed bytes refuses EXECUTABLE_MISMATCH. Production-default verification refuses the public TEST signer.

This matches the documented existing contract: evidence class 2 establishes a bounded IR property, while native bytes are bound by hash. It is not a native translation-equivalence proof. Native translation relation remains UNKNOWN. The experiment is not an authentication bypass or a report of checker2 violating its contract; it prevents promotion of existing evidence into a stronger claim than it proves.

#621 remains actively implemented by its existing L574 worker. #623 source-aware obligation binding and actual lowering validation remain incomplete, and no issue is closed.

Publication status correction: #625's local READY acknowledgement has not produced a PR. Current installed Renda code has a website-only READY publisher; its generic lane only publishes already-existing PR records. This concrete gap is recorded against the existing L522/desk owner in L575 with a coordinator request. No second PR writer, guard bypass or live desk-code change was introduced.

drakestapleton wrote on 2026-10-23 12:33 UTC

L729 native workload evidence supplies bounded independent observation comparisons and successfully compiled mutations for omitted fuel, frame/storage limits, argument order, child order and return/continuation changes. Final-source review and fresh replay agree on3464 observations; original failures and exact source/compiler/native pins are retained.

Confidence class is BOUNDED_DIFFERENTIAL_TESTING for specific handwritten .om/native pairs. This does not turn the existing IR no-trap experiment or matching binary hashes into translation equivalence. No authenticated translation receipt is minted.

Remaining: existing native trust/lowering owner must expose the source/upper/native relation and versioned receipt binding for recursive v2 records, target, transform, contract and verifier identities. General translation proof, cache-key/worklist mutants and signed Spark qualification are NOT_RUN. Existing legacy checker is reference/migration evidence only. Issue remains open.

Sign in to comment