Skip to Content.
Sympa Menu

coq-club - [Coq-Club] how to define this recurisive function setVecProd

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] how to define this recurisive function setVecProd


Chronological Thread 
  • From: bingzhou <bingzhou.zheng AT gmail.com>
  • To: coq-club AT inria.fr
  • Subject: [Coq-Club] how to define this recurisive function setVecProd
  • Date: Wed, 6 Jun 2012 06:32:15 +0000 (UTC)

Hi,

I am not familiar with the dependent pattern-matching, and I want to define a
function below

set-vector-product:
(T : Set) -> (n : nat) -> Vector (set T) n -> set (Vector T n)
set-vector-product T [] [] = true
set-vector-product T (s :: ss) (a :: as) = s a /\ set-vector-product T ss as

I wonder if someone can help me define it, or give me some references.

Thanks a lot,
Bingzhou


Require Import Sets.Ensembles.
Require Import Bool.Bvector.

Section SET.

Definition set (T : Type) := Ensemble T.

Fixpoint setVecProd (T : Type) (n : nat) :
vector (set T) n -> vector T n -> Prop := ???
End SET.




Archive powered by MHonArc 2.6.18.

Top of Page