Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

anthem_cx-0.1.0.tar.gz (143.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

anthem_cx-0.1.0-py3-none-any.whl (44.9 kB view details)

Uploaded Python 3

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

Hashes for anthem_cx-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c2e5970484c5c82a4f069c5e169ce31cd17f20fd60d279a38effeb691cf9e10a
MD5 02a3059e33dfba81964c91182cfa8cdd
BLAKE2b-256 4a1e292c31c8eb95e436637550b3921d1044ee0a38bb8e50df08c7a918eab2d3

See more details on using hashes here.

Provenance

The following attestation bundles were made for anthem_cx-0.1.0.tar.gz:

Publisher: deploy.yml on potassco/anthem-cx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for anthem_cx-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 910eba88342f0521c31625d6a50877702de1d4cc003f14133397049d57034aca
MD5 8a4c753e14db06bbcceb5e7000f401d9
BLAKE2b-256 9cd7cd8cadf28440ba5727d4d1783c11b9ba0f6389192d76c6883e7985faced0

See more details on using hashes here.

Provenance

The following attestation bundles were made for anthem_cx-0.1.0-py3-none-any.whl:

Publisher: deploy.yml on potassco/anthem-cx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page