In geometry, a flat or affine subspace is a subset of an affine space that is itself an affine space (of equal or lower dimension). In the case the parent space is Euclidean, a flat is a Euclidean subspace which inherits the notion of distance from its parent space.
The flats in a plane (two-dimensional space) are points, lines, and the plane itself; the flats in three-dimensional space are points, lines, planes, and the space itself. In an n-dimensional space, there are k-flats of every dimension k from 0 to n; subspaces one dimension lower than the parent space, (n − 1)-flats, are called hyperplanes.
Flats occur in linear algebra, as geometric realizations of solution sets of systems of linear equations.
A flat is a manifold and an algebraic variety, and is sometimes called a linear manifold or linear variety to distinguish it from other manifolds or varieties.