Zulip Chat Archive
Stream: mathlib4
Topic: library_search failing to apply symm
David Renshaw (May 31 2023 at 14:18):
library_search
fails here:
lemma prime_of_prime (n : ℕ) : Prime n ↔ Nat.Prime n := by
library_search
I expect it to find exact Nat.prime_iff.symm
. In mathlib3, it does succeed at finding that.
Is this a bug in library_search
?
Alex J. Best (May 31 2023 at 15:07):
Does rewrites
do it? I'm not sure what we consider in scope for library search now that that exists also
Scott Morrison (May 31 2023 at 18:24):
I did change how library_search handles the symm
versions of lemmas between mathlib3 and mathlib4, so this is likely a regression.
David Renshaw (May 31 2023 at 19:39):
rewrites
gives me an error
Messages here (1)
18:2:
unknown constant 'irreducible_iff_prime_of_exists_unique_irreducible_factors'
Scott Morrison (May 31 2023 at 20:30):
Oh, that is definitely a bug, where rewrites
is trying to use a lemma that hasn't been imported yet!
Scott Morrison (May 31 2023 at 20:30):
(which it knows about because of the global cache generated by CI)
Scott Morrison (Jun 01 2023 at 00:37):
Okay, the original problem is solved in !4#4534. Still looking at the error from rewrites
.
Scott Morrison (Jun 01 2023 at 02:04):
The error from rewrites
is fixed in !4#4537, which also results in
lemma prime_of_prime (n : ℕ) : Prime n ↔ Nat.Prime n := by
rewrites!
closing the goal.
Last updated: Dec 20 2023 at 11:08 UTC