clausal-jax
JAX predicates for Clausal Prolog.
Wraps JAX as Clausal Prolog predicates: arrays (creation, math, shape
operations, linear algebra, FFT), PRNG and sampling, function transforms,
pytrees, sharding, jax.scipy, activations and initializers, and the
optional Optax, Equinox and Flax layers.
Install
pip install clausal-jax
jax and jaxlib are pulled in as dependencies. Optax, Equinox
and Flax are extras: pip install "clausal-jax[optax,equinox,flax]". Requires Python 3.13 or later.
Use
Import the predicates into a seam (.seam) module, as the package's own
tests do. A Clausal Prolog (.clausal) module reaches Python only through
the seam: put the imports in a .seam module and list it under
[tool.clausal] python_bridges in your project's pyproject.toml (see
Importing Prolog).
This test, from tests/fixtures/jax_array_tests.seam,
shows the shape of a call:
-import_from(jax, [array, shape])
test("array from list") <- (
array([1.0, 2.0, 3.0], A),
shape(A, [3])
)
Documentation
- jax — JAX Array Operations
- jax_equinox — Equinox Layers, Filter Transforms, Pytree Utilities
- jax_flax — Flax Linen Models, Init, Apply
- jax_nn — JAX Activations and Initializers
- jax_optax — Optimisers, Schedules, Losses (Optax)
- jax_random — JAX PRNG and Sampling
- jax_scipy — JAX Special Functions and Distributions
- jax_sharding — JAX Device Placement and Sharding
- jax_transforms — JAX Function Transforms
- jax_tree — JAX Pytrees
License
MIT
Metadata
Release files for clausal-jax 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| clausal_jax-0.1.0.tar.gz | 61.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| clausal_jax-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 111.8 kB
Release files / clausal_jax-0.1.0.tar.gz
| Download URL | clausal_jax-0.1.0.tar.gz |
|---|---|
| Size | 61.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f7b8382401abc68bd3e419975d2905f28aca7bc3d734171557a66bfa9a0b6553
|
|
BLAKE2b-256 checksum How to use checksums |
b1c92b430a5dfa6cfdc6d9f06ff449892fbc689391b36761e963537618eedc40
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 7, 2026.
Transparency logRelease files / clausal_jax-0.1.0-py3-none-any.whl
| Download URL | clausal_jax-0.1.0-py3-none-any.whl |
|---|---|
| Size | 50.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6724ef61cf086f298294fc77e35686dd7f81faccc91a8450dd5e23991b890dab
|
|
BLAKE2b-256 checksum How to use checksums |
f530c975942ff967e9eb6aa3264ca731dcf52a18fcc7246d1a8f8bc1e936c03e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 7, 2026.
Transparency log