A three-point affine combination as a line map of two line maps.
Helper lemma: an affine set is the carrier of some affine subspace.
Submodules are affine sets.
Text 1.2.1: If M ⊆ Real^n is affine and a ∈ Real^n, then the translate a + M
is an affine set.
Text 1.3: An affine set M is parallel to an affine set L if M = L + a for some a.
Equations
- IsParallelAffineSet n M L = ∃ (a : Fin n → ℝ), M = SetTranslate n L a
Instances For
Parallel submodules to the same affine set are equal.
Theorem 1.2: Each non-empty affine set M is parallel to a unique subspace L;
this L is given by L = M - M = {x - y | x ∈ M, y ∈ M}.
Text 1.4: The dimension of a non-empty affine set is defined as the dimension of the
subspace parallel to it. (The dimension of ∅ is -1 by convention.)
Equations
- affineSetDim n M hM = if hne : M.Nonempty then have L := Classical.choose ⋯; Int.ofNat (Module.finrank ℝ ↥L) else -1
Instances For
Text 1.5: An (n - 1)-dimensional affine set in Real^n is called a hyperplane.
Equations
- IsHyperplane n M = ∃ (hM : IsAffineSet n M), affineSetDim n M hM = Int.ofNat (n - 1)
Instances For
Text 1.6: Given a subspace L of Real^n, the orthogonal complement L^⊥ is the set
of vectors x such that x ⟂ y for every y ∈ L.
Equations
Instances For
The kernel of dotProductLinear is the zero dot-product set.
A nonzero vector gives a nonzero dot-product functional.
Any nonzero linear functional on Fin n → ℝ is a dot-product functional.
The kernel of a nonzero dot-product functional has dimension n - 1.
Nonzero linear functionals with the same kernel are scalar multiples.
Theorem 1.3: Given β : Real and non-zero b : Real^n, the set
{x | ⟪x, b⟫ = β} is a hyperplane in Real^n. Moreover, every hyperplane admits such
a representation, with b and β unique up to a common non-zero multiple.
Text 1.8: For any S ⊆ R^n there is a unique smallest affine set containing S,
namely the intersection of all affine sets containing S. This set is called the affine
hull of S and is denoted aff S.
Equations
- affineHull n S = ↑(affineSpan ℝ S)
Instances For
The affine hull is contained in any affine set that contains S.
The affine hull of a set is itself affine.
Reindex a finset affine combination into a Fin m-indexed one.