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

have library_search call symmetry before giving up #1535

Closed
semorrison opened this issue Oct 9, 2019 · 1 comment
Closed

have library_search call symmetry before giving up #1535

semorrison opened this issue Oct 9, 2019 · 1 comment
Labels
feature-request This issue is a feature request, either for mathematics, tactics, or CI t-meta Tactics, attributes or user commands

Comments

@semorrison
Copy link
Collaborator

Often library_search fails to find a lemma just because the user has written an equation backwards relative to how it appears in mathlib. One option would be to just do a second pass after calling symmetry on the goal. Possibly better would be to do this on a "per lemma" basis.

@semorrison semorrison added t-meta Tactics, attributes or user commands feature-request This issue is a feature request, either for mathematics, tactics, or CI and removed tactic feature labels Mar 28, 2020
@robertylewis
Copy link
Member

This seems to have been implemented in #2415

import tactic.suggest

constants P Q : Prop 

axiom pq : P ↔ Q 

example : Q ↔ P := by library_search

constants a b : ℕ

axiom ab : a = b 

example : b = a := by library_search

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request This issue is a feature request, either for mathematics, tactics, or CI t-meta Tactics, attributes or user commands
Projects
None yet
Development

No branches or pull requests

2 participants