{"source_url":"https://interplane.io/omega/write/","lang":"en","text":"4-Strand Helix Language Guide Knowledge Base Strand Exchange Bootstrap Chain Zero-JS Arcade Omega Language Guide · Clean syntax, zero hidden runtime \u000aWrite it. Run it. Prove it.\u000aOmega reads left to right in plain words, checks bounds and types up front, and compiles into one tiny static binary. Pick your current language below, inspect four visual rules, and run code in your browser right away.\u000aTry in Online Compiler -> 60s Rosetta Switcher 4 Syntax Rules Run sum.om \u000a60-second translation · zero JavaScript \u000aSee Omega beside C, Rust or Python.\u000aSwitch tabs below, copy the Omega panel, and paste straight into the online compiler.\u000aFrom C From Rust From Python \u000aC (raw pointer, unchecked index) \u000a```\u000aint sum_even(const uint32_t *a, uint64_t n) {\u000a  uint32_t total = 0;\u000a  for (uint64_t i = 0; i < n; i++)\u000a    if ((a[i] & 1u) == 0u) total += a[i];\u000a  return (int)total;\u000a}\u000a```\u000aOmega OM-2 (checked view, bounded loop, exits 20) \u000aCopy \u000a```\u000aom2\u000afn sum_even a view uint * to int\u000a  total = uint 0\u000a  for i ulong len a bound 1024\u000a    v = get a i\u000a    if eq and v 1 0\u000a      total = add total v\u000a    end\u000a  end\u000a  ret int total\u000aend\u000afn main to int\u000a  buf = new uint 4 0\u000a  put buf 0 4\u000a  put buf 1 7\u000a  put buf 2 10\u000a  put buf 3 6\u000a  ret sum_even view buf\u000aend\u000a```\u000aRust (slices + debug_assert! + LLVM) \u000a```\u000afn clamp_add(a: u32, b: u32, hi: u32) -> u32 {\u000a  debug_assert!(hi > 0);\u000a  let s = a.saturating_add(b);\u000a  let out = if s > hi { hi } else { s };\u000a  debug_assert!(out <= hi);\u000a  out\u000a}\u000a```\u000aOmega OM-2 (built-in contracts, exits 25) \u000aCopy \u000a```\u000aom2\u000afn clamp_add a uint b uint hi uint to uint\u000a  requires gt hi 0\u000a  ensures le result hi\u000a  s = add a b\u000a  if or lt s a gt s hi\u000a    ret hi\u000a  end\u000a  ret s\u000aend\u000afn main to int\u000a  ret int clamp_add 18 9 25\u000aend\u000a```\u000aPython (dynamic types + interpreter) \u000a```\u000adef dot_product(xs: list[int], ys: list[int]) -> int:\u000a    acc = 0\u000a    for i in range(len(xs)):\u000a        acc += xs[i] * ys[i]\u000a    return acc\u000a```\u000aOmega OM-2 (static types, direct native ELF, exits 21) \u000aCopy \u000a```\u000aom2\u000afn dot_product xs view int * ys view int * to int\u000a  requires eq len xs len ys\u000a  acc = int 0\u000a  for i ulong len xs bound 1024\u000a    acc = add acc mul get xs i get ys i\u000a  end\u000a  ret acc\u000aend\u000afn main to int\u000a  a = new int 3 0\u000a  b = new int 3 0\u000a  put a 0 2\u000a  put a 1 3\u000a  put a 2 5\u000a  put b 0 4\u000a  put b 1 1\u000a  put b 2 2\u000a  ret dot_product view a view b\u000aend\u000a```\u000aRun in Online Compiler -> Full Error Table (1..30) Browse omega-rosetta \u000aFour visual rules \u000aThe anatomy of an Omega program.\u000aLearn these four cards and you can read real .om systems and GPU code immediately.\u000aRule 01 · Prefix words \u000aOperators come first\u000a```\u000ay = add mul a b c\u000anote comments start with note\u000a```\u000aOne statement per line. No semicolons, braces or infix ambiguity. Blocks close with end.\u000aRule 02 · Explicit types \u000aZero silent casts\u000a```\u000atotal = int 0\u000awide = ulong total\u000a```\u000aNew variables need a type word (int, uint, ulong, f64). Mismatches refuse with error 7.\u000aRule 03 · Bounded & safe \u000aExplicit loops & views\u000a```\u000afor i ulong len a bound 1024\u000a  v = get a i\u000aend\u000a```\u000aOut-of-range indices trap (103), loop overflows trap (104), and signed overflow traps (101).\u000aRule 04 · OM-2 contracts \u000aCheck rules in code\u000a```\u000aom2\u000arequires gt hi 0\u000aensures le result hi\u000a```\u000aExecutable contracts catch broken callers (trap 9/10) and erase cleanly under om2 release.\u000aHuman-first Omega NG · Built to welcome humans in \u000aWe get it: canonical Omega is hard to read. Infix + Lean 4 fixes that.\u000aWe are not taking humans out of the loop. Human engineering culture is extraordinary, and Omega NG is built to honor that craft without hiding the machine underneath. You should not have to take an agent's word for what it built: canonical prefix .om and the human-readable infix surface round-trip through om-fmt and lower to the exact same ΩIR, exact same SEMANTIC_ID and exact same verified machine bytes.\u000aBeing built For Omega 1.0, the human-readable infix surface (seed/ng/infix/ plus bidirectional om-fmt lowering to identical ΩIR and SEMANTIC_ID), Lean 4 EGP3 formal proofs and a byte-traceable #![forbid(unsafe_code)] Rust FFI hook are under development on staging lanes.\u000aCanonical prefix .om (compiles today in omc) \u000a```\u000anote Audited canonical format (identical ΩIR & SEMANTIC_ID)\u000afn clamp_add a uint b uint hi uint to uint\u000a  requires gt hi 0\u000a  ensures le result hi\u000a  s = add a b\u000a  if or lt s a gt s hi\u000a    ret hi\u000a  end\u000a  ret s\u000aend\u000a```\u000aCanonical prefix .om stays the primary audited format; om-fmt converts cleanly in both directions.\u000aOmega NG infix (seed/ng/infix/ + om-fmt -> same ΩIR + Lean 4 proofs) \u000a```\u000a// Human-readable infix surface (exact same ΩIR & bytes)\u000afn clamp_add(a: uint, b: uint, hi: uint) -> uint {\u000a  requires hi > 0;\u000a  ensures result <= hi;\u000a  let s = a + b;\u000a  if s < a || s > hi { return hi; }\u000a  return s;\u000a}\u000a```\u000aPaired with Lean 4 formal proofs and #![forbid(unsafe_code)] Rust FFI hooks over SHA-256-pinned binaries, so humans can audit code directly.\u000aFirst program & negative control \u000aRun sum.om, then break it on purpose.\u000aA test only proves something if a broken copy fails it. Run sum.om (exit 6), then swap ret total for ret true and watch omc refuse with error 7.\u000aPositive check: sum.om (expected exit = 6) \u000aCopy \u000a```\u000afn main to int\u000a  total = int 0\u000a  for i int 4 bound 4\u000a    total = add total i\u000a  end\u000a  ret total\u000aend\u000a```\u000aRun locally + broken negative control (expected compiler exit = 7) \u000aCopy \u000a```\u000aif ./omc < sum.om > omega-sum && chmod +x omega-sum; then\u000a  ./omega-sum; printf 'exit=%s\\n' \"$?\"\u000afi\u000ased 's/ret total/ret true/' sum.om > sum-bad.om\u000a./omc < sum-bad.om > sum-bad; printf 'compiler exit=%s\\n' \"$?\"\u000a```\u000a01 PIN\u000aLock the hash\u000aCheck source commit, target and compiler SHA-256 first.\u000a02 WRITE\u000aStay small\u000aStart from a nearby compiled example in the Harness.\u000a03 RUN\u000aCheck behavior\u000aVerify stdout bytes and exit status, not compile alone.\u000a04 BREAK\u000aMutate one rule\u000aConfirm a deliberately wrong input fails loudly.\u000a05 PROVE\u000aKeep receipts\u000aSave exact commands, outputs and hashes beside the code.\u000aOmega Harness & toolset \u000aClone the shared workflow for humans and agents.\u000aThe Omega Harness bundles compiler pins, language guides and executable refusal tests.\u000aCopy \u000a```\u000agit clone https://interplane.io/drakestapleton/omega-harness.git\u000acd omega-harness\u000acat PIN\u000acat skills/omega-harness/SKILL.md skills/writing-omega/SKILL.md\u000a```\u000aLanguage spec, compiler internals & OSC IR targets OMEGESE.md \u000aNormative language rules live in OMEGESE.md, compiler source in seed/omc/omc.om, and backend status in seed/README.md.\u000aEditor, MCP & migration tools MCP · VS Code · Bridge \u000aUse Omega MCP for local sandboxed compile/run tools, Omega for VS Code for highlighting, and Omega Bridge for C/Rust migration subsets.\u000aAgent prompt: Write and verify an Omega program plain text \u000a```\u000aWrite and verify an Omega program for [task]. Start at https://interplane.io/omega/tools.txt. Obtain the Harness and identify the target project's compiler pin before editing. Use the writing guide and one relevant tested example. Write .om source, run the positive test and a deliberate negative control on the named target, and report the source revision, compiler hash, commands, results and any checks that could not run.\u000a```\u000aOpen plain text Agent tool index\u000aOpen Online Compiler -> Open Full Knowledge Base See How the Compiler Was Built \u000a","html":"<!doctype html>\u000a<html lang=\"en\"><head><meta charset=\"utf-8\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"><title>Omega Language Guide: learn in 60 seconds, write &amp; verify | Interplane</title><meta name=\"description\" content=\"Visual Omega language guide with C, Rust and Python side-by-side Rosetta tabs, syntax anatomy cards, bounded examples, negative controls and 1-click online compiler links.\"><meta name=\"theme-color\" content=\"#09090b\"><meta name=\"dropyoururl-verify\" content=\"GZTgasKjUBISN3-M\"><link rel=\"canonical\" href=\"https://interplane.io/omega/write/\"><meta property=\"og:title\" content=\"Omega Language Guide: learn in 60 seconds, write &amp; verify | Interplane\"><meta property=\"og:description\" content=\"Visual Omega language guide with C, Rust and Python side-by-side Rosetta tabs, syntax anatomy cards, bounded examples, negative controls and 1-click online compiler links.\"><meta property=\"og:type\" content=\"website\"><meta property=\"og:url\" content=\"https://interplane.io/omega/write/\"><meta property=\"og:site_name\" content=\"Interplane\"><meta property=\"og:image\" content=\"https://interplane.io/public/interplane-card.png\"><meta property=\"og:image:type\" content=\"image/png\"><meta property=\"og:image:width\" content=\"1200\"><meta property=\"og:image:height\" content=\"630\"><meta property=\"og:image:alt\" content=\"Interplane Strand Exchange and Pure Omega: four glowing DNA-like strands on deep navy.\"><meta name=\"twitter:card\" content=\"summary_large_image\"><meta name=\"twitter:title\" content=\"Omega Language Guide: learn in 60 seconds, write &amp; verify | Interplane\"><meta name=\"twitter:description\" content=\"Visual Omega language guide with C, Rust and Python side-by-side Rosetta tabs, syntax anatomy cards, bounded examples, negative controls and 1-click online compiler links.\"><meta name=\"twitter:image\" content=\"https://interplane.io/public/interplane-card.png\"><meta name=\"twitter:image:alt\" content=\"Interplane Strand Exchange and Pure Omega: four glowing DNA-like strands on deep navy.\"><link rel=\"icon\" type=\"image/svg+xml\" href=\"/public/favicon.svg\"><link rel=\"stylesheet\" href=\"/public/style.css\"><script src=\"/public/copy.js\" defer></script><link rel=\"alternate\" type=\"text/plain\" href=\"/omega/write/index.txt\">\u000a<link rel=\"alternate\" type=\"application/json\" href=\"/omega/write/index.json\">\u000a</head>\u000a<body><a class=\"skip\" href=\"#main\">Skip to content</a>\u000a<header class=\"site-head\"><div class=\"shell head-inner\"><a class=\"brand\" translate=\"no\" href=\"/\" aria-label=\"Interplane home\">interplane<i class=\"dot\">.</i></a><nav aria-label=\"Main\"><a class=\"nav-strand\" href=\"/strands/\">Strand Exchange</a><a href=\"/omega/\">Omega</a><a href=\"/omega/kb/\">Learn</a><a href=\"https://interplane.io/explore\">Projects</a><a href=\"/hop/\">Hop</a><a href=\"/how-it-works/\">How it works</a><a href=\"/mission/\">Mission</a><a href=\"/celebration/\">Celebration</a></nav><a class=\"btn btn-primary btn-sm\" href=\"/omega/#downloads\">Get Omega</a></div></header>\u000a<main id=\"main\" tabindex=\"-1\">\u000a<section class=\"strand-hero theme-monk\">\u000a<div class=\"helix-sky\" aria-hidden=\"true\">\u000a<div class=\"helix-flyer fly-1\"><svg class=\"helix-comet\" viewBox=\"0 0 420 130\"><g class=\"rungs\"><path class=\"rung\" d=\"M35 28V102M70 35V95M105 28V102M140 35V95M175 28V102M210 35V95M245 28V102M280 35V95M315 28V102M350 35V95M385 28V102\"/></g><path class=\"st-a\" d=\"M0 35C24 35 46 95 70 95C94 95 116 35 140 35C164 35 186 95 210 95C234 95 256 35 280 35C304 35 326 95 350 95C374 95 396 35 420 35\"/><path class=\"st-b\" d=\"M0 65C14 38 22 25 35 25C58 25 82 105 105 105C128 105 152 25 175 25C198 25 222 105 245 105C268 105 292 25 315 25C338 25 362 105 385 105C398 105 406 92 420 65\"/><path class=\"st-c\" d=\"M0 95C24 95 46 35 70 35C94 35 116 95 140 95C164 95 186 35 210 35C234 35 256 95 280 95C304 95 326 35 350 35C374 35 396 95 420 95\"/><path class=\"st-d\" d=\"M0 65C14 92 22 105 35 105C58 105 82 25 105 25C128 25 152 105 175 105C198 105 222 25 245 25C268 25 292 105 315 105C338 105 362 25 385 25C398 25 406 38 420 65\"/><g class=\"pulse\"><path d=\"M0 35C24 35 46 95 70 95C94 95 116 35 140 35C164 35 186 95 210 95C234 95 256 35 280 35C304 35 326 95 350 95C374 95 396 35 420 35\"/><path d=\"M0 95C24 95 46 35 70 35C94 35 116 95 140 95C164 95 186 35 210 35C234 35 256 95 280 95C304 95 326 35 350 35C374 35 396 95 420 95\"/></g></svg></div>\u000a<img class=\"helix-ribbon\" src=\"/public/strand-band.svg\" width=\"4800\" height=\"96\" alt=\"\">\u000a</div>\u000a<div class=\"shell\">\u000a<nav class=\"strand-switcher\" aria-label=\"Explore Omega guides\">\u000a<a class=\"strand-pill\" href=\"/omega/\">4-Strand Helix</a>\u000a<a class=\"strand-pill p-monk active\" href=\"/omega/write/\"><i class=\"dna-dot n-a\"></i>Language Guide</a>\u000a<a class=\"strand-pill\" href=\"/omega/kb/\">Knowledge Base</a>\u000a<a class=\"strand-pill\" href=\"/strands/\">Strand Exchange</a>\u000a<a class=\"strand-pill\" href=\"/omega/bootstrap/\">Bootstrap Chain</a>\u000a<a class=\"strand-pill\" href=\"/omega/play/\">Zero-JS Arcade</a>\u000a</nav>\u000a<span class=\"eyebrow\">Omega Language Guide &middot; Clean syntax, zero hidden runtime</span>\u000a<h1>Write it. Run it. <em>Prove it.</em></h1>\u000a<p class=\"lede\">Omega reads left to right in plain words, checks bounds and types up front, and compiles into one tiny static binary. Pick your current language below, inspect four visual rules, and run code in your browser right away.</p>\u000a<div class=\"actions\">\u000a<a class=\"button orange\" href=\"https://interplane.io/omega/compile/\">Try in Online Compiler &rarr;</a>\u000a<a class=\"button dark\" href=\"#rosetta-guide\">60s Rosetta Switcher</a>\u000a<a class=\"button dark\" href=\"#syntax\">4 Syntax Rules</a>\u000a<a class=\"button dark\" href=\"#example\">Run <span translate=\"no\">sum.om</span></a>\u000a</div>\u000a</div></section>\u000a\u000a<div class=\"rope-band\" aria-hidden=\"true\"><img src=\"/public/strand-rope.svg\" width=\"4480\" height=\"240\" alt=\"\"></div>\u000a\u000a<section class=\"section\" id=\"rosetta-guide\"><div class=\"shell\"><div class=\"col wide\">\u000a<div class=\"sec-head\">\u000a<div>\u000a<span class=\"eyebrow\">60-second translation &middot; zero JavaScript</span>\u000a<h2>See Omega beside C, Rust or Python.</h2>\u000a<p>Switch tabs below, copy the Omega panel, and paste straight into the <a href=\"https://interplane.io/omega/compile/\">online compiler</a>.</p>\u000a</div>\u000a</div>\u000a\u000a<div class=\"rosetta-box pop-halo\" aria-label=\"Omega Language Guide C, Rust and Python side-by-side switcher\">\u000a<input class=\"ros-pick ros-1\" type=\"radio\" name=\"write-ros\" id=\"wros-c\" checked>\u000a<input class=\"ros-pick ros-2\" type=\"radio\" name=\"write-ros\" id=\"wros-rust\">\u000a<input class=\"ros-pick ros-3\" type=\"radio\" name=\"write-ros\" id=\"wros-py\">\u000a<div class=\"ros-tabs\">\u000a<label class=\"ros-tab t-c\" for=\"wros-c\">From C</label>\u000a<label class=\"ros-tab t-rust\" for=\"wros-rust\">From Rust</label>\u000a<label class=\"ros-tab t-py\" for=\"wros-py\">From Python</label>\u000a</div>\u000a\u000a<div class=\"ros-panel p-c\">\u000a<div class=\"ros-split\">\u000a<div class=\"ros-pane\">\u000a<span class=\"ros-lang\">C (raw pointer, unchecked index)</span>\u000a<pre translate=\"no\" class=\"wrap\"><code>int sum_even(const uint32_t *a, uint64_t n) {\u000a  uint32_t total = 0;\u000a  for (uint64_t i = 0; i &lt; n; i++)\u000a    if ((a[i] &amp; 1u) == 0u) total += a[i];\u000a  return (int)total;\u000a}</code></pre>\u000a</div>\u000a<div class=\"ros-pane ros-om\">\u000a<span class=\"ros-lang\">Omega OM-2 (checked view, bounded loop, exits 20)</span>\u000a<div class=\"copy-box\"><span class=\"copy-ctrl\"><button type=\"button\" class=\"copy-btn\" command=\"--copy\" commandfor=\"cmd-wros-c\">Copy</button><span class=\"copy-tip\" role=\"status\"></span></span><pre translate=\"no\" class=\"wrap\"><code id=\"cmd-wros-c\">om2\u000afn sum_even a view uint * to int\u000a  total = uint 0\u000a  for i ulong len a bound 1024\u000a    v = get a i\u000a    if eq and v 1 0\u000a      total = add total v\u000a    end\u000a  end\u000a  ret int total\u000aend\u000afn main to int\u000a  buf = new uint 4 0\u000a  put buf 0 4\u000a  put buf 1 7\u000a  put buf 2 10\u000a  put buf 3 6\u000a  ret sum_even view buf\u000aend</code></pre></div>\u000a</div>\u000a</div>\u000a</div>\u000a\u000a<div class=\"ros-panel p-rust\">\u000a<div class=\"ros-split\">\u000a<div class=\"ros-pane\">\u000a<span class=\"ros-lang\">Rust (slices + debug_assert! + LLVM)</span>\u000a<pre translate=\"no\" class=\"wrap\"><code>fn clamp_add(a: u32, b: u32, hi: u32) -&gt; u32 {\u000a  debug_assert!(hi &gt; 0);\u000a  let s = a.saturating_add(b);\u000a  let out = if s &gt; hi { hi } else { s };\u000a  debug_assert!(out &lt;= hi);\u000a  out\u000a}</code></pre>\u000a</div>\u000a<div class=\"ros-pane ros-om\">\u000a<span class=\"ros-lang\">Omega OM-2 (built-in contracts, exits 25)</span>\u000a<div class=\"copy-box\"><span class=\"copy-ctrl\"><button type=\"button\" class=\"copy-btn\" command=\"--copy\" commandfor=\"cmd-wros-rust\">Copy</button><span class=\"copy-tip\" role=\"status\"></span></span><pre translate=\"no\" class=\"wrap\"><code id=\"cmd-wros-rust\">om2\u000afn clamp_add a uint b uint hi uint to uint\u000a  requires gt hi 0\u000a  ensures le result hi\u000a  s = add a b\u000a  if or lt s a gt s hi\u000a    ret hi\u000a  end\u000a  ret s\u000aend\u000afn main to int\u000a  ret int clamp_add 18 9 25\u000aend</code></pre></div>\u000a</div>\u000a</div>\u000a</div>\u000a\u000a<div class=\"ros-panel p-py\">\u000a<div class=\"ros-split\">\u000a<div class=\"ros-pane\">\u000a<span class=\"ros-lang\">Python (dynamic types + interpreter)</span>\u000a<pre translate=\"no\" class=\"wrap\"><code>def dot_product(xs: list[int], ys: list[int]) -&gt; int:\u000a    acc = 0\u000a    for i in range(len(xs)):\u000a        acc += xs[i] * ys[i]\u000a    return acc</code></pre>\u000a</div>\u000a<div class=\"ros-pane ros-om\">\u000a<span class=\"ros-lang\">Omega OM-2 (static types, direct native ELF, exits 21)</span>\u000a<div class=\"copy-box\"><span class=\"copy-ctrl\"><button type=\"button\" class=\"copy-btn\" command=\"--copy\" commandfor=\"cmd-wros-py\">Copy</button><span class=\"copy-tip\" role=\"status\"></span></span><pre translate=\"no\" class=\"wrap\"><code id=\"cmd-wros-py\">om2\u000afn dot_product xs view int * ys view int * to int\u000a  requires eq len xs len ys\u000a  acc = int 0\u000a  for i ulong len xs bound 1024\u000a    acc = add acc mul get xs i get ys i\u000a  end\u000a  ret acc\u000aend\u000afn main to int\u000a  a = new int 3 0\u000a  b = new int 3 0\u000a  put a 0 2\u000a  put a 1 3\u000a  put a 2 5\u000a  put b 0 4\u000a  put b 1 1\u000a  put b 2 2\u000a  ret dot_product view a view b\u000aend</code></pre></div>\u000a</div>\u000a</div>\u000a</div>\u000a\u000a<div class=\"ros-foot\">\u000a<a class=\"button orange\" href=\"https://interplane.io/omega/compile/\">Run in Online Compiler &rarr;</a>\u000a<a class=\"button dark\" href=\"/omega/kb/#errors\">Full Error Table (<span translate=\"no\">1..30</span>)</a>\u000a<a class=\"button dark\" href=\"https://interplane.io/drakestapleton/omega-rosetta\">Browse omega-rosetta</a>\u000a</div>\u000a</div>\u000a</div></div></section>\u000a\u000a<section class=\"section section-alt\" id=\"syntax\"><div class=\"shell\"><div class=\"col wide\">\u000a<div class=\"sec-head\">\u000a<div>\u000a<span class=\"eyebrow\">Four visual rules</span>\u000a<h2>The anatomy of an Omega program.</h2>\u000a<p>Learn these four cards and you can read real <code translate=\"no\">.om</code> systems and GPU code immediately.</p>\u000a</div>\u000a</div>\u000a\u000a<ul class=\"compiler-deck\" aria-label=\"Four core Omega syntax rules\">\u000a<li class=\"compiler-card c-monk\">\u000a<span class=\"eyebrow\">Rule 01 &middot; Prefix words</span>\u000a<h3>Operators come first</h3>\u000a<pre translate=\"no\" class=\"syntax-code\"><code>y = add mul a b c\u000anote comments start with note</code></pre>\u000a<p>One statement per line. No semicolons, braces or infix ambiguity. Blocks close with <code translate=\"no\">end</code>.</p>\u000a</li>\u000a<li class=\"compiler-card c-predator\">\u000a<span class=\"eyebrow\">Rule 02 &middot; Explicit types</span>\u000a<h3>Zero silent casts</h3>\u000a<pre translate=\"no\" class=\"syntax-code\"><code>total = int 0\u000awide = ulong total</code></pre>\u000a<p>New variables need a type word (<code translate=\"no\">int</code>, <code translate=\"no\">uint</code>, <code translate=\"no\">ulong</code>, <code translate=\"no\">f64</code>). Mismatches refuse with <code translate=\"no\">error 7</code>.</p>\u000a</li>\u000a<li class=\"compiler-card c-trickster\">\u000a<span class=\"eyebrow\">Rule 03 &middot; Bounded &amp; safe</span>\u000a<h3>Explicit loops &amp; views</h3>\u000a<pre translate=\"no\" class=\"syntax-code\"><code>for i ulong len a bound 1024\u000a  v = get a i\u000aend</code></pre>\u000a<p>Out-of-range indices trap (<code translate=\"no\">103</code>), loop overflows trap (<code translate=\"no\">104</code>), and signed overflow traps (<code translate=\"no\">101</code>).</p>\u000a</li>\u000a<li class=\"compiler-card c-ascetic\">\u000a<span class=\"eyebrow\">Rule 04 &middot; OM-2 contracts</span>\u000a<h3>Check rules in code</h3>\u000a<pre translate=\"no\" class=\"syntax-code\"><code>om2\u000arequires gt hi 0\u000aensures le result hi</code></pre>\u000a<p>Executable contracts catch broken callers (<code translate=\"no\">trap 9/10</code>) and erase cleanly under <code translate=\"no\">om2 release</code>.</p>\u000a</li>\u000a</ul>\u000a\u000a<div class=\"sec-head\" id=\"omega-10-preview\">\u000a<div>\u000a<span class=\"eyebrow\">Human-first Omega NG &middot; Built to welcome humans in</span>\u000a<h2>We get it: canonical Omega is hard to read. <em>Infix + Lean 4 fixes that.</em></h2>\u000a<p>We are not taking humans out of the loop. Human engineering culture is extraordinary, and Omega NG is built to honor that craft without hiding the machine underneath. You should not have to take an agent's word for what it built: canonical prefix <code translate=\"no\">.om</code> and the human-readable infix surface round-trip through <code translate=\"no\">om-fmt</code> and lower to the exact same <code translate=\"no\">&Omega;IR</code>, exact same <code translate=\"no\">SEMANTIC_ID</code> and exact same verified machine bytes.</p>\u000a<p><span class=\"reg build\">Being built</span> For Omega <span translate=\"no\">1.0</span>, the human-readable infix surface (<code translate=\"no\">seed/ng/infix/</code> plus bidirectional <code translate=\"no\">om-fmt</code> lowering to identical <code translate=\"no\">&Omega;IR</code> and <code translate=\"no\">SEMANTIC_ID</code>), Lean 4 EGP3 formal proofs and a byte-traceable <code translate=\"no\">#![forbid(unsafe_code)]</code> Rust FFI hook are under development on staging lanes.</p>\u000a</div>\u000a</div>\u000a<div class=\"ros-split\" aria-label=\"Canonical prefix Omega side by side with human-readable Omega NG infix\">\u000a<div class=\"ros-pane ros-om\">\u000a<span class=\"ros-lang\">Canonical prefix <span translate=\"no\">.om</span> (compiles today in omc)</span>\u000a<pre translate=\"no\" class=\"wrap\"><code>note Audited canonical format (identical &Omega;IR &amp; SEMANTIC_ID)\u000afn clamp_add a uint b uint hi uint to uint\u000a  requires gt hi 0\u000a  ensures le result hi\u000a  s = add a b\u000a  if or lt s a gt s hi\u000a    ret hi\u000a  end\u000a  ret s\u000aend</code></pre>\u000a<p class=\"fine\">Canonical prefix <code translate=\"no\">.om</code> stays the primary audited format; <code translate=\"no\">om-fmt</code> converts cleanly in both directions.</p>\u000a</div>\u000a<div class=\"ros-pane\">\u000a<span class=\"ros-lang\">Omega NG infix (<span translate=\"no\">seed/ng/infix</span>/ + om-fmt &rarr; same &Omega;IR + Lean 4 proofs)</span>\u000a<pre translate=\"no\" class=\"wrap\"><code>// Human-readable infix surface (exact same &Omega;IR &amp; bytes)\u000afn clamp_add(a: uint, b: uint, hi: uint) -&gt; uint {\u000a  requires hi &gt; 0;\u000a  ensures result &lt;= hi;\u000a  let s = a + b;\u000a  if s &lt; a || s &gt; hi { return hi; }\u000a  return s;\u000a}</code></pre>\u000a<p class=\"fine\">Paired with Lean 4 formal proofs and <code translate=\"no\">#![forbid(unsafe_code)]</code> Rust FFI hooks over SHA-256-pinned binaries, so humans can audit code directly.</p>\u000a</div>\u000a</div>\u000a</div></div></section>\u000a\u000a<section class=\"section\" id=\"example\"><div class=\"shell\"><div class=\"col wide airy-stack\">\u000a<div class=\"sec-head\">\u000a<div>\u000a<span class=\"eyebrow\">First program &amp; negative control</span>\u000a<h2>Run <code translate=\"no\">sum.om</code>, then break it on purpose.</h2>\u000a<p>A test only proves something if a broken copy fails it. Run <a href=\"/omega/examples/sum.om\"><span translate=\"no\">sum.om</span></a> (exit <code translate=\"no\">6</code>), then swap <code translate=\"no\">ret total</code> for <code translate=\"no\">ret true</code> and watch <code translate=\"no\">omc</code> refuse with <code translate=\"no\">error 7</code>.</p>\u000a</div>\u000a</div>\u000a\u000a<div class=\"ros-split\">\u000a<div class=\"ros-pane ros-om\">\u000a<span class=\"ros-lang\">Positive check: <span translate=\"no\">sum.om</span> (expected exit = 6)</span>\u000a<div class=\"copy-box\"><span class=\"copy-ctrl\"><button type=\"button\" class=\"copy-btn\" command=\"--copy\" commandfor=\"sum-source\">Copy</button><span class=\"copy-tip\" role=\"status\"></span></span><pre translate=\"no\" class=\"wrap\"><code id=\"sum-source\">fn main to int\u000a  total = int 0\u000a  for i int 4 bound 4\u000a    total = add total i\u000a  end\u000a  ret total\u000aend</code></pre></div>\u000a</div>\u000a<div class=\"ros-pane\">\u000a<span class=\"ros-lang\">Run locally + broken negative control (expected compiler exit = 7)</span>\u000a<div class=\"copy-box\"><span class=\"copy-ctrl\"><button type=\"button\" class=\"copy-btn\" command=\"--copy\" commandfor=\"cmd-write-run\">Copy</button><span class=\"copy-tip\" role=\"status\"></span></span><pre translate=\"no\" class=\"wrap\"><code id=\"cmd-write-run\">if ./omc &lt; sum.om &gt; omega-sum &amp;&amp; chmod +x omega-sum; then\u000a  ./omega-sum; printf 'exit=%s\\n' \"$?\"\u000afi\u000ased 's/ret total/ret true/' sum.om &gt; sum-bad.om\u000a./omc &lt; sum-bad.om &gt; sum-bad; printf 'compiler exit=%s\\n' \"$?\"</code></pre></div>\u000a</div>\u000a</div>\u000a\u000a<ol class=\"rlvr-loop\" aria-label=\"Five-step Omega verification workflow\">\u000a<li class=\"rlvr-step step-1\"><span class=\"rlvr-num\">01 PIN</span><h3>Lock the hash</h3><p>Check source commit, target and compiler SHA-256 first.</p></li>\u000a<li class=\"rlvr-step step-2\"><span class=\"rlvr-num\">02 WRITE</span><h3>Stay small</h3><p>Start from a nearby compiled example in the Harness.</p></li>\u000a<li class=\"rlvr-step step-3\"><span class=\"rlvr-num\">03 RUN</span><h3>Check behavior</h3><p>Verify stdout bytes and exit status, not compile alone.</p></li>\u000a<li class=\"rlvr-step step-4\"><span class=\"rlvr-num\">04 BREAK</span><h3>Mutate one rule</h3><p>Confirm a deliberately wrong input fails loudly.</p></li>\u000a<li class=\"rlvr-step step-5\"><span class=\"rlvr-num\">05 PROVE</span><h3>Keep receipts</h3><p>Save exact commands, outputs and hashes beside the code.</p></li>\u000a</ol>\u000a</div></div></section>\u000a\u000a<section class=\"section section-alt\" id=\"harness\"><div class=\"shell\"><div class=\"col wide airy-stack\">\u000a<div class=\"sec-head\">\u000a<div>\u000a<span class=\"eyebrow\">Omega Harness &amp; toolset</span>\u000a<h2>Clone the shared workflow for humans and agents.</h2>\u000a<p>The <a href=\"https://interplane.io/drakestapleton/omega-harness\">Omega Harness</a> bundles compiler pins, language guides and executable refusal tests.</p>\u000a</div>\u000a</div>\u000a\u000a<div class=\"copy-box\"><span class=\"copy-ctrl\"><button type=\"button\" class=\"copy-btn\" command=\"--copy\" commandfor=\"cmd-write-harness\">Copy</button><span class=\"copy-tip\" role=\"status\"></span></span><pre translate=\"no\" class=\"wrap\"><code id=\"cmd-write-harness\">git clone https://interplane.io/drakestapleton/omega-harness.git\u000acd omega-harness\u000acat PIN\u000acat skills/omega-harness/SKILL.md skills/writing-omega/SKILL.md</code></pre></div>\u000a\u000a<div class=\"lab-grid\" id=\"tools\">\u000a<details class=\"lab-drawer d-monk\">\u000a<summary><span>Language spec, compiler internals &amp; OSC IR targets</span><span class=\"lab-tag\"><span translate=\"no\">OMEGESE.md</span></span></summary>\u000a<div class=\"lab-body\">\u000a<p>Normative language rules live in <a href=\"https://interplane.io/drakestapleton/omega-mv/blob/main/docs/one_layer/OMEGESE.md\"><span translate=\"no\">OMEGESE.md</span></a>, compiler source in <code translate=\"no\">seed/omc/omc.om</code>, and backend status in <a href=\"https://interplane.io/drakestapleton/omega-mv/blob/main/seed/README.md\"><span translate=\"no\">seed/README.md</span></a>.</p>\u000a</div>\u000a</details>\u000a<details class=\"lab-drawer d-predator\">\u000a<summary><span>Editor, MCP &amp; migration tools</span><span class=\"lab-tag\">MCP &middot; VS Code &middot; Bridge</span></summary>\u000a<div class=\"lab-body\">\u000a<p>Use <a href=\"https://interplane.io/drakestapleton/omega-mcp\">Omega MCP</a> for local sandboxed <span translate=\"no\">compile/run</span> tools, <a href=\"https://interplane.io/drakestapleton/vscode-omega\">Omega for VS Code</a> for highlighting, and <a href=\"https://interplane.io/drakestapleton/omega-bridge\">Omega Bridge</a> for <span translate=\"no\">C/Rust</span> migration subsets.</p>\u000a</div>\u000a</details>\u000a<details class=\"lab-drawer d-trickster\" id=\"prompt-write-omega\">\u000a<summary><span>Agent prompt: Write and verify an Omega program</span><span class=\"lab-tag\">plain text</span></summary>\u000a<div class=\"lab-body\">\u000a<pre translate=\"no\" class=\"wrap\"><code>Write and verify an Omega program for [task]. Start at https://interplane.io/omega/tools.txt. Obtain the Harness and identify the target project's compiler pin before editing. Use the writing guide and one relevant tested example. Write .om source, run the positive test and a deliberate negative control on the named target, and report the source revision, compiler hash, commands, results and any checks that could not run.</code></pre>\u000a<p><a class=\"button dark small\" href=\"/agents/prompts/write-omega.txt\">Open plain text</a> <a class=\"button dark small\" href=\"/omega/tools.txt\">Agent tool index</a></p>\u000a</div>\u000a</details>\u000a</div>\u000a\u000a<div class=\"actions\">\u000a<a class=\"button orange\" href=\"https://interplane.io/omega/compile/\">Open Online Compiler &rarr;</a>\u000a<a class=\"button dark\" href=\"/omega/kb/\">Open Full Knowledge Base</a>\u000a<a class=\"button dark\" href=\"/omega/bootstrap/\">See How the Compiler Was Built</a>\u000a</div>\u000a</div></div></section>\u000a\u000a</main>\u000a<div class=\"rope-band rope-sm foot-rope\" aria-hidden=\"true\"><img src=\"/public/strand-thread.svg\" width=\"2560\" height=\"40\" alt=\"\" loading=\"lazy\"></div>\u000a<footer class=\"site-foot\"><div class=\"shell\">\u000a<div class=\"foot-grid\">\u000a<div class=\"foot-col\"><p class=\"foot-h\">Explore</p><a href=\"/strands/\">Strand Exchange</a><a href=\"/hive/\">The Hive</a><a href=\"https://interplane.io/explore\">Projects on the forge</a><a href=\"/yard/\">The yard</a><a href=\"/hop/\">Hop for Mac</a><a href=\"/omega/\">Omega language</a><a href=\"/omega/kb/\">Omega Knowledge Base</a><a href=\"/omega/helix/\">Omega Helix</a><a href=\"/download/\">Downloads</a><a href=\"/agents/#prompts\">Agent prompts</a><a href=\"https://interplane.io/galaxy/\">The map</a></div>\u000a<div class=\"foot-col\"><p class=\"foot-h\">Trust and proof</p><a href=\"/how-it-works/\">How it works</a><a href=\"/evidence/\">What counts as proof</a><a href=\"/receipts/\">Public receipts</a><a href=\"/mission/\">Mission</a><a href=\"/papers/\">Papers</a><a href=\"/contribute/\">Contributions</a><a href=\"/sovereign-intelligence/\">Sovereign Intelligence&trade;</a><a href=\"/si-2/\">SI <span translate=\"no\">2.0</span> status</a><a href=\"/ada/\">ADA advocacy</a><a href=\"/celebration/\">Wall of Celebration</a></div>\u000a<div class=\"foot-col\"><p class=\"foot-h\">Technical and legal</p><a href=\"/forge/\">About the forge</a><a href=\"/protocol/\">Protocol overview</a><a href=\"/quick-start/\">Quick start</a><a href=\"/concepts/\">Concepts</a><a href=\"/adapter/\">Writing an adapter</a><a href=\"/conformance/\">Conformance</a><a href=\"/status/\">Status</a><a href=\"/privacy/\">Privacy</a><a href=\"/terms/\">Terms</a></div>\u000a</div>\u000a<div class=\"foot-base\">\u000a<p class=\"si-line\">Interplane is part of <a href=\"/sovereign-intelligence/\">Sovereign Intelligence&trade;</a>. SI means sovereign, not super: intelligence you own, run on hardware you own, and can check yourself.</p>\u000a<p class=\"foot-fine\">No trackers, no outside fonts, no third-party scripts. Built and checked in <a href=\"https://interplane.io/drakestapleton/omega-mv\">Omega</a>. <a href=\"https://interplane.io/drakestapleton/interplane.io\">Site source</a> (<span translate=\"no\">AGPL-3.0-or-later</span>).</p>\u000a</div>\u000a<p class=\"foot-fine\" lang=\"en\"><a href=\"/translate/\">Read in your language</a> | <a href=\"/omega/write/index.txt\">Plain text</a> | <a href=\"/omega/write/index.json\">JSON source</a></p>\u000a</div></footer>\u000a</body></html>\u000a"}
