Free online Lean 4 book packs 23 chapters from BM25 ranking to local LLMs with Ollama

danbri · x · 2026-11-22

Developer marklwatson released a free online Lean 4 book, 'Learning Lean 4 With Examples', with 23 chapters readable on Leanpub.

Beyond syntax, it teaches via examples: Bayesian inference, BM25 document ranking, extractive summarization, tiny vector stores, Hopfield associative memory, symbolic polynomial calculus and automatic differentiation — plus AI-oriented chapters on Apple on-device models, local LLMs with Ollama, calling Gemini, SPARQL knowledge graphs and web search with Exa/Brave.

Original post →

More from coding & agent

coding & agent channel →