PhyslibSearch

QuantumInfo.ForMathlib.LinearEquiv

10 declarations

definition

Linear equivalence (d2R)R(dR)(d_2 \to R) \simeq_R (d \to R) induced by e:dd2e: d \simeq d_2

#of_relabel

Given an equivalence (bijection) e:dd2e: d \simeq d_2 between two index sets, this definition provides a linear equivalence between the function spaces Rd2R^{d_2} and RdR^d over a ring RR. The map sends a function fRd2f \in R^{d_2} to the function feRdf \circ e \in R^d, effectively relabeling the coordinates of the vector space.

definition

Linear equivalence of Euclidean spaces induced by coordinate relabeling e ⁣:δδ2e \colon \delta \simeq \delta_2

#euclidean_of_relabel

Given an equivalence (or bijection) e ⁣:δδ2e \colon \delta \simeq \delta_2 between two indexing sets, there exists a linear equivalence between the Euclidean spaces Eδ2\mathbb{E}^{\delta_2} and Eδ\mathbb{E}^{\delta} over a scalar field k\mathbb{k}. This map is constructed by relabeling the coordinates of a vector in the function space (δ2k)(\delta_2 \to \mathbb{k}) according to ee and is compatible with the L2L^2 norm structure of the Euclidean spaces.

theorem

Relabeling by Identity is the Identity Linear Equivalence

#of_relabel_refl

For a ring RR and an index set dd, the linear equivalence (dR)R(dR)(d \to R) \simeq_R (d \to R) induced by the identity equivalence id ⁣:dd\text{id} \colon d \simeq d (the relabeling of coordinates by the identity map) is equal to the identity linear equivalence idR\text{id}_R on the function space RdR^d.

theorem

`euclidean_of_relabel` of the identity permutation is the identity linear equivalence

#euclidean_of_relabel_refl

The linear equivalence between Euclidean spaces Ed\mathbb{E}^d and Ed\mathbb{E}^d induced by the identity (reflexive) relabeling e=reflde = \text{refl}_d of the indexing set dd is equal to the identity linear equivalence on EuclideanSpace kd\text{EuclideanSpace } \mathbb{k}^d.

theorem

