coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- 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.
- [Coq-Club] Assistance with simple bounded number proof?, frank maltman
- Re: [Coq-Club] Assistance with simple bounded number proof?,
Guillaume Melquiond
- Re: [Coq-Club] Assistance with simple bounded number proof?, frank maltman
- Re: [Coq-Club] Assistance with simple bounded number proof?, Adam Chlipala
- Re: [Coq-Club] Assistance with simple bounded number proof?,
Guillaume Melquiond
Archive powered by MhonArc 2.6.16.