coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Timothy Carstens <intoverflow AT gmail.com>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] Fwd: "Lean is like Coq but better"
- Date: Sun, 12 Jan 2020 17:09:49 -0800
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=intoverflow AT gmail.com; spf=Pass smtp.mailfrom=intoverflow AT gmail.com; spf=None smtp.helo=postmaster AT mail-lf1-f42.google.com
- Ironport-phdr: 9a23:jW6UkhJnib9smgyDCtmcpTZWNBhigK39O0sv0rFitYgRKP7xwZ3uMQTl6Ol3ixeRBMOHsqkC0bSH+Pu6EUU7or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6arXK99yMdFQviPgRpOOv1BpTSj8Oq3Oyu5pHfeQpFiCezbL9oMhm7rAHcusYYjId8N6081gbHrnxUdupM2GhmP0iTnxHy5sex+J5s7SFdsO8/+sBDTKv3Yb02QaRXAzo6PW814tbrtQTYQguU+nQcSGQWnQFWDAXD8Rr3Q43+sir+tup6xSmaIcj7Rq06VDi+86tmTgLjhSEaPDA77W7XkNR9g61VoB2jpxJxzY3abpyLOvViZa7SZ88WSHBbU8pNSyBMAIWxZJYPAeobOuZYqpHwqUUPrRu7AgmsGOPvyz9VjXLox6I6yf8hER3Y0wwmBNIFrXPZrNTzNKcOVuC10rfHzS/Nb/NS3jf85pPFch8kof6WXLJwddDdxlUoFwPAl1idr5HuMTCN1ukVrWSX8+5tWfishmMnsQ19vzmiy8U2hoTGmI4YzE3P+z9jz4YvP9K4TVZ2Yd66H5tUsCGXL452TdkjQ2FsoSo6zrMGtYOicCgEx5kr2QTTa/OAc4iP7RLjUPieLS1ki3JifbKznxey8U6+xe3gTsS4zkpGoy5fntTPtn0BzQHf58mFR/dn8Uqtxy6D1wXJ5eFFJUA0m7DbK5kkwrMol5oTt1jDHijomErolq+WeEEk+u+m6un8bbXmo4WTN45wig3kLqsuncm/DfwiMgcSR2ib5fi81Lr78ELlR7VKl+Q6nbXdsJDHPssWvbW5Ag9Q0oY78RmzFTam0NICnXkGNl1JYhyHj5K6c23Jdfv/FLK0h0mmuDZt3fHPeLP7UbvXKX2WrLbkeqp9+gZ3wRAo0d1Z/NoAC7cdJ+z+QEH1s8PwARowMgjyyOHiXoYunrgCUH6CV/fKeJjZtkWFs7p2cru8IbQNsTO4EMALovvnjHs3g1gYJPD70p4eaXT+FfNjcRzAPCjcx+wZGGJPhTIQCeznjFrYDGxWbne2GqYyv3Q1VNjgAoDESYSgxreG2XXjR8EEViV9ElmJVEzQWcCcQf5VMXCdJ8ZglnoPUr3zE4I=
I like this perspective. It's all about HCI. What ends are the users pursuing and how do proofs fit into those stories?
The maintenance question in particular is an interesting one.
For the software engineer tasked with maintaining an executable artifact against a stream of evolving requirements and environments, proof maintenance is going to be a pretty big deal. The proofs don't need to be particularly readable, as their main purpose is to merely exist.
For the mathematician tasked with proving new theorems, proof maintenance might be a concern in the early stages of new definitions, but at some point the goal is to have a Theorem that's been rigorously Proven and That's That. Here we care a great deal about readability, in the sense described below:
Regarding proof insight, I'd lose my math license if I didn't respond. There are rote proofs and there are insightful proofs. Rote proofs give examples of typical usage of core ideas. Insightful proofs demonstrate approaches that can be generalized to yield more theorems. The line between them is subjective and evolves over one's career. From this perspective, the value of many papers isn't the theorems they contribute, but rather, the constructions and methods they exhibit to achieve those theorems.
Such contributions won't be replaced by tactics. At least, not entirely, and not overnight. Sometimes the key step is to construct exactly the right function, the right measurable set, the right sheaf, etc, and the key contribution is a smart way of encoding some important data in this construction. The encoding schema becomes the tactic. "Ah, this ring homomorphism has a kernel whose elements are exactly the obstructions to my lemma. It also factors through this ramification, which means ..." Sometimes theorists need to build a few examples of such arguments before the general principle comes into clarity. Only then can you profitably use adages like "every algebraically closed field is C," a statement which is simultaneously false yet also shockingly insightful for certain purposes.
Calling back to my earlier reference to FRAP, this is a big reason why I'm such a fan of mechanized logic and literate proofs. In prose it's easy to sneak a ton of definitions and constructions into the statement of a lemma or its proof. This gives pretty typeset documents but also obfuscates what's going on. "Oh, I need to compute the action of this canonical map, time to go to page 127 and trace the steps of the proof of Lemma 5.12."
Compare to the situation in Coq/etc. See what happens when you bury constructions in your lemmas and proofs. You can, but it's not pretty. Best to break things up and organize it nicely - which happens to also be what the reader wants.
All my best,
-t
On Sun, Jan 12, 2020 at 9:25 AM Adam Chlipala <adamc AT csail.mit.edu> wrote:
I do think it's worth drawing a distinction between the mathematician's
goal of understanding a proof to attain "insight" (honestly driven
primarily by aesthetic criteria in many cases, as far as I can tell) and
the formal-methods engineer's goal of understanding a proof to be able
to maintain it. We measure success very differently in these two cases,
I would claim. Insight can be a tool to put a person in a good position
to do maintenance, but good enough automation can remove the need to
develop any insight about many details in a long proof.
On 1/12/20 11:45 AM, Stefan Monnier wrote:
>> This is why I do not really care if Coq (or lean or agda or anything
>> else's) proofs are readable or not when it comes to program verification.
> As a user of the program, that makes sense. But if you ever intend to
> work (extend, modify, ...) on that program (or pay someone else to do
> it), then you'll need this proof to be readable, just like you need the
> code to be readable, otherwise you won't be able to update the proof to
> match the new code.
- Re: [Coq-Club] Fwd: "Lean is like Coq but better", (continued)
- Re: [Coq-Club] Fwd: "Lean is like Coq but better", Tadeusz Litak, 01/10/2020
- Re: [Coq-Club] Fwd: "Lean is like Coq but better", Conor McBride, 01/11/2020
- Re: [Coq-Club] Fwd: "Lean is like Coq but better", Tadeusz Litak, 01/11/2020
- Re: [Coq-Club] Fwd: "Lean is like Coq but better", Hugo Herbelin, 01/11/2020
- Re: [Coq-Club] Fwd: "Lean is like Coq but better", Tadeusz Litak, 01/11/2020
- Re: [Coq-Club] Fwd: "Lean is like Coq but better", Siddharth Bhat, 01/11/2020
- Re: [Coq-Club] Fwd: "Lean is like Coq but better", Kinan Dak Albab, 01/11/2020
- Re: [Coq-Club] Fwd: "Lean is like Coq but better", Stefan Monnier, 01/12/2020
- Re: [Coq-Club] Fwd: "Lean is like Coq but better", Adam Chlipala, 01/12/2020
- Re: [Coq-Club] Fwd: "Lean is like Coq but better", Kinan Dak Albab, 01/12/2020
- Re: [Coq-Club] Fwd: "Lean is like Coq but better", Timothy Carstens, 01/13/2020
- Re: [Coq-Club] Fwd: "Lean is like Coq but better", Hugo Herbelin, 01/11/2020
- Re: [Coq-Club] Fwd: "Lean is like Coq but better", Tadeusz Litak, 01/11/2020
- Re: [Coq-Club] Fwd: "Lean is like Coq but better", Xuanrui Qi, 01/11/2020
- Re: [Coq-Club] Fwd: "Lean is like Coq but better", Timothy Carstens, 01/11/2020
- Re: [Coq-Club] Fwd: "Lean is like Coq but better", Kinan Dak Albab, 01/11/2020
- Re: [Coq-Club] Fwd: "Lean is like Coq but better", Tadeusz Litak, 01/11/2020
- Re: [Coq-Club] Fwd: "Lean is like Coq but better", Timothy Carstens, 01/12/2020
- Re: [Coq-Club] Fwd: "Lean is like Coq but better", Conor McBride, 01/11/2020
- Re: [Coq-Club] Fwd: "Lean is like Coq but better", Tadeusz Litak, 01/10/2020
- Re: [Coq-Club] Fwd: "Lean is like Coq but better", Hugo Herbelin, 01/11/2020
- Re: [Coq-Club] Fwd: "Lean is like Coq but better", Conor McBride, 01/12/2020
- Re: [Coq-Club] Fwd: "Lean is like Coq but better", Tadeusz Litak, 01/13/2020
- Re: [Coq-Club] Fwd: "Lean is like Coq but better", Tadeusz Litak, 01/13/2020
- Re: [Coq-Club] Fwd: "Lean is like Coq but better", Xuanrui Qi, 01/11/2020
Archive powered by MHonArc 2.6.18.