Leanpub Header

Skip to main content

Formal Methods Software Development Bundle

What if you could prove your software works correctly instead of simply hoping your tests catch every bug? This four-book bundle takes you from the foundations of functional programming and type theory to hands-on formal verification with Lean 4, TLA+, Coq and modern AI tools. Discover how to uncover hidden bugs, verify complex systems and build software you can trust.

Bought separately

$134

Minimum price

$75.00

$89.00

You pay

Author earns

$

Also available for 3 book credits with a Reader Membership

These books have a total suggested price of $134. Get them now for only $75.00!
About

About

About the Bundle

Take your understanding of software correctness to the next level with this collection of four practical and in-depth books on formal verification, functional programming, type theory and proof assistants.

Whether you are a software engineer looking to build more reliable systems or a programmer interested in the mathematical foundations of computation, this bundle gives you a solid path from the fundamentals to real-world applications.

Inside, you will find:

  • Software Verification with TLA+ and Claude Code: Learn how to use TLA+, the TLC model checker and Claude Code to find subtle bugs in distributed systems. Work through practical examples involving leader election, distributed locks, replicated databases and transaction processing.
  • Lean 4: Programming, Proof, and Formal Verification: Get a deep understanding of Lean 4 as both a programming language and an interactive theorem prover. Learn to write functional programs, develop machine-checked proofs and build larger formal verification projects.
  • Functional Programming and Proof Assistants: Explore the foundations of functional programming, from lambda calculus and type theory to the Curry-Howard correspondence. Gain hands-on experience with Lean, Coq and Agda while learning how to prove mathematical properties with machine assistance.
  • Formal Verification for Working Software Engineers: Discover how to bring formal methods into everyday software development. Learn to write precise specifications, choose suitable verification techniques, interpret counterexamples and apply mathematical guarantees to real-world software.

Together, these books cover both the theory and practice of building correct software. You will move from understanding the principles behind formal reasoning to using modern tools to verify programs, prove properties and catch errors that ordinary testing can miss. A valuable collection for software engineers, developers, computer science students and anyone interested in writing software that is not just functional but demonstrably correct.

Books

About the Books

Software Verification with TLA+ and Claude Code

Software Verification with TLA+ and Claude Code

A Practical Guide to Formal Methods, Model Checking and Building Correct Software

Distributed systems are notoriously difficult to get right. Race conditions, network partitions, node failures and unexpected execution sequences can expose subtle bugs that conventional testing may never uncover. Formal Verification of Distributed Systems with TLA+, TLC and Claude Code shows experienced software engineers how to move beyond testing individual scenarios toward mathematically verifying system behavior. Combining the rigor of Leslie Lamport's TLA+ specification language, the exhaustive exploration capabilities of the TLC model checker and the practical assistance of Claude Code, this book presents an accessible, hands-on approach to finding and understanding bugs before they reach production. Through clear explanations, complete runnable specifications and realistic case studies covering replicated key-value stores, leader election, distributed locks and transaction processing, you will learn to specify system behavior, verify safety and liveness properties, interpret counterexamples and integrate formal methods into everyday engineering workflows. No graduate-level mathematics or prior experience with formal verification is required. Written for engineers who want practical techniques rather than theoretical abstractions, this book demonstrates how to make distributed systems more predictable, reliable, correct and how to use AI as a powerful verification partner without surrendering the engineering judgment that correctness demands.

Lean 4: Programming, Proof, and Formal Verification

Lean 4: Programming, Proof, and Formal Verification

A Deep Guide to Functional Programming and Interactive Theorem Proving

This book provides a thorough, technically precise exploration of Lean 4 as a functional programming language and interactive theorem prover. It is intended for software engineers, mathematicians and researchers who want to understand Lean at a deep level: its type-theoretic foundations, its architecture, its facilities for programming and verification and its ecosystem for building large formal projects. By the end of this book you will be able to write executable Lean programs, develop machine-checked proofs, construct custom automation and language extensions and organize substantial formal verification projects. The material assumes familiarity with programming and basic mathematics but no prior background in type theory, dependent types, or theorem provers.

Functional Programming and Proof Assistants

Functional Programming and Proof Assistants

From Lambda Calculus to Verified Reasoning

This book takes you on a systematic journey from the mathematical foundations of functional programming to the art and science of formal theorem proving. You will learn why purity, immutability and algebraic data types matter, how lambda calculus serves as the theoretical core of all functional languages and how type theory unifies computation with logical reasoning through the Curry-Howard correspondence. Along the way, you will gain deep practical experience with Lean, Coq and Agda, proving everything from elementary arithmetic to sophisticated algebraic properties, while understanding the architecture, trade-offs and real-world impact of machine-verified reasoning.

Formal Verification for Working Software Engineers

Formal Verification for Working Software Engineers

From First Principles to Production-Grade Verified Systems

This is a practical guide to formal verification written for software engineers who know how to write production code but have never used formal methods. You will learn to express precise properties about your software, choose the right verification technique for each problem, and integrate mathematical guarantees into real development workflows. By the end, you will be able to identify high-value verification targets, construct machine-checkable specifications, interpret solver results and counterexamples, develop proofs using modern tools, and progressively introduce formal verification into systems ranging from ordinary application code to concurrent, distributed, and security-critical software.

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub