Existing in Mathlib · Geometry and linear algebra
Pythagorean Theorem
For two vectors in a real inner-product space, the square of the length of their sum equals the sum of their squared lengths if and only if their real inner product is zero. For nonzero vectors, this is the familiar right-angle condition.
- orthogonality
- inner product
- norm
- vector sum
- equivalence
Exact theorem
Exact Mathlib statement
theorem norm_add_sq_eq_norm_sq_add_norm_sq_iff_real_inner_eq_zero {F : Type*} [SeminormedAddCommGroup F] [InnerProductSpace ℝ F] (x y : F) : ‖x + y‖ * ‖x + y‖ = ‖x‖ * ‖x‖ + ‖y‖ * ‖y‖ ↔ inner ℝ x y = 0The theorem at a glance
Pythagorean theorem at a glance
A visual guide to the theorem's hypotheses, structure, and conclusion; the exact statement gives the formal detail.
Pythagorean theorem at a glance

Detailed visual description
The poster foregrounds the two-way equivalence between a squared-norm sum and a zero real inner product, while separating that vector statement from a direct claim about triangle side lengths.
Statement structure
Statement and scope
Read the exact Mathlib declaration
This map summarizes the statement's structure; the exact Mathlib declaration remains authoritative.
Pythagorean theorem schematic

Detailed visual description
A right-angle vector construction and three area squares connect the norm of a vector sum with the norms of its two perpendicular summands.
Why it matters
A mathematical landmark
The Pythagorean relation is a defining bridge between distance and orthogonality. Mathlib's selected equivalence exposes the inner-product structure behind the familiar right-triangle identity.
ProofAtlas record
What has been checked
Mathlib is the source of the theorem; the local Lean replay and page review are separate.
Claim boundary
No new theorem is claimed
This target indexes Mathlib's real inner-product-space equivalence: the squared norm of x+y is the sum of squared norms exactly when x and y are orthogonal. It is a vector identity, not a direct theorem about side lengths of a Euclidean triangle.
- Proof Atlas did not originate the Pythagorean theorem or Mathlib's declaration.
- The selected declaration is a vector equivalence, not a direct side-length theorem for drawn triangles.
- The generated explanation and visuals are not proof evidence.
Source and local evidence
Where the theorem comes from
- Existing declaration
norm_add_sq_eq_norm_sq_add_norm_sq_iff_real_inner_eq_zeroin mathlib- Relationship
- The checked artifact is the upstream declaration itself
- Local Lean evidence
artifact.library.mathlib.pythagorean-theorem.v001