Rank of an integer matrix modulo a prime












1












$begingroup$


Suppose I have a matrix A with integer elements and a matrix A mod p, where p is a prime number. In what circumstances rank(A)=rank(A mod p)?



Based on my understanding,



1) when det(A) is nonzero but not divisible by p, rank(A)=rank(A mod p)
2) when det(A) is zero, rank(A)=rank(A mod p)



If this is correct, how to prove it? Where can I find the relevant references?



Recently I am developing an algorithm where an integer matrix is computed, using modular arithmetic (mod p) can control the growth of integers in the matrix and thus improve the efficiency of my algorithm. The success of the algorithm requires rank of the matrix with mod does not change from the rank of the original matrix. This is where I will apply the problem. If someone can help me, I will really appreciate it.










share|cite|improve this question









$endgroup$












  • $begingroup$
    The matrix with rows $(2,0)$ and $(0,0)$ has rank $1$ over the integers, rank $0$ mod $2$, so the second assertion is wrong.
    $endgroup$
    – Ethan Bolker
    Jan 9 at 17:33










  • $begingroup$
    I am comparing the determinants. The matrix with rows (2,0) and (0,0) has rank 1 so it is not full rank; Its determinant is zero which also shows it is not full rank. Now if calculate its determinant mod 2, it is zero, which means det(A)=det(A mod 2)=0. The results coincides.
    $endgroup$
    – Xiaodong Shi
    Jan 10 at 17:27










  • $begingroup$
    Your question says "when det $A$ is $0$, rank $A$ = rank $A pmod{p}$". My example shows that's not true. You never mention "full rank". Your last paragraph doesn't either, so it suggests that your algorithm will fail. The rank is not preserved.
    $endgroup$
    – Ethan Bolker
    Jan 10 at 20:55
















1












$begingroup$


Suppose I have a matrix A with integer elements and a matrix A mod p, where p is a prime number. In what circumstances rank(A)=rank(A mod p)?



Based on my understanding,



1) when det(A) is nonzero but not divisible by p, rank(A)=rank(A mod p)
2) when det(A) is zero, rank(A)=rank(A mod p)



If this is correct, how to prove it? Where can I find the relevant references?



Recently I am developing an algorithm where an integer matrix is computed, using modular arithmetic (mod p) can control the growth of integers in the matrix and thus improve the efficiency of my algorithm. The success of the algorithm requires rank of the matrix with mod does not change from the rank of the original matrix. This is where I will apply the problem. If someone can help me, I will really appreciate it.










share|cite|improve this question









$endgroup$












  • $begingroup$
    The matrix with rows $(2,0)$ and $(0,0)$ has rank $1$ over the integers, rank $0$ mod $2$, so the second assertion is wrong.
    $endgroup$
    – Ethan Bolker
    Jan 9 at 17:33










  • $begingroup$
    I am comparing the determinants. The matrix with rows (2,0) and (0,0) has rank 1 so it is not full rank; Its determinant is zero which also shows it is not full rank. Now if calculate its determinant mod 2, it is zero, which means det(A)=det(A mod 2)=0. The results coincides.
    $endgroup$
    – Xiaodong Shi
    Jan 10 at 17:27










  • $begingroup$
    Your question says "when det $A$ is $0$, rank $A$ = rank $A pmod{p}$". My example shows that's not true. You never mention "full rank". Your last paragraph doesn't either, so it suggests that your algorithm will fail. The rank is not preserved.
    $endgroup$
    – Ethan Bolker
    Jan 10 at 20:55














1












1








1





$begingroup$


Suppose I have a matrix A with integer elements and a matrix A mod p, where p is a prime number. In what circumstances rank(A)=rank(A mod p)?



Based on my understanding,



1) when det(A) is nonzero but not divisible by p, rank(A)=rank(A mod p)
2) when det(A) is zero, rank(A)=rank(A mod p)



If this is correct, how to prove it? Where can I find the relevant references?



Recently I am developing an algorithm where an integer matrix is computed, using modular arithmetic (mod p) can control the growth of integers in the matrix and thus improve the efficiency of my algorithm. The success of the algorithm requires rank of the matrix with mod does not change from the rank of the original matrix. This is where I will apply the problem. If someone can help me, I will really appreciate it.










share|cite|improve this question









$endgroup$




Suppose I have a matrix A with integer elements and a matrix A mod p, where p is a prime number. In what circumstances rank(A)=rank(A mod p)?



Based on my understanding,



1) when det(A) is nonzero but not divisible by p, rank(A)=rank(A mod p)
2) when det(A) is zero, rank(A)=rank(A mod p)



