coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Jason Gross <jasongross9 AT gmail.com>
- To: coq-club <coq-club AT inria.fr>
- Subject: [Coq-Club] Odd failure of typeclass resolution
- Date: Tue, 16 Jul 2013 11:35:26 -0400
On code like [Definition foo := bar.], with [Set Printing All.], I get the error message
Toplevel input, characters 363-380:
Error:
Cannot infer this placeholder.
Could not find an instance for "IsTrunc (nat_to_trunc_index O)
(Object (Index2Cat C'))" in environment:
fs : Funext
I : Type
Index2Cat : forall _ : I, PreCategory
H0 : forall i : I, IsTrunc (nat_to_trunc_index O) (Object (Index2Cat i))
C' : I
Setting [Typeclasses eauto := debug.] shows that coq jumps straight from the input to the error message, with no typeclass search in between. If I replace [Definition foo := bar.] with [Definition foo : T. refine bar. Grab Existential Variables. typeclasses eauto. Defined.], it goes through. The relevant code is at theories/Groupoid/Functor.v in https://github.com/JasonGross/HoTT-categories/tree/typeclass-error. Does anyone have any ideas what the problem might be?
Thanks,
Jason
- [Coq-Club] Odd failure of typeclass resolution, Jason Gross, 07/16/2013
- Re: [Coq-Club] Odd failure of typeclass resolution, Matthieu Sozeau, 07/19/2013
Archive powered by MHonArc 2.6.18.