interplane.Get Omega
Read in your language

aienos.com

Source of www.aienos.com, served from my own hardware

Brought by drakestapleton

branch main Branches Tags History

aienos.com / public / research / omega-language / paper.tex

507 lines · 27453 bytes Raw Blame History
1\documentclass[11pt]{article}
2\usepackage[T1]{fontenc}
3\usepackage[margin=1in]{geometry}
4\usepackage[hidelinks]{hyperref}
5
6\usepackage{amsthm}
7\setlength{\parskip}{0.6em}
8\setlength{\parindent}{0em}
9
10\title{Omega: A Programming Language Built for Verified Programs}
11\author{M. Drake Stapleton}
12\date{October 2026}
13
14\begin{document}
15\maketitle
16
17\begin{abstract}
18We propose Omega, a planned systems programming language that combines
19the memory safety of Rust with the simplicity of Go, and
20adds two properties neither language has: it is semantics-first, and
21verification is a first-class language feature. In Omega, the primary
22object is meaning, not text. Syntax is a disposable skin over a canonical,
23content-addressed semantic identity: two surface texts that elaborate into
24the identical normalized semantic graph share one semantic identity
25(SEMANTIC\_ID). The module system is the crumb store. A \emph{crumb} is
26a verified program together with its verification receipt, and programs
27may only be built from verified crumbs. The doctrine that the verified
28program is the universal artifact of meaning is therefore not a policy
29document. It is the grammar of the language. In this document we state the
30motivation, the design principles, the intended trade-offs, and the open
31questions, and then we answer the objections we expect. It is a design
32proposal, not a specification. Nothing here is final until we have built,
33measured, and ratified it.
34\end{abstract}
35
36\section{Motivation}
37
38We propose a programming language built for verified programs.
39
40Most programming languages were designed for a world in which humans write
41all the code. That world is ending. In our work, the large majority
42of code is already written by AI agents, reviewed by AI agents, and tested by
43AI agents. Languages optimized for human comfort are optimizing for the
44wrong writer.
45
46Rust is the closest existing answer to safe systems programming, but its
47compiler is a harsh teacher: the learning curve is steep, builds are slow,
48and the strictness that makes it safe also makes it unfriendly. Go chose the
49opposite trade: simple, fast to build, friendly. It keeps memory safety
50apart from data races, and pays for simplicity with a garbage collector
51and less fine-grained control over layout and timing.
52
53Omega starts from a different question, and we ask it directly: what would
54a language look like if we designed it for verifiability first, with the
55knowledge that its primary authors will be machines? A strict compiler is
56painful for a human.
57For an agent, a strict compiler is a tireless reviewer that never sleeps,
58never gets tired, and catches the bug before it ships. The pain of
59strictness is almost entirely human pain. We design Omega to spend that
60budget where it buys the most: correctness you can check, not comfort you
61can feel.
62
63The name is deliberate. In our architecture, Omega is the umbrella system
64that defines, synthesizes, and coordinates verification. We give the
65language the same name because the language is one interface of that
66system. Verification itself is performed by an independent verifier,
67never by the generator: the language does not grade its own work.
68
69\section{Semantics first}
70\label{sec:semantics}
71
72In every mainstream language, the primary object is text. The compiler
73reads characters, and meaning is something the text is hoped to carry.
74Omega inverts this: the primary object is meaning, and text is a
75disposable skin.
76
77This is not a metaphor. It is the founding position of the Omega engine,
78established in Milestone 4 (OMEGA\_SEMANTICS): Omega defines what
79computation means without committing that meaning to any particular
80machine representation. The governing axiom is that meaning is permanent
81and representation is disposable. The precise claim is this: SEMANTIC\_ID is the hash of the canonical
82semantic IR produced by elaboration, and the hash input includes the
83semantic schema version and the normalization rules version:
84SEMANTIC\_ID = H(schema\_version || normalization\_version ||
85canonical\_graph\_bytes). A stable byte-level graph cannot silently
86acquire a new interpretation as the language evolves, because any change
87to the schema or the normalization rules changes the identity. Two
88surface texts that elaborate into the identical normalized semantic graph
89under the same schema and normalization versions share one identity. Programs that elaborate into different
90graphs may later be proven equivalent, but that proof is a separate
91artifact: source elaborates to canonical semantic IR to SEMANTIC\_ID, and
92separately, SEMANTIC\_ID\_A is connected to SEMANTIC\_ID\_B by an
93equivalence proof. We do not claim that arbitrary programs can be decided
94equivalent; general behavioral equivalence is not computable, and Omega
95does not pretend otherwise. What is permanent is the semantic object; what
96is disposable is its realization. An optimizer does not change the semantic
97object. It realizes the same object into a different target representation,
98and carries a refinement or equivalence receipt connecting the realization
99to the source semantics.
100
101For the language, we draw four consequences that shape everything below.
102
103First, syntax is not sacred. The concrete text a programmer writes is one
104of many possible skins over a meaning. We leave the language free to offer
105multiple surfaces, or to change its surface over time, because the surface
106was never the program. What the programmer writes is parsed into meaning;
107what is stored, checked, imported, and verified is meaning.
108
109Second, equality is semantic, over the canonical graph. Two crumbs whose
110surface texts elaborate into the identical normalized semantic graph
111share one SEMANTIC\_ID: they are the same semantic object, regardless
112of how they were written. They are not necessarily the same crumb: a
113crumb is a claim plus its receipts, and different specifications asserted
114of the same graph give different CLAIM\_IDs and therefore different
115crumbs. We deduplicate semantic objects; we never collapse distinct
116claims or distinct evidence. This makes the crumb
117store deduplicating by construction: the library cannot fill up with ten
118spellings of one idea. Refactoring or optimization that changes the
119semantic graph is not identity-preserving; it produces a new semantic
120object, connected to the old one by an equivalence receipt where one is
121claimed.
122
123Third, verification checks meaning, not text. A receipt does not say ``this
124text passed the checks.'' It says ``this meaning was verified against this
125specification.'' That is why the crumb module system works at all: when you
126import a crumb, you import a meaning plus the evidence for it, not a file.
127Files can lie about what they contain. Canonical encoding and hashing do
128not prevent that: hashes bind encoded content; they do not establish
129semantic correctness. A hash proves the content is the content that was
130hashed, nothing more. What hashing gives us is binding: a meaning changed
131after hashing no longer matches its hash, so silent substitution is caught.
132
133Fourth, the language and the engine are one idea. The Omega engine's
134semantic substrate is the ground the language stands on. The compiler does
135not translate text to machine code in the traditional sense; it resolves
136meaning and realizes it on the target. The language is the notation; the
137semantic substrate is the substance.
138
139In short: most languages ask ``what does this text say?'' Omega asks
140``what does this mean?'' and treats everything else as packaging.
141
142\section{Design principles}
143
144\begin{enumerate}
145\item \textbf{The verified program is the unit of meaning.} Claims are
146admitted through verification, not prose. Semantics defines behavior;
147specifications state properties; receipts support those properties under
148declared assumptions. The language manipulates meanings, not text;
149syntax is a disposable skin over the semantic identity. This is the
150Crumb Doctrine, and we make it structural in Omega, not aspirational.
151
152\item \textbf{Design for the writer you have.} We assume the language's code
153is mostly written by agents and mostly read by verifiers. We optimize
154error messages, tooling, and language rules for machine authors first.
155Human readability is a requirement, not the goal.
156
157\item \textbf{Safety is not optional.} We provide no mode in which the safety
158guarantees are silently dropped. Any weakening of safety must be explicit,
159visible, and auditable. See Section~\ref{sec:escape} for the resolved
160answer this raises.
161
162\item \textbf{One idea per mechanism.} Each language feature does one thing.
163Features that overlap are a design failure, not richness.
164
165\item \textbf{Name the sacrifice.} Every language gives something up. Go
166gave up fine-grained control for simplicity. Rust gave up friendliness for
167safety. We state Omega's sacrifice explicitly in
168Section~\ref{sec:safety}. We do not leave it to be discovered later by
169its users.
170\end{enumerate}
171
172\section{The crumb module system}
173
174In Rust, the ecosystem is organized around crates: reusable packages that
175programs are built from. In Omega, the corresponding unit is the
176\emph{crumb}: a verified program together with its verification receipt. We
177define the module and import system of Omega as the crumb store. There is
178no separate package registry and no separate proof archive. To import a
179crumb is to import its receipt.
180
181Concretely, this means:
182
183\begin{itemize}
184\item A crumb is the smallest unit of reuse. Functions, modules, and
185libraries are all crumbs: each carries the evidence that it does what it
186claims.
187\item We permit a program to depend only on verified crumbs. An unverified
188program cannot be imported, linked, or built upon. We have the compiler
189check this, not policy.
190\item A crumb carries several distinct identifiers, and we do not collapse
191them. SEMANTIC\_ID is the hash of the canonical meaning together with
192the semantic schema version and the normalization rules version
193(Section~\ref{sec:semantics}). SPEC\_ID is the
194hash of the property or specification being asserted. CLAIM\_ID is the hash
195of the semantic ID concatenated with the specification ID:
196H(SEMANTIC\_ID || SPEC\_ID). RECEIPT\_ID is the hash of the verifier, the
197evidence, the environment, the result, and the CLAIM\_ID the receipt
198attests to: the CLAIM\_ID is included in the receipt's hashed payload, so
199the receipt is bound to the exact claim it verifies. SEAL\_ID is the hash of the claim ID, the ordered receipt
200identifiers, and the store policy ID: H(CLAIM\_ID || ordered\_receipt\_ids
201|| policy\_id), an immutable snapshot of the evidence accepted at seal
202time. A crumb is the claim plus at least one qualifying receipt: the
203logical subject stays stable while evidence accumulates, which matters
204when independent laboratories add their own attestations years later. The
205same claim may legitimately acquire several receipts: checked by two
206independent verifiers, reverified years later, or qualified on two
207architectures. Those are new receipts, not new claims. A crumb cannot be
208silently substituted or modified without invalidating everything built on
209it, because every identifier in the chain is content-addressed.
210\item Four rules hold across these identifiers, and we state them together
211so the pages agree. The same canonical graph under the same schema and
212normalization versions gives the same SEMANTIC\_ID. A different
213specification gives a different CLAIM\_ID, because SPEC\_ID is part of
214the hash. A different verification event gives a different RECEIPT\_ID
215only when event-specific information (timestamp, verifier version, input
216digests, environment) is included in the hashed payload: hashing
217identical payloads yields identical hashes, and that is the point of the
218scheme. A different set of accepted evidence or a different policy gives a
219different SEAL\_ID. We deduplicate semantic objects; we never collapse
220distinct claims, distinct receipts, or distinct seals.
221\item We call the growing lineage of crumbs the \emph{Crumbline}: the
222unbroken record of what the machine actually built and verified.
223\end{itemize}
224
225Our intent is that the crumb doctrine, which today we must enforce on
226agents by external checks, becomes unavoidable. The easy path and the
227correct path are the same path, because the language has no other path.
228
229This works because crumbs are semantic objects, not files. A crumb's
230identity begins with its SEMANTIC\_ID, the content address of its canonical
231meaning. Importing a crumb therefore imports a meaning plus its evidence,
232each addressed separately. Two surface texts that elaborate into the
233identical normalized semantic graph resolve to the same SEMANTIC\_ID; the
234store cannot accumulate ten spellings of one meaning. See
235Section~\ref{sec:semantics}.
236
237\section{Safety model}
238\label{sec:safety}
239
240We give Omega Rust-grade memory safety: programs cannot corrupt memory,
241and the classic classes of memory bugs (use after free, double free, data
242races on shared memory, buffer overruns) are ruled out by the language, not
243by programmer discipline. We pursue Go-like simplicity in expressing that
244safety: the ownership rules are designed to need fewer annotations and
245produce clearer errors than Rust's borrow checker, with more inference and
246fewer ways to say the same thing.
247
248We state the intended trade up front, per our design principles:
249\textbf{we sacrifice low-level control and build speed.} There is no
250raw pointer arithmetic in the safe subset, no manual memory layout control,
251and no custom allocators. Verification takes time, so builds are slower than
252Go's. In exchange, the programmer, human or agent, gets memory safety plus
253simplicity plus proof-carrying code. If a use case needs hand-tuned memory
254layout or the fastest possible build, Omega is the wrong tool, and we have
255the language say so plainly rather than grow a back door.
256
257\section{Concurrency}
258
259Go's most beloved feature is its concurrency model: thousands of tiny,
260cheap tasks that are simple to write and simple to reason about. Rust's
261concurrency is powerful but widely considered painful. We adopt the
262Go-like model as the headline direction: lightweight tasks with simple
263syntax, combined with Rust-grade safety guarantees.
264
265We state plainly that this section is direction, not architecture. Before
266the concurrency model can carry verification, the following must be
267defined: the memory model, the effect model, the ownership and aliasing
268model, cancellation semantics, task lifetime rules, channel semantics,
269failure propagation semantics, scheduling guarantees, and the treatment
270of nondeterminism. The decisive question is not whether the syntax looks
271like Go. It is what semantic object a concurrent Omega program denotes,
272because verification is meaningless until that object is defined.
273
274\section{Verification as a language feature}
275
276In most languages, verification happens outside the language: test suites,
277external analyzers, code review. We make verification a first-class part of
278the language, but we do not pretend it is one homogeneous act.
279Verification ranges from milliseconds of type checking to hours of
280property testing, model checking, differential execution, fuzzing, or
281hardware-in-the-loop qualification. One word should not cover all of that.
282We therefore divide the pipeline into four stages, and we name them so
283their costs stay visible.
284
285\texttt{omega check} establishes well-formedness and declared effects:
286the program is coherent and states the effects it claims. This is the
287fast, local work: parsing, elaboration, and type checking.
288
289A workspace \texttt{omega build} produces an unsealed realization for
290testing: a thing that runs, carrying no admission into the Crumbline.
291Building does not verify; it realizes.
292
293\texttt{omega verify} produces claim-specific evidence against the
294specification the claim names. The verification profile says what is
295checked, how, and at what cost; a receipt for type checking and a receipt
296for model checking are different artifacts with different weight.
297
298\texttt{omega seal} admits the artifact and its qualified dependency
299closure, minting the crumb: from that point the artifact is addressable
300by its identifiers and its closure is on the record. Only a sealed crumb
301may enter the crumb store or satisfy a verified dependency.
302
303An unsealed object may exist locally during development; we do not make
304the inner edit-build cycle unusable in the name of purity. But we
305distinguish the workspace graph from the crumb graph. In the workspace,
306sealed and unsealed objects may depend on each other locally: an unsealed
307object may depend on unsealed objects during development. The crumb graph
308is sealed only. Nothing unsealed may satisfy a sealed dependency, enter
309the crumb store, or contribute to a sealed top-level program until the
310entire dependency closure meets the required verification policy. That is
311how ``no receipt, no crumb'' survives contact with real development.
312
313What is verified is the meaning, not the text. Two surface texts that
314elaborate into the identical normalized semantic graph share one
315SEMANTIC\_ID, and one verification of that graph serves both. Where the
316graphs differ, equivalence must be proven as its own artifact; we do not
317declare it by definition.
318
319We draw three consequences from this. First, the Crumbline grows
320automatically as a side effect of sealing verified software; no separate step
321records what was proven.
322Second, the cost of verification is paid once, at seal time, and amortized
323over every program that imports the crumb afterward. Third, trust becomes
324checkable: any consumer of a crumb can re-examine its receipt without
325trusting its author.
326
327We leave the verification machinery itself and the exact contents of a
328receipt to the language specification. In this document we establish only
329that verification is not optional tooling. It is the grammar.
330
331\section{The foreign boundary}
332\label{sec:escape}
333
334We have decided. There is no conventional \texttt{unsafe} inside Omega.
335
336The argument for an escape hatch was practical: hardware interfaces,
337foreign code, and extreme performance work may be inexpressible inside the
338safe subset. The argument against was doctrinal: a language whose meaning
339is the verified program cannot have a region where programs are
340unverified but still composable, or the doctrine is a suggestion rather
341than a grammar. We resolve this by refusing the premise that the hatch
342must live inside the language.
343
344Low-level components, device interfaces, allocators, drivers, SIMD
345layouts, DMA, MMIO, and hand-tuned kernels, live outside Omega, in the
346languages that can express them. Omega imports them only through sealed
347foreign crumbs: boundary artifacts that carry an explicit ABI, a
348behavioral contract, platform constraints, an implementation digest, and
349qualification evidence. The foreign crumb is sealed by the independent
350verifier like any other crumb, against the contract it claims. Omega never
351sees the inside; it sees the contract and the receipt, and that is enough
352to build upon.
353
354We hold foreign crumbs to an invariant. A foreign crumb must satisfy one
355of three conditions: (a) it is formally proven to satisfy the relevant
356memory and ABI contract; (b) it executes behind an isolation boundary that
357prevents violation of Omega's memory model; or (c) it explicitly weakens
358the enclosing crumb's guarantee, and that weakening is visible in the
359specification and the receipt. For ordinary foreign components our
360preference is isolation plus contracts. Anything looser recreates
361\texttt{unsafe} in another file. A behavioral receipt alone cannot
362preserve memory safety for foreign code running in the same address space:
363without a proof or a boundary, the receipt describes behavior we cannot
364enforce, and a crumb built on it makes a guarantee it does not hold.
365
366By ``isolation boundary'' we mean something concrete: the foreign code
367cannot read or write Omega-managed memory except through the checked ABI,
368and it shares no mutable address space with Omega code. The canonical
369mechanism is a hardened OS process. Omega already executes native
370candidates this way: the runtime places the code on execute-only pages,
371forks a child, runs the candidate there, and kills it on timeout
372(\texttt{src/runtime/rx\_omega.c}). That is crash and hang containment,
373not yet a security sandbox: the current child has no seccomp filter, no
374namespace or filesystem isolation, no resource limits, and no privilege
375dropping. The hardened form closes those gaps. The child starts with no
376ambient file descriptors, no network, a seccomp allowlist, namespace and
377filesystem isolation where the platform provides it, explicit memory and
378CPU limits, no-new-privileges, and a killable timeout. We keep the
379separate-process model rather than WASM because Omega must test the
380actual native realization it may promote; validating WASM is not
381validating the AArch64 code that will run. WASM remains a separate
382execution class for portable tools. The architectural rule is: foreign
383code is data until a disposable, capability-empty native worker verifies
384it; only receipt-bound verified code may cross into the resident
385execution path.
386
387One caution about the mechanism itself. A forked child inherits the
388readable contents of the parent's memory; closing descriptors and adding
389syscall restrictions does not erase that information. Worker
390initialization must therefore start from a clean, minimal state: the
391child is given only what the task requires, and the rest of the parent's
392address space is cleared or dropped before the foreign code runs.
393
394A promotion rule follows from the invariant. Foreign code qualified
395through isolation remains isolated in production: if the receipt that
396admits a component rests on an isolation boundary, the component stays
397behind that boundary in every deployment. Resident-address-space
398execution requires the relevant memory/ABI proof, or an explicitly
399propagated weakening of the enclosing guarantee under condition (c)
400above. We do not let a component ride an isolation receipt into the
401resident address space; that would be \texttt{unsafe} wearing a sealed
402label.
403
404A weakening under (c) is not a note in prose. It is a requirement on
405CLAIM\_ID and spec composition that the weakened guarantee is part of
406the specification itself: SPEC\_ID is computed over the weakened
407specification, so every dependent CLAIM\_ID is derived from the weakened
408claim, and the admission check rejects any seal whose dependency closure
409treats the component as unweakened. The weakening propagates mechanically
410through the identifier chain and the admission checks, not by convention.
411
412This preserves the doctrine better than embedding an unverified language
413inside the verified one. There is no region of Omega where verification
414stops applying, because the unverified work never enters Omega at all. It
415stands at the boundary, labeled, receipted, and accountable.
416
417\section{Bootstrapping path}
418
419The foundation crumbs, the verified core the language is built from, must
420be verified the hard way first: written carefully, checked thoroughly, with
421no existing Crumbline to stand on. This is slow. There is no way to skip it,
422because a crumb store is only as trustworthy as its first entries.
423
424The expected shape is therefore one we accept: a slow, careful beginning,
425then compounding returns. Each verified foundation crumb makes the next
426layer cheaper to verify, because new crumbs are built from old verified
427ones.
428The library grows slowly at first and then quickly, and every entry pays
429for itself across all future work. We accept patience at the start as part
430of the design.
431
432\section{Objections}
433
434We have stated our proposal. We now consider the objections we expect to
435be raised against it, and answer each in turn.
436
437\subsection*{Objection 1: This is only Rust with nicer syntax.}
438
439We answer that this description would be a smaller idea, and it misses the
440proposal. A nicer Rust would still manipulate text and hope meaning
441follows. Our distinguishing claim is different in kind: verification as a
442four-stage pipeline (\texttt{check}, \texttt{build}, \texttt{verify},
443\texttt{seal}), the crumb as the unit of reuse, and meaning rather than
444text as the object the language manipulates. We are not improving Rust's
445answers. We are asking a different question.
446
447\subsection*{Objection 2: Or Go with a borrow checker.}
448
449The same answer applies. Go's simplicity is worth borrowing, and we borrow
450it openly. But a Go with stricter checking would still be a language about
451text, with verification as an afterthought. We make verification and sealing
452structural requirements of reusable composition, and we make the module
453system the store of verified meanings. The resemblance to Go is in the feel of writing concurrent code,
454not in the nature of the language.
455
456\subsection*{Objection 3: Most tasks do not need any of this.}
457
458We agree. Omega is not a general-purpose scripting language. Where a task
459does not need safety guarantees or verification, we recommend the simpler
460tool. A language that insists on proving everything is the wrong instrument
461for work that needs proving nothing. We do not propose Omega for all
462programming. We propose it for the programming that has to be right.
463
464\subsection*{Objection 4: A language about text would be simpler and just as good.}
465
466It would be simpler to build, and it would not be as good. Text is
467packaging: two surface texts that elaborate into the identical normalized
468semantic graph share one identity, and a language that cannot see this
469will verify the same meaning twice, store ten spellings of one idea, and
470mistake reformatting for change. We do not claim to decide equivalence of
471arbitrary programs; where the semantic graphs differ, equivalence is a
472separate proven artifact. We accept the cost of canonicalizing meaning
473because the alternative is a system that confuses the wrapper for the
474thing wrapped.
475
476\subsection*{Objection 5: This is academic theorizing, not engineering.}
477
478We measure Omega's success in systems shipped, not papers published. It is
479a working language for building real systems, or it is nothing. The
480proposal is written down precisely so that it can be tested against
481reality, and we will discard whatever reality rejects.
482
483\subsection*{Objection 6: Why should anyone believe these claims before the language exists?}
484
485They should not. This document is a design proposal dated October 2026,
486and every claim in it is provisional until we have built, measured, and
487ratified it. We propose; we do not assert. The objections above are
488welcome, and we expect more. A proposal that cannot survive its critics
489does not deserve to be built.
490
491\subsection*{Objection 7: This has all been done before.}
492
493Much of it has, and we say so plainly. Unison addressed code by the hash
494of its content. Dafny, F*, SPARK, and Lean made verification a
495first-class concern of the language rather than an afterthought.
496Proof-carrying code, introduced by Necula in 1997, is the direct ancestor
497of our maxim that the receipt travels with the code. We do not claim to
498be the first to put verification inside a programming language.
499
500What we propose is the integration of four things these systems do not
501combine: semantic identity as the unit of reuse, mandatory
502evidence-bearing dependencies, an admission policy that decides what may
503be built upon, and a provenance record of everything the machine has built
504and verified. Each of those has precedent. Their combination, made
505structural rather than optional, is the proposal.
506
507\end{document}