If this is correct, how to prove it? Where can I find the relevant references?



Recently I am developing an algorithm where an integer matrix is computed, using modular arithmetic (mod p) can control the growth of integers in the matrix and thus improve the efficiency of my algorithm. The success of the algorithm requires rank of the matrix with mod does not change from the rank of the original matrix. This is where I will apply the problem. If someone can help me, I will really appreciate it.







modular-arithmetic matrix-rank






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Jan 9 at 17:26









Xiaodong ShiXiaodong Shi

61




61












  • $begingroup$
    The matrix with rows $(2,0)$ and $(0,0)$ has rank $1$ over the integers, rank $0$ mod $2$, so the second assertion is wrong.
    $endgroup$
    – Ethan Bolker
    Jan 9 at 17:33










  • $begingroup$
    I am comparing the determinants. The matrix with rows (2,0) and (0,0) has rank 1 so it is not full rank; Its determinant is zero which also shows it is not full rank. Now if calculate its determinant mod 2, it is zero, which means det(A)=det(A mod 2)=0. The results coincides.
    $endgroup$
    – Xiaodong Shi
    Jan 10 at 17:27










  • $begingroup$
    Your question says "when det $A$ is $0$, rank $A$ = rank $A pmod{p}$". My example shows that's not true. You never mention "full rank". Your last paragraph doesn't either, so it suggests that your algorithm will fail. The rank is not preserved.
    $endgroup$
    – Ethan Bolker
    Jan 10 at 20:55


















  • $begingroup$
    The matrix with rows $(2,0)$ and $(0,0)$ has rank $1$ over the integers, rank $0$ mod $2$, so the second assertion is wrong.
    $endgroup$
    – Ethan Bolker
    Jan 9 at 17:33










  • $begingroup$
    I am comparing the determinants. The matrix with rows (2,0) and (0,0) has rank 1 so it is not full rank; Its determinant is zero which also shows it is not full rank. Now if calculate its determinant mod 2, it is zero, which means det(A)=det(A mod 2)=0. The results coincides.
    $endgroup$
    – Xiaodong Shi
    Jan 10 at 17:27










  • $begingroup$
    Your question says "when det $A$ is $0$, rank $A$ = rank $A pmod{p}$". My example shows that's not true. You never mention "full rank". Your last paragraph doesn't either, so it suggests that your algorithm will fail. The rank is not preserved.
    $endgroup$
    – Ethan Bolker
    Jan 10 at 20:55
















$begingroup$
The matrix with rows $(2,0)$ and $(0,0)$ has rank $1$ over the integers, rank $0$ mod $2$, so the second assertion is wrong.
$endgroup$
– Ethan Bolker
Jan 9 at 17:33




$begingroup$
The matrix with rows $(2,0)$ and $(0,0)$ has rank $1$ over the integers, rank $0$ mod $2$, so the second assertion is wrong.
$endgroup$
– Ethan Bolker
Jan 9 at 17:33












$begingroup$
I am comparing the determinants. The matrix with rows (2,0) and (0,0) has rank 1 so it is not full rank; Its determinant is zero which also shows it is not full rank. Now if calculate its determinant mod 2, it is zero, which means det(A)=det(A mod 2)=0. The results coincides.
$endgroup$
– Xiaodong Shi
Jan 10 at 17:27




$begingroup$
I am comparing the determinants. The matrix with rows (2,0) and (0,0) has rank 1 so it is not full rank; Its determinant is zero which also shows it is not full rank. Now if calculate its determinant mod 2, it is zero, which means det(A)=det(A mod 2)=0. The results coincides.
$endgroup$
– Xiaodong Shi
Jan 10 at 17:27












$begingroup$
Your question says "when det $A$ is $0$, rank $A$ = rank $A pmod{p}$". My example shows that's not true. You never mention "full rank". Your last paragraph doesn't either, so it suggests that your algorithm will fail. The rank is not preserved.
$endgroup$
– Ethan Bolker
Jan 10 at 20:55




$begingroup$
Your question says "when det $A$ is $0$, rank $A$ = rank $A pmod{p}$". My example shows that's not true. You never mention "full rank". Your last paragraph doesn't either, so it suggests that your algorithm will fail. The rank is not preserved.
$endgroup$
– Ethan Bolker
Jan 10 at 20:55










0






active

oldest

votes











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%2f3067738%2frank-of-an-integer-matrix-modulo-a-prime%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















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%2f3067738%2frank-of-an-integer-matrix-modulo-a-prime%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