Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make a typeclass for Provers #23

Open
nsbgn opened this issue Jan 16, 2018 · 0 comments
Open

Make a typeclass for Provers #23

nsbgn opened this issue Jan 16, 2018 · 0 comments

Comments

@nsbgn
Copy link
Owner

nsbgn commented Jan 16, 2018

Right now, a Tableau is the only proof system that is implemented. However, it would be pleasing to make proof systems more general by adding a typeclass. This would clean up the I/O code, too, since there can be a single I/O function for all decision algorithms.

class (ProofSystem ext system, LaTeX proof, Plain proof) => Prover system 
proof where
    decide :: system -> F.Formula ext -> proof
    analyse :: system -> F.Formula ext -> PP.Doc
    deserialise :: Y.Value -> system
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant