Metadata-Version: 2.5
Name: sverify-polars
Version: 0.8.0
Summary: Polars as an engine of sverify: plans verified in Lean, run as Polars lazy frames
Project-URL: Source, https://github.com/AlexanderNenninger/substrait-lean/tree/main/engines/polars
Project-URL: Issues, https://github.com/AlexanderNenninger/substrait-lean/issues
License-Expression: MPL-2.0
License-File: LICENSE
Requires-Python: >=3.12
Requires-Dist: sverify==0.8.0
Provides-Extra: run
Requires-Dist: numpy>=2.5.4; extra == 'run'
Requires-Dist: polars>=2.1.0; extra == 'run'
Description-Content-Type: text/markdown

# sverify-polars

> Sverify-polars is a working prototype, and so is sverify, which it extends.
> Their proofs and code still need a human audit before anyone relies on their
> results.

Polars as an engine of [sverify](https://github.com/AlexanderNenninger/substrait-lean):
a plan verified in Lean runs as a Polars lazy frame on Polars's streaming
engine, with a shim where Polars differs from the reference. Install it with
`pip install sverify[polars]`, which brings Polars and NumPy (`sverify-polars[run]`);
`sverify-polars` alone carries the plugin and the facts, for verifying under
`semantics="polars"` without Polars. sverify finds it through its
`ProfilePlugin` in the entry-point group `sverify.profiles`.

The directory holds the whole engine package:

- `src/sverify_polars/`: the plugin (`PLUGIN`), the translation to lazy
  frames (`engine`) and the shims (`shims`);
- `facts/`: what Polars does at each of the core's options, the evidence
  for `Profile.polars` ([facts/README.md](facts/README.md));
- `probes/`: the probes' recordings the facts cite;
- `tests/`: its tests, which run in sverify's test session
  (`python/pyproject.toml`'s `testpaths`).

Its Lean half, the profile and its shims, is in the root Lean package for now
(`SubstraitLean/PolarsProfile.lean`, `PolarsShims.lean`).
