Skip to content

[Merged by Bors] - chore: have linarith print the goal when it fails#3273

Closed
kim-em wants to merge 1 commit intomasterfrom
linarith_print_goal
Closed

[Merged by Bors] - chore: have linarith print the goal when it fails#3273
kim-em wants to merge 1 commit intomasterfrom
linarith_print_goal

Conversation

@kim-em
Copy link
Copy Markdown
Contributor

@kim-em kim-em commented Apr 5, 2023

This makes linarith print the goal (including hypotheses) when it fails, as many other tactics do.

This was motivated by watching the sagredo tactic trying to use linarith, but failing to see that it didn't quite have the correct hypotheses yet. Once it gave up on using linarith, it tried contradiction, which printed a more helpful error message (in which a human, although not quite GPT, could easily see the inequalities weren't quite right).


Open in Gitpod

@kim-em kim-em added awaiting-review t-meta Tactics, attributes or user commands labels Apr 5, 2023
Copy link
Copy Markdown
Member

@jcommelin jcommelin left a comment

Choose a reason for hiding this comment

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

Thanks 🎉

bors merge

@kim-em kim-em added ready-to-merge This PR has been sent to bors. and removed awaiting-review labels Apr 20, 2023
bors bot pushed a commit that referenced this pull request Apr 20, 2023
This makes `linarith` print the goal (including hypotheses) when it fails, as many other tactics do.

This was motivated by watching the `sagredo` tactic trying to use `linarith`, but failing to see that it didn't quite have the correct hypotheses yet. Once it gave up on using `linarith`, it tried `contradiction`, which printed a more helpful error message (in which a human, although not quite GPT, could easily see the inequalities weren't quite right).



Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
@bors
Copy link
Copy Markdown

bors bot commented Apr 20, 2023

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title chore: have linarith print the goal when it fails [Merged by Bors] - chore: have linarith print the goal when it fails Apr 20, 2023
@bors bors bot closed this Apr 20, 2023
@bors bors bot deleted the linarith_print_goal branch April 20, 2023 09:45
kbuzzard pushed a commit that referenced this pull request Apr 22, 2023
This makes `linarith` print the goal (including hypotheses) when it fails, as many other tactics do.

This was motivated by watching the `sagredo` tactic trying to use `linarith`, but failing to see that it didn't quite have the correct hypotheses yet. Once it gave up on using `linarith`, it tried `contradiction`, which printed a more helpful error message (in which a human, although not quite GPT, could easily see the inequalities weren't quite right).



Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
kim-em added a commit that referenced this pull request May 10, 2023
This makes `linarith` print the goal (including hypotheses) when it fails, as many other tactics do.

This was motivated by watching the `sagredo` tactic trying to use `linarith`, but failing to see that it didn't quite have the correct hypotheses yet. Once it gave up on using `linarith`, it tried `contradiction`, which printed a more helpful error message (in which a human, although not quite GPT, could easily see the inequalities weren't quite right).



Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge This PR has been sent to bors. t-meta Tactics, attributes or user commands

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants