This release is a pre-release and may not be stable for production use.
omnibias-boolean
From truth values to exact algebra. Representations can change while every Boolean result stays fixed.
Static poster · Narrow-screen animation · How this visual is computed
Truth tables or Boolean polynomials enter; exact ANF, Walsh coefficients, Boolean derivatives or equation solutions leave. Use this package for finite algebraic structure; use binary for tensor quantization.
The animation uses computed outputs to explain this package. Frame transitions are illustrative unless a training step is explicitly identified; it is not a performance comparison.
API reference · Source · Tests · Talk to Derivon
The mathematical connection
Exact Boolean algebra needs neither a small bias spacing nor a temperature schedule. Optional differentiable gates connect it to temperature collapse: finite β gives a smooth relaxation and hardening requires a stated tie rule. Bias-collapse kernels can differentiate those smooth gates, but do not turn approximate gate optimization into an exact Boolean proof.
Run this README
The examples use omnibias-boolean on Python >=3.10. Their installed-wheel
profile selects runtime features, not an editable workspace. Install the prepared
prerelease from PyPI:
python -m pip install --pre "omnibias-boolean==0.1.0a2"
For local development before publication, build and test the coordinated wheelhouse using the release guide. The package's wheel profile executes the examples below outside the source checkout.
Existing published consumers may need historical primitive versions; see the compatibility policy.
Why this package exists
Boolean functions have algebraic structure that a generic real-valued tensor does not expose. Boolean lets you move between exact finite representations, inspect interactions with discrete derivatives, and solve bounded algebraic systems. Optional tensor realizations connect those structures to learnable soft gates.
What you can build
- Truth tables and algebraic normal forms over GF(2).
- Walsh transforms, influences and exact Boolean derivatives.
- Finite equation solvers, with optional Torch/JAX gate and spectrum operations.
Choose exact mode for truth-table identities, bounded logic tests and reference oracles. Choose a tensor realization when the purpose is optimization through a smooth model. Keeping the two separate lets you compare a learned gate with the exact finite behavior it is intended to approximate.
A working example
from omnibias.boolean import truth_table_from_callable, anf_from_truth_table
from omnibias.boolean import truth_table_from_anf
xor = truth_table_from_callable(lambda a, b: a ^ b, 2)
polynomial = anf_from_truth_table(xor)
assert truth_table_from_anf(polynomial) == xor
print(polynomial)
Choose the right contract
Truth-table size is exponential in the number of variables. Exact enumeration is a bounded reference tool, not a polynomial-time solver for arbitrary large Boolean systems. A soft gate gradient and a Boolean derivative are different operators with different meanings.
Explore and validate
The API guide contains the generated module/export inventory. Use it to find the focused implementation rather than guessing a symbol from another package. The capability map connects the primitives to larger scientific workflows.
From the main repository, run the package’s regression suite:
uv run pytest packages/omnibias-boolean/tests -q
License
Apache-2.0. See LICENSE and the licensing policy.
Metadata
Release files for omnibias-boolean 0.1.0a2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| omnibias_boolean-0.1.0a2.tar.gz | 44.2 kB | With provenance | Details for omnibias_boolean-0.1.0a2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| omnibias_boolean-0.1.0a2-py3-none-any.whl | Python 3 | none | any | Details for omnibias_boolean-0.1.0a2-py3-none-any.whl |
Total release size: 90.6 kB
Release files / omnibias_boolean-0.1.0a2.tar.gz
| Download URL | omnibias_boolean-0.1.0a2.tar.gz |
|---|---|
| Size | 44.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ed1e5cdf8d1bcc42bbc4b4c369c1f605041f324161e5ddeae688c7850a0e94da
|
|
BLAKE2b-256 checksum How to use checksums |
b94d0b074a0399f9f16960cd39f4e2276274f5fcf72ba2167dd74e251d3bdee4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 4, 2026.
Transparency logRelease files / omnibias_boolean-0.1.0a2-py3-none-any.whl
| Download URL | omnibias_boolean-0.1.0a2-py3-none-any.whl |
|---|---|
| Size | 46.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
38e0285f8e3a83988ba9714ab80c90d910edf85ef5eb9243985630a69621d4e1
|
|
BLAKE2b-256 checksum How to use checksums |
662cf95fb69ed21daeb61f2e10a39d092be6c652b8a936200e87bdb876d62463
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 4, 2026.
Transparency logSecurity for omnibias-boolean 0.1.0a2
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for omnibias_boolean-0.1.0a2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 4, 2026.
Transparency logA 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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.