The linear map of a reindexed matrix MM equals ϕe1M.toLin’ϕf\phi_{e^{-1}} \circ M.\text{toLin'} \circ \phi_f

#reindex_toLin'

Let RR be a ring and d1,d2,d3,dd_1, d_2, d_3, d be index sets. Given two bijections e:d1d3e: d_1 \simeq d_3 and f:d2df: d_2 \simeq d, and a matrix MMatrix(d1,d2,R)M \in \text{Matrix}(d_1, d_2, R), let M.reindex(e,f)M.\text{reindex}(e, f) be the matrix reindexed by ee on rows and ff on columns. Then the linear map associated with the reindexed matrix is given by the composition (M.reindex(e,f)).toLin’=ϕe1M.toLin’ϕf(M.\text{reindex}(e, f)).\text{toLin'} = \phi_{e^{-1}} \circ M.\text{toLin'} \circ \phi_f, where ϕσ\phi_\sigma denotes the linear equivalence LinearEquiv.of_relabel\text{LinearEquiv.of\_relabel} induced by an index bijection σ\sigma.

theorem

Matrix.reindex_toEuclideanLin

#reindex_toEuclideanLin

(e : d₁ ≃ d₃) (f : d₂ ≃ d) (M : Matrix d₁ d₂ 𝕜) : (M.reindex e f).toEuclideanLin = (LinearEquiv.euclidean_of_relabel 𝕜 e.symm) ∘ₗ M.toEuclideanLin ∘ₗ (LinearEquiv.euclidean_of_relabel 𝕜 f)

theorem

The linear map of a right-reindexed matrix equals the original linear map composed with the relabeling equivalence.

#reindex_right_toLin'

Let RR be a ring and d,d2,d3d, d_2, d_3 be types. Given an equivalence (bijection) e:dd2e : d \simeq d_2 and a matrix MM with row indices d3d_3 and column indices dd, let M.reindex(id,e)M.reindex(\text{id}, e) be the matrix where the columns are reindexed according to ee. Then, the linear map associated with this reindexed matrix, (M.reindex(id,e)).toLin’(M.\text{reindex}(\text{id}, e)).\text{toLin'}, is equal to the composition of the linear map associated with MM, M.toLin’M.\text{toLin'}, and the linear equivalence induced by relabeling indices, LinearEquiv.of_relabel(R,e)\text{LinearEquiv.of\_relabel}(R, e).

theorem

Right reindexing of a matrix corresponds to post-composition with a relabeling linear equivalence in Euclidean spaces

#reindex_right_toEuclideanLin

Let k\mathbb{k} be a field and MM be a matrix with row index set d3d_3 and column index set dd with entries in k\mathbb{k}. Given an equivalence (relabeling) of indices e:dd2e : d \simeq d_2, the linear map between Euclidean spaces associated with the matrix MM reindexed on the right by ee is equal to the composition of the linear map associated with MM and the linear equivalence induced by ee. That is, (M.reindex(refl,e)).toEuclideanLin=M.toEuclideanLinLe(M.\text{reindex}(\text{refl}, e)).\text{toEuclideanLin} = M.\text{toEuclideanLin} \circ L_e, where LeL_e is the canonical linear equivalence between EuclideanSpace k d2\text{EuclideanSpace } \mathbb{k} \text{ } d_2 and EuclideanSpace k d\text{EuclideanSpace } \mathbb{k} \text{ } d.

theorem

Left Reindexing of a Matrix Corresponds to Pre-composition with the Inverse Relabeling Linear Equivalence

#reindex_left_toLin'

Let RR be a ring, and let d1,d2,d3d_1, d_2, d_3 be types used as indices. For any equivalence (bijection) e:d1d3e : d_1 \simeq d_3 and any matrix MM with row indices in d1d_1 and column indices in d2d_2 with entries in RR, the linear map associated with the matrix MM reindexed on the left by ee is equal to the composition of the linear map associated with MM and the linear equivalence induced by the inverse of ee. Specifically, toLin(M.reindex(e,id))=of_relabel(e1)toLin(M)\text{toLin}'(M.\text{reindex}(e, \text{id})) = \text{of\_relabel}(e^{-1}) \circ \text{toLin}'(M), where toLin\text{toLin}' denotes the matrix-to-linear-map transformation and of_relabel\text{of\_relabel} is the linear equivalence Rd3RRd1R^{d_3} \simeq_R R^{d_1} mapping ff to fef \circ e.

theorem

Left reindexing of a matrix corresponds to pre-composition with an inverse relabeling linear equivalence in Euclidean spaces

#reindex_left_toEuclideanLin

Let k\mathbb{k} be a field and MM be a matrix with row indices in d1d_1 and column indices in d2d_2 with entries in k\mathbb{k}. Given an equivalence (relabeling) of indices e:d1d3e : d_1 \simeq d_3, the linear map between Euclidean spaces associated with the matrix MM reindexed on the left by ee is equal to the composition of the linear equivalence induced by the inverse of ee and the linear map associated with MM. Mathematically, (M.reindex(e,id)).toEuclideanLin=Le1M.toEuclideanLin(M.\text{reindex}(e, \text{id})).\text{toEuclideanLin} = L_{e^{-1}} \circ M.\text{toEuclideanLin}, where Le1L_{e^{-1}} is the canonical linear equivalence between EuclideanSpace k d3\text{EuclideanSpace } \mathbb{k} \text{ } d_3 and EuclideanSpace k d1\text{EuclideanSpace } \mathbb{k} \text{ } d_1 induced by the inverse relabeling e1e^{-1}.