# planar.py # Planar intertwiners between the tensor squares of the fundamental representation of the # quantum isometry group of the dual of a free product of cyclic groups # Gamma = Z_{s_1} * ... * Z_{s_r}, with s_i in {2,3,...} or 0 (meaning infinite order). # With V = span of the generators, we construct the star operators on V x V, # e_x e_y -> sum_{zt=xy} f(x,y,z) e_z e_t, # f(x,y,z) = sum_v N_a(v) N_b(x^{-1}v) N_c((xy)^{-1}v) N_d(z^{-1}v), # where N_k(g) is the number of words of length k representing g. These are intertwiners. # We then check if the projection onto the span of the pairs of generators belonging to # the same free factor belongs to the algebra generated by these operators. import itertools, sys import numpy as np def generators(orders): S = [] for i, s in enumerate(orders): S.append((i, 1)) if s != 2: S.append((i, -1)) return S def times(orders, g, x): i, e = x s = orders[i] g = list(g) if g and g[-1][0] == i: f = g[-1][1] + e if s: f %= s g.pop() if f: g.append((i, f)) else: g.append((i, e % s if s else e)) return tuple(g) def product(orders, g, h): for (i, e) in h: g = times(orders, g, (i, e)) return g def inverse(orders, g): return tuple((i, (-e) % orders[i] if orders[i] else -e) for (i, e) in reversed(g)) def walk_counts(orders, K): S = generators(orders) N = [{(): 1}] for _ in range(K): new = {} for g, c in N[-1].items(): for x in S: h = times(orders, g, x) new[h] = new.get(h, 0) + c N.append(new) return N def star_operators(orders, K): S = generators(orders) el = [times(orders, (), x) for x in S] n = len(S) N = walk_counts(orders, K) pairs = [(i, j) for i in range(n) for j in range(n)] prod = {(i, j): product(orders, el[i], el[j]) for (i, j) in pairs} ops = [] for a, b, c, d in itertools.product(range(K + 1), repeat=4): if a + b > K or a + c > K or a + d > K: continue M = np.zeros((n * n, n * n)) for (i, j) in pairs: xi = inverse(orders, el[i]); xyi = inverse(orders, prod[(i, j)]) for (k, l) in pairs: if prod[(k, l)] != prod[(i, j)]: continue zi = inverse(orders, el[k]) f = 0 for v, cv in N[a].items(): t = N[b].get(product(orders, xi, v), 0) if not t: continue t2 = N[c].get(product(orders, xyi, v), 0) if not t2: continue t3 = N[d].get(product(orders, zi, v), 0) f += cv * t * t2 * t3 M[k * n + l, i * n + j] = f if M.any(): ops.append(M) return S, ops def in_generated_algebra(ops, P): # P belongs to the algebra generated by ops (a *-algebra with unit) iff it commutes with the commutant m = P.shape[0] vecs = np.array([M.flatten() for M in ops] + [M.T.flatten() for M in ops]) u, s, vt = np.linalg.svd(vecs, full_matrices=False) basis = [vt[i].reshape(m, m) for i in range(len(s)) if s[i] > 1e-8 * s[0]] I = np.eye(m) rows = [np.kron(I, B) - np.kron(B.T, I) for B in basis] # vec(BX - XB), column-stacking convention A = np.vstack(rows) u, s, vt = np.linalg.svd(A) null = [vt[i].reshape(m, m, order='F') for i in range(len(s)) if s[i] < 1e-8 * s[0]] err = max([np.abs(P @ X - X @ P).max() for X in null] + [0]) return err < 1e-6, len(basis), len(null) def check(orders, K): S, ops = star_operators(orders, K) n = len(S) P = np.zeros((n * n, n * n)) for i in range(n): for j in range(n): if S[i][0] == S[j][0]: P[i * n + j, i * n + j] = 1 ok, dim, com = in_generated_algebra(ops, P) name = ' * '.join('Z' if s == 0 else 'Z_%d' % s for s in orders) print(name, ': walks of length <=', K, ', span of the operators', dim, ', commutant', com, ', projection in the algebra:', ok) sys.stdout.flush() return ok if __name__ == '__main__': for orders, K in [([2, 2], 4), ([2, 2, 2], 4), ([3, 3], 4), ([5, 5], 5), ([6, 6], 6), ([4, 4], 4), ([4, 4], 6), ([4, 4, 4], 4), ([0, 0], 4), ([0, 0], 6), ([2, 0], 4)]: check(orders, K)