Skip to main content

Build Status

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:

    See omega.games.gr1 and the example gr1_synthesis_intro.

  • Enumeration of state machines (as networkx graphs) from the synthesized symbolic implementations. See omega.games.enumeration.

  • Facilities to simulate the resulting implementations with little and readable user code. See omega.steps and the example moore_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.cover and omega.symbolic.cover_enum, and the example minimal_formula_from_bdd.

  • First-order linear temporal logic (LTL) with rigid quantification and substitution. See omega.logic.lexyacc, omega.logic.ast, and omega.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:
      1. formulas to BDDs and
      2. 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.temporal and omega.symbolic.fol for more details.

  • Facilities to write symbolic fixpoint algorithms. See omega.symbolic.fixpoint and omega.symbolic.prime, and the example reachability_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.logicizer and omega.automata for more details, and the example symbolic.

  • 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.

Metadata

Release files for omega 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for omega 0.4.0
File Size Uploaded Provenance
omega-0.4.0.tar.gz 209.0 kB Without provenance Details

Release files / omega-0.4.0.tar.gz

Download URL omega-0.4.0.tar.gz
Size 209.0 kB
Tags Source
SHA-256 checksum
How to use checksums
c705a0d1618e20bd233dbd35e1ab0800c62a42f1b5b9be70af44fae1cd79723f
BLAKE2b-256 checksum
How to use checksums
144e00f0acb52430c9f04ad526466925d58ba489ae0c9628186e291a5d11cc83
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.1+

Security for omega 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page