Minor point (well in this case at least) but you have an off by one error. Your G1 is G0.
Here is how it is defined in terms of basis vectors. https://people.eecs.berkeley.edu/~jfc/cs184f98/lec19/lec19.h...
Here is how it is defined in terms of basis vectors. https://people.eecs.berkeley.edu/~jfc/cs184f98/lec19/lec19.h...