Settings

Theme

Litex: Formal math for everyone – set theory examples with Lean comparison

litexlang.com

29 points by litexlang 7 days ago · 7 comments

Reader

litexlangOP 7 days ago

[Litex](https://litexlang.com) is a simple open-source computer language for mathematical proofs. Anyone can have a rough understanding of Litex in 2 hours.

Although it is not yet ready for production use, it is already powerful enough to formalize set theory and basic logic, which is enough for most daily mathematical proofs. Visit [Set Theory Examples](https://litexlang.com/doc/How_Litex_Works/Litex_vs_Lean_Set_...) for more examples.

Star the repo [here](https://github.com/litexlang/golitex) to support Litex, and join our [Zulip community](https://litex.zulipchat.com/join/c4e7foogy6paz2sghjnbujov/) to give us feedback and suggestions!

markusde 15 hours ago

One thing I never understood about this: why does this not just compile to Lean so they're compatible with each other? Having a good interface is admirable, but the difference between set and type based foundations seems not very important and porting any enough math to sustain Litex seems like a huge undertaking.

igornotarobot 19 hours ago

Litex is probably closer to TLA+ than to Lean. Both draw inspiration from untyped set theory and LaTeX.

tucnak a day ago

The code bits are criminally unreadable in dark mode—white outlines over light gray background...

  • litexlangOP a day ago

    Thanks! It seems the font color defers in different systems (I did not find this behavior on my machine). So I changed the font color to pink :)

    Happy Christmas

  • observationist a day ago

    Almost looks like the highlight and default colors got swapped - ctrl+a to read looks ok, but oof.

lupire 16 hours ago

Something that always bugged me about Lean is how unreadable and unwritable.

Math uses extremely heavy notation to make statements concise. It's hard to learn the notation without a visual reference guide, sync the symbols don't have guessable names, but once you know what the symbols mean, it's readable.

Java is incredibly verbose but you can make out what it's saying word by word

Lean is line noise. It's like assembly language for math, which is great, but not what humans should be using day to day.

This Litex does a nice job of being concerned about humans reading and writing the code.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection