# How Lean Propositions Differ from TypeScript Booleans

DevFeed: [How Lean Propositions Differ from TypeScript Booleans](<https://devfeed.tech/articles/beyond-booleans-36162.md>)

Original publisher: [Read original article](<https://overreacted.io/beyond-booleans/>)

Published: 2025-08-16T00:00:00Z

Content type: tutorial

Language: en

Sources: [Dan Abramov](<https://devfeed.tech/sources/dan-abramov.md>)

Topics: [Lean](<https://devfeed.tech/topics/lean.md>), [Programming](<https://devfeed.tech/topics/programming.md>), [Mathematics](<https://devfeed.tech/topics/mathematics.md>), [Code](<https://devfeed.tech/topics/code.md>), [TypeScript](<https://devfeed.tech/topics/typescript.md>)

Tags: [mathematics](<https://devfeed.tech/tags/mathematics.md>), [programming](<https://devfeed.tech/tags/programming.md>), [programming-languages](<https://devfeed.tech/tags/programming-languages.md>), [types](<https://devfeed.tech/tags/types.md>), [typescript](<https://devfeed.tech/tags/typescript.md>)

## AI overview

This tutorial compares logical expressions in TypeScript with propositions in Lean. It explains that Lean treats propositions as distinct values and types, and that proving a proposition requires supplying a proof rather than simply computing a Boolean result.

## Source excerpt

What is the type of 2 + 2 = 4?