Skip to Content.
Sympa Menu

coq-club - [Coq-Club] Generalization in Sections

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] Generalization in Sections


chronological Thread 
  • From: "Jojgov, G.I." <g.i.jojgov AT TUE.nl>
  • To: <coq-club AT pauillac.inria.fr>
  • Subject: [Coq-Club] Generalization in Sections
  • Date: Tue, 26 Oct 2004 12:55:10 +0200
  • List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>

Hello,

 

In the two examples below I see different behaviour of Coq when it generalizes Hypotheses in a section after it was closed:

 

Section X.

Variable k:nat.

Hypothesis pos_k: 0<k.

Axiom Test_X:forall P:nat-> Prop, 0<k .

End X.

 

Section Y.

Variable k:nat.

Hypothesis pos_k: 0<k.

Lemma Test_Y:forall P:nat-> Prop, 0<k .

intros.

assumption.

Save.

End Y.

 

 

It seems that because the Hypothesis pos_k in section X is not used, it is not generalized:

 

Check Test_X.

> Test_X

>  : forall k : nat, (nat -> Prop) -> 0 < k

 

Check Test_Y.

> Test_X

>  : forall k : nat, 0 < k -> (nat -> Prop) -> 0 < k

 

Is there a way to force Coq to generalize hypotheses that are not used so that the type of Test_X becomes the same as that of Test_Y without actually using pos_k in a proof?

 

Thanks in advance,

 

Georgi




Archive powered by MhonArc 2.6.16.

Top of Page