Skip to Content.
Sympa Menu

coq-club - [Coq-Club] A peculiar proof script

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] A peculiar proof script


chronological Thread 
  • From: Victor Porton <porton AT narod.ru>
  • To: Coq <coq-club AT inria.fr>
  • Subject: [Coq-Club] A peculiar proof script
  • Date: Mon, 14 Nov 2011 20:05:29 +0400
  • Envelope-from: porton AT yandex.ru

Please help me to replace an admission with an actual proof script in this .v 
file. (It seems particularly difficult to specialize over an object variable 
of type C. This is the part I haven't succeeded myself without your help.)

[[[[
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. generalize Other. admit. Save.
End sect.

Axiom ax: forall obj:C, Q num.

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

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



Archive powered by MhonArc 2.6.16.

Top of Page