Skip to Content.
Sympa Menu

coq-club - [Coq-Club] I proved this with tactics but can't do it with declarative proof

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] I proved this with tactics but can't do it with declarative proof


chronological Thread 
  • From: Victor Porton <porton AT narod.ru>
  • To: Coq Club <coq-club AT inria.fr>
  • Subject: [Coq-Club] I proved this with tactics but can't do it with declarative proof
  • Date: Wed, 16 Nov 2011 01:01:49 +0400
  • Envelope-from: porton AT yandex.ru

[[[[
Variable s: Set.
Variable mygraph: Set.

Variable sub: Set->Set->Prop.
Variable product: Set->Set->Set.
Variable is_graph: Set->Prop.
Variable domain: Set->Set.
Variable range: Set->Set.

Axiom corr_propcc: forall s t g,
  sub g (product s t) = (is_graph g /\ sub (domain g) s /\ sub (range g) t).

Lemma TwoInside: sub mygraph (product s s) = (is_graph mygraph /\ sub (domain 
mygraph) s /\ sub (range mygraph) s).
(*
Proof.
  specialize corr_propcc.
  eauto.
Qed.
*)
proof.
  have thesis using specialize corr_propcc.
end proof. Qed.
]]]]

It does not work. When I uncomment the Proof...Qed and comment declarative 
proof, it works.

It does not work with declarative proofs. Please help me to rewrite it in 
declarative proof style.

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



Archive powered by MhonArc 2.6.16.

Top of Page