Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Inductive family of finite types

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Inductive family of finite types


chronological Thread 
  • From: Paolo Herms <paolo.herms AT cea.fr>
  • To: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] Inductive family of finite types
  • Date: Tue, 28 Jun 2011 15:50:12 +0200

On Tuesday 28 June 2011 15:25:44 Gert Smolka wrote:
> Inductive Fin : nat -> Type :=
> | FinO : forall n, Fin (S n)
> | FinS : forall n, Fin n -> Fin (S n).
> 
> Unfortunately, I cannot prove
> 
> Lemma Fin1 (k : Fin 1) :
> k = FinO 0.

Try dependent destruction k.
You first need to Require Import Program.Equality.
-- 
Paolo Herms
PhD Student - CEA-LIST Software Safety Lab. / INRIA ProVal Project
Paris, France




Archive powered by MhonArc 2.6.16.

Top of Page