Zulip Chat Archive
Stream: general
Topic: Parameterized Coe instance not found
Francisco Giordano (Oct 18 2024 at 03:13):
My Coe
instance below has a parameter α that appears to be hindering instance search . Why is this?
inductive Foo (α : Type) where
| foo
inductive Bar (α : Type) where
| foo : Foo α → Bar α
instance {α} : Coe (Foo α) (Bar α) := ⟨Bar.foo⟩
example : Bar α := Foo.foo -- type mismatch
example : Bar α := Foo.foo (α := α) -- ok
Last updated: May 02 2025 at 03:31 UTC