Euclidean spaces #
This file makes some definitions and proves very basic geometrical
results about real inner product spaces and Euclidean affine spaces.
Results about real inner product spaces that involve the norm and
inner product but not angles generally go in
Analysis.NormedSpace.InnerProduct
. Results with longer
proofs or more geometrical content generally go in separate files.
Implementation notes #
To declare P
as the type of points in a Euclidean affine space with
V
as the type of vectors, use
[NormedAddCommGroup V] [InnerProductSpace ℝ V] [MetricSpace P] [NormedAddTorsor V P]
.
This works better with outParam
to make
V
implicit in most cases than having a separate type alias for
Euclidean affine spaces.
Rather than requiring Euclidean affine spaces to be finite-dimensional (as in the definition on Wikipedia), this is specified only for those theorems that need it.
References #
Geometrical results on Euclidean affine spaces #
This section develops some geometrical definitions and results on Euclidean affine spaces.
The inner product of two vectors given with weightedVSub
, in
terms of the pairwise distances.
The distance between two points given with affineCombination
,
in terms of the pairwise distances between the points in that
combination.
The squared distance between points on a line (expressed as a multiple of a fixed vector added to a point) and another point, expressed as a quadratic.
The condition for two points on a line to be equidistant from another point.
Distances r₁
r₂
of p
from two different points c₁
c₂
determine at
most two points p₁
p₂
in a two-dimensional subspace containing those points
(two circles intersect in at most two points).
Distances r₁
r₂
of p
from two different points c₁
c₂
determine at
most two points p₁
p₂
in two-dimensional space (two circles intersect in at
most two points).