Rockafellar, §1: Affine Sets #
Affine sets in ℝⁿ: the unique subspace each is parallel to, dimension, hyperplanes and the
linear systems whose solution sets affine sets are, and affine transformations. All 8 numbered
results of §1 are formalized. The content is linear algebra, so §1 specialises almost nothing from
the backbone and is closed by Mathlib's affine-space and inner-product API.
Main definitions #
IsAffineSet M—(1-λ)x + λy ∈ Mfor allx, y ∈ Mand allλ ∈ ℝ. Bridged to Mathlib byisAffineSet_iff_coe_affineSpanandIsAffineSet.toAffineSubspace, and toSubmodulebyIsAffineSet.toSubmodulewhenMcontains the origin.dim S— the dimension of the subspace parallel toaff S. It isℤ-valued because Rockafellar's convention isdim ∅ = -1;dim_eq_finrank_directionidentifies it with thefinrankof the direction otherwise. Later sections use this definition.IsHyperplane— an affine set of dimensionn - 1.IsAffineMap— the book's affine transformation.
The converse half of theorem_1_3 carries 0 < n, which the book does not: in ℝ⁰ the empty set
has dimension -1 = n - 1 and so is a hyperplane, yet there is no non-zero b ∈ ℝ⁰ to represent
it with. For n ≥ 1 the hypothesis is vacuous, and corollary_1_4_1 needs none. Theorem 1.4's
B is a linear map ℝⁿ →ₗ[ℝ] ℝᵐ rather than an m × n matrix; the row decomposition the book
writes is what corollary_1_4_1 makes explicit, through a basis of L⊥.
References #
- R. T. Rockafellar, Convex Analysis, Princeton University Press, 1970, §1.
Affine sets #
Rockafellar's affine set: M ⊆ ℝⁿ such that (1 - λ)x + λy ∈ M whenever x ∈ M,
y ∈ M and λ ∈ ℝ.
Equations
- Rockafellar.IsAffineSet M = ∀ ⦃x : TdafSurface.Rn n⦄, x ∈ M → ∀ ⦃y : TdafSurface.Rn n⦄, y ∈ M → ∀ (l : ℝ), (1 - l) • x + l • y ∈ M
Instances For
The underlying set of an AffineSubspace is an affine set.
Membership in a translate, unfolded.
A translate of an affine set is affine.
Rockafellar's proof of Theorem 1.1: an affine set containing the origin is a subspace. This
packages it as a Submodule.
Equations
- h.toSubmodule h0 = { carrier := M, add_mem' := ⋯, zero_mem' := h0, smul_mem' := ⋯ }
Instances For
The carrier of IsAffineSet.toSubmodule is the set it came from.
Theorem 1.1. The subspaces of ℝⁿ are the affine sets which contain the
origin.
An affine set is the underlying set of an AffineSubspace.
Equations
- h.toAffineSubspace = { carrier := M, smul_vsub_vadd_mem' := ⋯ }
Instances For
The carrier of IsAffineSet.toAffineSubspace is the set it came from.
The bridge to Mathlib. A subset of ℝⁿ is affine in Rockafellar's sense exactly when it
is its own affine hull.
Translates of subspaces, and Theorem 1.2 #
A translate of a subspace is the affine subspace through a in that direction.
A translate of a subspace is an affine set.
The direction of a translate of a subspace is that subspace.
A non-empty affine set is the translate of its direction by any one of its points. This is
the existence half of Theorem 1.2, phrased through Mathlib's vectorSpan.
Theorem 1.2. Each non-empty affine set M is parallel to a unique subspace L, that is,
M = L + a for some a. The witness is vectorSpan ℝ M; theorem_1_2_sub identifies it with
M - M.
Theorem 1.2, second sentence: a subspace parallel to M is M - M.
Dimension #
Rockafellar's dimension of a subset of ℝⁿ: the dimension of the subspace parallel to
its affine hull, with the convention dim ∅ = -1. It is therefore ℤ-valued.
For an affine set this is the dimension of the parallel subspace of Theorem 1.2, and for a convex
set it is the dimension of aff C (§2).
Equations
- Rockafellar.dim S = ↑(Module.finrank ℝ ↥(vectorSpan ℝ S)) - if S = ∅ then 1 else 0
Instances For
On a non-empty set dim is the finrank of the direction.
On a non-empty set dim is the finrank of the direction of the affine hull.
The direction of a subspace, as a set, is the subspace itself — Theorem 1.1 in the form
dim needs it.
The dimension of a subspace is its finrank.
The dimension of a translate of a subspace is the finrank of that subspace.
dim is monotone.
Theorem 1.1 in the form §2's Theorem 2.7 needs it: for a set containing the origin, the direction of the affine hull is the linear span.
Theorem 1.1: for a set containing the origin, the affine hull is the linear span.
Hyperplanes: Theorem 1.3 #
Rockafellar's hyperplane: an (n-1)-dimensional affine set in ℝⁿ.
Equations
- Rockafellar.IsHyperplane H = (Rockafellar.IsAffineSet H ∧ Rockafellar.dim H = ↑n - 1)
Instances For
x - a ⊥ b says exactly that x and a have the same pairing against b.
The orthogonal complement of a line has dimension n - 1.
Theorem 1.3, first sentence. Given β ∈ ℝ and a non-zero b ∈ ℝⁿ, the set
H = {x | ⟨x, b⟩ = β} is a hyperplane in ℝⁿ.
Theorem 1.3, second sentence: every hyperplane is of that form.
The hypothesis 0 < n is not in the book, and is genuinely needed: in ℝ⁰ the empty set has
dimension -1 = n - 1, so it is a hyperplane in Rockafellar's sense, yet there is no non-zero
b ∈ ℝ⁰. For n ≥ 1 a hyperplane is automatically non-empty.
Theorem 1.3, third sentence: b and β are unique up to a common non-zero
multiple.
Linear systems: Theorem 1.4 and Corollary 1.4.1 #
Theorem 1.4, first sentence. Given b ∈ ℝᵐ and a linear B : ℝⁿ → ℝᵐ, the solution set
{x | Bx = b} is an affine set in ℝⁿ. The book writes B as an m × n matrix; a linear map is
the same data.
Theorem 1.4, second sentence: every affine set is such a solution set. The
empty set and ℝⁿ are covered, by degenerate choices of B.
u ⊥ (x - a) says exactly that x and a have the same pairing against u.
Orthogonality to a spanning set is orthogonality to the span.
Corollary 1.4.1. Every affine subset of ℝⁿ is an intersection of a finite
collection of hyperplanes.
ℝⁿ itself is the intersection of the empty collection; ∅ is the intersection of two parallel
hyperplanes when n ≥ 1, and is itself the unique hyperplane of ℝ⁰.
Affine transformations: Theorems 1.5 and 1.6 #
Rockafellar's affine transformation: a map T : ℝⁿ → ℝᵐ with
T((1-λ)x + λy) = (1-λ)Tx + λTy for all x, y and λ ∈ ℝ.
Equations
Instances For
Theorem 1.5. The affine transformations from ℝⁿ to ℝᵐ are the mappings
T of the form Tx = Ax + a with A linear and a ∈ ℝᵐ.
x ↦ A(x - c) + d is an affine transformation.
x ↦ A(x - c) + d is a bijection when A is.
Two linearly independent families with the same index set are carried onto each other by a
linear automorphism of ℝⁿ.
Theorem 1.6. Two affinely independent sets of m + 1 points of ℝⁿ are
carried onto each other, in order, by a one-to-one affine transformation of ℝⁿ onto itself.
Theorem 1.6, last sentence: when the affinely independent set has n + 1
points, the transformation is unique.
The image of a translate under x ↦ A(x - c) + d.
Corollary 1.6.1. Any two affine sets of ℝⁿ of the same dimension are
carried onto each other by a one-to-one affine transformation of ℝⁿ onto itself.
The orthogonal complement of a graph #
Rockafellar, §1, unnumbered. The graph of a linear transformation
A : ℝⁿ → ℝᵐ is a subspace L of ℝⁿ⁺ᵐ, and its orthogonal complement L⊥ is the graph of
-A*.
The book works in ℝⁿ⁺ᵐ; here the ambient space is the product ℝⁿ × ℝᵐ with the product pairing
pairingProd, which is the same bilinear form under the obvious identification. This identity is
not numbered in the book, but §22 depends on it.