coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Beta Ziliani <beta AT mpi-sws.org>
- To: Coq Club <coq-club AT inria.fr>
- Subject: Re: [Coq-Club] normalize all closed terms of a given type
- Date: Thu, 15 Oct 2020 09:43:37 -0300
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=beta AT mpi-sws.org; spf=Pass smtp.mailfrom=beta AT mpi-sws.org; spf=None smtp.helo=postmaster AT juno.mpi-klsb.mpg.de
- Ironport-phdr: 9a23:NPKq0RY9fHPVtl0J2HGt3eX/LSx+4OfEezUN459isYplN5qZr8S6bnLW6fgltlLVR4KTs6sC17OJ9f67EjBaqb+681k6OKRWUBEEjchE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i764jEdAAjwOhRoLerpBIHSk9631+ev8JHPfglEnjWwba5wIRmsrAjcuMYajIR8Jq0s1hbHv3xEdvhMy2h1P1yThRH85smx/J5n7Stdvu8q+tBDX6vnYak2VKRUAzs6PW874s3rrgTDQhCU5nQASGUWkwFHDBbD4RrnQ5r+qCr6tu562CmHIc37SK0/VDq+46t3ThLjlTwKPCAl/m7JlsNwjbpboBO/qBx5347Ue5yeOP5ncq/AYd8WWW9NU8BMXCJDH4y8dZMCAOUPPelar4fzqVgAowagCwawH+7g0CNEi2Xs0KEmz+gsEwfL1xEgEdIUt3TUqc34OboMXuCp1qbD0DbMb/JS2Tf88ofIdBEhquyLUL1rb8XR1VMgGhjAjlWIqIzpJiiV1+oWs2SB6OpgT+2vhnchpgpsrTeh2t0ihZPVhoIJ1F/E7yN5zZ4rKNGmR0N1YdqpHZVQuS2GOYZ7Q94vTnxotSs41rEItp+2cDQKxpoo2xLSaOCKfYiK7x//SuufLyt0iXFndb6igRu57Eauyur5Vsau0VZKqDJIncXLtnAX0Rzc9MyHSv9n8ki/xDmPygbe4fxHL0AsjafXNpAsz7oqmpYOtUnPBCz7lUTsgKKZakko4vak5/jjb7n8pZKRN5V4hh/jPqkvgMCyDuU1Pw4TVGaB4+u8zqfs/UjhTbVKkPI2lq7ZvYjYJcQGoK65BBVZ0oM76xa+Fjum09AYnWIcI15ffRKHl4fpN0vTL//mFfu/glKsnyl3x/3eI7HsDJHAImLenLrlZ7pw6E9RxBA8wNxD/55UD6sOIPP3Wk//rtzYCRo5PhSvzOn5FNVyzJgTWWeXAq+YKa/SqlGJ5vk1L+mLfo8Vty7xK+I56P72kX85hVgdcLG10psQcXC0B+hpI0GEYXX3mdoBCmcLvg8mTOPwklGCUDhTZ2yzX60m/D07BpimXs//QdWGh6XJ9yOmFNUCbWdfT1uIDH3AdoOeWv5KZjjEceF7lTlRf7W9QscT1BWvvQn7g+5tI/bd0igAtNf4y8Mz4Pfcw0JhvQdoBtiQhjneB1p/mXkFEnpvhPgm/R5Nj2yb2K09uMR2UMRJ7qoSAAIiNNvH0Pc8DMr9CFqYI4W5DW2+S9DjOgkfC9I8x9hUORR/BtOlyBXb3m+pB6Qf0bmTC9o4//CEhimjF4NG03/DkZIZoRwjS8pLO3ehg/ckpQ3LBsvSjF7fkLylJ/0R
I was going to ask the same question. Perhaps an example could help?
On Thu, Oct 15, 2020 at 3:08 AM Fabian Kunze <fabian.kunze AT cs.uni-saarland.de> wrote:
By closed, do you mean no evars, or no local variables?
15 Oct 2020 07:42:39 Abhishek Anand <abhishek.anand.iitg AT gmail.com>:
Sorry, I was not clear. I want to only strongly normalize closed subterms of the type and leave the rest unchanged.
On Wed, Oct 14, 2020 at 6:54 PM Jason Gross <jasongross9 AT gmail.com> wrote:
Sorry, that only does goal, but doing the context isn't much different
On Wed, Oct 14, 2020, 20:53 Jason Gross <jasongross9 AT gmail.com> wrote:
Here is a slow tactic to do this:Ltac norm T :=repeat match goal with| [ |- context [?e] ] => let e' := eval vm_compute in (e : T) in progress change e with e'end.
You may want a different typing check if you don't want coercion insertion or only want to check up to syntactic typing rather than unification.
On Wed, Oct 14, 2020, 20:20 Abhishek Anand <abhishek.anand.iitg AT gmail.com> wrote:
Is there a tactic to strongly normalize all closed terms of a given type in the Coq goal and context?Is there a way to write such a tactic in Ltac/Ltac2/Mtac2.... ?
-- Abhishekhttp://www.cs.cornell.edu/~aa755/
- [Coq-Club] normalize all closed terms of a given type, Abhishek Anand, 10/15/2020
- Re: [Coq-Club] normalize all closed terms of a given type, Jason Gross, 10/15/2020
- Re: [Coq-Club] normalize all closed terms of a given type, Jason Gross, 10/15/2020
- Re: [Coq-Club] normalize all closed terms of a given type, Abhishek Anand, 10/15/2020
- Re: [Coq-Club] normalize all closed terms of a given type, Fabian Kunze, 10/15/2020
- Re: [Coq-Club] normalize all closed terms of a given type, Beta Ziliani, 10/15/2020
- Re: [Coq-Club] normalize all closed terms of a given type, Abhishek Anand, 10/15/2020
- Re: [Coq-Club] normalize all closed terms of a given type, Jason Gross, 10/16/2020
- Re: [Coq-Club] normalize all closed terms of a given type, Jason Gross, 10/16/2020
- Re: [Coq-Club] normalize all closed terms of a given type, Abhishek Anand, 10/15/2020
- Re: [Coq-Club] normalize all closed terms of a given type, Beta Ziliani, 10/15/2020
- Re: [Coq-Club] normalize all closed terms of a given type, Fabian Kunze, 10/15/2020
- Re: [Coq-Club] normalize all closed terms of a given type, Abhishek Anand, 10/15/2020
- Re: [Coq-Club] normalize all closed terms of a given type, Jason Gross, 10/15/2020
- Re: [Coq-Club] normalize all closed terms of a given type, Jason Gross, 10/15/2020
Archive powered by MHonArc 2.6.19+.