Skip to Content.
Sympa Menu

coq-club - [Coq-Club] One more deficiency of Coq?

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] One more deficiency of Coq?


chronological Thread 
  • 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



Archive powered by MhonArc 2.6.16.

Top of Page