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 eval tactic #1202

Merged
merged 23 commits into from
Feb 20, 2025
Merged

add eval tactic #1202

merged 23 commits into from
Feb 20, 2025

Conversation

fblanqui
Copy link
Member

@fblanqui fblanqui commented Feb 16, 2025

Add a new tactic eval taking as argument a term that, after normalization, is interpreted as a tactic using builtins. This way, a user can define and use arbitrary functions to generate tactic expressions.
As example, see https://github.com/fblanqui/lambdapi/blob/tac/tests/OK/tactic.lp .

TODO in this PR:

  • record in the sym type whether a symbol is a tactic builtin?
  • find a way to handle terms and tactics taking terms as arguments
  • update doc

TODO later:

  • find a way to handle idents and tactics taking idents as arguments (add builtin strings #1204)
  • add a builtin "function" gen_id : String -> String that generates a string prefixed by the argument which is fresh within the context where it is used (useful for tactics taking fresh identifiers as argument like assume, set, have)
  • allow eval in terms and rules too?
  • replace ; by and in proof scripts? problem with have

@fblanqui
Copy link
Member Author

@NotBad4U your comments are welcome!

@NotBad4U
Copy link
Member

Amazing! I will try it this week for sure.

@fblanqui fblanqui mentioned this pull request Feb 18, 2025
@fblanqui fblanqui merged commit 17279fb into Deducteam:master Feb 20, 2025
11 checks passed
@fblanqui fblanqui deleted the tac branch February 20, 2025 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants