Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Very basic question of < and <=

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Very basic question of < and <=


Chronological Thread 
  • From: roux cody <cody.roux AT gmail.com>
  • To: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] Very basic question of < and <=
  • Date: Sun, 12 Jul 2015 19:26:48 -0400

It has to do with the definition of < in the Coq standard library:

Definition lt (n m:nat) := S n <= m.

See https://coq.inria.fr/library/Coq.Arith.Lt.html
This means that a < b is *exactly defined to be* S a <= b, so the hypothesis H can be used as-is for the conclusion.

Best,
Cody

On Sun, Jul 12, 2015 at 6:59 PM, <yasu AT yasuaki.com> wrote:

Hi,

I am a beginner - why is the proof below ok?  I understand semantically this is trivial, but what is the mechanism of H to S a <= b  ?

Theorem T: forall a b:nat, a < b ->  S a <= b.
Proof .
    intros .
    exact H .
Qed.
Print T.

Cheers,

Yasuaki





Archive powered by MHonArc 2.6.18.

Top of Page