A tool to automatically find counterexamples to external equivalence problems.
Project description
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. Install it with
pip install anthem-cx
Alternatively, install it from source by cloning the repository and running
pip install .
Usage
To check for counterexamples for the equivalence of two programs left.lp and
right.lp run
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
anthem-cx -h
Examples
The examples
directory contains a number of worked examples. Each example folder lists the
commands to run it; see the
examples documentation 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file anthem_cx-0.1.0.tar.gz.
File metadata
- Download URL: anthem_cx-0.1.0.tar.gz
- Upload date:
- Size: 143.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c2e5970484c5c82a4f069c5e169ce31cd17f20fd60d279a38effeb691cf9e10a
|
|
| MD5 |
02a3059e33dfba81964c91182cfa8cdd
|
|
| BLAKE2b-256 |
4a1e292c31c8eb95e436637550b3921d1044ee0a38bb8e50df08c7a918eab2d3
|
Provenance
The following attestation bundles were made for anthem_cx-0.1.0.tar.gz:
Publisher:
deploy.yml on potassco/anthem-cx
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
anthem_cx-0.1.0.tar.gz -
Subject digest:
c2e5970484c5c82a4f069c5e169ce31cd17f20fd60d279a38effeb691cf9e10a - Sigstore transparency entry: 2163722045
- Sigstore integration time:
-
Permalink:
potassco/anthem-cx@c21e229ec695670829634040a75f954d5fdc6732 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/potassco
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
deploy.yml@c21e229ec695670829634040a75f954d5fdc6732 -
Trigger Event:
push
-
Statement type:
File details
Details for the file anthem_cx-0.1.0-py3-none-any.whl.
File metadata
- Download URL: anthem_cx-0.1.0-py3-none-any.whl
- Upload date:
- Size: 44.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
910eba88342f0521c31625d6a50877702de1d4cc003f14133397049d57034aca
|
|
| MD5 |
8a4c753e14db06bbcceb5e7000f401d9
|
|
| BLAKE2b-256 |
9cd7cd8cadf28440ba5727d4d1783c11b9ba0f6389192d76c6883e7985faced0
|
Provenance
The following attestation bundles were made for anthem_cx-0.1.0-py3-none-any.whl:
Publisher:
deploy.yml on potassco/anthem-cx
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
anthem_cx-0.1.0-py3-none-any.whl -
Subject digest:
910eba88342f0521c31625d6a50877702de1d4cc003f14133397049d57034aca - Sigstore transparency entry: 2163722053
- Sigstore integration time:
-
Permalink:
potassco/anthem-cx@c21e229ec695670829634040a75f954d5fdc6732 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/potassco
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
deploy.yml@c21e229ec695670829634040a75f954d5fdc6732 -
Trigger Event:
push
-
Statement type: