coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Zoe Paraskevopoulou <zoe.paraskevopoulou AT gmail.com>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] Program Fixpoint and simpl
- Date: Mon, 30 Mar 2015 16:19:26 +0200
Hello,
Thank you all for your answers, I really appreciate your help!
On Mar 30, 2015, at 1:16 AM, Matthieu Sozeau <mattam AT mattam.org> wrote:the classic answer is to build an unfolded version (without Program and whichcalls the folded version at recursive calls) and show extensional equivalence ofthe two definitions, then you can easily control unfolding using rewriting, andavoid the clutter due to decoration of matches with equalities at matches.
With this I had with the same problem with the original proof, I cannot handle the inductive case. Further case analysis also does not seem to help.
On Mar 30, 2015, at 1:16 AM, Matthieu Sozeau <mattam AT mattam.org> wrote:[Function] might help too but I couldn't manage to makeit work on this example.
I also tried (unsuccessfully) make it work with [Function].
On Mar 30, 2015, at 12:31 AM, Jonathan Leivent <jonikelee AT gmail.com> wrote:Definition infer_sort':= Eval compute in infer_sort.
Unfortunately, this takes way to much time (even with a lazy evaluation strategy) so I was not able to see if it is helpful at all.
I think I will go for one of the following:
- The dependent types solution (proposed by Jonathan and James) which seems to work fine and I hope it scales to more complex functions and specifications.
- I also think that I can completely circumvent the problem (for now) by defining everything relationally as inductive definitions (I won’t need sort_infer for this).
- Switch to plain De Bruijn indices instead of locally nameless representation that will allow me to define such functions with structural recursion.
Cheers,
Zoe
- [Coq-Club] Program Fixpoint and simpl, Zoe Paraskevopoulou, 03/29/2015
- Re: [Coq-Club] Program Fixpoint and simpl, Jonathan Leivent, 03/30/2015
- Re: [Coq-Club] Program Fixpoint and simpl, Zoe Paraskevopoulou, 03/30/2015
- Re: [Coq-Club] Program Fixpoint and simpl, Matthieu Sozeau, 03/30/2015
- Re: [Coq-Club] Program Fixpoint and simpl, Zoe Paraskevopoulou, 03/31/2015
- Re: [Coq-Club] Program Fixpoint and simpl, Matthieu Sozeau, 03/30/2015
- Re: [Coq-Club] Program Fixpoint and simpl, Zoe Paraskevopoulou, 03/30/2015
- Re: [Coq-Club] Program Fixpoint and simpl, James Wilcox, 03/30/2015
- Re: [Coq-Club] Program Fixpoint and simpl, Matthieu Sozeau, 03/30/2015
- Re: [Coq-Club] Program Fixpoint and simpl, Jonathan Leivent, 03/30/2015
Archive powered by MHonArc 2.6.18.