-
Notifications
You must be signed in to change notification settings - Fork 109
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
feat: upstream addHaveSuggestion and addRewriteSuggestion #210
feat: upstream addHaveSuggestion and addRewriteSuggestion #210
Conversation
ed72df0
to
db96f32
Compare
WIP |
awaiting-review |
Std/Tactic/TryThis.lean
Outdated
if prop then | ||
`(tactic| have : $tstx := $estx) | ||
else | ||
`(tactic| let this : $tstx := $estx) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this put this†
in the output?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, it does, and there's a FIXME in Mathlib's test/propose.lean
about this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it should use $(mkIdent `this)
instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, I've fixed the behaviour of Mathlib's have?
and observe?
in leanprover-community/mathlib4#9454, and will modify this PR accordingly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't have context of how these are used in Mathlib, but the operations themselves seem useful.
…-community#210) Co-authored-by: Mario Carneiro <[email protected]>
Upstreams two more "Try this:" builders.