Infinite Groups in SageMath(or in GAP)

96 Views Asked by At

I am once again asking more software-related questions, but I am happy to learn a general answer as well. I'm curious about how the is_infinite function works in SageMath (or in GAP). Does it simply check whether we input something that is already known to be infinite or not? Or does it print "infinite" after a specific number of elements? Or does it actually check if the group is infinite? I assume it's not a numerical answer to check if the group is infinite or not since the program can't count until infinity. So, I'm wondering what the method is for checking if a group is infinite or not (in SageMath and in general). Thank you for your answer.