Metadata-Version: 2.5
Name: sverify-polars
Version: 0.9.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.9.0
Provides-Extra: run
Requires-Dist: numpy>=2.5.4; extra == 'run'
Requires-Dist: polars<2.2,>=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"` (reported as pending, #2545) 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`);
- `Sverify/Polars/` and `lakefile.toml`: its Lean half, the Lake package
  `sverify-polars`: the choice table, the shims and their lemmas,
  `Profile.polars` and the `Engine` value, on the core, the analysis and
  engines-common alone ([docs/proofs.md](../../docs/proofs.md)).
