Skip to Content.
Sympa Menu

coq-club - [Coq-Club] Why this does not verify?

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] Why this does not verify?


chronological Thread 
  • From: Victor Porton <porton AT narod.ru>
  • To: Coq <coq-club AT inria.fr>
  • Subject: [Coq-Club] Why this does not verify?
  • Date: Mon, 14 Nov 2011 18:41:07 +0400
  • Envelope-from: porton AT yandex.ru

The last line of this file does not compile. What is my error?

[[[[
Hypothesis P: nat->Prop.
Hypothesis Q: nat->Prop.

Axiom Eq: forall x:nat, P(x)<->Q(x).

Class C := {
  num: nat;
  cond: P num
}.

Section sect.
  Hypothesis Other: forall obj:C, Q num.

  Instance C2: C := { num:=0 }.
  Proof. Admitted.
End sect.

Axiom ax2: forall obj:C, Q num.

Definition C3 := C2(ax2).
]]]]

-- 
Victor Porton - http://portonvictor.org



Archive powered by MhonArc 2.6.16.

Top of Page