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

"Try this" doesn't work correctly when there is an end in the line #271

Open
shingtaklam1324 opened this issue May 28, 2021 · 0 comments
Open

Comments

@shingtaklam1324
Copy link

import tactic

-- Before

example (X : Type) (p : X → Prop) : (∃ x, p x) ↔ ¬ (∀ x, ¬ p x) :=
begin library_search end

-- After clicking the `Try this:`

example (X : Type) (p : X → Prop) : (∃ x, p x) ↔ ¬ (∀ x, ¬ p x) :=
begin exact not_forall_not.symm

It's probably to do with https://github.com/leanprover/vscode-lean/blob/master/src/tacticsuggestions.ts#L79-L109 since the current heuristics don't seem to take end into account.


Zulip: https://leanprover.zulipchat.com/#narrow/stream/113488-general/topic/squeeze_simp.20eating.20the.20end/near/240570377

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

No branches or pull requests

1 participant