Skip to Content.
Sympa Menu

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

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] Inductive family of finite types


chronological Thread 
  • From: Gert Smolka <smolka AT ps.uni-saarland.de>
  • To: coq-club AT inria.fr
  • Subject: [Coq-Club] Inductive family of finite types
  • Date: Tue, 28 Jun 2011 15:25:11 +0200

There are many ways to define a function
Fin : nat -> Type such that the type Fin n
has n elements.  I tried the following:

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.

Help would be appreciated.
Also, what is the "standard" way to define Fin?

Gert





Archive powered by MhonArc 2.6.16.

Top of Page