Metadata-Version: 2.4
Name: anthem-cx
Version: 0.1.0
Summary: A tool to automatically find counterexamples to external equivalence problems.
Author-email: Jan Heuer <jan.heuer@uni-potsdam.de>
License: MIT License
        
        Copyright (c) 2024 Jan Heuer
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://github.com/potassco/anthem-cx.git
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: clingo>=5.7.1
Requires-Dist: networkx
Provides-Extra: lint
Requires-Dist: ruff; extra == "lint"
Provides-Extra: typecheck
Requires-Dist: ty; extra == "typecheck"
Provides-Extra: test
Requires-Dist: pytest; extra == "test"
Requires-Dist: pytest-cov; extra == "test"
Requires-Dist: coverage[toml]; extra == "test"
Provides-Extra: doc
Requires-Dist: mkdocs; extra == "doc"
Requires-Dist: mkdocs-material; extra == "doc"
Requires-Dist: mkdocstrings>=1.0.4; extra == "doc"
Requires-Dist: mkdocstrings-python>=2.0; extra == "doc"
Requires-Dist: mkdocs-literate-nav; extra == "doc"
Requires-Dist: pygments_clingo; extra == "doc"
Provides-Extra: dev
Requires-Dist: anthem_cx[lint,test,typecheck]; extra == "dev"
Dynamic: license-file

# anthem-cx

Given two Answer Set Programming (ASP) programs and a user guide declaring
their input and output predicates, *anthem-cx* searches for an input on which
the two programs behave differently and reports it as a counterexample.

## Installation

*anthem-cx* is available on [PyPI](https://pypi.org/project/anthem-cx/).
Install it with

```bash
pip install anthem-cx
```

Alternatively, install it from source by cloning the repository and running

```bash
pip install .
```

## Usage

To check for counterexamples for the equivalence of two programs `left.lp` and
`right.lp` run

```bash
anthem-cx left.lp right.lp guide.ug
```

where `guide.ug` is the user guide declaring the input and output predicates.

To get a full list of available options run

```bash
anthem-cx -h
```

## Examples

The [`examples`](https://github.com/potassco/anthem-cx/tree/master/examples)
directory contains a number of worked examples. Each example folder lists the
commands to run it; see the
[examples documentation](https://docs.potassco.org/anthem-cx/examples/) for a
detailed explanation of each one.

## Documentation

Full documentation — including the supported input language, the available
options, and how the counterexample search works — is available at
[docs.potassco.org/anthem-cx](https://docs.potassco.org/anthem-cx/).
