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

Change behavior of MATCH_MP_TAC to fail only when being applied to a goal state #455

Merged
merged 1 commit into from
Aug 23, 2017

Conversation

HeikoBecker
Copy link
Contributor

Beforehand the following tactic would fail, even if ACCEPT_TAC succeeds:

fun simple_apply thm = (ACCEPT_TAC thm) ORELSE (match_mp_tac thm);

Now the tactic only fails, if ACCEPT_TAC failed and match_mp_tac either is not given an implication or cannot match the theorem with the conclusion being matched on.

For more details, see https://sourceforge.net/p/hol/mailman/message/36008112/

… actual goal-state, instead of failing when given the first parameter
@mn200
Copy link
Member

mn200 commented Aug 23, 2017

The documentation is vague about exactly when this error must occur, so I'm happy that this would not break any promises we have made. The fact that the regression tests pass is also encouraging. Thanks for the prompt to fix this.

@mn200 mn200 merged commit dffcb0e into HOL-Theorem-Prover:master Aug 23, 2017
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.

None yet

2 participants