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

Tactic tweaks #1568

Merged
merged 4 commits into from
Feb 8, 2022
Merged

Tactic tweaks #1568

merged 4 commits into from
Feb 8, 2022

Conversation

robdockins
Copy link
Contributor

Minor tactic improvements. trivial can now prove more things (reflexive equalities up to conversion), and there is a new experimental goal_exact tactic that allows the user to directly provide a proof term, similar to the core_thm top-level command.

We also tweak the error message from termToProp to give a hint when the user has used lambdas instead of Pis to state a proposition.

providing a proof term.  This is similar to the `core_thm`
operator, but in the context of a `ProofScript` instead
of at top-level.
reflexivity that it can deduce from conversion.
user if the leading term is a lambda. The hint suggests to change
the lambdas to Pis.
@robdockins
Copy link
Contributor Author

With these changes, the following script will now succeed:

prove_core trivial "(n : Nat) -> (x : Vec n Bool) -> Eq Integer (sbvToInt n x) (toSignedInteger (TCNum n) x)";
prove_core trivial "Eq Nat (addNat 10 32) (mulNat 21 2)";
prove_core trivial "(n : Nat) -> Eq Nat n (addNat 0 n)";

Copy link
Contributor

@brianhuffman brianhuffman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

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