File: formation-doc.m2

package info (click to toggle)
macaulay2 1.25.05%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 172,152 kB
  • sloc: cpp: 107,824; ansic: 16,193; javascript: 4,189; makefile: 3,899; lisp: 702; yacc: 604; sh: 476; xml: 177; perl: 114; lex: 65; python: 33
file content (46 lines) | stat: -rw-r--r-- 1,233 bytes parent folder | download | duplicates (2)
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,
    }
}