I guess you are using a too old version of SageMath (I do not remember when this change happend). You could replace `G([1,1,0,1])` by `[[1,1],[0,1]]` (and the same with the other matrices).
↧