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

library_search and negation #3428

Closed
PatrickMassot opened this issue Jul 17, 2020 · 2 comments
Closed

library_search and negation #3428

PatrickMassot opened this issue Jul 17, 2020 · 2 comments
Assignees
Labels
enhancement t-meta Tactics, attributes or user commands

Comments

@PatrickMassot
Copy link
Member

The change below is unfortunately needed.

import tactic

lemma my_nice_lemma : 5 ≠ 1 := by norm_num

example : ¬ 5 = 1 :=
begin
  -- change 5 ≠ 1,
  library_search,
end
@bryangingechen bryangingechen added t-meta Tactics, attributes or user commands enhancement labels Jul 19, 2020
@bryangingechen
Copy link
Collaborator

Interestingly, library_search! now works and returns Try this: exact of_to_bool_ff rfl.

@PatrickMassot
Copy link
Member Author

This library_search! "fix" is pure luck because the lemma is rfl. It doesn't work with

import tactic

constant x : ℕ 
constant y : ℕ

axiom my_nice_lemma : x ≠ y

example : ¬ x = y :=
begin
  -- change x ≠ y,
  library_search!,
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement t-meta Tactics, attributes or user commands
Projects
None yet
3 participants