Skip to content

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

Closed
kim-em wants to merge 1 commit into
masterfrom
linarith_print_goal
Closed

kim-em wants to merge 1 commit into
masterfrom
linarith_print_goal

Conversation

@kim-em

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

Copy link
Copy Markdown
Contributor

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

@jcommelin jcommelin left a comment

Copy link
Copy Markdown
Member

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 <[email protected]>
@bors

bors Bot commented Apr 20, 2023

Copy link
Copy Markdown

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 <[email protected]>
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 <[email protected]>
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