Remix.run Logo
▲ Ericson2314 4 hours ago

Lean has already gone mainstream.

▲kzrdude 3 hours ago | parent | next [-]

Why did Lean win over Rocq/Coq? It was popular first, then Lean overtook it.

▲armchairhacker 40 minutes ago | parent | next [-]

IME Rocq has more legacy quirks. For example, proof automation is done in LTac (very not composable and “spaghetti” but more support and documentation) and LTac2 (newer, confusing, still hard to compose). Inconsistent syntax and behavior, tactics unexpectedly failing (because they’re spaghetti). And maybe this was my poor skill, but even simple tasks were slow, just finding the right lemma, tactic, or syntax to apply them.

Lean:Rust::Rocq:C++

▲logicchains 3 hours ago | parent | prev [-]

A more polished/user friendly design, and more suitable to formalizing math (built in quotients support). Also more efficient/faster.

▲danilafe 4 hours ago | parent | prev [-]

It's not a bad choice! But I am yet to see any "real world software" written in it, in public or in private.

▲nylonstrung 2 hours ago | parent | next [-]

I'm very focused on the "real world software" use case for Lean. Right now it's pretty thin but Nick Palladinos has done some great work IMO

https://github.com/palladin/lean-linq https://github.com/palladin/lean-cloud

▲Ciantic 2 hours ago | parent | prev | next [-]

It definitely isn't bad choice, it reads a lot like Haskell. I've been exploring this myself too, haven't tried performance, but there are some Postgres / HTTP libraries for it.

Its macro capabilities make it very nice for SQL driven apps. I've been working one small invocing schema, and you can derive the Insert, Patch etc types with just macros with `deriving Patch` at the end of your type.

Also, one of my reasoning is that if these AI LLMs are tuned to work with millions of lines of Lean, it probably is very efficient for it.

▲Ericson2314 4 hours ago | parent | prev [-]

I wrote tic tac toe for the terminal in it :)

▲danilafe 4 hours ago | parent | next [-]

I stand corrected :)

▲twotwoone 3 hours ago | parent | prev [-]

[dead]