logic-TPTP

Import, export etc. for TPTP, a syntax for first-order logic

Latest on Hackage:0.4.4.0

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

GPL licensed by Daniel Schüssler
Maintained by Ahn, Ki Yung, Daniel Schüssler

For information about the TPTP format, see http://www.cs.miami.edu/~tptp/.

Components:

  • Parser (parse)

  • Exporter (toTPTP)

  • Pretty-printer (pretty)

  • QuickCheck instances (generation of random formulae)

  • diff : Get a "formula" which represents the differences between two given formulae (equal subexpressions are truncated; so are the subexpressions of subexpressions whose heads already differ)

Tests passed:

  • For randomly generated formulae, parse . toTPTP == id

  • For all files in the TPTP (v 5.2.0) distribution's Problems subtree which don't match the regex "^(thf|tff)(", parse . toTPTP . parse == parse

Not yet implemented: The new thf and tff formula types.

Changes

0.4.4.0

  • Fix compilation error with transformers >=0.5.1 and GHC <7.10 (Thanks to @msakai)

0.4.3.0

  • GHC 7.10.1 compatibility (Thanks to @agomezl)

0.4.2.0

  • For transformers < 0.4.0.0, use the Eq/Ord/Show/Read Data.Functor.Identity orphan instances from transformers-compat instead of defining our own
comments powered byDisqus