coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Adam Chlipala <adam AT chlipala.net>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] Re: more generous context when typing branches of [match]?
- Date: Thu, 25 Mar 2010 15:17:40 -0400
Adam Megacz wrote:
Adam
Chlipala<adam AT chlipala.net>
writes:
The order you chose couldn't possibly work.Hrm, could you please clarify?
Specifically, what type you believe the last occurrence of [u] has in
the program below, and how is it semantically distinct from [test (z+1)]?
Inductive test : Z -> Set :=
| up : forall z, test (z+1) -> test z
| down : forall z, test z -> test (z+1).
Fixpoint next(z:Z)(t:test z)(q:test (z+1)) : Z :=
match t with
| up _ u => next z t u
| down _ d => 3
end.
The previous piece of example code you sent had these two [match] cases swapped.
- Re: [Coq-Club] more generous context when typing branches of [match]?, (continued)
- Re: [Coq-Club] more generous context when typing branches of [match]?, Damien Pous
- Re: [Coq-Club] more generous context when typing branches of [match]?, Adam Chlipala
- Re: [Coq-Club] more generous context when typing branches of [match]?,
Matthew Brecknell
- [Coq-Club] Re: more generous context when typing branches of [match]?,
Adam Megacz
- Re: [Coq-Club] Re: more generous context when typing branches of [match]?,
Adam Chlipala
- Re: [Coq-Club] Re: more generous context when typing branches of [match]?, Adam Chlipala
- [Coq-Club] Re: more generous context when typing branches of [match]?,
Adam Megacz
- Re: [Coq-Club] Re: more generous context when typing branches of [match]?,
Adam Chlipala
- [Coq-Club] Re: more generous context when typing branches of [match]?,
Adam Megacz
- Re: [Coq-Club] Re: more generous context when typing branches of [match]?, Adam Chlipala
- [Coq-Club] Re: more generous context when typing branches of [match]?,
Adam Megacz
- Re: [Coq-Club] Re: more generous context when typing branches of [match]?,
Adam Chlipala
- Re: [Coq-Club] Re: more generous context when typing branches of [match]?,
Adam Chlipala
- [Coq-Club] Re: more generous context when typing branches of [match]?,
Adam Megacz
Archive powered by MhonArc 2.6.16.