-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodule.tex
More file actions
1719 lines (1551 loc) · 95.2 KB
/
module.tex
File metadata and controls
1719 lines (1551 loc) · 95.2 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
\chapter{Module}
\section{Basic Concepts}
\begin{definition}{Module}{}
Let $R$ be a ring. An left \textbf{$R$-module} is an abelian group $M$ with a binary operation $R\times M\to M$ such that
\begin{enumerate}[(i)]
\item $r(m+n)=rm+rn$ for all $r\in R$ and $m, n\in M$.
\item $(r+s)m=rm+sm$ for all $r, s\in R$ and $m\in M$.
\item $(rs)m=r(sm)$ for all $r, s\in R$ and $m\in M$.
\item $1m=m$ for all $m\in M$.
\end{enumerate}
If $R$ is a commutative ring, then $M$ is called a \textbf{commutative $R$-module}.
\end{definition}
\begin{definition}{Homomorphism of $R$-modules}{}
Let $R$ be a ring and $M, N$ be $R$-modules. A map $f:M\to N$ is called an \textbf{$R$-module homomorphism} if
\begin{enumerate}[(i)]
\item $f(m+n)=f(m)+f(n)$ for all $m, n\in M$.
\item $f(rm)=rf(m)$ for all $r\in R$ and $m\in M$.
\end{enumerate}
If $f$ is bijective, then $f$ is called an \textbf{$R$-module isomorphism}. If $M=N$, then $f$ is called an \textbf{$R$-module endomorphism}. If $f$ is bijective, then $f$ is called an \textbf{$R$-module automorphism}. Another name for a homomorphism of $R$-modules is an \textbf{$R$-linear map}.
\end{definition}
\begin{proposition}{Ring Action on an Abelian Group}{}
From the perspective of representation theory, a module is a ring action on an abelian group. To be more precise, a ring $R$ can be regarded as an $\mathsf{Ab}$-enriched category with only one object, called the delooping of $R$, denoted $\mathsf{B}R$. $\mathsf{Ab}$ itself is an $\mathsf{Ab}$-enriched category. Thus a left $R$-module $M$ is a functor between $\mathsf{Ab}$-enriched categories $\mathcal{M}:\mathsf{B}R\to \mathsf{Ab}$.
\[
\begin{tikzcd}[ampersand replacement=\&]
\mathsf{B}R\&[-25pt]\&[+10pt]\&[-30pt] \mathsf{Ab}\&[-30pt]\&[-30pt] \\ [-15pt]
* \arrow[dd, "r\in R"{name=L, left}]
\&[-25pt] \& [+10pt]
\& [-30pt] M\arrow[dd, "r\cdot\left(-\right)\in \mathrm{End}_{\mathsf{Ab}}(M)"{name=R}] \&[-30pt]\\ [-10pt]
\& \phantom{.}\arrow[r, "\mathcal{M}", squigarrow]\&\phantom{.} \& \\[-10pt]
* \& \& \& M\&
\end{tikzcd}
\]
As a map between objects, $\mathcal{M}$ assigns an abelian group for $\{*\}$. As a map between morphisms, $\mathcal{M}$ specifies a ring homomorphism $\sigma_M:R\to \mathrm{End}_{\mathsf{Ab}}(M)$. Define the ring representation category to be the category of all $\mathsf{Ab}$-enriched functors between $\mathsf{Ab}$-enriched categories $\mathsf{B}R$ and $\mathsf{Ab}$, denoted by
\[
\mathrm{Rep}_{\mathsf{Ab}}(R):=[\mathsf{B}R, \mathsf{Ab}]_{\mathsf{Ab}\text{-}\mathsf{Cat}}.
\]
Then we have category isomorphism
\[
\mathrm{Rep}_{\mathsf{Ab}}(R)\cong R\text{-}\mathsf{Mod}.
\]
\end{proposition}
\begin{proposition}{Ring Homomorphism $f:R\to S$ Induces Functor $f_*:S\text{-}\mathsf{Mod}\to R\text{-}\mathsf{Mod}$}{ring_homomorphism_induces_functor}
Let $R$ and $S$ be rings with a ring homomorphism $f: R\to S$. Then every $S$-module $M$ is an $R$-module by defining the scalar multiplication as
\begin{align*}
R\times M&\longrightarrow M\\
(r, m)&\longmapsto f(r)m
\end{align*}
or equivalently through $R\to S\to \mathrm{End}_{\mathsf{Ab}}(M)$. This defines a functor $f_*: S\text{-}\mathsf{Mod}\to R\text{-}\mathsf{Mod}$, which is identify map on objects and morphisms.
\[
\begin{tikzcd}[ampersand replacement=\&]
S\text{-}\mathsf{Mod}\&[-25pt]\&[+10pt]\&[-30pt] R\text{-}\mathsf{Mod}\&[-30pt]\&[-30pt] \\ [-15pt]
M \arrow[dd, "g"{name=L, left}]
\&[-25pt] \& [+10pt]
\& [-30pt] f_*M\arrow[dd, "g"{name=R}] \&[-30pt]\\ [-10pt]
\& \phantom{.}\arrow[r, "f_*", squigarrow]\&\phantom{.} \& \\[-10pt]
N \& \& \& f_*N\&
\end{tikzcd}
\]
The functor $f_*: S\text{-}\mathsf{Mod}\to R\text{-}\mathsf{Mod}$ can also be denoted as $\mathrm{Res}_{R\to S}: S\text{-}\mathsf{Mod}\to R\text{-}\mathsf{Mod}$. We have the following adjunction
\[
\begin{tikzcd}[ampersand replacement=\&]
R\text{-}\mathsf{Mod} \arrow[r, "f^*=S\otimes_R-"{name=U}, bend left, start anchor=east, yshift=1.7ex, end anchor=west] \&[+22pt]
S\text{-}\mathsf{Mod} \arrow[l, "{f_*=\mathrm{Res}_{R\to S}}"{name=D, anchor=north}, bend left, start anchor=west, yshift=-1.5ex, end anchor=east]
\arrow[phantom, from=U, to=D, "\dashv"{rotate=-90}]
\end{tikzcd}
\]
Also we have the following adjunction
\[
\begin{tikzcd}[ampersand replacement=\&]
R\text{-}\mathsf{Mod} \arrow[r, "f^*=S\otimes_R-"{name=U}, bend left=42, start anchor=east, yshift=1.7ex, end anchor=west]\arrow[r, "{f^{!}=\mathrm{Hom}_{R\text{-}\mathsf{Mod}}\left(S,M\right)}"'{name=D}, bend right=42, start anchor=east, yshift=-1.7ex, end anchor=west] \&[+62pt]
S\text{-}\mathsf{Mod} \arrow[l, "{f_*=\mathrm{Res}_{R\to S}}"{name=M, anchor=north}]
\arrow[phantom, from=U, to=M, "\dashv"{rotate=-90}]
\arrow[phantom, from=M, to=D, "\dashv"{rotate=-90}]
\end{tikzcd}
\]
Since $f_*$ has both left and right adjoint, it is an exact functor.
\end{proposition}
\begin{remark}
The notation $f_*$ comes from the case when $R$ and $S$ are commutative rings. $f$ induces a morphism of affine schemes $\mathrm{Spec}(S)\to \mathrm{Spec}(R)$. Let $\widetilde{M}$ be the associated quasi-coherent sheaf on $\mathrm{Spec}(S)$. Then the global section of $\widetilde{M}$ is the $S$-module $M$
\[
\Gamma\left(\mathrm{Spec}(S), \widetilde{M}\right)=M
\]
Consider the direct image sheaf $f_*\widetilde{M}$ on $\mathrm{Spec}(R)$. The global section of $f_*\widetilde{M}$ is the $R$-module $f_*M$
\[
\Gamma\left(\mathrm{Spec}(R), f_*\widetilde{M}\right)=f_*M
\]
\end{remark}
\noindent In particular, ring homomorphism $R\to S$ makes $S$ an $R$-module.
\begin{definition}{Noetherian Module}{}
Let $R$ be a commutative ring, and let $M$ be an $R$-module. We say $M$ is \textbf{Noetherian} if one of the following equivalent conditions holds:
\begin{enumerate}[(i)]
\item Every submodule of $M$ is finitely generated.
\item Every ascending chain of submodules of $M$ stabilizes; that is, if
$$
N_1 \subseteq N_2 \subseteq N_3 \subseteq \cdots
$$
is a chain of submodules of $M$, then $\exists i$ such that $N_i=N_{i+1}=N_{i+2}=\ldots$.
\item Every nonempty family of submodules of $M$ has a maximal element w.r.t. inclusion.
\end{enumerate}
\end{definition}
\begin{definition}{Annihilator}{}
Let $R$ be a ring, and let $M$ be a left $R$-module. Suppose $S$ is a non-empty subset of $M$. The \textbf{annihilator} of $S$, denoted $\operatorname{Ann}_R(S)$, is a left ideal of $R$ defined by
$$
\operatorname{Ann}_R(S)=\{r \in R \mid r s=0 \text { for all } s \in S\}.
$$
If $S=\{ x \}$, then we write $\operatorname{Ann}_R(x)$ instead of $\operatorname{Ann}_R(\{ x \})$. We have
$$
\operatorname{Ann}_R(S)=\bigcap_{s \in S} \operatorname{Ann}_R(s).
$$
\end{definition}
\begin{proposition}{Annihilator and Induced Module Structures}{annihilator_and_induced_module_structures}
If $N$ is a submodule of $M$, then
\[
\operatorname{Ann}_R(N)=\{r \in R \mid r s=0 \text { for all } s \in N\}=\ker \left(R\longrightarrow\mathrm{End}_{\mathsf{Ab}}\left(N\right)\right)
\]
is a two-sided ideal of $R$. Through $R/\operatorname{Ann}_R(N)\to \mathrm{End}_{\mathsf{Ab}}\left(N\right)$, we can regard $N$ as an $R/\operatorname{Ann}_R(N)$-module. In general, if $I$ is a two-sided ideal of $R$ such that $I\subseteq \operatorname{Ann}_R(N)$, we can regard $N$ as an $R/I$-module.
\end{proposition}
\begin{prf}
By the universal property of quotient module, we have the following commutative diagram
\[
\begin{tikzcd}
R \arrow[r] \arrow[d, "\pi"'] & \mathrm{End}_{\mathsf{Ab}}\left(N\right) \\
R/I \arrow[ru, dashed] &
\end{tikzcd}
\]
\end{prf}
\begin{definition}{Faithful Module}{}
Let $R$ be a ring, and let $M$ be a left $R$-module. We say $M$ is \textbf{faithful} if $\operatorname{Ann}_R(M)=0$, or equivalently, the map $R\to \mathrm{End}_{\mathsf{Ab}}(M)$ is injective.
\end{definition}
\begin{proposition}{Properties of Annihilator}{}
Let $R$ be a ring, and let $M$ be a left $R$-module.
\begin{enumerate}[(i)]
\item If $x\in M$, then $\operatorname{Ann}_R(x)=R$ if and only if $x=0$.
\item If $S$ is a non-empty subset of $M$ and $N$ is the submodule generated by $S$, then $\operatorname{Ann}_R(N)\subseteq \operatorname{Ann}_R(S)$. If $R$ is commutative, then $\operatorname{Ann}_R(N)= \operatorname{Ann}_R(S)$.
\item $M$ as an $R/\operatorname{Ann}_R(M)$-module is faithful.
\end{enumerate}
\end{proposition}
\begin{definition}{Cyclic Module}{}
Let $R$ be a ring, and let $M$ be a left $R$-module. We say $M$ is a \textbf{cyclic module} if there exists an element $m\in M$ such that
\[
M=Rm:=\left\{rm\midv r\in R\right\}.
\]
\end{definition}
\begin{definition}{Simple Module}{}
Let $R$ be a ring, and let $M$ be a left $R$-module. We say $M$ is a \textbf{simple module} if $M\neq 0$ and the only submodules of $M$ are $\{0\}$ and $M$ itself.
\end{definition}
\begin{proposition}{}{}
Let $R$ be a ring, and let $I$ be a left ideal of $R$. Then
\begin{enumerate}[(i)]
\item $I$ is a simple left $R$-module if and only if $I$ is a minimal nonzero left ideal.
\item $R/I$ is a simple left $R$-module if and only if $I$ is a maximal left ideal.
\end{enumerate}
\end{proposition}
\begin{prf}
\begin{enumerate}[(i)]
\item Suppose that $I$ is a simple left $R$-module. Then $I\neq 0$ and the only submodules of $I$ are $\{0\}$ and $I$ itself. Hence, $I$ is a minimal nonzero left ideal.
Conversely, if $I$ is a minimal nonzero left ideal, and $J$ is a $R$-submodule of $I$, then $J$ is an left ideal of $R$. By the minimality of $I$, $J$ must be either $\{0\}$ or $I$. Hence, $I$ is a simple left $R$-module.
\item Suppose that $R/I$ is a simple left $R$-module. Let $J$ be a left ideal of $R$ such that $I\subseteq J$. Then $J/I$ is a left ideal of $R/I$. Since $R/I$ is simple, we have either $J/I=\{0\}$ or $J/I=R/I$. If $J/I=\{0\}$, then $J=I$. If $J/I=R/I$, then $J=R$. Hence, $I$ is a maximal left ideal.
Suppose that $R/I$ is not a simple left $R$-module. Then there exists a left ideal $\overline{J}=J/I$ of $R/I$ such that $I\subseteq J\subsetneq R$. Hence, $I$ is not a maximal left ideal.
\end{enumerate}
\end{prf}
\begin{proposition}{Equivalent Characterizations of Simple Module}{}
Let $R$ be a ring, and let $M$ be a left $R$-module. The following are equivalent:
\begin{enumerate}[(i)]
\item $M$ is a simple module.
\item For any $m\in M-\{0\}$, the cyclic submodule generated by $m$ is equal to $M$, namely
\[
M=Rm.
\]
\item There exists a maximal left ideal $\mathfrak{m}$ of $R$ such that $M\cong R/\mathfrak{m}$.
\end{enumerate}
\end{proposition}
\begin{prf}
We prove $\text{(i)}\Rightarrow(ii)\Rightarrow(iii)\Rightarrow(i)$.
\paragraph{$(i)\;\Rightarrow\;(ii)$}
Assume $M$ is simple and let $0\neq m\in M$.
The set $Rm$ is a submodule of $M$ containing $m$, hence non–zero.
By simplicity, the only non–zero submodule is $M$ itself; therefore $Rm=M$.
\paragraph{$(ii)\implies(iii)$}
Choose any non–zero $m\in M$ and consider the $R$–homomorphism
\[
\varphi:R\longrightarrow M,\qquad r\longmapsto r m .
\]
Because $m\neq0$ and $Rm=M$ by assumption, $\varphi$ is surjective.
Set $\mathfrak m := \ker\varphi$ (a left ideal). By the first isomorphism theorem,
$M\cong R/\mathfrak m$.
It remains to show that $\mathfrak m$ is maximal.
Let $I$ be a left ideal with $\mathfrak m\subsetneq I\subsetneq R$.
Pick $r\in I\setminus\mathfrak m$; then $\bar r:=r+\mathfrak m\neq0$ in $R/\mathfrak m\cong M$.
Property (ii) transfers through isomorphisms, so $\bar r$ must generate all of
$R/\mathfrak m$:
\[
R\bar r \;=\; R/\mathfrak m .
\]
But $R\bar r = I/\mathfrak m$ (by definition of $I$), hence $I/\mathfrak m = R/\mathfrak m$,
which forces $I=R$. Therefore no left ideal lies strictly between $\mathfrak m$ and
$R$; $\mathfrak m$ is maximal.
\paragraph{\boldsymbol$(iii)\;\Rightarrow\;(i)$}
Suppose $M\cong R/\mathfrak{m}$ with $\mathfrak{m}$ a maximal left ideal.
Submodules of $R/\mathfrak m$ correspond one-to-one with left ideals $I$ satisfying
$\mathfrak m\subseteq I\subseteq R$:
\[
I\;\longmapsto\; I/\mathfrak m .
\]
Because $\mathfrak m$ is maximal, the only such $I$ are $\mathfrak m$ and $R$,
yielding only the zero submodule and all of $R/\mathfrak m$. Hence $R/\mathfrak m$,
and therefore $M$, is simple.
\smallskip
Thus $(i)\Leftrightarrow(ii)\Leftrightarrow(iii)$, completing the proof.
\end{prf}
\section{Construction}
\subsection{Free Object}
\begin{definition}{Free Module}{}
Let $R$ be a ring and $S$ be a set. The \textbf{free $R$-module } on $S$, denoted by $\mathrm{Free}_{R\text{-}\mathsf{Mod}}(S)$, together with a map $\iota:S\to \mathrm{Free}_{R\text{-}\mathsf{Mod}}(S)$, is defined by the following universal property: for any $R$-module $M$ and any map $f:S\to M$, there exists a unique $R$-linear map $\widetilde{f}:\mathrm{Free}_{R\text{-}\mathsf{Mod}}(S)\to M$ such that the following diagram commutes
\begin{center}
\begin{tikzcd}[ampersand replacement=\&]
\mathrm{Free}_{R\text{-}\mathsf{Mod}}(S)\arrow[r, dashed, "\exists !\,\widetilde{f}"] \& M\\[0.3cm]
S\arrow[u, "\iota"] \arrow[ru, "f"'] \&
\end{tikzcd}
\end{center}
The free $R$-module $\mathrm{Free}_{R\text{-}\mathsf{Mod}}(S)$ can be contructed as the direct sum of copies of $R$ indexed by $S$, i.e.
\[
\mathrm{Free}_{R\text{-}\mathsf{Mod}}(S)\cong \bigoplus_{s\in S}R.
\]
\end{definition}
\begin{example}{Forgetful Functor $U$}{}
Let $R$ be a ring. Then the forgetful functor $U:R\text{-}\mathsf{Mod}\to \mathsf{Set}$ forgets the $R$-module structure of an $R$-module.
\begin{enumerate}[(i)]
\item $U$ is representable by $\left(R, 1_R\right)$. The natural isomorphism $\phi:\mathrm{Hom}_{R\text{-}\mathsf{Mod}}\left(R, -\right)\xRightarrow{\sim} U$ is given by
\begin{align*}
\phi_M:\mathrm{Hom}_{R\text{-}\mathsf{Mod}}\left(R, M\right)&\longrightarrow U(M)\\
f&\longmapsto f(1_R).
\end{align*}
An $R$-linear map $f:R\to M$ is uniquely determined by $f(1_R)$, and vice versa.
\item $U$ is faithful but not full.
\end{enumerate}
\end{example}
\begin{proposition}{Free-Forgetful Adjunction $\mathrm{Free}_{R\text{-}\mathsf{Mod}}\dashv U$}{}
Let $R$ be a ring. Then the free $R$-module functor $\mathrm{Free}_{R\text{-}\mathsf{Mod}}$ is left adjoint to the forgetful functor $U$.
\[
\begin{tikzcd}[ampersand replacement=\&]
R\text{-}\mathsf{Mod} \arrow[r, "\mathrm{Free}_{R\text{-}\mathsf{Mod}}"{name=U}, bend left, start anchor=east, yshift=1.7ex, end anchor=west] \&[+18pt]
\mathsf{Set} \arrow[l, "{U}"{name=D, anchor=north}, bend left, start anchor=west, yshift=-1.5ex, end anchor=east]
\arrow[phantom, from=U, to=D, "\dashv"{rotate=-90}]
\end{tikzcd}
\]
For any set $S$ and any $R$-module $M$, we have a natural isomorphism
\[
\mathrm{Hom}_{R\text{-}\mathsf{Mod}}\left(\mathrm{Free}_{R\text{-}\mathsf{Mod}}(S), M\right)\cong \mathrm{Hom}_{\mathsf{Set}}\left(S, U(M)\right).
\]
\end{proposition}
\begin{definition}{Basis of a Module}{}
Let $R$ be a ring, $M$ be an $R$-module and $S\subseteq M$ be a subset. The inclusion map $i:S\hookrightarrow M$ induces a map $\widetilde{i}:R^{\oplus S}\to M$ by the universal property of free $R$-module.
\begin{center}
\begin{tikzcd}[ampersand replacement=\&]
R^{\oplus S}\arrow[r, dashed, "\exists !\,\widetilde{i}"] \& M\\[0.3cm]
S\arrow[u, "\iota"] \arrow[ru, "i"'] \&
\end{tikzcd}
\end{center}
\begin{itemize}
\item If $\widetilde{i}$ is injective, then $S$ is called a \textbf{linearly independent subset of $M$}. If $\widetilde{i}$ is not injective, then $S$ is called a \textbf{linearly dependent subset of $M$}.
\item If $\widetilde{i}$ is surjective, then $S$ is called a \textbf{generating set of $M$}.
\item If $\widetilde{i}$ is bijective, then $S$ is called a \textbf{basis of $M$}.
\end{itemize}
\end{definition}
\begin{proposition}{}{}
A $R$-module $M$ has a basis if and only if $M$ is a free $R$-module.
\end{proposition}
\begin{definition}{Invariant Basis Number}{}
A ring $R$ is said to have the \textbf{invariant basis number} property if
\[
R^{\oplus S}\cong R^{\oplus T}\iff |S|=|T|.
\]
\end{definition}
\begin{proposition}{Commutative Ring Has IBN Property}{}
Every nonzero commutative ring has the invariant basis number property.
\end{proposition}
\begin{definition}{Rank of a Free Module over Commutative Ring}{}
Let $R$ be a nonzero commutative ring and $M$ be a free $R$-module. Suppose $M\cong R^{\oplus S}$ for some set $S$. Then the \textbf{rank of $M$}, denoted by $\mathrm{rk}_R(M)$, is defined as the cardinality of $S$.
\end{definition}
\begin{definition}{Finitely Generated Module}{}
We say $M$ is a \textbf{finitely generated $R$-module} if
one of the following equivariant conditions holds:
\begin{enumerate}[(i)]
\item there exist $x_1, \ldots, x_n \in M$ such that every element of $M$ is an $R$-linear combination of the $x_i$.
\item there exists an epimorphism $R^{\oplus n} \rightarrow M$ for some $n \in \mathbb{Z}_+$.
\item there exists an exact sequence
\[
R^{\oplus n} \longrightarrow M \longrightarrow 0
\]
for some $n\in \mathbb{N}$.
\item $S\cong R^{\oplus n}/M$ for some $n\in \mathbb{Z}_+$ and some submodule $M$ of $R^{\oplus n}$.
\end{enumerate}
\end{definition}
\begin{proposition}{}{finiteness_of_R_module_implies_finiteness_of_S_module}
Let $R\to S$ be a ring homomorphism and $M$ be an $S$-module. If $M$ as an $R$-module is finitely generated, then $M$ as an $S$-module is also finitely generated.
\end{proposition}
\begin{prf}
Since $M$ is finitely generated as an $R$-module, there exists an epimorphism $h:R^{n}\to M$ for some $n\in \mathbb{Z}_+$. Define
\begin{align*}
\iota_1:\{1,\cdots,n\}&\longrightarrow R^{n},\\
i&\longmapsto e_i,
\end{align*}
where $e_i$ is the $i$-th standard basis of $R^{n}$ and
\begin{align*}
i:\{1,\cdots,n\}&\longrightarrow M,\\
i&\longmapsto h(e_i).
\end{align*}
Then we have $h\circ \iota_1=i$. Define
\begin{align*}
\iota_2:\{1,\cdots,n\}&\longrightarrow S^{n},\\
i&\longmapsto e_i',
\end{align*}
where $e_i'$ is the $i$-th standard basis of $S^{n}$. By the universal property of free $S$-module, there exists a unique $S$-linear map $g:S^{n}\to M$ such that $g\circ \iota_2=i$. By the universal property of free $R$-module, there exists a unique $R$-linear map $f:R^{n}\to S^{n}$ such that $f\circ \iota_1=\iota_2$. Therefore, we have
\[
(g\circ f)\circ \iota_1=g\circ \iota_2=i=h\circ \iota_1.
\]
By the universal property of free $R$-module, we have $g\circ f=h$. Since $h$ is surjective, $g$ is surjective. Therefore, $M$ is finitely generated as an $S$-module.
\[
\begin{tikzcd}
R^n \arrow[rr, "h", two heads] \arrow[rd, "f"] & & M \\
& S^n \arrow[ru, "g"] & \\[+2em]
& {\{1,\cdots,n\}} \arrow[luu, "\iota_1", hook'] \arrow[u, "\iota_2"', hook'] \arrow[ruu, "i"'] &
\end{tikzcd}
\]
\end{prf}
\begin{definition}{Finitely Presented Module}{}
We say $M$ is a \textbf{finitely presented $R$-module} if
there exists an exact sequence
\[
R^{\oplus m} \longrightarrow R^{\oplus n} \longrightarrow M \longrightarrow 0
\]
for some $m, n\in \mathbb{Z}_+$.
\end{definition}
\subsection{Tensor Product}
\begin{definition}{Bimodule}{bimodule}
Let $R$ and $S$ be rings. An $(R, S)$-\textbf{bimodule} is an abelian group $M$ together with a structure of left $R$-module and a structure of right $S$-module such that
\[
r(ms)=(rm)s
\]
for all $r\in R$, $s\in S$, and $m\in M$.
\end{definition}
\begin{example}{Examples of Bimodule}{}
Let $R$ and $S$ be rings.
\begin{itemize}
\item If $M$ is a left $R$-module, then $M$ is an $(R,\mathbb{Z})$-bimodule.
\item If $M$ is a right $S$-module, then $M$ is a $(\mathbb{Z},S)$-bimodule.
\item If $R$ is a commutative ring, then every left $R$-module is an $(R,R)$-bimodule, and every right $R$-module is also an $(R,R)$-bimodule. In particular, every abelian group is a $\mathbb{Z}$-module, hence a $(\mathbb{Z},\mathbb{Z})$-bimodule.
\item Any two-sided ideal of a ring $R$ is an $(R,R)$-bimodule, with the ring multiplication both as the left and as the right multiplication. In particular, $R$ itself is an $(R,R)$-bimodule.
\item If $M$ is a right $R$-module, then $M$ is an $(\mathrm{End}_{\mathsf{Mod}\text{-}R}(M),R)$-bimodule, where the left multiplication is given by function application.
\item If $M$ is a left $R$-module, then $M$ is an $(R,\mathrm{End}_{R\text{-}\mathsf{Mod}}(M)^{\mathrm{op}})$-bimodule, where the right multiplication is given by function application.
\end{itemize}
\end{example}
\begin{definition}{Balanced Product}{}
Let $R$ be a ring, $M$ be a right $R$-module, $N$ be a left $R$-module and $G$ be an abelian group. A map $b:M\times N\to G$ is called a \textbf{$R$-balanced product} if
\begin{enumerate}[(i)]
\item $b(m_1+m_2, n)=b(m_1, n)+b(m_2, n)$ for all $m_1, m_2\in M$ and $n\in N$.
\item $b(m, n_1+n_2)=b(m, n_1)+b(m, n_2)$ for all $m\in M$ and $n_1, n_2\in N$.
\item $b(mr, n)=b(m, rn)$ for all $r\in R$, $m\in M$, and $n\in N$.
\end{enumerate}
The set of all $R$-balanced products from $M\times N$ to $G$ is denoted by $\mathrm{Bal}_R(M, N; G)$, which is an abelian group with respect to pointwise addition:
\[
(b_1+b_2)(m, n)=b_1(m, n)+b_2(m, n).
\]
\end{definition}
\begin{proposition}{Functor $\mathrm{Bal}_R(M, N; -):\mathsf{Ab}\to \mathsf{Ab}$}{}
For $M$ and $N$ fixed, we can define a functor $\mathrm{Bal}_R(M, N; -):\mathsf{Ab}\to \mathsf{Ab}$ by
\[
\begin{tikzcd}[ampersand replacement=\&]
\mathsf{Ab}\&[-25pt]\&[+30pt]\&[-30pt] \mathsf{Ab}\&[-30pt]\&[-30pt] \\ [-15pt]
G \arrow[dd, "f"{name=L, left}]
\&[-25pt] \& [+10pt]
\& [-30pt]\mathrm{Bal}_R(M, N; G)\arrow[dd, "{f_*}"{name=R}] \&[-30pt]\ni
\&[-30pt]b\arrow[dd,mapsto]\&[-30pt]\\ [-10pt]
\& \phantom{.}\arrow[r, "{\mathrm{Bal}_R(M, N; -)}", squigarrow]\&\phantom{.} \& \\[-10pt]
H \& \& \& \mathrm{Bal}_R(M, N; H)\&[-30pt]\ni
\&[-30pt]f\circ b
\end{tikzcd}
\]
\end{proposition}
\begin{definition}{Category $\mathsf{Bal}_R(M,N)$}{}
Let $R$ be a ring, $M$ be a right $R$-module, and $N$ be a left $R$-module. The \textbf{category of $R$-balanced products} from $M$ and $N$, denoted by $\mathsf{Bal}_R(M, N)$, is defined as follows:
\begin{itemize}
\item The objects of $\mathsf{Bal}_R(M, N)$ are $R$-balanced products from $M\times N$ to $G$
\[
\mathrm{Ob}\left(\mathsf{Bal}_R(M, N)\right) = \left\{
b:M\times N\to G \midv G\in \mathrm{Ob}(\mathsf{Ab}),\,b\in\mathrm{Bal}_R(M, N; G)
\right\}
\]
\item The morphisms from $b_1:M\times N\to G_1$ to $b_2:M\times N\to G_2$ are group homomorphisms $f:G_1\to G_2$ such that $f\circ b_1=b_2$.
\[
\begin{tikzcd}[ampersand replacement=\&]
\& G_1 \arrow[dd, "f"] \\
M\times N \arrow[ru, "b_1"] \arrow[rd, "b_2"'] \& \\
\& G_2
\end{tikzcd}
\]
\end{itemize}
\end{definition}
\begin{definition}{Tensor Product of $R$-modules}{}
The \textbf{tensor product} of $R$-modules $M$ and $N$, denoted by $\otimes :M\times N\to M\otimes_R N$, is the initial object in the category $\mathsf{Bal}_R(M, N)$. The tensor product satisfies the following universal property: for any $R$-module $G$ and any $R$-balanced product $b:M\times N\to G$, there exists a unique group homomorphism $\widetilde{b}:M\otimes_R N\to G$ such that the following diagram commutes
\begin{center}
\begin{tikzcd}[ampersand replacement=\&]
M\times N \arrow[r, "\otimes"] \arrow[rd, "b"'] \& M\otimes_R N \arrow[d, dashed, "\exists !\,\widetilde{b}"] \\[0.3cm]
\& G
\end{tikzcd}
\end{center}
The tensor product can be constructed as follows: let $F:=\mathrm{Free}_{\mathsf{Ab}}(M\times N)$ be the free abelian group on $M\times N$, and let $K$ be the subgroup of $F$ generated by elements of the form
\begin{enumerate}[(i)]
\item $(m_1+m_2, n)-(m_1, n)-(m_2, n)$,
\item $(m, n_1+n_2)-(m, n_1)-(m, n_2)$,
\item $(mr, n)-(m, rn)$.
\end{enumerate}
Then the tensor product $\otimes :M\times N\to M\otimes_R N$ can be constructed as the composition
\[
\otimes :M\times N\xlongrightarrow{\iota}F \xlongrightarrow{\pi}F/K
\]
and $M\otimes_R N:=F/K$.
\end{definition}
\begin{prf}
To prove the constructed tensor product $F/K$ is the initial object in the category $\mathsf{Bal}_R(M, N)$, we need to check the universal property of tensor product. Let $G$ be an $R$-module and $b:M\times N\to G$ be an $R$-balanced product.
\[
\begin{tikzcd}
F \arrow[r, "\pi", two heads] \arrow[rd, "\hat{b}", dashed] & F/K \arrow[d, "\tilde{b}", dashed] \\[1.5em]
M\times N \arrow[u, "\iota", hook] \arrow[r, "b"'] & G
\end{tikzcd}
\]
First by the universal property of free abelian group, there exists a unique group homomorphism
\begin{align*}
\hat{b}:F&\longrightarrow G\\
\sum_{i=1}^k r_i(m_i, n_i)&\longmapsto \sum_{i=1}^k r_ib(m_i, n_i).
\end{align*}
such that $\hat{b}\circ\iota=b$. Note that
\begin{align*}
\hat{b}\left((m_1+m_2, n)-(m_1, n)-(m_2, n)\right) &= b(m_1+m_2, n)-b(m_1, n)-b(m_2, n)=0,\\
\hat{b}\left((m, n_1+n_2)-(m, n_1)-(m, n_2)\right) &= b(m, n_1+n_2)-b(m, n_1)-b(m, n_2)=0,\\
\hat{b}\left((mr, n)-(m, rn)\right) &= b(mr, n)-b(m, rn)=0.
\end{align*}
We see for any $k\in K$, $\hat{b}(k)=0$. Thus by the universal property of quotient group, there exists a unique group homomorphism $\tilde{b}:F/K\to G$ such that $\tilde{b}\circ\pi=\hat{b}$. It is easy to check that $\tilde{b}\circ\pi\circ\iota=b$, which means the diagram commutes.
To show the uniqueness, assume there exists another group homomorphism $\tilde{b}':F/K\to G$ such that $\tilde{b}'\circ\pi\circ\iota=b$. Since $\hat{b}\circ \iota=b$, by the uniqueness of $\tilde{b}$, we have $\tilde{b}'\circ\pi=\hat{b}$. Then by the uniqueness of $\tilde{b}$, we have $\tilde{b}=\tilde{b}'$. Thus the tensor product $F/K$ is the initial object in the category $\mathsf{Bal}_R(M, N)$.
\end{prf}
\begin{proposition}{Pure Tensors Generate Tensor Product}{pure_tensors_generate_tensor_product}
Let $R$ be a ring, $M$ be a right $R$-module, and $N$ be a left $R$-module. The elements of the image of the tensor product map $\otimes :M\times N\to M\otimes_R N$
\[
\mathrm{im}(\otimes) = \{m\otimes n \mid m\in M, n\in N\}.
\]
are called \textbf{pure tensors}.
\begin{enumerate}[(i)]
\item $\mathrm{im}(\otimes)$ generates $M\otimes_R N$ as an abelian group:
\[
M\otimes_R N = \langle \mathrm{im}(\otimes) \rangle_{\mathsf{Ab}}:=\left\{
\sum_{i=1}^k m_i\otimes n_i \mid k\in \mathbb{Z}_{\ge 1}, m_i\in M, n_i\in N
\right\}.
\]
\item Let $F:=\mathrm{Free}_{\mathsf{Ab}}(\mathrm{im}(\otimes))$. Then we have
\[
M\otimes_R N \cong F/\langle X_M\cup X_N\rangle,
\]
where
\begin{align*}
X_M&=\left\{[(m+m')\otimes n]-[m\otimes n]-[m'\otimes n]\in F\midv m,m'\in M,n\in N\right\},\\
X_N&=\left\{[m\otimes(n+n')]-[m\otimes n]-[m\otimes n']\in F\midv m\in M, n,n'\in N\right\}.
\end{align*}
\item Let $f:\mathrm{im}(\otimes)\to G$ be a map. If and only if the map
\begin{align*}
M \times N &\longrightarrow G \\
(m,n)&\longmapsto f(m\otimes n)
\end{align*}
is $\mathbb{Z}$-bilinear, i.e.
\begin{align*}
f\left((m_1+m_2)\otimes n\right)&=f\left(m_1\otimes n\right)+f\left(m_2\otimes n\right),\\
f\left(m\otimes (n_1+n_2)\right)&=f\left(m\otimes n_1\right)+f\left(m\otimes n_2\right),
\end{align*}
there exists a group homomorphism $\tilde{f}:M\otimes_R N\to G$ such that the following diagram commutes
\[
\begin{tikzcd}[ampersand replacement=\&]
\mathrm{im}(\otimes) \arrow[r, "i", hook] \arrow[rd, "f"'] \& M\otimes_R N \arrow[d, dashed, "\tilde{f}"] \\[0.3cm]
\& G
\end{tikzcd}
\]
If such $\tilde{f}$ exists, then it is unique and is totally determined by $f$ as follows:
\begin{align*}
\tilde{f}:M\otimes_R N&\longrightarrow G\\
\sum_{i=1}^k m_i\otimes n_i &\longmapsto \sum_{i=1}^k f(m_i\otimes n_i).
\end{align*}
\end{enumerate}
\end{proposition}
\begin{prf}
\begin{enumerate}[(i)]
\item
Let $\mathrm{pr}:M\otimes_R N\to M\otimes_R N/\langle \mathrm{im}(\otimes) \rangle_{\mathsf{Ab}}$ be the canonical projection. Then we have the following commutative diagram
\[
\begin{tikzcd}[ampersand replacement=\&]
M\times N \arrow[r, "\otimes"] \arrow[rd, "0"'] \& M\otimes_R N \arrow[d, "\mathrm{pr}", two heads] \\[2em]
\& M\otimes_R N/\langle \mathrm{im}(\otimes) \rangle_{\mathsf{Ab}}
\end{tikzcd}
\]
Note $0= 0\circ \otimes$. By the uniqueness in the universal property of tensor product, we have $\mathrm{pr}=0$. Therefore, $M\otimes_R N=\langle \mathrm{im}(\otimes) \rangle_{\mathsf{Ab}}$.
\item Define
\begin{align*}
j:\mathrm{im}(\otimes)&\longrightarrow \mathrm{Free}_{\mathsf{Ab}}(\mathrm{im}(\otimes))\\
m\otimes n &\longmapsto [m\otimes n]
\end{align*}
By the universal property of free abelian group, the inclusion $i:\mathrm{im}(\otimes)\hookrightarrow M\otimes_R N $ induces a group homomorphism $\widehat{i}:\mathrm{Free}_{\mathsf{Ab}}(\mathrm{im}(\otimes))\to M\otimes_R N$.
\[
\begin{tikzcd}
&[-1em] \mathrm{im}(\otimes) \arrow[d, "j", hook] \arrow[rd, "f"] \arrow[ld, "i"', hook] & \\[3em]
M\otimes_R N & \mathrm{Free}_{\mathsf{Ab}}(\mathrm{im}(\otimes)) \arrow[d, "p", two heads] \arrow[r, "\widehat{f}", dashed] \arrow[l, "\widehat{i}"', dashed] & G \\[3em]
& \mathrm{Free}_{\mathsf{Ab}}(\mathrm{im}(\otimes))/\langle X_M\cup X_N\rangle_{\mathsf{Ab}}. \arrow[ru, "\overline{f}"', dashed] \arrow[lu, "\overline{i}", dashed] &
\end{tikzcd}
\]
Since
\[
\widehat{i}\left(X_M\right)=\widehat{i}\left(X_N\right)=\{0\}\implies X_M\cup X_N \subseteq \ker \widehat{i}\implies \langle X_M\cup X_N\rangle_{\mathsf{Ab}}\subseteq \ker \widehat{i}
\]
there exists a unique group homomorphism $\overline{i}:\mathrm{Free}_{\mathsf{Ab}}(\mathrm{im}(\otimes))/\langle X_M\cup X_N\rangle_{\mathsf{Ab}}\to M\otimes_R N $ such that $\overline{i}\circ p= \widehat{i}$. Since $\widehat{i}$ is surjective, $\overline{i}$ is also surjective. Define
\begin{align*}
\beta:M\times N&\longrightarrow \mathrm{Free}_{\mathsf{Ab}}\left(\mathrm{im}(\otimes)\right)/\langle X_M\cup X_N\rangle_{\mathsf{Ab}}\\
(m,n)&\longmapsto \overline{\left[m \otimes n\right]}
\end{align*}
We can check that $\beta$ is a balanced product
\begin{align*}
\beta\left(m_1+m_2,n\right)&=\overline{\left[(m_1+m_2) \otimes n\right]}=\overline{\left[m_1 \otimes n\right]}+\overline{\left[m_2 \otimes n\right]} = \beta\left(m_1,n\right)+\beta\left(m_2,n\right),\\
\beta\left(m, n_1+n_2\right)&= \overline{\left[m \otimes \left(n_1+n_2\right)\right]}= \overline{\left[m \otimes n_1\right]}+\overline{\left[m \otimes n_2\right]}=\beta\left(m, n_1\right)+\beta\left(m, n_2\right),
\\
\beta\left(mr, n\right)&= \overline{\left[(mr) \otimes n\right]}= \overline{\left[m \otimes (rn)\right]}=\beta\left(m, rn\right).
\end{align*}
By the universal property of tensor product $M \otimes_R N$, there exists a unique group homomorphism
\begin{align*}
\varphi:M\otimes_R N&\longrightarrow \mathrm{Free}_{\mathsf{Ab}}(\mathrm{im}(\otimes))/\langle X_M\cup X_N\rangle,\\
m\otimes n &\longmapsto \overline{[m\otimes n]}.
\end{align*}
such that $\varphi\circ \otimes=\beta$. Note
\begin{align*}
\varphi\circ \overline{i}\left(\overline{[m_1\otimes n_1]+\cdots [m_k\otimes n_k]}\right)&=\varphi\circ \overline{i}\circ p\left([m_1\otimes n_1]+\cdots [m_k\otimes n_k]\right)\\
&=\varphi\circ \widehat{i}\left([m_1\otimes n_1]+\cdots [m_k\otimes n_k]\right)\\
&=\varphi\left(m_1\otimes n_1\right)+\cdots +\varphi\left(m_k\otimes n_k\right)\\
&=\overline{[m_1\otimes n_1]}+\cdots +\overline{[m_k\otimes n_k]}\\
&=\overline{[m_1\otimes n_1]+\cdots +[m_k\otimes n_k]}.
\end{align*}
We have $\varphi\circ \overline{i}=\mathrm{id}$, which implies that $\overline{i}$ is injective. Therefore, $\overline{i}$ is an isomorphism.
\item If there exists a group homomorphism $\tilde{f}:M\otimes_R N\to G$ such that $f=\tilde{f}\circ i$, then we can check that the map $(m,n)\mapsto f(m\otimes n)$ is $\mathbb{Z}$-bilinear:
\begin{align*}
f\left((m_1+m_2)\otimes n\right)&=\tilde{f}\left(i\left((m_1+m_2)\otimes n\right)\right)=\tilde{f}\left(m_1\otimes n+m_2\otimes n\right)=f\left(m_1\otimes n\right)+f\left(m_2\otimes n\right),\\
f\left(m\otimes (n_1+n_2)\right)&=\tilde{f}\left(i\left(m\otimes (n_1+n_2)\right)\right)=\tilde{f}\left(m\otimes n_1+m\otimes n_2\right)=f\left(m\otimes n_1\right)+f\left(m\otimes n_2\right).
\end{align*}
Conversely, if the map $(m,n)\mapsto f(m\otimes n)$ is $\mathbb{Z}$-bilinear, then we have
\begin{align*}
\widehat{f}\left([(m+m')\otimes n]-[m\otimes n]-[m'\otimes n]\right)&=\widehat{f}\left([(m+m')\otimes n]\right)-\widehat{f}\left([m\otimes n]\right)-\widehat{f}\left([m'\otimes n]\right)\\
&=f\left((m+m')\otimes n\right)-f\left(m\otimes n\right)-f\left(m'\otimes n\right)=0,\\
\widehat{f}\left([m\otimes(n+n')]-[m\otimes n]-[m\otimes n']\right)&=\widehat{f}\left([m\otimes(n+n')]\right)-\widehat{f}\left([m\otimes n]\right)-\widehat{f}\left([m\otimes n']\right)\\
&=f\left(m\otimes(n+n')\right)-f\left(m\otimes n\right)-f\left(m\otimes n'\right)=0,
\end{align*}
which implies
\[
\widehat{f}\left(X_M\right)=\widehat{f}\left(X_N\right)=\{0\}\implies X_M\cup X_N \subseteq \ker \widehat{f}\implies \langle X_M\cup X_N\rangle_{\mathsf{Ab}}\subseteq \ker \widehat{f}.
\]
Thus by the universal property of quotient group, there exists a unique group homomorphism
\begin{align*}
\overline{f}: \mathrm{Free}_{\mathsf{Ab}}(\mathrm{im}(\otimes))/\langle X_M\cup X_N\rangle_{\mathsf{Ab}}&\longrightarrow G\\
\overline{[m\otimes n]}&\longmapsto f(m\otimes n)
\end{align*}
such that $\overline{f}\circ p=\widehat{f}$. Composing $\overline{f}$ with the isomorphism $\varphi:M\otimes_R N\to \mathrm{Free}_{\mathsf{Ab}}(\mathrm{im}(\otimes))/\langle X_M\cup X_N\rangle$ in (ii), we obtain a group homomorphism
\begin{align*}
\tilde{f}:M\otimes_R N&\longrightarrow G\\
m\otimes n &\longmapsto f(m\otimes n).
\end{align*}
\end{enumerate}
\end{prf}
\begin{proposition}{}{}
Let $Q$, $R$, and $S$ be commutative rings, $M$ be a $(Q,R)$-bimodule, and $N$ be a $(R,S)$-bimodule. Then $M\otimes_R N$ has a natural $(Q,S)$-bimodule structure given by
\[
q\cdot (m\otimes n):=(q\cdot m)\otimes n,\quad (m\otimes n)\cdot s:=m\otimes (n\cdot s)
\]
for all $q\in Q$, $s\in S$, $m\in M$, and $n\in N$.
\end{proposition}
\begin{example}{Base Change Functor}{}
Let $\varphi:R\to S$ be a ring homomorphism. The \textbf{base change functor} $-\otimes_R S:R\text{-}\mathsf{Mod}\to S\text{-}\mathsf{Mod}$ is defined as follows:
\[
\begin{tikzcd}[ampersand replacement=\&]
R\text{-}\mathsf{Mod} \&[-25pt]\&[+30pt]\&[-30pt] S\text{-}\mathsf{Mod}\&[-30pt]\&[-30pt] \\ [-15pt]
M \arrow[dd, "f"{name=L, left}]
\&[-25pt] \& [+10pt]
\& [-30pt]M\otimes_R S\arrow[dd, "f\otimes_R \mathrm{id}_{S}"{name=R}] \&[-30pt]\\ [-10pt]
\& \phantom{.}\arrow[r, "-\otimes_R S", squigarrow]\&\phantom{.} \& \\[-10pt]
N \& \& \& N\otimes_R S\&
\end{tikzcd}
\]
where the $S$-module structure on $M\otimes_R S$ is given by
\[
s'\cdot (m\otimes s):=m\otimes (s's)
\]
for all $s', s\in S$ and $m\in M$.
\end{example}
\begin{proposition}{Tensoring with the Base Ring}{tensoring_with_base_ring}
Let $R$ be a ring and $M$ be a left $R$-module. Then there is a natural isomorphism of $R$-modules
\begin{align*}
\lambda_M: R\otimes_R M &\overset{\sim}{\longrightarrow} M\\
r\otimes m &\longmapsto r\cdot m
\end{align*}
\end{proposition}
\begin{prf}
Define the map
\begin{align*}
\rho_M: M &\longrightarrow R\otimes_R M\\
m &\longmapsto 1_R\otimes m.
\end{align*}
$\rho_M$ is an $R$-linear map since for any $r\in R$ and $m, n\in M$,
\[
\rho_M(rm)=1_R\otimes (rm) = r\otimes m = r\cdot (1_R\otimes m) = r\cdot \rho_M(m).
\]
\end{prf}
\subsection{Localization}
\begin{proposition}{}{equivalence_of_S_inverse_R_modules_and_R_modules_where_S_act_as_automorphisms}
Let $R$ be a commutative ring and $S \subseteq R$ be a multiplicative subset. The category of $S^{-1} R$ modules is equivalent to the category of $R$-modules $M$ with the property that every $s \in S$ acts as an automorphism on $M$. The following functor $F$ gives a equivalence of categories:
\[
\begin{tikzcd}[ampersand replacement=\&]
S^{-1} R\text{-}\mathsf{Mod}\&[-25pt]\&[+10pt]\&[-30pt] R\text{-}\mathsf{Mod}\text{ where }S\text{ act as automorphisms}\&[-30pt]\&[-30pt] \\ [-15pt]
M \arrow[dd, "f"{name=L, left}]
\&[-25pt] \& [+10pt]
\& [-30pt] M\arrow[dd, "f"{name=R}] \&[-30pt]\\ [-10pt]
\& \phantom{.}\arrow[r, "F", squigarrow]\&\phantom{.} \& \\[-10pt]
N \& \& \& N\&
\end{tikzcd}
\]
\end{proposition}
\begin{prf}
Assume $S$ is a multiplicative subset of communitative ring $R$ and the localization map is $\varphi:R\to S^{-1}R$. Then $R$ can acts on $S^{-1}R$-module $M$ through
\[
R\xrightarrow{\varphi}S^{-1}R\xrightarrow{\sigma_M'}\mathrm{End}_{\mathsf{Ab}}(M),
\]
which enables us to regard $M$ as an $R$-module. Furthermore, since
\[
\sigma_M'(\varphi(S))\subseteq \sigma_M' \left(\left(S^{-1}R\right)^\times\right)\subseteq \left(\mathrm{End}_{\mathsf{Ab}}(M)\right)^\times=\mathrm{Aut}_{\mathsf{Ab}}(M),
\]
every $s \in S$ acts as an automorphism on $M$.\\
Conversely, if $M$ is an $R$-module such that every $s\in S$ acts as an automorphism on $M$, i.e. $\sigma_M:R\to\mathrm{End}_{\mathsf{Ab}}(M)$ satisfies $\sigma_M(S)\subseteq \mathrm{Aut}_{\mathsf{Ab}}(M)$, then by unversal property
\begin{center}
\begin{tikzcd}[ampersand replacement=\&]
S^{-1}R\arrow[rr, "\sigma_M'", dashed]\&\& \mathrm{End}_{\mathsf{Ab}}(M) \& \\
\&R \arrow[ru, "\sigma_M"'] \arrow[lu, "\varphi"] \&
\end{tikzcd}
\end{center}
we can define a $S^{-1}R$-module structure on $M$ by lifting $\sigma_M$ to $\sigma_M'$. It is easy to check that these two functors are quasi-inverse to each other.
\end{prf}
\begin{definition}{Localization of a Module}{localization_of_module}
Let $R$ be a commutative ring, $S$ be a multiplicative set in $R$, and $M$ be an $R$-module. The \textbf{localization of the module} $M$ by $S$, denoted $S^{-1}M$, is an $S^{-1}R$-module that is constructed exactly as the localization of $R$, except that the numerators of the fractions belong to $M$. That is, as a set, it consists of equivalence classes, denoted $\frac{m}{s}$, of pairs $(m, s)$, where $m\in M$ and $s\in S$, and two pairs $(m, s)$ and $(n, t)$ are equivalent if there is an element $u\in S$ such that
\[u(sn-tm)=0.\]
Addition and scalar multiplication are defined as for usual fractions (in the following formula, $r\in R$, $s,t\in S$, and $m,n\in M$):
\[\frac{m}{s} + \frac{n}{t} = \frac{tm+sn}{st},\]
\[\frac{r}{s} \frac{m}{t} = \frac{r m}{st}.\]
\end{definition}
\begin{proposition}{Universal Property of Localization}{universal_property_of_localization}
Let $R$ be a commutative ring and $S\subseteq R$ be a multiplicative subset, an $M$ be an $R$-module. The $R$-linear map
\begin{align*}
l_S:M&\longrightarrow S^{-1}M\\
m&\longmapsto \frac{m}{1}
\end{align*}
satisfies the any of following universal properties:
\begin{itemize}
\item for any $R$-linear map $\psi:M\to N$ such that $S$ act as automorphisms on $N$ (i.e. the induced ring homomorphism $\sigma_{N}:R\to\mathrm{End}_{\mathsf{Ab}}(N)$ satisfies $\sigma_{N}(S)\subseteq \mathrm{Aut}_{\mathsf{Ab}}(N)$), there exists a unique $R$-linear map
\begin{align*}
\psi':S^{-1}M&\longrightarrow N\\
\frac{m}{s}&\longmapsto \sigma_{N}(s)^{-1}(\psi(m))
\end{align*}
such that the following diagram commutes in $R\text{-}\mathsf{Mod}$
\begin{center}
\begin{tikzcd}[ampersand replacement=\&]
S^{-1}M\arrow[rr, "\psi'", dashed]\&\& N \& \\
\&M \arrow[ru, "\psi"'] \arrow[lu, "l_S"] \&
\end{tikzcd}
\end{center}
\item for any $S^{-1}R$-module $N$ and $R$-linear map $\psi:M\to \mathrm{Res}(N)$, there exists a unique $S^{-1}R$-linear map $\psi':S^{-1}M\to N$ such that the following diagram commutes in $R\text{-}\mathsf{Mod}$
\begin{center}
\begin{tikzcd}[ampersand replacement=\&]
\mathrm{Res}(S^{-1}M)\arrow[rr, "\mathrm{Res}(\psi')", dashed]\&\& \mathrm{Res}(N) \& \\
\&M \arrow[ru, "\psi"'] \arrow[lu, "l_S"] \&
\end{tikzcd}
\end{center}
\end{itemize}
We have two equivalent universal properties because of the equivalence of categories in \Cref{th:equivalence_of_S_inverse_R_modules_and_R_modules_where_S_act_as_automorphisms}.
\end{proposition}
\begin{proposition}{Kernel of Localization Map}{kernel_of_localization_map}
Let $R$ be a commutative ring, $S$ be a multiplicative set in $R$, and $M$ be an $R$-module. Suppose
\begin{align*}
l_S:M&\longrightarrow S^{-1}M\\
m&\longmapsto \frac{m}{1}
\end{align*}
is the localization map. Then
\[
\ker l_S=\left\{m\in M \midv \exists s\in S,\; sm=0\right\}.
\]
\end{proposition}
\begin{prf}
If $m\in \ker l_S$, then we have $\frac{m}{1}=\frac{0}{1}$ in $S^{-1}M$. By the definition of \hyperref[th:localization_of_module]{localization}, there exists $s\in S$ such that
\[
s(1\cdot 0-1\cdot m)=-sm=0.
\]
Thus we have
\[
\ker l_S\subseteq \left\{m\in M \midv \exists s\in S,\; sm=0\right\}.
\]
Conversely, if $m\in M$ such that there exists $s\in S$ with $sm=0$, then we have
\[
l_S(m)=\frac{m}{1}=\frac{sm}{s}=\frac{0}{s}=\frac{0}{1},
\]
which means $m\in \ker l_S$. Thus we have
\[
\left\{m\in M \midv \exists s\in S,\; sm=0\right\}\subseteq \ker l_S.
\]
Therefore, we conclude that
\[
\ker l_S=\left\{m\in M \midv \exists s\in S,\; sm=0\right\}.
\]
\end{prf}
\begin{proposition}{Localization is a Left Adjoint Functor}{localization_is_a_left_adjoint_functor}
Let $R$ be a commutative ring, $S$ be a multiplicative set in $R$, and $M$ be an $R$-module. Define the localization functor as follows
\[
\begin{tikzcd}[ampersand replacement=\&]
R\text{-}\mathsf{Mod}\&[-25pt]\&[+10pt]\&[-30pt] S^{-1}R\text{-}\mathsf{Mod}\&[-30pt]\&[-30pt] \\ [-15pt]
M \arrow[dd, "f"{name=L, left}]
\&[-25pt] \& [+10pt]
\& [-30pt] S^{-1}M\arrow[dd, "S^{-1}(f)"{name=R}] \&[-30pt]\ni
\&[-30pt]\frac{m}{s}\arrow[dd,mapsto]\&[-30pt]\\ [-10pt]
\& \phantom{.}\arrow[r, "S^{-1}", squigarrow]\&\phantom{.} \& \\[-10pt]
N \& \& \& S^{-1}N\&[-30pt]\ni
\&[-30pt]\frac{f(m)}{s}
\end{tikzcd}
\]
where $S^{-1}(f)$ is defiend as the composition $S^{-1}M\xrightarrow{f'} N\to S^{-1}N$. \\
Let $\mathrm{Res}_{R\to S^{-1}R}: S^{-1}R\text{-}\mathsf{Mod}\to R\text{-}\mathsf{Mod}$ be the functor that regards $S^{-1}R$-modules as $R$-modules. Then we have a pair of adjoint functors
\[
\begin{tikzcd}[ampersand replacement=\&]
R\text{-}\mathsf{Mod} \arrow[r, "S^{-1}"{name=U}, bend left, start anchor=east, yshift=1.7ex, end anchor=west] \&[+12pt]
S^{-1}R\text{-}\mathsf{Mod} \arrow[l, "{\mathrm{Res}}"{name=D, anchor=north}, bend left, start anchor=west, yshift=-1.5ex, end anchor=east]
\arrow[phantom, from=U, to=D, "\dashv"{rotate=-90}]
\end{tikzcd}
\]
and natural isomorphism
\[
\mathrm{Hom}_{S^{-1}R\text{-}\mathsf{Mod}}(S^{-1}M, N)\cong \mathrm{Hom}_{R\text{-}\mathsf{Mod}}(M, \mathrm{Res}_{R\to S^{-1}R}(N)).
\]
\end{proposition}
\begin{proposition}{Localization is an Exact Functor}{}
Let $R$ be a commutative ring, $S$ be a multiplicative set in $R$. If
\[
L\xlongrightarrow {u} M\xlongrightarrow {v} N
\]
is an exact sequence of $R$-module, then
\[
S^{-1}L\xlongrightarrow {S^{-1}(u)} S^{-1}M\xlongrightarrow {S^{-1}(v)} S^{-1}N
\]
is an exact sequence of $S^{-1}R$-module.
\end{proposition}
\begin{prf}
Suppose $\frac{m}{s}\in \ker S^{-1}(v) $. Then we have
\[
S^{-1}(v)\left(\frac{m}{s}\right)=\frac{v(m)}{s}=\frac{0}{1},
\]
which imples that there exists $t\in S$ such that $tv(m)=v(tm)=0$. Thus we have $tm\in \ker v$. By exactness, there exists $l\in L$ such that $u(l)=tm$. Since
\[
S^{-1}(u)\left(\frac{l}{ts}\right)=\frac{u(l)}{ts}=\frac{tm}{ts}=\frac{m}{s},
\]
we see that $\frac{m}{s}\in \operatorname{im}S^{-1}(u)$, which means $\operatorname{im}S^{-1}(u)=\ker S^{-1}(v)$. Hence $S^{-1}$ is exact.
\end{prf}
\begin{proposition}{Localization of Module as Tensor Product}{localization_of_module_as_tensor_product}
Let \(R\) be a ring, \(S \subseteq R\) a multiplicative subset. The localization functor $S^{-1}:R\text{-}\mathsf{Mod}\to S^{-1}R\text{-}\mathsf{Mod}$ is isomorphic to the tensor product functor $ S^{-1}R \otimes_R -$. And we have isomorphisms
\begin{align*}
\theta_M : S^{-1}R \otimes _ R M &\overset{\sim}{\longrightarrow} S^{-1}M\\
\frac{a}{s} \otimes m &\longmapsto \frac{am}{s}
\end{align*}
naturally for all $R$-modules $M$.
\end{proposition}
\begin{prf}
\noindent\textbf{Step 1. Constructing the Isomorphism \(\theta_M\)}\\
\noindent Define the map
\begin{align*}
b_M: S^{-1}R \times M &\longrightarrow S^{-1}M\\
\left(\frac{a}{s}, m\right) &\longmapsto \frac{am}{s}.
\end{align*}
This map is well-defined because for any \(\frac{a}{s} = \frac{a'}{s'}\), there exists \(u \in S\) such that \(u(s'a - sa') = 0\), so that
\[
u(s'(am) - s(a'm))=u(s'a - sa')m =0\implies \frac{am}{s} = \frac{a'm}{s'}.
\]
It is straightforward to check that \(b_M\) is an \(R\)-balanced product. By the \hyperlink{th:universal_property_of_localization}{universal property of the tensor product}, there exists a unique \(R\)-linear map
\begin{align*}
\theta_M: S^{-1}R\otimes_R M &\longrightarrow S^{-1}M\\
\frac{a}{s} \otimes m &\longmapsto \frac{am}{s}\qquad(a \in A, s \in S, m \in M).
\end{align*}
such that the following diagram commutes
\[
\begin{tikzcd}
S^{-1}R\otimes_R M \arrow[rr, "\theta_M", dashed] & & S^{-1}M \\[1.5em]
& S^{-1}R\times M \arrow[ru, "b_M"'] \arrow[lu, "\otimes"] &
\end{tikzcd}
\]
\vspace{1em}
\noindent\textbf{Step 2. Constructing the Inverse}\\
\noindent Define the $R$-linear map
\begin{align*}
1\otimes -: M &\longrightarrow S^{-1}R \otimes_R M\\
m &\longmapsto 1_{S^{-1}R} \otimes m.
\end{align*}
Through the universal property of localization, we obtain a unique \(S^{-1}R\)-linear map
\begin{align*}
\psi_M: S^{-1}M &\longrightarrow S^{-1}R \otimes_R M\\
\frac{m}{s} &\longmapsto \frac{1}{s} \otimes m.
\end{align*}
such that the following diagram commutes
\[
\begin{tikzcd}
S^{-1}M \arrow[rr, "\psi_M", dashed] & & S^{-1}R\otimes_R M \\
& M \arrow[lu, "l"] \arrow[ru, "1\otimes -"'] &
\end{tikzcd}
\]
We can verify that \(\theta_M\) and \(\psi_M\) are Inverses:
\begin{itemize}
\item Composition \(\theta_M \circ \psi_M\): For any \(\frac{m}{s} \in S^{-1}M\),
\[
(\theta_M \circ \psi_M)\left(\frac{m}{s}\right) = \theta_M\left(\frac{1}{s} \otimes m\right) = \frac{1\cdot m}{s} = \frac{m}{s}.
\]
\item Composition \(\psi_M \circ \theta_M\): For any \(\frac{a}{s} \otimes m \in S^{-1}R \otimes_R M\), by \(R\)-linearity of the tensor product, we have
\[
(\psi_M \circ \theta_M)\Big(\frac{a}{s} \otimes m\Big) = \psi_M\left(\frac{am}{s}\right) = \frac{1}{s} \otimes am= \frac{a}{s} \otimes m.
\]
\end{itemize}
\vspace{1em}
\noindent\textbf{Step 3. Naturality}\\
\noindent Let \(f: M \to N\) be a morphism of \(R\)-modules. We need to show that the following diagram commutes:
\[
\begin{tikzcd}[column sep=large, row sep=large]
S^{-1}R \otimes_R M \arrow[r, "\mathrm{id}\otimes f"] \arrow[d, "\theta_M"']
& S^{-1}R \otimes_R N \arrow[d, "\theta_N"] \\
S^{-1}M \arrow[r, "S^{-1}f"']
& S^{-1}N
\end{tikzcd}
\]
For any \(\frac{a}{s} \otimes m \in S^{-1}R \otimes_R M\), we have
\[
\phi_N\Big((1\otimes f)\Big(\frac{a}{s} \otimes m\Big)\Big) = \phi_N\Big(\frac{a}{s} \otimes f(m)\Big) = \frac{af(m)}{s},
\]
and
\[
(S^{-1}f)\Big(\theta_M\Big(\frac{a}{s} \otimes m\Big)\Big) = (S^{-1}f)\Big(\frac{am}{s}\Big) = \frac{af(m)}{s}.
\]
Thus, the diagram commutes, and the isomorphism is natural.
\vspace{1em}
\noindent\textbf{Conclusion}\\
\noindent We have constructed a natural isomorphism
\[
\theta_M: S^{-1}R \otimes_R M \xrightarrow{\sim} S^{-1}M,
\]
which establishes that the functors
\[
S^{-1}(-) \quad \text{and} \quad S^{-1}A\otimes_A(-)
\]
are isomorphic.
\end{prf}
\begin{proposition}{Localization Respects Quotients}{localization_respects_quotients}
Let $M$ be an $R$-module and $N$ be a submodule of $M$. Then we have an isomorphism
\[
S^{-1}(M/N)\cong (S^{-1}M)/(S^{-1}N)
\]
and the following commutative diagram
\[
\begin{tikzcd}
M \arrow[r, "\pi_M"] \arrow[d, "S^{-1}"'] &[+5em] M/N \arrow[d, "S^{-1}"] \\[+2em]
S^{-1}M \arrow[r, "\pi_{S^{-1}N}"'] & S^{-1}(M/N)\cong (S^{-1}M)/(S^{-1}N)
\end{tikzcd}
\]
\end{proposition}
\begin{prf}
Since localization is exact, from the exact sequence
\[
0\longrightarrow N\longrightarrow M\longrightarrow M/N\longrightarrow 0,
\]
we obtain the following exact sequence
\[
0\longrightarrow S^{-1}N\longrightarrow S^{-1}M\longrightarrow S^{-1}(M/N)\longrightarrow 0.
\]
\end{prf}
\begin{proposition}{Localization Commutes with Tensor Product}{localization_commutes_with_tensor_product}
Let $R$ be a commutative ring, $S$ be a multiplicative set in $R$, and $M,N$ be $R$-modules. Then we have an isomorphism
\begin{align*}
f : S^{-1}M \otimes _{S^{-1}R}S^{-1}N &\overset{\sim}{\longrightarrow} S^{-1}(M \otimes _ R N)\\
\frac{m}{s} \otimes \frac{n}{t} &\longmapsto \frac{m \otimes n}{st}
\end{align*}
\end{proposition}
\begin{proof}
\begin{align*}
S^{-1}(M \otimes _ R N) & \cong S^{-1}R \otimes _ R (M \otimes _ R N) &(\text{by \Cref{th:localization_of_module_as_tensor_product}})\\
&\cong (S^{-1}R \otimes _ R M) \otimes _ R N &(\text{by associativity of tensor product})\\
& \cong S^{-1}M \otimes _ R N &(\text{by \Cref{th:localization_of_module_as_tensor_product}})\\
& \cong (S^{-1}M \otimes _{S^{-1}R}S^{-1}R)\otimes _ R N&(\text{by \Cref{th:tensoring_with_base_ring}})\\
& \cong S^{-1}M \otimes _{S^{-1}R}(S^{-1}R \otimes _ R N) &(\text{by associativity of tensor product})\\
& \cong S^{-1}M \otimes _{S^{-1}R}S^{-1}N &(\text{by \Cref{th:localization_of_module_as_tensor_product}})
\end{align*}
\end{proof}
\begin{proposition}{Localization as Colimit}{}
Let $R$ be a commutative ring, $S$ be a multiplicative set in $R$, and $M$ be an $R$-module. Then we have an isomorphism
\[
S^{-1}M\cong \varinjlim_{f\in S}M_f,
\]
where $M_f$ is the localization of $M$ by the multiplicative set $\langle f\rangle=\{f^n\mid n\in \mathbb{Z}_{\ge0}\}$.
Formally, $S$ can be endowed with a preorder relation: $f\mid g$ if and only if $fh=g$ for some $h\in S$, which makes $S$ a \hyperref[thin_category]{thin category} $\mathsf{S}$. Then we can define a functor $M_{\text{\textbf{-}}}:\mathsf{S}\to R\text{-}\mathsf{Mod}$
\[
\begin{tikzcd}[ampersand replacement=\&]
\mathsf{S}\&[-25pt]\&[+10pt]\&[-30pt] R\text{-}\mathsf{Mod}\&[-30pt]\&[-30pt] \\ [-15pt]
f \arrow[dd, ""{name=L, left}]
\&[-25pt] \& [+10pt]
\& [-30pt]M_f\arrow[dd, "l_g'"{name=R}] \&[-30pt]\ni