British flag theorem #
This file proves the British flag theorem: for a rectangle a b c d and any point p, the sum
of the squares of the distances from p to the opposite corners a and c equals the sum of
the squares of the distances from p to b and d. The point p need not lie in the plane
of the rectangle.
The rectangle is expressed as a (possibly degenerate) parallelogram, in the form that the
diagonals a c and b d have the same midpoint, with a right angle at a. A generalization to
an arbitrary parallelogram, with a correction term involving the cosine of the angle at a, is
proved along the way.
Main results #
EuclideanGeometry.dist_sq_add_dist_sq_eq_dist_sq_add_dist_sq_of_angle_eq_pi_div_two: the British flag theorem.EuclideanGeometry.dist_sq_add_dist_sq_eq_dist_sq_add_dist_sq_iff_angle_eq_pi_div_two: the if-and-only-if form: among parallelograms, the conclusion of the British flag theorem characterizes rectangles.
References #
The identity underlying the British flag theorem, for the parallelogram with vertices 0,
u, u + v and v and any point x, vector form.
British flag theorem, if-and-only-if vector form.
The British flag identity for a parallelogram, with the correction term written as an inner product.
The British flag theorem generalized to parallelograms, with a correction term of twice the
product of the sides at a and the cosine of the angle at a.
British flag theorem, if-and-only-if form: for a parallelogram a b c d and any point
p, the British flag identity holds if and only if the angle at a is a right angle.
British flag theorem: for a rectangle a b c d and any point p (not necessarily in
the plane of the rectangle), the sum of the squares of the distances from p to the opposite
corners a and c equals the sum of the squares of the distances from p to b and d.