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.

Descriptions

By equations

A flat can be described by a system of linear equations. For example, a line in two-dimensional space can be described by a single linear equation involving x and y:

${\displaystyle 3x+5y=8.}$

In three-dimensional space, a single linear equation involving x, y, and z defines a plane, while a pair of linear equations can be used to describe a line. In general, a linear equation in n variables describes a hyperplane, and a system of linear equations describes the intersection of those hyperplanes. Assuming the equations are consistent and linearly independent, a system of k equations describes a flat of dimension nk.

Parametric

A flat can also be described by a system of linear parametric equations. A line can be described by equations involving one parameter:

${\displaystyle x=2+3t,\;\;\;\;y=-1+t\;\;\;\;z={\frac {3}{2))-4t}$

while the description of a plane would require two parameters:

${\displaystyle x=5+2t_{1}-3t_{2},\;\;\;\;y=-4+t_{1}+2t_{2}\;\;\;\;z=5t_{1}-3t_{2}.\,\!}$

In general, a parameterization of a flat of dimension k would require k parameters, e.g. t1, …, tk.

Operations and relations on flats

Intersecting, parallel, and skew flats

An intersection of flats is either a flat or the empty set.

If each line from one flat is parallel to some line from another flat, then these two flats are parallel. Two parallel flats of the same dimension either coincide or do not intersect; they can be described by two systems of linear equations which differ only in their right-hand sides.

If flats do not intersect, and no line from the first flat is parallel to a line from the second flat, then these are skew flats. It is possible only if sum of their dimensions is less than dimension of the ambient space.

Join

For two flats of dimensions k1 and k2 there exists the minimal flat which contains them, of dimension at most k1 + k2 + 1. If two flats intersect, then the dimension of the containing flat equals to k1 + k2 minus the dimension of the intersection.

Properties of operations

These two operations (referred to as meet and join) make the set of all flats in the Euclidean n-space a lattice and can build systematic coordinates for flats in any dimension, leading to Grassmann coordinates or dual Grassmann coordinates. For example, a line in three-dimensional space is determined by two distinct points or by two distinct planes.

However, the lattice of all flats is not a distributive lattice. If two lines 1 and 2 intersect, then 1 ∩ ℓ2 is a point. If p is a point not lying on the same plane, then (ℓ1 ∩ ℓ2) + p = (ℓ1 + p) ∩ (ℓ2 + p), both representing a line. But when 1 and 2 are parallel, this distributivity fails, giving p on the left-hand side and a third parallel line on the right-hand side.

Euclidean geometry

The aforementioned facts do not depend on the structure being that of Euclidean space (namely, involving Euclidean distance) and are correct in any affine space. In a Euclidean space: