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

Add a --format argument to anthem translate #90

Open
teiesti opened this issue Apr 5, 2024 · 1 comment
Open

Add a --format argument to anthem translate #90

teiesti opened this issue Apr 5, 2024 · 1 comment
Assignees
Labels
A-command-line Area: Command-line interfaxe C-feature-requested Category: Requested feature E-medium Experience: Medium P-low Priority: Low

Comments

@teiesti
Copy link
Collaborator

teiesti commented Apr 5, 2024

It should be possible to specify the used formatter in anthem translate, e.g.

  • anthem translate --with tau-star --format default
  • anthem translate --with tau-star --format tptp
  • anthem translate --with tau-star --format debug
@teiesti teiesti added P-low Priority: Low E-medium Experience: Medium C-feature-requested Category: Requested feature A-command-line Area: Command-line interfaxe labels Apr 5, 2024
@teiesti teiesti self-assigned this Apr 5, 2024
@janheuer
Copy link
Collaborator

janheuer commented Dec 4, 2024

Following up on my prototype implementation (#154) with some thoughts on this issue.

There seem to be 2 different ideas what the format flag for translate should do:

  1. just print out the same output as currently just formatted to be in tptp (see Zach's comment)
  2. print current output formatted as tptp in the form of tff formulas and add preamble + helper axioms

1 of course makes sense in keeping it symmetric with the current output. I had some issues with this approach which is why I implemented the second approach:

  • Without auxiliary axioms (i.e. transition axioms for gamma) the formulas are not correct. I think it would be better to output these and just have an optional --hide-auxilliary-axioms flag. (This applies to both a tptp format and also the current output.)
  • The same argument of correctness can be made for outputting tptp without the preamble. Only with the preamble (and type definitions and some other helper axioms) does the tptp semantics match anthems semantics.
  • Just having the tptp formatted formulas does not produce any usable tptp file.

This last issue leads to the bigger question of what the use case for using the tptp format is. My use case was my implementation of ordered completion:

  • I have an implementation of the translate command but not any verification command that uses ordered completion.
  • By having a format option that produces a valid tptp file I can then just manually add some conjecture to do some first trials with ordered completion.

I think this could generally be an interesting use case for when we have new translations. It would be possible to do some first test without having the possible extra efforts of implementing the verification (e.g. external equivalence verification adds a lot of complexity on top of the completion translation) and especially if the theory of the verification problem is not yet clear (e.g. the motivation for ordered completion was to get a replacement for normal completion in external equivalence, but it is not clear yet if this is actually possible from the theoretical side).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-command-line Area: Command-line interfaxe C-feature-requested Category: Requested feature E-medium Experience: Medium P-low Priority: Low
Projects
None yet
Development

No branches or pull requests

2 participants