Subject: Ssreflect Users Discussion List
List archive
- From: Assia Mahboubi <>
- To: "" <>
- Subject: Re: dependent type error in rewrite
- Date: Fri, 21 May 2010 19:55:45 +0200
Sorry I had an implicit type I did not copy in my previous message; T shouild be a finType. hence I want to prove:
Lemma test : forall (T : finType) n (t : n.-tuple T), #|t| <= n.
Sorry again...
assia
Assia Mahboubi a écrit :
I would like to prove the following (somehow silly) lemma:
Lemma test : forall T n (t : n.-tuple T), #|t| <= n.
I tried the following script:
move=> T n t; rewrite -(size_tuple t).
which fails with the error message (which I wasn't expecting):
Error: dependent type error in rewrite of (fun _pattern_value_ : nat =>
is_true (#|t| <= _pattern_value_))
I still have to learn about dependent types...
And also I do not know what is the bast way of proving the result.
Can anyone help?
Thanks in advance.
assia
- dependent type error in rewrite, Assia Mahboubi, 05/21/2010
- Re: dependent type error in rewrite, Assia Mahboubi, 05/21/2010
- Re: dependent type error in rewrite, Assia Mahboubi, 05/21/2010
- Re: dependent type error in rewrite, Laurent Théry, 05/27/2010
- RE: dependent type error in rewrite, Georges Gonthier, 05/27/2010
- Re: dependent type error in rewrite, Assia Mahboubi, 05/21/2010
Archive powered by MHonArc 2.6.18.