coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- 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.
- [Coq-Club] how to define this recurisive function setVecProd, bingzhou, 06/06/2012
- Re: [Coq-Club] how to define this recurisive function setVecProd, Adam Chlipala, 06/06/2012
Archive powered by MHonArc 2.6.18.