coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Victor Porton <porton AT narod.ru>
- To: Coq <coq-club AT inria.fr>
- Subject: [Coq-Club] One more deficiency of Coq?
- Date: Tue, 15 Nov 2011 03:07:08 +0400
- Envelope-from: porton AT yandex.ru
The following does not verify, because in some reason Coq does not do a
coercion from Derived to Base.
Maybe it is an intended behavior but for me it seems like a conceptual error
in Coq type classes.
Please comment.
[[[[
Class Base := {
n: nat
}.
Class Derived := {
base :> Base
}.
Definition test (derived: Derived) := @n derived.
]]]]
--
Victor Porton - http://portonvictor.org
- [Coq-Club] One more deficiency of Coq?, Victor Porton
- Re: [Coq-Club] One more deficiency of Coq?,
Matthieu Sozeau
- Re: [Coq-Club] One more deficiency of Coq?, Victor Porton
- Message not available
- Re: [Coq-Club] One more deficiency of Coq?, Matthieu Sozeau
- Re: [Coq-Club] One more deficiency of Coq?,
Matthieu Sozeau
Archive powered by MhonArc 2.6.16.