Documentation

Mathlib.Geometry.Euclidean.EulerQuadrilateral

Euler's quadrilateral theorem #

This file proves Euler's quadrilateral theorem: for any four points a, b, c and d, the sum of the squares of the four sides of the quadrilateral a b c d equals the sum of the squares of the two diagonals, plus four times the square of the distance between the midpoints of the diagonals. The theorem is usually stated for a convex quadrilateral, but no hypothesis is needed here: the quadrilateral may be degenerate and its vertices need not be coplanar.

The correction term is four times a squared distance, so it vanishes exactly when the two diagonals have the same midpoint, that is, when a b c d is a parallelogram. This gives the parallelogram law in point form, together with its converse.

Main results #

References #

Euler's quadrilateral theorem: for any four points, the sum of the squares of the four sides of the quadrilateral a b c d equals the sum of the squares of the two diagonals, plus four times the square of the distance between the midpoints of the diagonals.

The sum of the squares of the four sides of the quadrilateral a b c d equals the sum of the squares of the two diagonals if and only if the two diagonals have the same midpoint. The direction that assumes the shared midpoint is the parallelogram law, written with distances between points.