In
mathematics
Mathematics is an area of knowledge that includes the topics of numbers, formulas and related structures, shapes and the spaces in which they are contained, and quantities and their changes. These topics are represented in modern mathematics ...
, codimension is a basic geometric idea that applies to
subspaces in
vector spaces, to
submanifolds in
manifold
In mathematics, a manifold is a topological space that locally resembles Euclidean space near each point. More precisely, an n-dimensional manifold, or ''n-manifold'' for short, is a topological space with the property that each point has a n ...
s, and suitable
subset
In mathematics, Set (mathematics), set ''A'' is a subset of a set ''B'' if all Element (mathematics), elements of ''A'' are also elements of ''B''; ''B'' is then a superset of ''A''. It is possible for ''A'' and ''B'' to be equal; if they are ...
s of
algebraic varieties.
For
affine and
projective algebraic varieties
In algebraic geometry, a projective variety over an algebraically closed field ''k'' is a subset of some projective ''n''-space \mathbb^n over ''k'' that is the zero-locus of some finite family of homogeneous polynomials of ''n'' + 1 variables w ...
, the codimension equals the
height of the defining
ideal. For this reason, the height of an ideal is often called its codimension.
The dual concept is
relative dimension.
Definition
Codimension is a ''relative'' concept: it is only defined for one object ''inside'' another. There is no “codimension of a vector space (in isolation)”, only the codimension of a vector ''sub''space.
If ''W'' is a
linear subspace
In mathematics, and more specifically in linear algebra, a linear subspace, also known as a vector subspaceThe term ''linear subspace'' is sometimes used for referring to flats and affine subspaces. In the case of vector spaces over the reals, li ...
of a
finite-dimensional
In mathematics, the dimension of a vector space ''V'' is the cardinality (i.e., the number of vectors) of a basis of ''V'' over its base field. p. 44, §2.36 It is sometimes called Hamel dimension (after Georg Hamel) or algebraic dimension to disti ...
vector space ''V'', then the codimension of ''W'' in ''V'' is the difference between the dimensions:
:
It is the complement of the dimension of ''W,'' in that, with the dimension of ''W,'' it adds up to the dimension of the
ambient space ''V:''
:
Similarly, if ''N'' is a submanifold or subvariety in ''M'', then the codimension of ''N'' in ''M'' is
:
Just as the dimension of a submanifold is the dimension of the
tangent bundle (the number of dimensions that you can move ''on'' the submanifold), the codimension is the dimension of the
normal bundle (the number of dimensions you can move ''off'' the submanifold).
More generally, if ''W'' is a
linear subspace
In mathematics, and more specifically in linear algebra, a linear subspace, also known as a vector subspaceThe term ''linear subspace'' is sometimes used for referring to flats and affine subspaces. In the case of vector spaces over the reals, li ...
of a (possibly infinite dimensional)
vector space ''V'' then the codimension of ''W'' in ''V'' is the dimension (possibly infinite) of the
quotient space
Quotient space may refer to a quotient set when the sets under consideration are considered as spaces. In particular:
*Quotient space (topology), in case of topological spaces
* Quotient space (linear algebra), in case of vector spaces
*Quotient ...
''V''/''W'', which is more abstractly known as the
cokernel of the inclusion. For finite-dimensional vector spaces, this agrees with the previous definition
:
and is dual to the relative dimension as the dimension of the
kernel.
Finite-codimensional subspaces of infinite-dimensional spaces are often useful in the study of
topological vector spaces.
Additivity of codimension and dimension counting
The fundamental property of codimension lies in its relation to
intersection
In mathematics, the intersection of two or more objects is another object consisting of everything that is contained in all of the objects simultaneously. For example, in Euclidean geometry, when two lines in a plane are not parallel, their i ...
: if ''W''
1 has codimension ''k''
1, and ''W''
2 has codimension ''k''
2, then if ''U'' is their intersection with codimension ''j'' we have
:max (''k''
1, ''k''
2) ≤ ''j'' ≤ ''k''
1 + ''k''
2.
In fact ''j'' may take any
integer value in this range. This statement is more perspicuous than the translation in terms of dimensions, because the
RHS is just the sum of the codimensions. In words
:''codimensions (at most) add''.
:If the subspaces or submanifolds intersect
transversally (which occurs
generically), codimensions add exactly.
This statement is called dimension counting, particularly in
intersection theory.
Dual interpretation
In terms of the
dual space
In mathematics, any vector space ''V'' has a corresponding dual vector space (or just dual space for short) consisting of all linear forms on ''V'', together with the vector space structure of pointwise addition and scalar multiplication by const ...
, it is quite evident why dimensions add. The subspaces can be defined by the vanishing of a certain number of
linear functionals, which if we take to be
linearly independent, their number is the codimension. Therefore, we see that ''U'' is defined by taking the
union of the sets of linear functionals defining the ''W''
i. That union may introduce some degree of
linear dependence
In the theory of vector spaces, a set of vectors is said to be if there is a nontrivial linear combination of the vectors that equals the zero vector. If no such linear combination exists, then the vectors are said to be . These concepts are ...
: the possible values of ''j'' express that dependence, with the RHS sum being the case where there is no dependence. This definition of codimension in terms of the number of functions needed to cut out a subspace extends to situations in which both the ambient space and subspace are infinite dimensional.
In other language, which is basic for any kind of
intersection theory, we are taking the union of a certain number of
constraint
Constraint may refer to:
* Constraint (computer-aided design), a demarcation of geometrical characteristics between two or more entities or solid modeling bodies
* Constraint (mathematics), a condition of an optimization problem that the solution ...
s. We have two phenomena to look out for:
# the two sets of constraints may not be independent;
# the two sets of constraints may not be compatible.
The first of these is often expressed as the principle of counting
constraints: if we have a number ''N'' of
parameters to adjust (i.e. we have ''N''
degrees of freedom
Degrees of freedom (often abbreviated df or DOF) refers to the number of independent variables or parameters of a thermodynamic system. In various scientific fields, the word "freedom" is used to describe the limits to which physical movement or ...
), and a constraint means we have to 'consume' a parameter to satisfy it, then the codimension of the
solution set
In mathematics, a solution set is the set of values that satisfy a given set of equations or inequalities.
For example, for a set of polynomials over a ring ,
the solution set is the subset of on which the polynomials all vanish (evaluate to ...
is ''at most'' the number of constraints. We do not expect to be able to find a solution if the predicted codimension, i.e. the number of ''independent'' constraints, exceeds ''N'' (in the linear algebra case, there is always a ''trivial'',
null vector solution, which is therefore discounted).
The second is a matter of geometry, on the model of
parallel lines; it is something that can be discussed for
linear problem
Linear programming (LP), also called linear optimization, is a method to achieve the best outcome (such as maximum profit or lowest cost) in a mathematical model whose requirements are represented by linear relationships. Linear programming i ...
s by methods of linear algebra, and for non-linear problems in
projective space
In mathematics, the concept of a projective space originated from the visual effect of perspective, where parallel lines seem to meet ''at infinity''. A projective space may thus be viewed as the extension of a Euclidean space, or, more generally ...
, over the
complex number field.
In geometric topology
Codimension also has some clear meaning in
geometric topology
In mathematics, geometric topology is the study of manifolds and maps between them, particularly embeddings of one manifold into another.
History
Geometric topology as an area distinct from algebraic topology may be said to have originated i ...
: on a manifold, codimension 1 is the dimension of topological disconnection by a submanifold, while codimension 2 is the dimension of
ramification and
knot theory
In the mathematical field of topology, knot theory is the study of knot (mathematics), mathematical knots. While inspired by knots which appear in daily life, such as those in shoelaces and rope, a mathematical knot differs in that the ends are ...
. In fact, the theory of high-dimensional manifolds, which starts in dimension 5 and above, can alternatively be said to start in codimension 3, because higher codimensions avoid the phenomenon of knots. Since
surgery theory requires working up to the middle dimension, once one is in dimension 5, the middle dimension has codimension greater than 2, and hence one avoids knots.
This quip is not vacuous: the study of embeddings in codimension 2 is knot theory, and difficult, while the study of embeddings in codimension 3 or more is amenable to the tools of high-dimensional geometric topology, and hence considerably easier.
See also
*
Glossary of differential geometry and topology
References
*{{Springer, id=C/c022870, title=Codimension
Algebraic geometry
Geometric topology
Linear algebra
Dimension