Definition 6.1 (Row vectors): for a natural number n, an n-dimensional row
vector over ℝ is represented as a 1 × n matrix; vector addition,
scalar multiplication, the zero vector, and additive inverses are the inherited
pointwise operations.
Instances For
Lemma 6.1: ℝ^n is a vector space over ℝ; for all x y z : Fin n → ℝ and
c d : ℝ, vector addition is commutative and associative, 0 is an additive
identity, -x is an additive inverse, scalar multiplication is associative,
distributes over vector and scalar addition, and 1 acts as the identity
scalar.
An n-dimensional column vector over ℝ, represented as an n × 1 matrix.
Instances For
Definition 6.2 (Transpose): for n : ℕ and a row vector
x = (x₁, …, xₙ) : RowVector n, its transpose xᵀ is the n × 1 column vector
with the same coordinates. Equivalently, an n-dimensional column vector is a
vector of the form xᵀ for some row vector x.
Equations
Instances For
Every n-dimensional column vector is the transpose of a row vector.
Every row vector in ℝ^n is the sum of its coordinates times the standard
basis row vectors.
The transpose of a row vector is the corresponding linear combination of the transposed standard basis vectors.
Definition 6.4 (Linear transformation): a function T : ℝ^n → ℝ^m is linear
iff for all x y : ℝ^n and c : ℝ, (i) T (x + y) = T x + T y
and (ii) T (c • x) = c • T x.
Equations
Instances For
Definition 6.5 (Matrices): for positive natural numbers m, n, an m × n
matrix over a set S is a family A = (a i j) of elements of S indexed by
i : Fin m and j : Fin n. A 1 × n matrix is an n-dimensional row vector,
and an n × 1 matrix is an n-dimensional column vector.
Equations
- MatrixOver S m n = Matrix (Fin ↑m) (Fin ↑n) S
Instances For
Definition 6.6 (Matrix product): for m n p : ℕ, if A is an m × n
matrix and B is an n × p matrix (over ℝ), then matrixProduct A B is the
m × p matrix with entries (matrixProduct A B) i k = ∑ j : Fin n, A i j * B j k.
In particular, when p = 1, this gives matrix-column-vector multiplication
(A xᵀ) i = ∑ j : Fin n, A i j * xᵀ j 0.
Equations
- matrixProduct A B = A * B
Instances For
Helper for Lemma 6.2: convert IsLinearTransformation to a mathlib LinearMap.
Equations
- helperForLemma_6_2_linearMapFromIsLinearTransformation T hT = { toFun := T, map_add' := ⋯, map_smul' := ⋯ }
Instances For
Helper for Lemma 6.2: the matrix from LinearMap.toMatrix' represents T.
Lemma 6.2: if T : ℝ^n → ℝ^m is a linear transformation, then there exists a
unique matrix A : ℝ^{m × n} such that T x = A x for every x : ℝ^n.
Lemma 6.3: for matrices A and B over the same field, if L_M denotes
left-multiplication by M on compatible column vectors, then
L_A ∘ L_B = L_{AB} as linear maps 𝔽^p → 𝔽^m.
Helper for Proposition 6.1: for any dimension n and scalar a, the map
x ↦ a • x is linear.
Proposition 6.1: the map T₁ : ℝ^3 → ℝ^3 defined by T₁ x = 5x is a linear
transformation.
Proposition 6.2: let T₂ : ℝ² → ℝ² be the map that rotates each vector
about the origin by angle π/2 counterclockwise, i.e. T₂(x₁, x₂) = (-x₂, x₁).
Then T₂ is a linear transformation.
Proposition 6.3: define T₃ : ℝ³ → ℝ² by T₃(x, y, z) = (x, y).
Then T₃ is a linear transformation, i.e. for all u v : ℝ³ and c : ℝ,
T₃ (u + v) = T₃ u + T₃ v and T₃ (c • u) = c • T₃ u.
Helper for Proposition 6.4: the embedding map x ↦ (x₁, x₂, 0) is linear.
Proposition 6.4: define T₄ : ℝ² → ℝ³ by T₄(x, y) = (x, y, 0).
Then T₄ is a linear transformation, i.e. for all u v : ℝ² and c : ℝ,
T₄ (u + v) = T₄ u + T₄ v and T₄ (c • u) = c • T₄ u.
Helper for Proposition 6.5: for each n, the identity map on Fin n → ℝ
is linear.
Proposition 6.5: for each n : ℕ, the map I_n : ℝ^n → ℝ^n defined by
I_n x = x for all x is a linear transformation.
Proposition 6.6: if T : ℝ^n → ℝ^m and S : ℝ^p → ℝ^n are linear
transformations, then their composition TS, defined by (TS) x = T (S x) for
all x : ℝ^p, is also a linear transformation.
Helper for Proposition 6.7: the operator norm of T bounds ‖T x‖ by
‖LinearMap.toContinuousLinearMap T‖ * ‖x‖.
Helper for Proposition 6.7: replacing the operator norm by
‖LinearMap.toContinuousLinearMap T‖ + 1 preserves the bound.
Helper for Proposition 6.7: the constant
‖LinearMap.toContinuousLinearMap T‖ + 1 is strictly positive.
Helper for Proposition 6.7: every linear map between these finite-dimensional Euclidean spaces is continuous.
Proposition 6.7: if T : ℝ^n → ℝ^m is a linear transformation, then there
exists a constant M > 0 such that ‖T x‖ ≤ M * ‖x‖ for all x : ℝ^n.
Consequently, T is continuous on ℝ^n.