TE
TechEcho
StartseiteTop 24hNeuesteBesteFragenZeigenJobs
GitHubTwitter
Startseite

TechEcho

Eine mit Next.js erstellte Technologie-Nachrichtenplattform, die globale Technologienachrichten und Diskussionen bietet.

GitHubTwitter

Startseite

StartseiteNeuesteBesteFragenZeigenJobs

Ressourcen

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. Alle Rechte vorbehalten.

How to (actually) prove it – New Frontiers of Mathematics and Computing in Lean

81 Punktevon gopiandcodevor 5 Tagen

5 comments

gnulinuxvor 2 Tagen
I personally prefer Agda to Lean or Coq [1] to prove my theorems but this frontier is imho among the most exciting research in theoretical CS in many many decades. I really wish more programmers and mathematicians knew about automated theorem proving and automated reasoning. It&#x27;s nothing short of revolutionary and I think next generation of pure mathematicians will use these as a crucial tool in their research.<p>[1] It&#x27;s a personal preference but Agda is simply a much better language with almost limitless metaprogramming which allows me to write proofs close to as they&#x27;d appear in prose math papers. It has a smaller ecosystem though. I&#x27;ve never seen a proof in any other language I personally didn&#x27;t think would be much more readable&#x2F;simpler in Agda.
评论 #43956289 未加载
评论 #43959573 未加载
评论 #43958784 未加载
sega_saivor 2 Tagen
Interesting. I always wanted to try Lean, and personally never found an easy way to do it, as it requires installing a plugin in vscode, create a project or reading the lean book. But following the links I&#x27;ve found this nice interactive tutorial for proving 2+2=4 in Peano arithmetic:<p><a href="https:&#x2F;&#x2F;adam.math.hhu.de&#x2F;#&#x2F;g&#x2F;leanprover-community&#x2F;nng4&#x2F;" rel="nofollow">https:&#x2F;&#x2F;adam.math.hhu.de&#x2F;#&#x2F;g&#x2F;leanprover-community&#x2F;nng4&#x2F;</a><p>It&#x27;s quite instructive.
评论 #43957348 未加载
评论 #43959045 未加载
评论 #43957071 未加载
rtpgvor 2 Tagen
A thing that still stands out to me is that even in this work we&#x27;re looking at Lean as a way of verifying a proof, but I do not know how much exploratory work is possible in Lean.<p>In Rocq&#x2F;Coq, I&#x27;ve found myself often lost in the weeds when exploring a problem just through tactics mode (half expecting it to handle the more boring machinery), and really do have to think pretty hard about how I get from A to B.<p>Some of this is, quite simply, me just walking in the wrong direction (if you have multiple things you can induct on, the choice can greatly affect how easy it is to move forward!). I just wish that the computer would be a bit better at helping me realize I&#x27;m in the wrong direction.<p>Stuff like Quickchick[0] helps, but just generally I would love the computer to more actively give me counterexamples to some extent.<p>[0]: <a href="https:&#x2F;&#x2F;github.com&#x2F;QuickChick&#x2F;QuickChick">https:&#x2F;&#x2F;github.com&#x2F;QuickChick&#x2F;QuickChick</a>
评论 #43959089 未加载
moi2388vor 1 Tag
What is this article supposed to be? Not a single sentence makes sense or is correct English?!
评论 #43967396 未加载
Tainnorvor 1 Tag
I have a pet (undergraduate complex analysis) formalisation project in Lean, purely for didactic and recreational purposes. I find it rewarding in the same way others may find it rewarding to train for a triathlon - it&#x27;s often extremely grueling work and it can take forever to make even modest progress. When I actually do get to a &quot;big&quot; result such as defining pi (from scratch) or Cauchy&#x27;s integral theorem it feels rewarding, but there&#x27;s a ton of torn out hairs along the way, when linarith is stupider than it should be, I need to spend forever to prove very obvious things, I can&#x27;t find the tactic I need in mathlib or I realise there&#x27;s barely anything about triangles in there. For somebody like me without a PhD it also doesn&#x27;t help that mathlib almost always goes for full generality which makes it hard to use it effectively (although I do understand the reason for it).<p>I think this is all very exciting but I also think ergonomics will probably need to improve quite a bit before Lean will become mainstream in mathematics.