Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Problem with length of list

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Problem with length of list


chronological Thread 
  • From: Hugo Herbelin <herbelin AT pauillac.inria.fr>
  • To: frederic.gava AT wanadoo.fr (Fr�d�ric Gava)
  • Cc: coq-club AT pauillac.inria.fr
  • Subject: Re: [Coq-Club] Problem with length of list
  • Date: Fri, 23 Jan 2004 11:42:36 +0100 (MET)
  • List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>

  Hi, 
 
> Lemma apply_tmp_tmp: (A,B:Set) (l1:(list A->B)) (l2:(list A)) 
>     {`(Zlength B (apply_tmp A B l1 l2))=(Zlength A l2)`}+{`(Zlength B 
> (apply_tmp A B l1 l2))=(Zlength [(A->B)] l1)`}.
> Intros.
> 
> 
> Double Induction l1 l2.
> Error: No hypothesis l1 in current goal even after head-reduction
> 
> How prove it ????

  "Double Induction l1 l2" expects l1 and l2 being quantified in the
goal. Just remove your "Intros".

  Anyway, Double Induction is usually too strong for most of
needs. "NewInduction l1; NewDestruct l2" is usually enough (see
section 8.7.4 on Double Induction in the reference manual).

  Regards,

  Hugo  




Archive powered by MhonArc 2.6.16.

Top of Page