Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Assistance with simple bounded number proof?

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Assistance with simple bounded number proof?


chronological Thread 
  • From: Adam Chlipala <adam AT chlipala.net>
  • To: frank maltman <frank.maltman AT googlemail.com>
  • Cc: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] Assistance with simple bounded number proof?
  • Date: Fri, 13 May 2011 07:32:55 -0400

frank maltman wrote:
Definition fin_bound {b : nat} (_ : fin b) : nat := b.

By the way, this function seems a bit non-idiomatic. It's an identity function, and your proofs below would be simplified by referring directly to an index instead of to an identity function called on it. For instance, [simpl] would have exactly the behavior you want, with no need to use [unfold].

How much would the proof be simplified, you ask?  Let's see. ;)

Theorem lt_fin_nat_fb_b : forall (b : nat) (f : fin b),
  fin_nat f < b.
  induction f; crush.
Qed.




Archive powered by MhonArc 2.6.16.

Top of Page