Mathlib theorem · Existing formal mathematics

Existing in Mathlib · Number Theory

Irrationality of the Square Root of Two

The Real square root of 2 is not equal to any rational number.

Exact theorem

Exact Mathlib statement

theorem irrational_sqrt_two : Irrational (√2)

The theorem at a glance

Irrationality of the square root of two at a glance

A visual guide to the theorem's hypotheses, structure, and conclusion; the exact statement gives the formal detail.

Mathlib specializes its prime square-root theorem at 2 to conclude that the Real square root of 2 is irrational. Explanatory diagram.
Detailed visual description

The poster foregrounds Irrational (√2) and its plain-language meaning. A precise unit square contributes the diagonal motif; exact natural-square arrays compare one cell, a two-cell domino, and a four-cell two-by-two square; a medallion with exactly two counted marks records the prime specialization. Gold implication threads converge on an unlabeled emerald seal, while the checked-route copy and scope footer keep the exact specialized Real boundary explicit.

Statement structure

From hypotheses to conclusion

Statement map for Irrationality of the Square Root of TwoThe Real square root of 2 is irrational. The pinned upstream declaration is irrational_sqrt_two. The exact checked statement is theorem irrational_sqrt_two : Irrational (√2).Mathematical readingThe Real square root of2 is irrational.Pinned declarationmathlib ·irrational_sqrt_twoExact checked formtheoremirrational_sqrt_two :Irrational (√2)Statement map for Irrationality of the Square Root of TwoThe Real square root of 2 is irrational. The pinned upstream declaration is irrational_sqrt_two. The exact checked statement is theorem irrational_sqrt_two : Irrational (√2).Mathematical readingThe Real square root of2 is irrational.Pinned declarationmathlib ·irrational_sqrt_twoExact checked formtheoremirrational_sqrt_two :Irrational (√2)

This map summarizes the statement's structure; the exact Mathlib declaration remains authoritative.

The unit-square diagonal represents the principal square root of two as a real point distinct from the dense rational-position markers. Explanatory scientific diagram.
Detailed visual description

The upper-left sequence contains one square cell, a nonsquare two-cell domino, and a two-by-two four-cell square, all built from congruent cells. Below them, a precise square carries a corner-to-corner gold diagonal and faint compass arcs. The diagonal continues to a large emerald diamond with a gold double frame on a dense horizontal field of many small cobalt circles and smaller diamonds. Cobalt marks occur immediately on both sides, so the composition introduces no rational-free interval, negative root, arbitrary-radicand claim, or quantitative approximation claim.

Why it matters

A mathematical landmark

The irrationality of √2 is a foundational result connecting elementary geometry, number theory, and the structure of the real numbers. Mathlib's compact declaration is also an instructive library landmark: a one-line specialization rests on a reusable characterization of irrational natural square roots and the fact that a prime natural is not a square.

ProofAtlas record

What has been checked

Upstream indexedPinned source bytes verified locally
Locally reproducedExact upstream declaration replayed
Reviewed pageCurrent public presentation reviewed
Accepted Atlas resultNot recorded for the preferred artifact

Mathlib is the source of the theorem; the local Lean replay and page review are separate.

Claim boundary

No new theorem is claimed

This page indexes Mathlib's exact specialized Real statement Irrational (√2): the principal Real square root of the natural numeral 2 is not equal to any rational number cast into the reals. The selected declaration does not itself state the general square-root criterion for every natural, integer, or rational radicand; it does not cover both signed square roots; and it does not assert transcendence or a quantitative rational-approximation bound.

Source and local evidence

Where the theorem comes from

Existing declaration
irrational_sqrt_two in mathlib
Relationship
The checked artifact is the upstream declaration itself
Local Lean evidence
artifact.library.mathlib.irrationality-sqrt-two.v001
Source
Open the pinned upstream reference