Is there an algorithmic way to compute the quotient of two subgroups of $mathbb Z^n$?












1












$begingroup$


In algebraic topology one sometimes has to compute the homology groups via CW complexes, reducing the problem to the calculation of $Z/B$ where $B subseteq Z subseteq mathbb{Z}^n $. It is difficult enough for me sometimes if $B$ is complicated.



For instance the isomorphism $mathbb Z oplus mathbb Z / left<(2,0),(-1,2)right> cong mathbb Z / 4 mathbb Z $ is not trivial at all.



Is there a general algorithm to determine $Z/B$, as both of $Z$ and $B$ are represented as the subgroups generated by several elements of $mathbb Z^n $? Thanks.










share|cite|improve this question











$endgroup$

















    1












    $begingroup$


    In algebraic topology one sometimes has to compute the homology groups via CW complexes, reducing the problem to the calculation of $Z/B$ where $B subseteq Z subseteq mathbb{Z}^n $. It is difficult enough for me sometimes if $B$ is complicated.



    For instance the isomorphism $mathbb Z oplus mathbb Z / left<(2,0),(-1,2)right> cong mathbb Z / 4 mathbb Z $ is not trivial at all.



    Is there a general algorithm to determine $Z/B$, as both of $Z$ and $B$ are represented as the subgroups generated by several elements of $mathbb Z^n $? Thanks.










    share|cite|improve this question











    $endgroup$















      1












      1








      1





      $begingroup$


      In algebraic topology one sometimes has to compute the homology groups via CW complexes, reducing the problem to the calculation of $Z/B$ where $B subseteq Z subseteq mathbb{Z}^n $. It is difficult enough for me sometimes if $B$ is complicated.



      For instance the isomorphism $mathbb Z oplus mathbb Z / left<(2,0),(-1,2)right> cong mathbb Z / 4 mathbb Z $ is not trivial at all.



      Is there a general algorithm to determine $Z/B$, as both of $Z$ and $B$ are represented as the subgroups generated by several elements of $mathbb Z^n $? Thanks.










      share|cite|improve this question











      $endgroup$




      In algebraic topology one sometimes has to compute the homology groups via CW complexes, reducing the problem to the calculation of $Z/B$ where $B subseteq Z subseteq mathbb{Z}^n $. It is difficult enough for me sometimes if $B$ is complicated.



      For instance the isomorphism $mathbb Z oplus mathbb Z / left<(2,0),(-1,2)right> cong mathbb Z / 4 mathbb Z $ is not trivial at all.



      Is there a general algorithm to determine $Z/B$, as both of $Z$ and $B$ are represented as the subgroups generated by several elements of $mathbb Z^n $? Thanks.







      abstract-algebra homology-cohomology abelian-groups






      share|cite|improve this question















      share|cite|improve this question













      share|cite|improve this question




      share|cite|improve this question








      edited Jan 12 at 8:38









      user26857

      39.4k124183




      39.4k124183










      asked Jan 10 at 14:39









      DromedaDromeda

      373




      373






















          1 Answer
          1






          active

          oldest

          votes


















          3












          $begingroup$

          Yes. For instance, you can use Smith normal form to do this. This amounts to doing Gaussian elimination over the integers.



          https://en.wikipedia.org/wiki/Smith_normal_form



          In somewhat more detail, any subgroup of $mathbf{Z}^n$ can be thought of as the image of a $mathbf{Z}$-linear (that is, additive) map $mathbf{Z}^m to mathbf{Z}^n$ for some integer $m$, which in turn may be represented by a matrix $A$ with integer entries. Performing elementary row operations on $A$ amounts to gradually changing the chosen basis of the target $mathbf{Z}^n$, and performing elementary column operations on $A$ amounts to gradually changing the chosen basis of the domain $mathbf{Z}^m$. The relevant fact is therefore that you can use elementary row and column operations to reduce $A$ to a diagonal matrix of the form
          $$A=left(begin{matrix} a_1 & 0 & 0 & cdots \ 0 & a_2 & 0 & cdots \ 0 & 0 & a_3 & cdots \ vdots & vdots & vdots end{matrix} right)$$ in which $a_i$ divides $a_{i+1}$ for all $i$.



          This is a computationally effective form of the fundamental theorem of abelian groups, and shows that the cokernel of $A$ is isomorphic to $$mathrm{coker}(A) cong mathbf{Z}/a_1 mathbf{Z} oplus mathbf{Z}/a_2 mathbf{Z} oplus cdots.$$



          In your chosen example, the matrix $A$ is
          $$A=left(begin{matrix} -1 & 2 \ 2 & 0 end{matrix} right)$$ and by first doing the row operation replace row two by row two plus twice row one and then the column operation replace column two by column two plus twice column one reduces it to
          $$A=left(begin{matrix} -1 & 0 \ 0 & 4 end{matrix} right),$$ showing that the cokernel is $mathbf{Z}/4 mathbf{Z}$ as claimed.






          share|cite|improve this answer











          $endgroup$













            Your Answer





            StackExchange.ifUsing("editor", function () {
            return StackExchange.using("mathjaxEditing", function () {
            StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
            StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
            });
            });
            }, "mathjax-editing");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "69"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            noCode: true, onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3068709%2fis-there-an-algorithmic-way-to-compute-the-quotient-of-two-subgroups-of-mathbb%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            3












            $begingroup$

            Yes. For instance, you can use Smith normal form to do this. This amounts to doing Gaussian elimination over the integers.



            https://en.wikipedia.org/wiki/Smith_normal_form



            In somewhat more detail, any subgroup of $mathbf{Z}^n$ can be thought of as the image of a $mathbf{Z}$-linear (that is, additive) map $mathbf{Z}^m to mathbf{Z}^n$ for some integer $m$, which in turn may be represented by a matrix $A$ with integer entries. Performing elementary row operations on $A$ amounts to gradually changing the chosen basis of the target $mathbf{Z}^n$, and performing elementary column operations on $A$ amounts to gradually changing the chosen basis of the domain $mathbf{Z}^m$. The relevant fact is therefore that you can use elementary row and column operations to reduce $A$ to a diagonal matrix of the form
            $$A=left(begin{matrix} a_1 & 0 & 0 & cdots \ 0 & a_2 & 0 & cdots \ 0 & 0 & a_3 & cdots \ vdots & vdots & vdots end{matrix} right)$$ in which $a_i$ divides $a_{i+1}$ for all $i$.



            This is a computationally effective form of the fundamental theorem of abelian groups, and shows that the cokernel of $A$ is isomorphic to $$mathrm{coker}(A) cong mathbf{Z}/a_1 mathbf{Z} oplus mathbf{Z}/a_2 mathbf{Z} oplus cdots.$$



            In your chosen example, the matrix $A$ is
            $$A=left(begin{matrix} -1 & 2 \ 2 & 0 end{matrix} right)$$ and by first doing the row operation replace row two by row two plus twice row one and then the column operation replace column two by column two plus twice column one reduces it to
            $$A=left(begin{matrix} -1 & 0 \ 0 & 4 end{matrix} right),$$ showing that the cokernel is $mathbf{Z}/4 mathbf{Z}$ as claimed.






            share|cite|improve this answer











            $endgroup$


















              3












              $begingroup$

              Yes. For instance, you can use Smith normal form to do this. This amounts to doing Gaussian elimination over the integers.



              https://en.wikipedia.org/wiki/Smith_normal_form



              In somewhat more detail, any subgroup of $mathbf{Z}^n$ can be thought of as the image of a $mathbf{Z}$-linear (that is, additive) map $mathbf{Z}^m to mathbf{Z}^n$ for some integer $m$, which in turn may be represented by a matrix $A$ with integer entries. Performing elementary row operations on $A$ amounts to gradually changing the chosen basis of the target $mathbf{Z}^n$, and performing elementary column operations on $A$ amounts to gradually changing the chosen basis of the domain $mathbf{Z}^m$. The relevant fact is therefore that you can use elementary row and column operations to reduce $A$ to a diagonal matrix of the form
              $$A=left(begin{matrix} a_1 & 0 & 0 & cdots \ 0 & a_2 & 0 & cdots \ 0 & 0 & a_3 & cdots \ vdots & vdots & vdots end{matrix} right)$$ in which $a_i$ divides $a_{i+1}$ for all $i$.



              This is a computationally effective form of the fundamental theorem of abelian groups, and shows that the cokernel of $A$ is isomorphic to $$mathrm{coker}(A) cong mathbf{Z}/a_1 mathbf{Z} oplus mathbf{Z}/a_2 mathbf{Z} oplus cdots.$$



              In your chosen example, the matrix $A$ is
              $$A=left(begin{matrix} -1 & 2 \ 2 & 0 end{matrix} right)$$ and by first doing the row operation replace row two by row two plus twice row one and then the column operation replace column two by column two plus twice column one reduces it to
              $$A=left(begin{matrix} -1 & 0 \ 0 & 4 end{matrix} right),$$ showing that the cokernel is $mathbf{Z}/4 mathbf{Z}$ as claimed.






              share|cite|improve this answer











              $endgroup$
















                3












                3








                3





                $begingroup$

                Yes. For instance, you can use Smith normal form to do this. This amounts to doing Gaussian elimination over the integers.



                https://en.wikipedia.org/wiki/Smith_normal_form



                In somewhat more detail, any subgroup of $mathbf{Z}^n$ can be thought of as the image of a $mathbf{Z}$-linear (that is, additive) map $mathbf{Z}^m to mathbf{Z}^n$ for some integer $m$, which in turn may be represented by a matrix $A$ with integer entries. Performing elementary row operations on $A$ amounts to gradually changing the chosen basis of the target $mathbf{Z}^n$, and performing elementary column operations on $A$ amounts to gradually changing the chosen basis of the domain $mathbf{Z}^m$. The relevant fact is therefore that you can use elementary row and column operations to reduce $A$ to a diagonal matrix of the form
                $$A=left(begin{matrix} a_1 & 0 & 0 & cdots \ 0 & a_2 & 0 & cdots \ 0 & 0 & a_3 & cdots \ vdots & vdots & vdots end{matrix} right)$$ in which $a_i$ divides $a_{i+1}$ for all $i$.



                This is a computationally effective form of the fundamental theorem of abelian groups, and shows that the cokernel of $A$ is isomorphic to $$mathrm{coker}(A) cong mathbf{Z}/a_1 mathbf{Z} oplus mathbf{Z}/a_2 mathbf{Z} oplus cdots.$$



                In your chosen example, the matrix $A$ is
                $$A=left(begin{matrix} -1 & 2 \ 2 & 0 end{matrix} right)$$ and by first doing the row operation replace row two by row two plus twice row one and then the column operation replace column two by column two plus twice column one reduces it to
                $$A=left(begin{matrix} -1 & 0 \ 0 & 4 end{matrix} right),$$ showing that the cokernel is $mathbf{Z}/4 mathbf{Z}$ as claimed.






                share|cite|improve this answer











                $endgroup$



                Yes. For instance, you can use Smith normal form to do this. This amounts to doing Gaussian elimination over the integers.



                https://en.wikipedia.org/wiki/Smith_normal_form



                In somewhat more detail, any subgroup of $mathbf{Z}^n$ can be thought of as the image of a $mathbf{Z}$-linear (that is, additive) map $mathbf{Z}^m to mathbf{Z}^n$ for some integer $m$, which in turn may be represented by a matrix $A$ with integer entries. Performing elementary row operations on $A$ amounts to gradually changing the chosen basis of the target $mathbf{Z}^n$, and performing elementary column operations on $A$ amounts to gradually changing the chosen basis of the domain $mathbf{Z}^m$. The relevant fact is therefore that you can use elementary row and column operations to reduce $A$ to a diagonal matrix of the form
                $$A=left(begin{matrix} a_1 & 0 & 0 & cdots \ 0 & a_2 & 0 & cdots \ 0 & 0 & a_3 & cdots \ vdots & vdots & vdots end{matrix} right)$$ in which $a_i$ divides $a_{i+1}$ for all $i$.



                This is a computationally effective form of the fundamental theorem of abelian groups, and shows that the cokernel of $A$ is isomorphic to $$mathrm{coker}(A) cong mathbf{Z}/a_1 mathbf{Z} oplus mathbf{Z}/a_2 mathbf{Z} oplus cdots.$$



                In your chosen example, the matrix $A$ is
                $$A=left(begin{matrix} -1 & 2 \ 2 & 0 end{matrix} right)$$ and by first doing the row operation replace row two by row two plus twice row one and then the column operation replace column two by column two plus twice column one reduces it to
                $$A=left(begin{matrix} -1 & 0 \ 0 & 4 end{matrix} right),$$ showing that the cokernel is $mathbf{Z}/4 mathbf{Z}$ as claimed.







                share|cite|improve this answer














                share|cite|improve this answer



                share|cite|improve this answer








                edited Jan 10 at 14:57

























                answered Jan 10 at 14:51









                StephenStephen

                10.5k12339




                10.5k12339






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Mathematics Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    Use MathJax to format equations. MathJax reference.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3068709%2fis-there-an-algorithmic-way-to-compute-the-quotient-of-two-subgroups-of-mathbb%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    MongoDB - Not Authorized To Execute Command

                    How to fix TextFormField cause rebuild widget in Flutter

                    Npm cannot find a required file even through it is in the searched directory