In Gap System,
1.
g:=Group( [[1,1],[0,1]] );;
2.
g:=[[1,1],[0,1]];;
As I know Group is generally a permutation group, however, finite group is also a group then it makes me confusing. As I know, finite group is a matrix, how can it be a group or permutation group?
[[1,1],[0,1]]is typically interpreted as a $2 \times 2$ matrix in GAP. To illustrate, matrix multiplication*is defined:[[1,1],[0,1]]*[[1,1],[0,1]]returns[ [ 1, 2 ], [ 0, 1 ] ]. This object can also be treated as a list of lists.Group( [[1,1],[0,1]] )is the (infinite) group generated by this matrix under multiplication. The size of the group is given bySize(g)which returnsinfinity. In this case,[[1,1],[0,1]]is a generator of the group.All groups are "structurally equivalent" to some permutation group (via Cayley's Theorem), but this is up to isomorphism; groups can be defined with arbitrary underlying sets (that may not involve permutations). We tend to prefer to choose easy-to-work-with sets, such as sets of integers, matrices or permutations.
If by "finite group is a matrix" you mean finite groups have finite Cayley tables, then this is true. Once you have an isomorphism between the group and a permutation group, you can relabel the elements of the Cayley table as permutations. It's not usually a useful thing to do, however.