Smooth manifolds, smooth maps, and retractions
Smooth manifolds, tangent vectors and the tangent bundle as Lee defines them; a basis of each tangent space, which makes every differential a matrix; and a retraction, which moves a point along a tangent vector, makes each tangent space a chart, and gives the notation , and that every later note uses.
Estimation moves points. On a step is an addition, . On a curved manifold, such as the rotations or the unit sphere, there is no addition, and a retraction takes its place. A retraction is defined by its derivative, so this note first recalls what a derivative on a manifold is. It then fixes the coordinates in which tangent vectors are written, defines a retraction, shows how it turns every tangent space into a chart, and ends with the notation that the later notes use. After this note, a tangent vector is a column of numbers and a derivative is a matrix.
Smooth manifolds and smooth maps#
The theory of smooth manifolds is set out in [Lee13, Chapters 1 and 2]. This note recalls only what it uses, and proves none of it.
A smooth manifold of dimension is a topological manifold with a smooth structure: a maximal atlas of charts , each a homeomorphism from an open onto an open subset of , whose transition maps are smooth. Let be a second smooth manifold, and write and for the dimensions of and . A map is of class when it is continuous and, for every chart of and every chart of , its coordinate representation
is of class . Continuity makes open, so the representation is a map between open subsets of Euclidean spaces. Because the transition maps are smooth, it is enough to check this for the charts of any one atlas. These maps form , and a smooth map is one of class . A diffeomorphism is a smooth bijection whose inverse is smooth, and a map from an open subset of onto an open subset of is a chart of the smooth structure exactly when it is a diffeomorphism.
Tangent vectors and the tangent bundle#
Tangent vectors are set out in [Lee13, Chapter 3]. This note uses four facts from it.
- Each point has a tangent space , a real vector space of dimension . A smooth map has at each point a differential , a linear map, and the differentials obey the chain rule, .
- A chart around gives a basis of , its coordinate basis. In the coordinate bases of charts around and , the matrix of is the Jacobian of the coordinate representation at .
- A finite-dimensional vector space has each tangent space identified with itself, canonically. On this makes the differential of a map the Jacobian.
- The tangent bundle , the disjoint union of the tangent spaces, is a smooth manifold of dimension . Its charts are built from those of : a point read in a chart, paired with the components of a tangent vector in that chart’s coordinate basis. It contains the zero section, the zero vectors .
Tangent coordinates#
A computation does not handle derivations. It writes a tangent vector as a column of numbers, so every tangent space needs a basis. Fix, for each point , a linear isomorphism
whose columns are a basis of the tangent space at . The coordinate basis of a chart around is one choice, and every choice is the coordinate basis of some chart. On , and on any vector space, the convention is the canonical identification of fact 3.
No regularity in is asked of the convention, and it need not be defined everywhere. It may be given on an open subset of only, and everything below is then said of points of that subset, with every computation kept inside it. The unit sphere is an example: by the hairy ball theorem it has no continuous basis of its tangent planes, so a convention that is smooth must leave out a point, such as the south pole. On a Lie group, the left translations of one basis at the identity give a convention that is defined and smooth everywhere.
In these coordinates the differential of a smooth map is a matrix, the derivative
On it is the Jacobian. The chain rule of fact 1 becomes a product of matrices, since the bases at cancel.
For smooth and , .
A convention without regularity serves everything that happens at one point: the derivative, the chain rule and, below, the tangent chart at . It does not serve what compares the coordinates at nearby points, such as differentiating a function of that is read in the coordinates at . The convention is smooth near when, on an open , the map is smooth from to . Equivalently, its columns form a smooth local frame on [Lee13, Chapter 8]. Results that compare nearby points assume this, and Proposition 7 restates it in terms of the retraction.
Retractions#
A retraction is defined on the tangent bundle, without reference to any basis, as it is in optimization on manifolds [Absi08, Section 4.1].
A retraction on a smooth manifold is a smooth map such that, for every , its restriction to satisfies
- , and
- , where is identified with canonically.
The retraction at is the restriction of to . Its condition on the differential is coordinate-free, so it holds whatever the convention. Read in the coordinates (1), the retraction at is a map from , written as an addition:
The two conditions of the definition become, for every convention,
where carries its canonical convention. The derivative of a retraction at the origin is the identity, in the sense of (2).
Let be open. The convention is smooth on if and only if is smooth on .
If the convention is smooth on , then is the composite of the smooth map with . If instead is smooth on , then by (6) is the velocity at of the curve . That velocity is the differential of at applied to , and so depends smoothly on .
∎The definition is the one used in optimization on manifolds, where retractions replace the exponential map of a Riemannian manifold. The exponential map is a retraction, but so is any map that agrees with it to first order, which is usually cheaper. Nothing here needs a metric.
Two examples show the retraction and the convention apart.
- On , with the canonical convention, the retraction is , so . This is the addition that retractions replace on curved manifolds.
- On the positive reals , each is canonically, and is a retraction: it is defined for every , never leaves the positive reals, and has derivative at . With the convention , which measures a tangent vector as a relative change, .
Tangent charts#
By (6), the differential of at is , an isomorphism. The inverse function theorem for manifolds [Lee13, Chapter 4] makes a diffeomorphism from an open neighbourhood of onto an open neighbourhood of . Its inverse is a chart of centred at , the tangent chart at , and every point near has coordinates in it. We write
for in the neighbourhood where is invertible. In words, is where sits in the chart at . By construction,
for every in the chart’s domain, and for every in its image. On , and are addition and subtraction; on the positive reals above, .
The coordinate basis of the tangent chart at its centre is , again by (6). So the tangent chart reproduces the convention at , though at other points its coordinate basis need not be the convention’s.
Derivatives through the retraction#
Since , its inverse has too, and the chain rule turns the derivative (2) into an ordinary Jacobian. This is how every later note computes a derivative.
For smooth and , is the Jacobian at of , a map between neighbourhoods of in Euclidean spaces.
Near , is a composite of three smooth maps, and Proposition 3 gives its derivative at as . Its domain and codomain are open subsets of Euclidean spaces with their canonical conventions, so this derivative is the Jacobian.
∎The local representative of at is , and Proposition 10 says that is its Jacobian at . Applied to a direction, it is a derivative along a curve,
which is also how it is checked by finite differences. To derive one by hand:
- perturb the input, ;
- push it through, ;
- solve for ;
- the Jacobian–vector product is , and the vector–Jacobian product is its transpose.
The mirror identity#
On , as well: the step back from to is the reverse of the step forward. On a curved manifold it generally is not, because the left side is measured in the chart at the moved point , not at . So it also compares the coordinates at two points, and holds even to first order only when the convention is smooth.
If is smooth near , then for small enough, .
Write , the chart at read in the chart at . It is smooth near , because is smooth near , with and, since , . Hence . The coordinate is the one with , so , and gives the claim.
∎The identity holds exactly in some cases: on , on the positive reals above, and on any Lie group whose retraction is , since then . It fails at second order for other retractions, and a computation that needs “the point whose coordinate is ” must not assume it.
A manifold whose retraction is , so that both identities hold exactly and every chart is the same affine chart, is called flat in these notes.
Notation from here on#
The later notes never write , or . They write a tangent vector as a column of numbers attached to a point, and keep the name for the space of those columns, so that it stays visible which point a vector belongs to. Inside this note is the space of fact 1; after it, it is its coordinate space . Every such abuse of notation stands for an object of this note read through the convention (1), and this table lists them all.
| written later as | stands for | first used in |
|---|---|---|
| , the tangent space at | , read through | every later note |
| , a column of numbers | the tangent vector | every later note |
| a frame, a matrix of tangent vectors at | tangent vectors, each read through | automatic differentiation; gradients and Hessians |
| a cotangent , a column acting by | the covector on | gradients and Hessians |
| the differential , by (2) | this note, and every later one | |
| , applied to a cotangent | the pull-back of a covector by | gradients and Hessians |
| the gradient | the differential , not a Riemannian gradient | gradients and Hessians |
| , , , | and its local inverse | this note, and every later one |
| pairs with | the tangent bundle over the convention’s domain | this note |
| ” is smooth near ” | the convention is a smooth local frame near | this note; gradients and Hessians; densities in tangent charts |
| , stacked columns | the direct sum, with the convention that is each factor’s on its block | product manifolds |
| Lebesgue measure on , and densities with respect to it | Lebesgue measure on , carried to by | densities in tangent charts; the normal |
The last row is where the convention matters most. A density on a tangent space changes by the absolute determinant of a change of basis, so a density “on ” is always one in the coordinates the convention gives.
References
- [Absi08] P.-A. Absil, R. Mahony and R. Sepulchre. Optimization Algorithms on Matrix Manifolds. Princeton University Press, 2008.
- [Lee13] John M. Lee. Introduction to Smooth Manifolds. Second edition. Springer, 2013.
Built on by
- Spaces and quantities Every value in a model lives in a space, which fixes how it is stored, how it moves, and the typed handle code holds it by.
- Gradients and Hessians in tangent charts The gradient of a scalar function and its Hessian product, read in the tangent charts a retraction provides, and why the passes of automatic differentiation compute them unchanged.
- Product manifolds A product of manifolds is a manifold whose tangent space stacks its factors', and whose retraction acts factor by factor; derivatives in its charts are block matrices of the factors'.
- Quotients by a finite group A manifold divided by a finite group that acts freely is a manifold again, and a retraction that commutes with the group descends to it, so that a point of the quotient is computed with through any of the points over it.
- Rotations and unit quaternions The rotations of space are the unit quaternions taken up to sign, a cover with no continuous section; the exponential and its Jacobians turn rates into rotations; and of the two global charts, the stereographic chart tells the two quaternions of a rotation apart, while the Cayley chart cannot and so is a chart of the rotations themselves.
- Densities in tangent charts A retraction's chart at a point carries the manifold's reference measure to a density on the tangent space, the chart's volume; with it, a random tangent vector pushed through the chart has a density on the manifold, given here for the charts of the rotations, the poses and the sphere.
- Observed quaternions of arbitrary sign on outside data: Mathematics A unit quaternion names a rotation twice, and the stereographic chart of the unit quaternions tells the two names apart, so that a measurement given with the wrong sign is misread; the rotations, the rigid motions and the extended poses become the groups themselves, stored as quaternions up to sign under the Cayley chart, which cannot tell the signs apart, and the core learns to declare a type stored up to a finite group.
- Examples that run: Mathematics The model the examples share, a trajectory of poses on SE(3) with landmarks, odometry and sightings, generated from its own joint law and queried for the rest; a Levenberg–Marquardt method on its linearization, with its damping, schedule and stopping rule; the calibration of a Laplace approximation that data drawn from the model lets an example check; and a sliding window that retires a pose and the landmarks it alone sees at every tick.
- Linearization and elimination: Mathematics How a query of a model is linearized at a point into factors of whitened rows and linear terms over its free quantities' tangent coordinates, and how eliminating those factors gives the step of a Gauss–Newton or Levenberg–Marquardt method, a Laplace approximation's marginals, and a retirement's replacement, an improper Gaussian that is the update and prediction of a Kalman filter when it determines the blanket; and how the roots of the expected information give a second assembly, for Fisher scoring of free scales.
- Rotations and rigid motions: Mathematics The rotations as unit quaternions with the stereographic chart, global and full with a declared volume so that they carry the normal, the rigid motions SE(3) and SE₂(3) as their semidirect products with the left-translated chart, and the usual maps of all three, each a composite of the core's operations.
- Normal distributions: Mathematics skoro's one normal distribution, the law of a point moved by normal noise through its chart, defined on every space whose chart is global and whose volume is known, so that flat, positive and curved quantities alike, measurements among them, are drawn and scored exactly; with its scale, its sampler, its properties, its expected information, its roles, and its use as a likelihood factor.
- Reference measures and chart volumes of spaces: Mathematics Every continuous type of the core gets a reference measure and the log-volume of its retraction's chart, Lebesgue measure with log-volumes and on the core's own types, the measure the retraction normalizes on an embedded type that declares its chart's domain and log-volume, and sums over products; a type that declares none has no densities.
- The core: Mathematics The mathematics the core rests on, from quantities, their charts and their products, through operations and their derivatives of first and second order composed over programs, to queries, terms, importance weights, random keys and retirement.