Omega
Specify and synthesize systems using symbolic algorithms
Install / Use
/learn @tulip-control/OmegaREADME
About
A package of symbolic algorithms using binary decision diagrams (BDDs) for synthesizing implementations from temporal logic specifications. This is useful for designing systems, especially vehicles that carry humans.
-
Synthesis algorithms for Moore or Mealy implementations of:
- generalized Streett(1) specifications (known as GR(1))
- generalized Rabin(1) specifications (counter-strategies to GR(1))
- detection of trivial realizability in GR(1) specifications.
See
omega.games.gr1and the examplegr1_synthesis_intro. -
Enumeration of state machines (as
networkxgraphs) from the synthesized symbolic implementations. Seeomega.games.enumeration. -
Facilities to simulate the resulting implementations with little and readable user code. See
omega.stepsand the examplemoore_moore. -
Code generation for the synthesized symbolic implementations. This code is correct-by-construction. See
omega.symbolic.codegen. -
Minimal covering with a symbolic algorithm to find a minimal cover, and to enumerate all minimal covers. Used to convert BDDs to minimal formulas. See
omega.symbolic.coverandomega.symbolic.cover_enum, and the exampleminimal_formula_from_bdd. -
First-order linear temporal logic (LTL) with rigid quantification and substitution. See
omega.logic.lexyacc,omega.logic.ast, andomega.logic.syntax. -
Bitblaster of quantified integer arithmetic (integers -> bits). See
omega.logic.bitvector. -
Translation from past to future LTL, using temporal testers. See
omega.logic.past. -
Symbolic automata that manage first-order formulas by seamlessly using binary decision diagrams (BDDs) underneath. You can:
- declare variables and constants
- translate:
- formulas to BDDs and
- BDDs to minimal formulas via minimal covering
- quantify
- substitute
- prime/unprime variables
- get the support of predicates
- pick satisfying assignments (or work with iterators)
- define operators
See
omega.symbolic.temporalandomega.symbolic.folfor more details. -
Facilities to write symbolic fixpoint algorithms. See
omega.symbolic.fixpointandomega.symbolic.prime, and the examplereachability_solver. -
Conversion from graphs annotated with formulas to temporal logic formulas. These graphs can help specify transition relations. The translation is in the spirit of predicate-action diagrams.
See
omega.symbolic.logicizerandomega.automatafor more details, and the examplesymbolic. -
Enumeration and plotting of state predicates and actions represented as BDDs. See
omega.symbolic.enumeration.
Documentation
In doc/doc.md.
Examples
import omega.symbolic.fol as _fol
ctx = _fol.Context()
ctx.declare(
x=(0, 10),
y=(-2, 5),
z='bool')
u = ctx.add_expr(
r'(x <= 2) /\ (y >= -1)')
v = ctx.add_expr(
r'(y <= 3) => (x > 7)')
r = u & ~ v
expr = ctx.to_expr(r)
print(expr)
Installation
pip install omega
The package and its dependencies are pure Python.
For solving demanding games, install the Cython module dd.cudd
that interfaces to CUDD.
Instructions are available at dd.
License
BSD-3, see LICENSE file.
Related Skills
claude-opus-4-5-migration
83.4kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
model-usage
338.0kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
mcp-for-beginners
15.7kThis open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable, and secure AI workflows from session setup to service orchestration.
TrendRadar
49.8k⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的 AI 舆情监控助手与热点筛选工具!聚合多平台热点 + RSS 订阅,支持关键词精准筛选。AI 智能筛选新闻 + AI 翻译 + AI 分析简报直推手机,也支持接入 MCP 架构,赋能 AI 自然语言对话分析、情感洞察与趋势预测等。支持 Docker ,数据本地/云端自持。集成微信/飞书/钉钉/Telegram/邮件/ntfy/bark/slack 等渠道智能推送。
