coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Jason Gross <jasongross9 AT gmail.com>
- To: coq-club <coq-club AT inria.fr>
- Subject: Re: [Coq-Club] "Lean is like Coq but better"
- Date: Fri, 3 Jan 2020 05:11:23 -0500
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=jasongross9 AT gmail.com; spf=Pass smtp.mailfrom=jasongross9 AT gmail.com; spf=None smtp.helo=postmaster AT mail-ed1-f66.google.com
- Ironport-phdr: 9a23:oEBjCxKVzGrvhtVeGNmcpTZWNBhigK39O0sv0rFitYgRLfjxwZ3uMQTl6Ol3ixeRBMOHsqkC0baN+Pm7EUU7or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6arXK99yMdFQviPgRpOOv1BpTSj8Oq3Oyu5pHfeQpFiCezbL9oMhm7ogvcusYLjYZsN6081gbHrnxUdupM2GhmP0iTnxHy5sex+J5s7SFdsO8/+sBDTKv3Yb02QaRXAzo6PW814tbrtQTYQguU+nQcSGQWnQFWDAXD8Rr3Q43+sir+tup6xSmaIcj7Rq06VDi+86tmTgLjhSEaPDA77W7XkNR9g61VoB2jpxJxzY3abpyLOvViZa7SZ88WSHBbU8pNSyBMAIWxZJYPAeobOuZYqpHwqV8UohulAgmsAv7kxD5Shn/xxq06yPkqHAbE3AM6BNIOt3LUrNrvNKcVSuC1163FwC7Mb/NTwzj96YzIfgo9rvGLWLJ9aMzcwlQhGQPCi1Wfs43lPzWN2+QMtWib9etgWvi1h24psQF9ujevxsYwionJm4Ia0UrI+jl+wIYwI9CzVU11Yca8HZdOqy2XM5F6T8AiTm1ypio21r4LtYS6cSULzpks2gTRZOadc4eS5xLuTOaRLil8hHJiYL+/ggy98UmkyuHlSMa7zUtGojNLktTNt30BzRPT6s+ASvty+keuxyyD2BzU6uFBOUw0lKzbJIA9wrMoiJYfrUDOEjX1lUj2lqOaaFko9+uy5+nmY7jqvpqcOJV1igH6PKQugMu/AeEgPwgMRWeb4uO81Lvs/U3jR7VKleY2n63CvZDVIMQUvK+5AwtP3ok/7Ba/Ci+q0M4EknkfMFJFZBWHgpD1NFHJOfD0FOuwg1CxkDhw3P3GJb3gApDVLnfZirvhfLB961RdyAUp19xf6YhUWfk9J6f4XVa0v9jFBFdtOAuthu3jFd9V14UEWGvJDLXPY43ItlrdxOs0JO/ES5USoy21f/os/PnogmU+gkRMVaas1JoTLnu/G6I1cA2ifXPwj4JZQi8xtQ0kQbmy0QDQYXtof3+3GpkEyHQ7BYahV9qRQ4mshPmM0H7+EMMIIG9BDV+IHDHjcIDWA65QOhLXGddol3k/bZbkU5UojEj8uwrzyr4hJe3RqHVB5MDTkeNt7uiWrikcsDl9DsCTyWaIFjgmkWYBRjtw16d68xVw
Note, by the way, that Coq has a Grobner basis tactic (two, actually). There is nsatz (named after nullstellensatz) and psatz (named after positivstellensatz). See https://coq.inria.fr/refman/addendum/micromega.html and https://coq.inria.fr/refman/addendum/nsatz.html.
On Thu, Jan 2, 2020, 18:01 Kevin Buzzard <kevin.m.buzzard AT gmail.com> wrote:
On Thu, 2 Jan 2020 at 21:55, Adam Chlipala <adamc AT csail.mit.edu> wrote:On 1/2/20 2:41 PM, Timothy Carstens wrote:
> * Tactic mode. Arguably this should be a rich programming environment
> with useful abstractions. Right now you can get that if you're willing
> to write a Coq plugin, but that's kinda heavy-handed, and it's
> certainly a highly-coupled (hard to maintain) way to go. Lean has a
> goal of offering a richer environment for tactics. IMHO everyone will
> eventually need to go in this direction.
I'm not sure I understand this point. Ltac works well for most kinds of
tactic programming. At least, I don't see how it could be held not to
meet the binary requirement of "a rich programming environment with
useful abstractions."I am not a computer scientist and I don't have much experience with Coq,but with Lean you only need to learn one language not two, and as well aswriting tactics people have been writing things like linters, new commandswhich tell you which namespace you're in, which namespaces are open,what variables you have and so on, stuff which makes the end users lifea bit easier.
How common is it for people outside the core Lean development team to
write their own nontrivial tactics? In other words, is there evidence
that Lean's tactic style is attracting more satisfied users?People come along and write tactics as summer projects. When I startedusing Lean (and teaching Lean) my students (who are all used to the informalpoint of view with N in Z in Q in R in C) all had trouble with goals of the forma = b when they already had a proof of what looked to them like a = b, whereasone of these a = b statements was actually int_to_rat(a)=int_to_rat(b) or whatever. I wrotea suite of examples corresponding to problems which mathematians had been having,then an MSc student who had some CS background but was not part of the core developmentteam came along and wrote a tactic which solved them all as part of a summer project."Regular users" such as me knock up simple tactics which mathematicians want,but these would not be classed as nontrivial.However I strongly suspect that Coq is ahead of Lean on the tactic front in general.What I am finding as a mathematician who wants to reason about complex objectsis that I have pretty much all the tactics I need now, except that occasionally a GroebnerBasis tactic would be useful so I can quickly solve questions of the form "prove this elementof this ring is in this ideal" automatically (although of course I can solve these usingcomputer algebra packages and then just paste in the solution, it's just a bore).In general, I think it's a mistake to compare proof assistants using
criteria associated with random varieties of open-source projects, since
typically open-source projects are much less involved in major
design-space innovations. IMO, worrying about quality of library
ecosystems should mostly be avoided.When mathematicians come looking at these systems, one of the first questionsthey seem to ask is "how much mathematics is in there already?". They wantto see a coherent answer with words they understand, and the more undergraduatelevel mathematics there is in one accessible place, the better. I did a recent sweepwith Lean:and I would be interested to see the corresponding picture with Coq.Kevin (still not really knowing if this post will go through, or whether his original long post did)
- Re: [Coq-Club] Fwd: "Lean is like Coq but better", (continued)
- Re: [Coq-Club] Fwd: "Lean is like Coq but better", Frédéric Blanqui, 01/09/2020
- Re: [Coq-Club] Fwd: "Lean is like Coq but better", Vincent Semeria, 01/09/2020
- Re: [Coq-Club] Fwd: "Lean is like Coq but better", Thorsten Altenkirch, 01/04/2020
- Re: [Coq-Club] "Lean is like Coq but better", Kevin Buzzard, 01/03/2020
- Re: [Coq-Club] "Lean is like Coq but better", Adam Chlipala, 01/03/2020
- Re: [Coq-Club] "Lean is like Coq but better", Talia Ringer, 01/03/2020
- Re: [Coq-Club] "Lean is like Coq but better", Beta Ziliani, 01/03/2020
- Re: [Coq-Club] "Lean is like Coq but better", Timothy Carstens, 01/03/2020
- Re: [Coq-Club] "Lean is like Coq but better", Beta Ziliani, 01/03/2020
- Re: [Coq-Club] "Lean is like Coq but better", Talia Ringer, 01/03/2020
- Re: [Coq-Club] "Lean is like Coq but better", Jason Gross, 01/03/2020
- Re: [Coq-Club] "Lean is like Coq but better", Adam Chlipala, 01/03/2020
- Re: [Coq-Club] "Lean is like Coq but better", Timothy Carstens, 01/03/2020
Archive powered by MHonArc 2.6.18.