News for hackers. Stuff that matters.
Re:Lean 4.0.0, first official lean4 release by 7373737373 on Friday September 08, 2023 @04:22AM (#37430983)
Same, I also found no good "for programmers" introduction.
Re:Lean 4.0.0, first official lean4 release by crvdgc on Friday September 08, 2023 @04:38AM (#37431106)
There is a short one[1] from Functional Programming in Lean, which is itself an introduction to Lean 4 from the programming's perspective. Highly recommended if you're interested in dependent types.

[1]: https://leanprover.github.io/functional_programming_in_lean/...

Re:Lean 4.0.0, first official lean4 release by uxp8u61q on Friday September 08, 2023 @09:07AM (#37432989)
Because the audience isn't "programmers".
Re:Lean 4.0.0, first official lean4 release by ykonstant on Friday September 08, 2023 @09:47AM (#37433436)
I think that is unnecessarily hostile; I believe Lean 4 can become a very capable programming language for mundane tasks!
Re:Lean 4.0.0, first official lean4 release by uxp8u61q on Friday September 08, 2023 @10:33AM (#37434006)
Hostile? I just stated that the audience isn't programmers.
Re:Lean 4.0.0, first official lean4 release by 7373737373 on Friday September 08, 2023 @11:50AM (#37435218)
The age of guilds has long passed

Are people like these not programmers? https://leandojo.org/

Re:Lean 4.0.0, first official lean4 release by siknad on Friday September 08, 2023 @12:12PM (#37435534)
How can the audience of a general-purpose programming language not be "programmers"?
Re:Lean 4.0.0, first official lean4 release by nequo on Friday September 08, 2023 @03:25PM (#37438221)
I don’t think that your post is hostile. But from what I’ve heard, it is untrue because Lean 4 is intended to be a general purpose programming language, not only a theorem prover. I can’t find a source that directly states this goal but at the least this paper by Leo de Moura and Sebastian Ullrich presents it as a programming language:

https://link.springer.com/chapter/10.1007/978-3-030-79876-5_...

Microsoft also sponsored David Thrane Christiansen’s book, Functional Programming in Lean[1] (which I’m sure you know about!). That is another indication that they intend to reach programmers.

[1] https://leanprover.github.io/functional_programming_in_lean/

Re:Lean 4.0.0, first official lean4 release by sixbrx on Saturday September 09, 2023 @01:24PM (#37447774)
It seems general programming is more in focus now, but for context, the "Programming in Lean" book was only completed recently as compared to the multiple theorem proving documents which have been around for a while. The Christiansen book looks worth waiting for though and I really hope Lean can gain popularity as a general purpose language.
Re:Lean 4.0.0, first official lean4 release by agentultra on Friday September 08, 2023 @09:28AM (#37433214)
Re:Lean 4.0.0, first official lean4 release by 7373737373 on Friday September 08, 2023 @11:55AM (#37435304)
I'm not looking to use it as a programming language, but I'd like to see an introduction to theorem proving using Lean that is more explicit in its explanation of semantics than the ones that assume an existing math background
Re:Lean 4.0.0, first official lean4 release by chabulhwi on Friday September 08, 2023 @07:32PM (#37440574)
Theorem Proving in Lean 4: https://leanprover.github.io/theorem_proving_in_lean4/

I only had a basic knowledge of first-order logic and set theory before reading TPiL4. It wasn't easy, but now I can prove theorems in Lean. By the way, I still can't write a program in any language.