1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
document {
Key => {
formation,
(formation, Module),
},
Headline => "recover the methods used to make a module",
Usage => "formation M",
Inputs => { "M" => Module => "a module" },
Outputs => { Expression => { ofClass Expression, " whose value is the module itself" }},
PARA {
"If the module was created as a direct sum, tensor product, of Hom-module, then the expression will reflect that.
In each case, the result is a function application, and the sequence of arguments is easily obtained."
},
EXAMPLE lines ///
M = ZZ^2 ++ ZZ^3
t = formation M
peek t
t#1
value t
M = directSum(ZZ^2, ZZ^3, ZZ^4)
t = formation M
t#1
M = ZZ^2 ** ZZ^3
t = formation M
t#1
///,
PARA { "If the module was not obtained that way, then ", TO "null", " is returned." },
EXAMPLE lines ///
formation ZZ^6
///,
PARA { "The same remarks apply to certain other types of objects, such as chain complexes." },
EXAMPLE lines ///
R = QQ[x,y];
C = res coker vars R;
D = C ++ C
formation D
///,
SeeAlso => {
directSum,
(symbol ++, Module, Module),
(symbol **, Module, Module),
(Hom, Module, Module),
FunctionApplication,
Expression,
}
}
|