Metadata-Version: 2.5
Name: sverify-duckdb
Version: 0.8.0
Summary: DuckDB as an engine of sverify: plans verified in Lean, written as DuckDB SQL
Project-URL: Source, https://github.com/AlexanderNenninger/substrait-lean/tree/main/engines/duckdb
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: duckdb>=2.0.0; extra == 'run'
Description-Content-Type: text/markdown

# sverify-duckdb

Sverify-duckdb 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.

DuckDB as an engine of [sverify](https://github.com/AlexanderNenninger/substrait-lean),
its default one: a plan verified in Lean is written as DuckDB SQL through a
lowering proved for every plan, and runs on the process's DuckDB database.
`pip install sverify` installs it with DuckDB (`sverify-duckdb[run]`): for now
sverify's table store runs on DuckDB, so the base needs it. sverify finds it
through its `ProfilePlugin` in the entry-point group `sverify.profiles`.

The directory is one engine package of #1189:

- `src/sverify_duckdb/`: the plugin (`PLUGIN`) with the table store
  (`DuckDBStore`), the dialect (`dialect`: `DUCKDB`) and the runner (`engine`);
- `facts/`: what DuckDB does at each of the core's options, the evidence for
  `Profile.duckdb` ([facts/README.md](facts/README.md));
- `replay/`: the replay of DuckDB's sqllogictests, one ledger per area, the
  fuzz findings and the probes the facts cite;
- `tests/`: its tests, which run in sverify's test session
  (`python/pyproject.toml`'s `testpaths`).

Its Lean half (the profile, the generated lowering and the lift, `Sverify.DuckDB`)
follows.
