Physlib.Mathematics.PiTensorProduct
22 declarations
Linear maps on are determined by elementary tensors
#induction_tmulLet be a commutative ring and be an -module. Let and be families of -modules indexed by the sets and , respectively. Suppose and are -linear maps from the tensor product of two Pi tensor products, , to . If for all elements and , the maps satisfy then . Here, denotes the canonical image (elementary tensor) of the element in the Pi tensor product.
Linear maps on are determined by elementary tensors
#induction_assocLet be a commutative ring and be an -module. Let be index sets, and let be families of -modules indexed by these sets. Suppose and are -linear maps from the triple tensor product to . If for all , , and , the maps satisfy then .
Agreement on pure tensors implies on
#induction_assoc'Let be a ring and an -module. Let be families of -modules indexed by respectively. Let , , and be the corresponding Pi tensor products over . For any two -linear maps , if the maps agree on all pure tensors of the form for all , then . Here, denotes the canonical multilinear map from the Cartesian product of a family of modules into its Pi tensor product.
Elementary tensors determine linear maps on
#induction_tmul_modLet be a commutative ring, and be -modules, and be a family of -modules indexed by . Let be -linear maps. If for all families of elements and all , then . Here denotes the canonical image of the family in the Pi tensor product.
Elementary tensors determine linear maps on
#induction_mod_tmulLet be a commutative ring, an indexing set, and a family of -modules. Let and be -modules. Given two -linear maps , if for all and all families of elements , then .
Each type in the sum of families and is an additive commutative monoid.
#instAddCommMonoidElim_physlibLet and be indexing sets, and let and be families of types such that each and is an additive commutative monoid. For the disjoint union of the indexing sets , this definition provides an additive commutative monoid structure for each type in the combined family defined by the sum of and . Specifically, for any index , the corresponding type inherits the additive commutative monoid instance from if is in the left injection or from if is in the right injection.
Each type in the sum of families and is an -module
#instModuleElim_physlibLet be a commutative ring, and be indexing sets, and and be families of types such that each and is an -module. For the disjoint union , this definition provides an -module structure for each type in the combined family defined by the sum of and . Specifically, for any index , the corresponding type inherits the -module instance from if or from if .
Restriction of a function on to
#pureInlGiven two index sets and and families of types and , let be a dependent function defined on the disjoint union such that for any , , and for any , . This function returns the restriction of to the first index set , mapping each to .
Restriction of a sum-indexed function to the right component
#pureInrGiven two families of types and , and a function defined on the disjoint union such that for and for , the function `pureInr` returns the restriction of to the index set . Specifically, it is the map .
Restriction to Commutes with Updates on the Left Component
#pureInl_update_leftLet and be index sets and and be families of types. Let be a dependent function defined on the disjoint union such that for and for . Let denote the restriction of to the index set (mapping to ). For any and , updating at the index with the value and then restricting the result to is equal to updating the restricted function at index with .
Updating a function on the left component preserves its restriction to the right component
#pureInr_update_leftLet and be index sets, and let and be families of types. Let be a function defined on the disjoint union such that for and for . Let denote the restriction of to the index set , specifically defined as the map for all . For any index and any value , let be the function updated at the position with value . Then the restriction of to the index set is equal to the restriction of the original function to . In mathematical notation: .
Restriction to Commutes with Updates on the Right Component
#pureInr_update_rightLet and be index sets, and let and be families of types. Let be a dependent function defined on the disjoint union such that for and for . Let denote the restriction of to the index set , specifically defined as the map for all . For any index and any value , updating at the position with value and then restricting the result to is equal to updating the restricted function at index with the value . In mathematical notation: .
Updating a function on the right component preserves its restriction to the left component
#pureInl_update_rightLet and be index sets, and let and be families of types. Let be a dependent function defined on the disjoint union such that for and for . Let denote the restriction of to the index set , defined as the map for all . For any index and any value , let be the function updated at the position with value . Then the restriction of to the index set is equal to the restriction of the original function to . In mathematical notation: .
Multilinear map splitting a sum-indexed product into a tensor of Pi tensor products
#domCoprodLet be a commutative ring. Let and be index sets, and let and be families of -modules. This definition constructs an -multilinear map from the family of modules indexed by the disjoint union (where the module at is if and if ) to the tensor product of two Pi tensor products: \[ \text{MultilinearMap}_R \left( \text{Sum.elim } s_1 s_2, \left( \bigotimes_{i \in \iota_1} s_1(i) \right) \otimes_R \left( \bigotimes_{j \in \iota_2} s_2(j) \right) \right) \] For a given dependent function , the map is defined by: \[ f \mapsto \left( \bigotimes_{i \in \iota_1} f(\text{inl } i) \right) \otimes \left( \bigotimes_{j \in \iota_2} f(\text{inr } j) \right) \] where the right-hand side is the tensor product of the pure tensors formed from the restrictions of to and respectively.
Linear map expanding a Pi tensor product over a sum of index sets
#tmulSymmLet be a commutative ring. Let and be index sets, and let and be families of -modules. This definition constructs an -linear map from the Pi tensor product indexed by the disjoint union to the tensor product of two Pi tensor products: \[ \left( \bigotimes_{k \in \iota_1 \oplus \iota_2} (\text{Sum.elim } s_1 s_2)_k \right) \to \left( \bigotimes_{i \in \iota_1} s_1(i) \right) \otimes_R \left( \bigotimes_{j \in \iota_2} s_2(j) \right) \] where is the family of modules where the module at index is if and if . For any pure tensor , the map is defined by: \[ \bigotimes_{k \in \iota_1 \oplus \iota_2} f(k) \mapsto \left( \bigotimes_{i \in \iota_1} f(\text{inl } i) \right) \otimes \left( \bigotimes_{j \in \iota_2} f(\text{inr } j) \right) \] In other words, it expands a Pi tensor product whose index set is a disjoint union into a tensor product of two Pi tensor products.
Combination of functions and on the disjoint union
#elimPureTensorGiven two index sets and , two families of types and , and two functions and , this definition constructs a function on the disjoint union such that for and for . This function is used to represent the underlying map of a pure tensor in the product .
`elimPureTensor` commutes with function updates on the second argument
#elimPureTensor_update_rightLet and be index sets, and let and be families of types. Suppose and are functions. Let be the function on the disjoint union that restricts to on and on . For any and , updating the function at index with value before combining it with is equivalent to updating the combined function at the corresponding index with the value . That is, where denotes the update of function at index with value .
`elimPureTensor` commutes with `Function.update` on the left argument
#elimPureTensor_update_leftLet and be index sets, and let and be families of types. For any functions and , let denote the combined function on the disjoint union such that its restriction to is and its restriction to is . For any index and value , the following identity holds: where denotes the function with the value at index replaced by , and is the canonical injection.
Multilinear map for Pi tensor products over
#elimPureTensorMulLinLet be a commutative ring. Given two families of -modules and , this definition constructs an -multilinear map from the product to the space of -multilinear maps from to the Pi tensor product , where is the combined family of modules defined on the disjoint union of the index sets . Specifically, for any and , the map sends to a multilinear map that, when applied to , results in the pure tensor within the product space .
Linear map
#tmulLet be a commutative ring and be indexing sets. Given two families of -modules and , let be the combined family defined by the sum of and (where and ). This definition is the -linear map which collapses the binary tensor product of two Pi tensor products into a single Pi tensor product indexed by the disjoint union of the original index sets. On pure tensors, this map sends to the pure tensor , where is the concatenation of the families of elements and .
Linear equivalence
#tmulEquivLet be a commutative ring and be indexing sets. Given two families of -modules and , let be the combined family defined by the sum of and (specifically, and ). This definition provides the -linear equivalence \[ \left( \bigotimes_{i \in \iota_1} s_1(i) \right) \otimes_R \left( \bigotimes_{j \in \iota_2} s_2(j) \right) \cong \bigotimes_{k \in \iota_1 \oplus \iota_2} s(k) \] formed by combining a binary tensor product of two Pi tensor products into a single Pi tensor product indexed by the disjoint union of the original index sets. On pure tensors, this equivalence maps to the pure tensor , where is the concatenation of the families and .
`tmulEquiv` maps the tensor product of pure tensors to a single pure tensor over
#tmulEquiv_tmul_tprodLet be a commutative ring and let be indexing sets. Suppose and are families of -modules. For any functions and , the linear equivalence maps the tensor product of the pure tensors, , to the pure tensor , where is the combination of and on the disjoint union (i.e., for and for ).
