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: yasu AT yasuaki.com
  • To: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] Very basic question of < and <=
  • Date: Mon, 13 Jul 2015 10:41:20 +0900

Hi Cody,  I see. this makes sense.  Thank you! :-) Cheers,Yasu

On 13.07.2015 08:26, roux cody wrote: > 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 [1] > > 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 > > > > Links: > ------ > [1] https://coq.inria.fr/library/Coq.Arith.Lt.html



Archive powered by MHonArc 2.6.18.

Top of Page