Zulip Chat Archive
Stream: lean4
Topic: Weird conv bug
Yongyi Chen (Oct 03 2023 at 01:55):
import Mathlib
example : Fintype.card {x // x = 3} = Fintype.card {x // x = 3} := by
conv in _ = 3 =>
skip
Output: [error when printing message: unknown goal _uniq.75345]
Goes away if I replace Fintype with Nat.
Tomas Skrivan (Oct 03 2023 at 04:30):
I have encountered something similar previously and it seems that the conv tactic pattern _
is buggy. Yours conv in ...
is just a syntax sugar for calling pattern _
.
Kyle Miller (Oct 03 2023 at 06:24):
Are you able to navigate to x = 3
using other conv tactics? The Fintype.card
function is especially tricky since it has an instance argument that depends on the first argument. One reason we have Nat.card
in mathlib is to avoid this complexity.
Yongyi Chen (Oct 03 2023 at 06:36):
No, I could not find a way to navigate to x = 3.
Last updated: Dec 20 2023 at 11:08 UTC