Quiver gauge theories and integrable lattice models

We discuss connections between certain classes of supersymmetric quiver gauge theories and integrable lattice models from the point of view of topological quantum field theories (TQFTs). The relevant classes include 4d N=1\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$ \mathcal{N}=1 $$\end{document} theories known as brane box and brane tilling models, 3d N=2\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$ \mathcal{N}=2 $$\end{document} and 2d N=22\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$ \mathcal{N}=\left(2,2\right) $$\end{document} theories obtained from them by compactification, and 2d N=02\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$ \mathcal{N}=\left(0,2\right) $$\end{document} theories closely related to these theories. We argue that their supersymmetric indices carry structures of TQFTs equipped with line operators, and as a consequence, are equal to the partition functions of lattice models. The integrability of these models follows from the existence of extra dimension in the TQFTs, which emerges after the theories are embedded in M-theory. The Yang-Baxter equation expresses the invariance of supersymmetric indices under Seiberg duality and its lower-dimensional analogs.


Introduction
The present work is motivated by an intriguing connection discovered in the past few years between supersymmetric quiver gauge theories and integrable lattice models in statistical mechanics. In [1,2], Bazhanov and Sergeev introduced an integrable spin model on a planar lattice, which generalizes many of previously known integrable lattice models such as the Kashiwara-Miwa [3] and chiral Potts [4][5][6] models. Soon after the first paper by Bazhanov and Sergeev appeared, Spiridonov [7] gave an interpretation of their model in terms of N = 1 quiver gauge theories in four dimensions. The relation to gauge theory was further elucidated by Yamazaki [8,9], who realized that the relevant quiver gauge theories arise naturally from a particular class of brane configurations in string theory, called brane tilings [10]. From the gauge theory viewpoint, the lattice on which the spin model is defined is the quiver diagram, the partition function is the supersymmetric index, and the

JHEP10(2015)065
Yang-Baxter equation that guarantees the integrability of the model is a special instance of Seiberg duality.
This discovery, while quite remarkable, leaves us with a series of questions: Why are the supersymmetric indices of these theories captured by a lattice model? Why is this model integrable? Are there structures of integrable lattice models hidden in other theories?
In this paper we answer these questions, combining ideas from two equally stimulating connections uncovered in recent years. Of these connections, one lies between a certain class of quiver gauge theories and topological quantum field theories (TQFTs), whereas the other relates TQFTs and integrable lattice models. Our goal is to connect quiver gauge theories and integrable lattice models, and TQFTs provide a bridge between the two elements.
The first connection in question arises from the M5-brane construction of 4d N = 2 theories [11][12][13]. Consider a stack of M5-branes wrapped on S 1 × S 3 × Σ, where Σ is a compact Riemann surface. In addition, we introduce M5-branes that intersect with these branes along submanifolds of the form S 1 × S 3 × {p i }, with p i being points on Σ. If Σ is small compared to the S 1 and S 3 , this brane system is described at low energies by an N = 2 theory on S 1 × S 3 . Often this is a quiver gauge theory. The path integral on the geometry S 1 × S 3 (after analytic continuation to Euclidean spacetime) computes the supersymmetric index of the theory. The most important property of this quantity is that it is invariant under continuous changes of the parameters of the theory. Since the geometry of Σ encodes such parameters, it follows that the supersymmetric index is a topological invariant of Σ. In fact, it is equal to a correlation function i O i (p i ) in a TQFT on Σ, where O i is a local operator representing the M5-brane inserted at p i [14]. If we consider a protected quantity different from the index on S 3 (such as the lens space index [15]), then we get a different TQFT.
The second connection refers to a general construction of integrable lattice models from TQFTs of a special kind, due to Costello [16,17]. Given a 2d TQFT equipped with line operators, we can place it on a torus T 2 and wrap line operators around various 1-cycles that form a lattice. The topological invariance of the theory implies that the correlation function for this lattice of line operators coincides with the partition function of a statistical mechanics model defined on the same lattice. Under this correspondence, the Yang-Baxter equation translates to the statement that the correlator remains the same when a line operator is moved past the intersection of two other line operators. The structure of a TQFT itself is not strong enough to ensure this property since the move is not topologically trivial; the system may undergo a phase transition as the moved line hits and crosses the intersection point. If, however, the theory has "extra dimensions" along which the line can be shifted, the collision can be avoided and hence the Yang-Baxter equation holds. What is more, the correlator then carries continuous parameters, namely the positions of the line operators in the extra dimensions. In the context of integrable models, continuous parameters on which the Boltzmann weight depends are called spectral parameters, and their presence is essential for integrability. Thus, a 2d TQFT with extra dimensions produces from line operators a solution of the Yang-Baxter equation with spectral parameter.

JHEP10(2015)065
We wish to understand the connection between brane tilings and integrable lattice models in light of these independent, though apparently related, developments in the relevant areas. To this end, it proves helpful to first study the case of the brane box construction [18], which is a precursor of the brane tiling construction and conceptually simpler.
The brane box construction is similar to the M5-brane construction described above. In this construction, we start with a stack of N D5-branes on S 1 × S 3 × T 2 , and put NS5branes on submanifolds of the form S 1 × S 3 × C α . Here C α are 1-cycles of T 2 , making up a lattice. At low energies, this brane configuration realizes a 4d N = 1 quiver gauge theory, which we refer to as a "brane box model," placed on S 1 ×S 3 . (Actually, T 2 can be replaced by any Riemann surface without breaking the N = 1 supersymmetry.) Just as we did for the M5-brane construction, we can relate this theory to a 2d TQFT by considering its supersymmetric index. Adapted to the present situation, the argument used there shows that the supersymmetric index is given by a correlation function α L α (C α ) in a TQFT on T 2 , where L α (C α ) is a line operator created by the NS5-brane wrapped around C α .
According to the construction of lattice models from TQFTs, this correlator coincides with the partition function of a lattice model. To establish the integrability of the model, we need extra dimensions along which line operators can move freely. An extra dimension indeed emerges as 11th dimension if we embed the brane system into M-theory by string dualities. Hence, we conclude that the supersymmetric index of a brane box model is equal to the partition function of an integrable lattice model. It turns out that the Yang-Baxter equation reduces to Seiberg duality for SU(N ) SQCD with 2N flavors.
Once the connection between the brane box construction and integrable lattice models is understood, the case of brane tilings is not so difficult. In this case we consider deformations of brane box configurations, in which we let the NS5-branes combine with the D5-branes over ribbon-shaped neighborhoods of the 1-cycles C α in T 2 . Such a deformed brane configuration still yields a 4d N = 1 quiver gauge theory, provided that the deformation meets a certain criterion. By the same reasoning as above, we deduce that the supersymmetric index of this theory is given by the correlation function of "thickened" line operators representing the ribbon neighborhoods, and equal to the partition function of an integrable lattice model. In this way the Bazhanov-Sergeev model arises from brane tilings. Again, the Yang-Baxter equation boils down to Seiberg duality, though this time the equation involves a sequence of four basic duality transformations.
So we have answers to the first two of our questions. The supersymmetric indices of theories constructed from brane tilings are captured by a lattice model since they are given by correlation functions of line operators in a TQFT, which in turn is a consequence of the nature of the brane construction and the fact that the index is a protected quantity. Furthermore, the integrability of this lattice model is guaranteed by the hidden extra dimension which emerges after the brane system is embedded in M-theory.
In sections 2-4, we discuss in greater detail the connections summarized here among the brane box and brane tiling constructions, TQFTs with extra dimensions, and integrable lattice models. After reviewing in section 2 the construction of integrable lattice models from TQFTs with extra dimensions, we explain in section 3 how it can be applied to the supersymmetric indices of brane box models. We identify the associated integrable lattice JHEP10(2015)065 model, and show that the Yang-Baxter equation for this model takes the form of Seiberg duality. In section 4, we treat the case of brane tiling models.
Sections 5 and 6 are devoted to answering our third question, that is, finding more examples of quiver gauge theories whose supersymmetric indices are captured by integrable lattice models.
One way to produce more quiver gauge theories is to apply T-duality to the brane configurations discussed above. In this manner we get 3d N = 2 and 2d N = (2, 2) theories. Being related to the 4d parents by T-duality, the supersymmetric indices of these theories are also given by the partition functions of some integrable lattice models. In section 5, we will see that for these theories, the Yang-Baxter equation follows from lowerdimensional analogs of Seiberg duality, namely a variant of Aharony duality [19] in the 3d case and Hori-Tong duality [20] in the 2d case.
Perhaps more unexpected is that there are 2d N = (0, 2) quiver gauge theories whose supersymmetric indices, or elliptic genera, exhibit integrability. They have half as many supercharges as the theories mentioned so far, and cannot be obtained by simple dimensional reduction from three or four dimensions.
In section 6, we discuss three classes of such N = (0, 2) theories. Two of them are N = (0, 2) counterparts of the classes of N = (2, 2) theories considered in section 5. The Yang-Baxter equation for these classes identifies two theories related by Seiberg-like triality, discovered by Gadde, Gukov and Putrov [21]. The third class consists of N = (0, 2) theories constructed from brane cube configurations [22], and actually gives rise to a 3d lattice model. The integrability condition for this model is that its Boltzmann weight satisfies Zamolodchikov's tetrahedron equation [23,24], which is the 3d analog of the Yang-Baxter equation. Our analysis in this section will be somewhat incomplete, unfortunately. For the first two classes, we will demonstrate the integrability of the associated lattice models, but not identify the underlying brane constructions or TQFT structures whose existence is strongly suggested by the integrability. For the third class, on the other hand, we will describe the brane construction and associated lattice model, but not determine the corresponding solution of the tetrahedron equation. 1 Having established the structures of integrable lattice models in several classes of quiver gauge theories, we should now ask what we can do with these structures. It is likely that knowledge accumulated in the area of integrable models provides new insights into these theories or quiver gauge theories in general. Conversely, tools from the gauge theory side, such as localization and 1/N expansion, may help further elucidate the physics of integrable models.
Given the generality of the TQFT construction of integrable lattice models, we also expect that there are many more applications than those discussed in this paper. Below we describe just a few possibilities.
The NS5-branes in a brane box configuration can be mapped by dualities to either M5or M2-branes intersecting with a stack of M5-branes. These branes represent codimension-1 A different solution of the tetrahedron equation has been found recently by Gadde and Yamazaki [25].
Their solution is based on N = (0, 2) SQCD [21] with all flavor nodes having equal ranks. It remains to be seen whether this one may be understood from the perspective adopted in this paper.

JHEP10(2015)065
2 and -4 defects in 6d N = (2, 0) superconformal field theory. From the 4d point of view, they are domain walls and line operators in an N = 2 theory. 2 This observation suggests that integrability plays a key role in the physics of defects in the 6d theory and 4d N = 2 theories, and the ideas contained in this paper may be useful for understanding it. In this regard, we point out that the Yang-Baxter equation has made an unexpected appearance in studies of the moduli spaces of N = 2 theories compactified on S 1 [26,27].
Another important appearance of integrability is found in the Bethe/gauge correspondence [28][29][30] between 2d N = (2, 2) theories and quantum integrable systems. It may be possible to connect that story to ours, by studying the supersymmetric vacua of N = (2, 2) theories associated with brane box and brane tiling configurations.
Lastly, integrability features prominently in the AdS/CFT correspondence, and the constructions discussed in the present work may shed light on this aspect; after all, the developments of brane box and brane tiling techniques were motivated by the AdS/CFT correspondence. In fact, brane box models were studied at one-loop level in the planar limit in [31], and it was shown that at this level, their dilatation operator can be identified with the Hamiltonian of an integrable spin chain. This fact raises the hope that the integrability in the AdS/CFT correspondence may be understood in a framework that extends the one presented in this paper.

Integrable lattice models from TQFTs with extra dimensions
As explained in the introduction, the construction of integrable lattice models using line operators in TQFTs constitutes an essential ingredient for our argument. So let us begin by reviewing this construction. Our discussion mainly follows Costello's paper [16], to which we refer the reader for more details.

Vertex models from TQFTs
Consider a 2d TQFT equipped with a family of line operators parametrized by some continuous set, say R or C. We denote by L r (C) a line operator with parameter r, supported on an oriented closed curve C. Let us place this TQFT on a torus T 2 , and choose 1-cycles A 1 , . . . , A m , B 1 , . . . , B n that form an m × n lattice on T 2 . The case with (m, n) = (2, 3) is illustrated in figure 1. We are interested in the correlation function of line operators wrapped around these cycles. We compute this correlation function by breaking up the torus into smaller rectangular pieces, as shown with dotted lines in figure 1. The idea is that we first perform the path integral on each of these pieces, and then glue the results together to reconstruct the path integral on T 2 . Each piece in this decomposition is, topologically, a square with two line operators crossing in the middle: r s . (2.2) Using the topological invariance of the theory, we can deform it as r s .

(2.3)
Let V r be the space of states on a finite interval intersected by L r . Intuitively, V r is the Hilbert space of an open string with a particle attached whose worldline is the line operator L r . In this language, the deformed picture shows an initial state of two open strings in V r ⊗ V s evolving into a final state in V s ⊗ V r that results from interaction in the middle. The original picture may be regarded as a particular case where the curved boundaries are shrunk to points. Thus, the path integral on the square produces a linear map We callŘ the R-matrix of the TQFT with line operators.
Choosing a basis {e r,i } for V r for all r, we can representŘ by its matrix elements. The matrix elementŘ j 2 i 2 i 1 j 1 (r, s) is the scattering amplitude for a process in which the initial state e r,i 1 ⊗ e s,j 1 ends up in the final state e s,j 2 ⊗ e r,i 2 . We represent it pictorially aš . (2.5)

JHEP10(2015)065
Then, the correlation function (2.1) is given by the formula with the periodic boundary conditions i α,n+1 = i α,1 and j β,m+1 = j β,1 . The right-hand side is what we get by gluing a collection of pieces like the picture (2.2) to reconstruct the line operators wrapped on the torus. By representing the R-matrix as above, we are treating the open strings as if their physical degrees of freedom are carried solely by the particles attached to them, or equivalently, by the edges of the lattice. In words, the formula (2.6) instructs us to do the following. First, choose a state on every edge of the lattice. Next, compute the probability amplitude for this configuration of states by multiplying the corresponding R-matrix elements. Finally, sum over all possible such configurations to find the answer.
This procedure is, in fact, precisely how the partition function of a vertex model in statistical mechanics is defined. In a vertex model, state variables are assigned to the edges of a lattice, and the interaction takes place at the vertices. The total energy E of the system is the sum of interaction energies at the vertices, so the Boltzmann weight e −βE factorizes into weight factors associated to the vertices. These factors are matrix elements ofŘ. In this context, r is called the spectral parameter of the model.
In conclusion, we have found that the correlation function (2.1) for a lattice of line operators in a 2d TQFT coincides with the partition function of a vertex model defined on the same lattice, with the line operator parameter playing the role of a spectral parameter.

Integrability and extra dimensions
Let us fix the parameters {s β } in the lattice of line operators under consideration. Viewing the vertical direction of the torus as the time direction, we define the Hilbert space of the vertex model to be the tensor product 3 Furthermore, we introduce the row-to-row transfer matrix T (r) = Tr Vr Ř (r, s 1 ) • Vr · · · • VrŘ (r, s n ) . (2.8)

JHEP10(2015)065
It is an endomorphism of H, with matrix elements T j 1,2 ,...,j n,2 (2.9) In terms of the transfer matrix, the partition function (2.6) is written as T j 1,α+1 ,...,j n,α+1 j 1,α ,...,jn,α (r α ). (2.10) In a TQFT, time evolution is trivial unless the state hits some operator at some point in time. We may think of T (r) as the time evolution operator induced by L r .
We say that the vertex model on the lattice of line operators is integrable if T (r) is analytic in r and [T (r), T (r )] = 0 (2.11) for all r, r . The rationale for this terminology is that by expanding T (r) in powers of r, we get a tower of operators that commute with one another and with the time evolution operator.
A sufficient condition for integrability is that the R-matrix has the following two properties. The first is thatŘ(r, s) is an isomorphism for r = s, with the inverse beingŘ(s, r): R(r, s)Ř(s, r) = 1. (2.12) The second is thatŘ satisfies the Yang-Baxter equation: R(s, t)Ř(r, t)Ř(r, s) =Ř(r, s)Ř(r, t)Ř(s, t). (2.13) Each factor on the two sides of the equation is regarded as an operator on a tensor product of V r , V s and V t . For example,Ř(r, t) on the left-hand side is a map from In the TQFT language, the identity (2.12) means that two tangled line operators can be straightened out: (2.14)

JHEP10(2015)065
The Yang-Baxter equation, on the other hand, expresses invariance under moving a line operator past the intersection of two other line operators: To see that these properties imply the commutativity of transfer matrices, consider the following move of line operators: Taking the trace over V r ⊗ V r of both sides, and using the identity (2.14) and the cyclic property of the trace, we find that the left-and right-hand sides become T (r)T (r ) and T (r )T (r), respectively. In general, a 2d TQFT does not have the above properties. Physics may change discontinuously under the relevant moves due to phase transitions, as the topology of the line operators does not remain the same. Imagine, however, that there are "extra dimensions" hidden in the above pictures. For instance, the direction perpendicular to the page may provide one. The line operators can then sit at different points in the extra dimensions. If so, these moves are topologically trivial and hence the R-matrix satisfies the desired properties. An argument of this sort is familiar from studies of knot invariants, which may be approached either from the perspective of 3d TQFTs or lattice models [32,33].
The above observation motivates us to introduce the notion of extra dimensions to TQFTs. Consider a D-dimensional quantum field theory formulated on Σ × M , where Σ is any d-manifold and M is a fixed (D − d)-manifold. We say that the theory is a d-dimensional TQFT with extra dimensions if it is topological on Σ. 4 We refer to M as the internal space of the theory. This definition is very much in the same spirit as the notion of a 2d conformal field theory "valued in 4d quantum field theories" [47] developed in connection to the 6d construction of 4d N = 2 theories of class S [12,13]. In that case, they are constructed from supersymmetric theories by topological twisting along Σ. 2d examples are Costello's theory mentioned below, 4d N = 2 superconformal gauge theories with M being any Riemann surface [34], 5d N = 2 super Yang-Mills theory with M = S 3 [35], and 6d N = (2, 0) superconformal field theory with M = S 1 ×S 3 [14]. 3d examples include 5d N = 2 super Yang-Mills theory with M = R 2 [36,37] and S 2 [38][39][40], 6d N = (2, 0) theory with M = S 1 ×S 2 [41], S 3 [42], and more general lens spaces L(p, q) [43]. 4d examples are 6d N = (2, 0) theory with M any Riemann surface [44][45][46].

JHEP10(2015)065
however, the choice of the 4d spacetime is not part of the definition. By contrast, here we demand the theory to be topologically invariant on Σ for a specific choice of M . Now we come to the main point of our discussion. Suppose that a 2d TQFT with extra dimensions has line operators. Place the theory on T 2 and wrap line operators around 1cycles A α and B β . In the internal space M , the 1-cycles are located at some points x α and y β , respectively. The situation is similar to what we considered at the beginning of this section, but unlike that case, this time we do not assume that the line operators carry a continuous parameter. To highlight the difference, let us consider the extreme case that the theory has only one type of line operator, L. Repeating the same argument, we arrive at the conclusion that the correlation function is given by the partition function of a vertex model defined on the lattice of line operators. As we have just seen, the presence of extra dimensions guarantees that the R-matrix is invertible and satisfies the Yang-Baxter equation.
A beautiful insight of Costello [16,17] is that even though the line operator lacks a continuous parameter, the R-matrix still depends on such parameters: the positions x α , y β of line operators in M . Thus, the vertex model is integrable if the transfer matrix varies analytically on M . Based on this idea, it was shown in [17] that a special case of the 6-vertex model corresponding to the XXX spin chain, and its generalizations based on Lie algebras other than sl 2 , arise from a 2d TQFT with extra dimensions whose internal space M = CP 1 . This TQFT is obtained from a deformed and topologically twisted version of 4d N = 1 super Yang-Mills theory, and the line operators used in the construction are Wilson lines. The extra dimensions therefore elegantly explain not only why the Yang-Baxter equation holds for these models, but also where the spectral parameter comes from.
Speaking of extra dimensions, it should be noted that although only line operators were considered in our discussion, we could as well use higher-dimensional operators that have codimension at least two in Σ × M . This is because after we wrap them on 1-cycles on Σ, there is still room in M for them to avoid one another. In our main examples, we will make use of codimension-2 defects in a 6d theory.

IRF models
In the construction described above, we obtained a vertex model from line operators by letting the midpoints of open strings represent all physical degrees of freedom. In many cases, however, degrees of freedom really reside on (and only on) the endpoints. In such cases it is more efficient to reformulate the vertex model as an interaction-round-a-face (IRF) model.
In an IRF model, state variables live on the vertices of a lattice, and interaction takes place among vertices connected by edges that surround a face. We use letters a, b, . . . to denote state variables. For a square lattice, the Boltzmann weight for the interaction is (2.18) The dashed oriented lines are rapidity lines, and make up the dual lattice. The parameters r, s are spectral parameters, also called rapidities. An IRF model is a vertex model on the dual lattice, in which the state space assigned to an edge is the direct product of two spaces and many elements of the R-matrix vanish. In terms of the Boltzmann weight, the equation reads

3d TQFTs and the tetrahedron equation
As a generalization, we can construct higher-dimensional lattice models using codimension-1 defects in a d-dimensional TQFT with d > 2. Placing the theory on a d-torus T d and putting these defects on (d − 1)-cycles that form a d-dimensional lattice, we get a vertex model on this lattice. If the theory has extra dimensions, the R-matrix of the model satisfies a d-dimensional analog of the Yang-Baxter equation.
To be concrete, let us take d = 3. In this case, codimension-1 defects are surface operators, and three of them intersect at a vertex of the lattice. A cubic neighborhood of a vertex looks like r s t . (2.21)

JHEP10(2015)065
The orientations of the lattice edges specify those of the surface operators (drawn with dotted lines in the picture). Viewing this picture as the worldvolumes of three faces of the cube traveling in a diagonal direction, we see that the R-matrix R(r, s, t) produced by the path integral on this cube is an endomorphism of V r,s ⊗ V s,t ⊗ V t,r , where V r,s is the Hilbert spaces on a square intersected by two surface operators with parameters r and s. Pictorially, the R-matrix is represented as .
To avoid clutter, in what follows we will suppress spectral parameters in this kind of pictures. The 3d analog of the Yang-Baxter equation is Zamolodchikov's tetrahedron equation [23,24], obtained by moving one of four surface operators that form a tetrahedron: = . (2.23) The tetrahedron equation implies the commutativity of layer-to-layer transfer matrices at different values of the spectral parameter. When the state variables may be considered as living on the cubes surrounded by surface operators, a vertex model can be reformulated as an interaction-round-a-cube (IRC) model [48]. The Boltzmann weight of an IRC model is denoted as (2.24) The tetrahedron equation for an IRC model is  . (2.26)

4d N = 1 quiver gauge theories
Now we wish to apply the above construction to 4d N = 1 quiver gauge theories realized by brane box configurations. In this section, we explain how the elements that entered the construction -TQFT, lattice of line operators, and extra dimensions -arise nicely in the supersymmetric indices of brane box models. Furthermore, we determine the associated integrable lattice model, and demonstrate that the Yang-Baxter equation for this model is equivalent to the equality between the supersymmetric index of SU(N ) SQCD with 2N flavors and that of its Seiberg dual.

Brane box models
Consider Type IIB superstring theory, and suppose that we have N coincident D5-branes extending in the directions 012346, and a number of NS5-branes in 012345 and 012367: These branes are all located at the same point in the 89-plane. So each NS5-brane intersects with the D5-branes along a straight line parallel to the 4-or 6-axis. Macroscopically, this brane system realizes a supersymmetric quiver gauge theory, much the same way as the brane constructions of 3d N = 4 [49] and 4d N = 2 [11] gauge theories. In those constructions, D3-or D4-branes are suspended between NS5-branes placed at finite intervals in the 6-direction. The difference here is that the D5-branes are divided by NS5-branes into finite segments in the 4-direction as well. The resulting theory therefore has less spacetime dimensions and supersymmetry, but a more complicated quiver: it is a 4d N = 1 gauge theory described by a planar quiver diagram. Brane box models, first studied in [18], are theories constructed from brane configurations of this kind.
To avoid complications associated with semi-infinite branes, let us compactify the 46plane to a torus T 2 . Then, the intersections of the NS5-branes with the D5-branes form a lattice on the 46-torus. We draw the intersections by oriented dashed lines and call them rapidity lines, anticipating connection with integrable lattice models. We choose the JHEP10(2015)065 orientations for horizontal lines in such a way that they are parallel (and not antiparallel) to one another, and similarly for vertical lines. See figure 2(a) for an example of a brane box model, in which the rapidity lines make up a 2 × 3 lattice. The rule for determining the quiver is as follows. We label the faces of the lattice by letters a, b, . . . . To the ath face is associated a vector multiplet for gauge group SU(N ) a , which originates from open strings whose ends are attached on this part of the D5-branes. Since the rank of the gauge group is fixed throughout our discussion, in our quiver diagram we represent the vector multiplet simply by a circle node labeled a: From two faces a and b adjacent to each other or sharing a vertex, we get a chiral multiplet in a bifundamental representation of SU(N ) a × SU(N ) b . This is represented by an arrow between the two nodes: (3.4) What makes brane box models physically interesting is that they are chiral: between nodes, arrows only point in one direction. The quiver diagram for the 2 × 3 brane box model is shown in figure 2(b). The same diagram also encodes the superpotential of the theory. The quiver consists of a collection of triangles that cover the 46-torus. For each triangle formed by three arrows, there is a cubic superpotential term given by the trace of the product of the corresponding bifundamental multiplets, with sign determined by the orientation of the arrows. The precise form of the superpotential will not be important for our discussion; the quantities we will consider are largely independent of this information. JHEP10(2015)065  The gauge group of a brane box model is the product of SU(N )s and not U(N )s. To understand why, let us suppose for simplicity that there are only NS5-branes spanning the 012345 directions. In this case we get a 5d N = 1 theory. We are taking the string coupling g s to be small, which means that the NS5-branes have tension much larger than that of the D5-branes and can be treated as rigid objects. These heavy NS5-branes "chop" the D5-branes into finite segments in the 6-direction. Imagine sliding these segments slightly in the 5-direction. If g s were strictly zero, the NS5-branes would be infinitely heavier than the D5-branes and not affected by such a deformation at all. Then we would have a situation sketched in figure 3.
In reality, g s is small but nonzero, and the deformation does affect the NS5-branes. What actually happens is that when a stack of N D5-branes hit on an NS5-brane, these branes combine to form a bound state -an (N, 1) or (N, −1) 5-brane, depending on the relative positions of the branes -which then goes off diagonally, as shown in figure 4. As a result, moving the D5-brane segments in the 5-direction entails shifts of semi-infinite NS5branes in the 6-direction, and this costs an infinite amount of energy. The x 5 -coordinates of the D5-brane segments are therefore frozen. As the diagonal U(1) gauge field on each segment is in the same 5d multiplet as the scalar x 5 , it is frozen as well. Thus, the gauge group of the 5d theory is the product of SU(N )s, times a U(1) factor corresponding to the overall center of mass coordinate of the D5-branes. The U(1) factor is decoupled from the rest of the dynamics, so we ignore it.

JHEP10(2015)065
3.2 R-symmetry and flavor symmetries The brane system (3.1) is invariant under rotations in the 89-plane. The rotational symmetry appears in the effective 4d theory as an R-symmetry U(1) R . However, the R-charges of the bifundmanetal multiplets are not determined uniquely by the brane configuration, because of the possibility of shifting them by U(1) flavor charges. This ambiguity plays a crucial role in the connection to integrable lattice models, so let us look at it closely.
We denote by R ab the R-charge of the bifundamental multiplet represented by an arrow going from node a to b. There are two conditions for a set of R-charges {R ab } to be realized in a brane box model. The first is that the superpotential must have R-charge 2 so that it preserves U(1) R . Thus, for every triangle The second is that U(1) R must be nonanomalous. This requirement leads to the condition that at every node, the R-charges of the bifundamental multiplets starting from or ending on that node add up to the number of such multiplets minus two. In our case, for every we must have The second condition is equivalent to the vanishing of the one-loop β-functions for the gauge couplings, and one expects that the theory flows to a nontrivial infrared fixed point when this condition is satisfied. What is the dimension of the space of solutions to the constraint equations? The quiver of a brane box model provides a triangulation of T 2 . The number of R-charges to be assigned is equal to the number of edges E, whereas the number of constraints is equal to the number of faces F plus that of vertices V . Thus, naive counting would suggest that the dimension is given by minus the Euler characteristic χ = V − E + F , which vanishes for T 2 . This is not the case, though. For example, we can assign R-charge R = 1 − r to the horizontal arrows, R = 1 + r to the vertical ones and R = 0 to the diagonal ones, with r being a free parameter.
The reason for the mismatch is that the constraints are not all independent. Indeed, using the triangle condition (3.6), the anomaly cancellation condition (3.8) can be replaced by The sum of the left-hand side, with a running over all nodes in the same row of the quiver, is zero due to the periodicity of T 2 . So there is one relation for each row. Similarly, there is one relation for each column. For an m × n lattice, the dimension of the space of solutions is therefore at least m + n, the total number of rapidity lines. These m + n degrees of freedom in the R-charge assignment may be thought of as degrees of freedom associated to the rapidity lines. Concretely, we can parametrize the R-charges as follows. To each rapidity line we assign a real parameter, and call it the rapidity or spectral parameter of the rapidity line. Then, an arrow has R = 1 − r if it is horizontal and R = 1 + r if vertical, where r is the spectral parameter of the rapidity line intersecting with that arrow. The R-charges of the diagonal arrows are determined by the condition (3.6). The rule is summarized in figure 5. One readily sees that with this rule, the condition (3.8) is also satisfied.
In general, a U(1) R-symmetry can be shifted by U(1) flavor symmetries, that is, global U(1) symmetries that commute with the supersymmetry algebra. In view of this fact, the degrees of freedom in the R-charge assignment just found suggests that there are m + n U(1) flavor symmetries, each associated to a single rapidity line.
The origin of these global symmetries can be most clearly understood in the original brane picture. Let us pick an NS5-brane, say the one corresponding to the αth rapidity line, and imagine, as before, slightly sliding the D5-brane segments that end on it from left and right. This operation splits the NS5-brane into the upper and lower semi-infinite NS5branes, joined by a finite segment of (N, ±1) 5-brane; see figure 4. For definiteness, consider the case with an (N, 1) 5-brane. Bifundamental multiplets arise from open strings whose ends are localized at the junctions where semi-infinite NS5-branes meet D5-branes and the (N, 1) 5-brane. These strings may be viewed as fundamental strings ((N, 0)-strings), as in figure 6(a), or D-strings ((0, 1)-strings) with the opposite orientation, 5 as in figure 6(b). As such, they are acted upon by global U(1) gauge transformations on the semi-infinite NS5branes. In the effective 4d theory that emerges when the split branes are rejoined, gauge transformations on the upper and lower branes appear as elements in the same symmetry 5 To determine the orientation, we draw an (N, 0)-string attached on the D5-branes, and move the endpoints to the semi-infinite NS5-branes. When an endpoint passes a junction, an (N, 1)-string is created due to charge conservation. When the other endpoint passes the other junction, the (N, 1)-string is annihilated, leaving a (0, 1)-string. The orientation of the (0, 1)-string can be seen from the final picture. U(1) α , just acting in opposite manners. Hence, a U(1) flavor symmetry is associated to each NS5-brane or rapidity line.
Equivalently, we may regard U(1) α as arising from the U(1) gauge symmetries on the D5-brane segments, which we have seen are nondynamical. From this point of view, U(1) α acts on all D5-brane segments on the "right" side of the αth N5-brane, or on all of those on the "left" side in the opposite manner. Of course, the words "left" and "right" are not really meaningful when the 4-and 6-direction are periodic, but we can make sense of this interpretation by, roughly speaking, considering the D5-branes to be sections of a U(1) α -bundle on the 46-torus.
This point is probably easier to understand if we consider the situation where there are only NS5-branes in the 012345 directions, and look at the mass parameter m α associated to U(1) α in the corresponding 5d N = 1 theory. m α is the value of the real scalar in the background vector multiplet for U(1) α , and proportional to the difference between the x 5coordinates of the two D5-brane segments that end on the αth NS5-brane. The periodicity in the 6-direction suggests that the sum of m α over the rapidity lines must vanish. However, this constraint can be modified if we compactify the 6-direction using a twisted boundary condition that involves a shift in the 5-direction. (The same twisted boundary condition is used in the brane construction of 4d N = 2 elliptic models [11].) This modification introduces one more parameter, namely the amount of shift, leading to the same number of mass parameters as the rapidity lines.
We normalize the U(1) α -charge F α in such a way that horizontal and vertical bifundamental arrows intersecting with the αth rapidity line have F α = −1 and +1, respectively, while F β = 0 for β = α. The charges of the diagonal arrows are found by demanding that the superpotential have F α = 0 for all α. Using F α , our R-charge parametrization can be concisely written as where R 0 is the R-charge defined by assigning R 0 = 1 to the horizontal and vertical arrows, and r α is the parameter of the αth rapidity line. As expected, the degrees of freedom in the definition of R come from shifts by flavor symmetries. We have seen above that there are at least m + n U(1) flavor symmetries, but have not determined the precise number. Actually, in some cases there are extra U(1) symmetries in Figure 7. The general R-charge assignment for the 2 × 2 brane box model. Here only the Rcharges of the horizontal and vertical arrows are indicated, and the variables satisfy the relation addition to the ones discussed above. For example, for a 2 × 2 lattice, the most general Rcharge assignment has five parameters rather than four, as shown in figure 7. In fact, from the relation between the brane box and brane tiling constructions explained in section 4, one can deduce that the number of U(1) flavor symmetries is equal to m+n+gcd(m, n)−1.
We will not consider these extra flavor symmetries. Alternatively, one may assume that m and n are coprime.

Structure of a TQFT with extra dimension
So far we have described the brane box configuration (3.1) from the point of view of the effective 4d N = 1 theory. To make contact with the framework discussed in section 2, let us instead think of it as realizing 6d maximally supersymmetric Yang-Mills theory on the D5-branes, in the presence of codimension-1 defects created by the NS5-branes. We wish to turn this 6d theory into a theory that is topological on the 46-torus, and regard the defects as line operators with spectral parameter in the TQFT. This is achieved by applying an appropriate topological twist and restricting physical quantities to compute, as we now explain. Type IIB superstring theory has N = (2, 0) supersymmetry in 9 + 1 dimensions, generated by Majorana-Weyl spinors L , R such that (3.11) Here Γ M , M = 1, . . . , 9 are Gamma matrices, and Γ 0123456789 = Γ 0 · · · Γ 9 is the chirality operator. The D5-branes preserve supersymmetry generated by L , R satisfying L = Γ 012346 R . on the preserved supersymmetry. The conditions on R coming from the NS5-branes actually follow from those on L and the D5-brane condition, hence are redundant. Since Γ 012345 and Γ 012367 square to the identity and are traceless, half of their eigenvalues are +1 and the other half are −1. Moreover, they commute with each other and are simultaneously diagonalizable. Each NS5-brane condition therefore halves the number of independent solutions for L . Given L , the D5-brane condition determines R . In total, the 5-branes preserve four supercharges, which generate the N = 1 supersymmetry of the 4d theory we have been studying. where θ is any angle. This shows that the NS5-branes can be rotated in the 46-and 57plane by the same angle θ without destroying the supercharges, or for that matter, they can intersect with the 46-plane along arbitrary closed curves as long as the slopes are correlated between the 46-and 57-plane. From the point of view of the 6d theory on the D5-branes, the replacement of SO(2) 46 with SO(2) 46 is a topological twist along the 46-plane. After the twisting, eight out of the sixteen supercharges are scalars on the 46-plane, and as such, can be preserved even when the 46-plane is replaced by a general 2-manifold Σ. Codimension-1 defects can be inserted along arbitrary closed curves on Σ while preserving four of the eight supercharges. These defects carry a spectral parameter, as we have seen from the 4d point of view. Now, to produce a desired TQFT from this twisted theory, we simply restrict ourselves to quantities that are independent of the metric on Σ, and depend on the codimension-1 defects inserted on Σ only through their topology and spectral parameters. Then, the twisted theory becomes a TQFT on Σ, and the defects become line operators with spectral parameter in this TQFT.
A good example of such a topological quantity is the supersymmetric index of the corresponding 4d N = 1 theory [50][51][52]. As the theory has the R-symmetry U(1) R , it can be placed on the Euclidean spacetime S 3 ×S 1 without breaking supersymmetry [50,52,53]. Under (the double cover of) the isometry group SU(2) × SU(2) of S 3 , the four supercharges transform as a pair of doublets (2, 1). Let J i , J i be the generators of the SU(2) factors. The supersymmetric index is defined by where p, q, u α are complex parameters, and the trace is taken over the Hilbert space on S 3 . This quantity is topological for the following reason. Bosonic and fermionic states

JHEP10(2015)065
with energy E = 2J 3 − R are paired by the action of a supercharge. (Here we are taking the radius of S 3 to be 1.) Due to the presence of the factor (−1) F , pairwise cancellations occur and the only contributions to the trace come from states with E = 2J 3 − R. Under continuous changes of the parameters of the theory (other than the rapidities r α on which R implicitly depends), the index remains invariant since states can be brought into or out of the right energy level only in boson-fermion pairs. The index is therefore protected against such changes, in particular against deformations of geometric parameters such as the shapes of line operators and the metric on Σ.
There are other topological quantities. For example, we can replace the S 3 in the above definition of the supersymmeric index with S 2 × S 1 or a lens space L(p, q) [54]. Unfortunately, though, an explicit expression for the index is not known except for simple cases such as L(p, 1) [15]. We will focus on the S 3 index, for which the relevant mathematical results are available.
So we have obtained from brane box models a 2d TQFT that has a family of line operators with spectral parameter. We can now apply the construction discussed in section 2 and get a vertex model, by placing the TQFT on T 2 and making a lattice of line operators. However, we cannot tell whether the model is integrable just from the structure of a TQFT. For the integrability, it is necessary to show, in addition, that no phase transitions occur when two line operator are untangled or a line operator passes through the intersection of two other line operators. In Costello's argument, these properties are guaranteed by the existence of extra dimensions in which the line operators can miss one another.
We can make a similar argument in the present case. Let us go back to the brane picture. To the configuration (3.1), we apply T-duality in the 3-direction (which we take to be the S 1 -direction of the spacetime S 3 × S 1 ) to convert the D5-branes to D4-branes, and then lift the resulting Type IIA brane system to M-theory: 0 1 2 3 4 5 6 7 8 9 10 These dualities transform the 6d theory on the D5-branes into an N = (2, 0) theory on a stack of M5-branes, and the codimension-1 defects into codimension-2 defects. There is now an extra dimension along which line operators can move, namely the M-theory circle. Its presence ensures the integrability of the vertex model. The similarity to Costello's argument suggests that the x 10 -coordinates of line operators are related to the spectral parameters r α . This is indeed true, as the following analysis shows.
If we trade off the flavor fugacities u α for new parameters s α given by u α = (pq) −sα/2 , the supersymmetric index (3.17) depends on s α only through the combination R+ α s α F α . Hence, the effect of turning on nonzero values for s α is equivalent to shifting r α → r α + s α , and s α represent the same degrees of freedom as r α . We want to understand how s α are described in the language of branes, and keep track of them under the dualities.

JHEP10(2015)065
As we saw before by considering the deformation depicted in figure 6, U(1) α can be interpreted as either the global gauge symmetry on the lower half of the αth NS5-brane, or that on the upper half acting in the opposite manner. The conserved current J α for U(1) α is therefore supported along C α on the 46-torus, and couples to the 6d theory through a term of the form Here A − α and A + α are the gauge fields on the lower and upper halves of the NS5-brane, restricted to the brane intersection; they are related there to the U(1) parts of the gauge fields on the D5-brane segments by some boundary condition. We give a background value to the gauge fields such that A − α − A + α is constant along S 3 and C α . As F α is the integral of J α over S 3 and T 2 , we find that the above term becomes This term enters the path integral as an exponentiated factor, so s α is proportional to the difference between the holonomies of A − α and A + α around the 3-circle. These holonomies are mapped under the T-duality to the background values of a scalar field on the upper and lower halves of the corresponding Type IIA NS5-brane. Upon lifting to M-theory, the NS5-brane becomes an M5-brane, and the scalar is mapped to the x 10coordinate. Therefore, the spectral parameter for a line operator is given by the difference between the x 10 -coordinates of the upper and lower halves of the M5-brane.
We remark that if the holonomies of A + α and A − α are equal, then the whole αth NS5brane is mapped to a single point on the M-theory circle, and the supersymmetric index does not depend on its position at all. This observation is consistent with the fact that the N = (2, 0) theory compactified on S 3 has a topological sector that is equivalent to Chern-Simons theory with complex gauge group at level k = 1 [40]. In the present setting, the NS5-brane creates a Wilson line in the Chern-Simons theory on T 2 × S 1 , and its precise position on the 3-manifold is irrelevant. When the holonomies are different, the Wilson line splits into two line operators, and apparently they no longer belong to the topological sector. It is clear from our viewpoint that the same consideration should apply to other indices obtained by replacing S 3 with appropriate 3-manifolds. Indeed, the N = (2, 0) theory on S 2 × S 1 has a topological sector equivalent to complex Chern-Simons theory at level k = 0 [38,39], while the lens space L(k, 1) gives complex Chern-Simons theory at level k [43]. Similarly, a twisted product of R 2 and S 1 leads to analytically continued Chern-Simons theory, which is the holomorphic sector of complex Chern-Simons theory [37,[55][56][57].

Integrable lattice model for brane box models
Finally, let us identify the integrable lattice model associated with brane box models. To do so, we look at the integral formula for the supersymmetric index.
Recall that the flavor fugacities u α represent the same degrees of freedom as the spectral parameters r α . Since we are going to keep the dependence on r α , we set u α = 1. With this JHEP10(2015)065 understood, the supersymmetric index of a brane box model is computed as follows [50,58]. First, we assign the factor to the vector multiplet represented by node a, and to the bifundamental chiral multiplet with R = R ab represented by an arrow from node a to b. Here is the elliptic Gamma function, (z; q) ∞ = ∞ i=0 (1 − zq i ), and z a collectively denotes the fugacities z a,i , i = 1, . . . , N for the gauge group SU(N ) a , obeying N i=1 z a,i = 1. Then, we multiply the factors from all nodes and arrows, and integrate over the fugacities: The integration for each fugacity is performed over the unit circle {|z a,i | = 1}. The above procedure clearly shows the statistical mechanical nature of the supersymmetric index. In the statistical mechanical interpretation, z a,i are continuous state variables, and the factors I V and I B are the Boltzmann weights for self-and nearestneighbor interactions, respectively. The partition function is defined by multiplying the weights and summing over all possible state configurations, and this is identified with the supersymmetric index.
Since the state variables z a,i are assigned to the nodes of the quiver which correspond to the faces of the lattice on the 46-torus, it is natural to formulate this model as an IRF model. We can take its Boltzmann weight to be 6 (3.27) (Notice a slight discrepancy in the notation compared to the original definition (2.18). Here a, b, etc. on the left-hand side really stands for z a , z b , etc.) A square node a indicates that the associated factor I V (z a ) is absent, and a node a drawn with a dashed line means that the factor is present but integration is not performed over z a . The intersections of NS5-branes with the D5-branes, which create line operators in the TQFT on the 46-torus, play the roles of rapidity lines, as anticipated.
Let us show that this Boltzmann weight satisfies the Yang-Baxter equation (2.19). For this purpose we will need the identity which holds for R ab + R ba = 2. In effect, it means that we can erase two arrows going in opposite directions between the same pair of nodes: . (3.29) This property reflects the fact that if one has chiral multipets Φ 1 , Φ 2 in conjugate representations whose R-charges add up to 2, one can give them masses by turning on the superpotential term mΦ 1 Φ 2 . The supersymmetric index is independent of m, and in the limit m → ∞, these multiplets become infinitely massive and decouple, leaving no contribution to the index.
(3.30) Some nodes and arrows cancel out between the two sides, while the arrows between nodes b and g on the right-hand side cancel thanks to the identity (3.29). Moving the arrows that are not connected to node g from the left-to right-hand side using the same identity,

JHEP10(2015)065
we end up with the equality a c d f g (3.31) Interestingly, this equality expresses precisely the invariance of the supersymmetric index under Seiberg duality. Seiberg duality says that for N f > N c + 1, an N = 1 SU(N c ) gauge theory with N f flavors (Q, Q) and no superpotential has a dual description in the infrared as an N = 1 SU(N f − N c ) gauge theory with N f flavors (q,q) and N 2 f singlets M , coupled through a superpotential W =qM q. For both theories, the flavor symmetry is SU(N f ) L ×SU(N f ) R × U(1) B and the R-symmetry is U(1) R . Under these symmetries and the gauge group G = SU(N c ) or SU(N f − N c ), the chiral multiplets transform as follows: In the case at hand, N f = 2N c = 2N and the charged chiral multiplets all have R = 1/2. This corresponds to the situation with (r, s, t) = (−1/2, 0, 1/2). As we stressed, however, we can shift the R-charge by U(1) flavor charges. The quivers that appear in the equality (3.31) split the 2N flavors into a pair of N flavors. This breaks each of SU(2N ) L and SU(2N ) R down to an SU(N ) × SU(N ) × U(1) subgroup. So in total there are three U(1) flavor symmetries that can be used to shift the R-charge, and they give rise to the three parameters r, s and t.
Since the supersymmetric index is protected from continuous changes of the parameters of the theory, it is invariant under renormalization group flow and therefore under Seiberg duality. Indeed, as observed in [58], the invariance under Seiberg duality is equivalent to an identity for the elliptic Gamma function proved in [59]. 7 Thus, we have demonstrated the integrability of our model. 8 7 Historically, the identity was first discovered for Nc = 2 and N f = 3 in [60]. Subsequently it was proved for Nc = 2 and N f = 4 in [61] and extended to the general case in [59]. 8 The invertibility of the R-matrix follows from the identity The appearance of Seiberg duality as an integrability condition might be unexpected from the point of view of lattice models. From our perspective, this is not entirely surprising. The integrability is simply a consequence of the topological invariance of the relevant TQFT with extra dimension that has line operators, and these line operators are created by NS5-branes. It is well known that in the brane construction of 4d N = 1 gauge theories, Seiberg duality is realized by rearrangement of NS5-branes [63,64].

Brane tiling models
In the discussion of brane box models in the previous section, we found it helpful to consider a deformation of the brane configuration that splits the D5-branes across NS5-branes and creates (N, ±1) 5-branes, as in figure 4. The bifundmantal multiplets represented by the horizontal and vertical arrows in the quiver originate from open strings whose ends are attached on the brane junctions. The original configuration is recovered in the limit where the D5-brane segments are joined together and the (N, ±1) 5-branes disappear, and these multiplets become massless in this limit.
What happens if we split the D5-branes across every NS5-brane, and keep the distances between the segments finite? In such a situation, the horizontal and vertical multiplets are all massive and absent in the infrared theory. As far as renormalization group invariant quantities such as the supersymmetric index are concerned, these multiplets can therefore be ignored. On the other hand, there are now far more ways in which diagonal multiplets arise. To see this clearly, let us represent brane junctions by oriented dash-dot lines, which we call zigzag paths. The orientation of a zigzag path is such that if it is going up, then there is an (N, q) 5-brane on the left and (N, q + 1) 5-brane on the right for some q. For example, the two configurations in figure 4 are represented on the 46-torus as in figure 8. Diagonal multiplets arise from open strings localized near intersections of rapidity lines or zigzag paths. When the D5-branes split, each rapidity line splits into two antiparallel zigzag paths. Correspondingly, each intersection point breaks apart into four intersection points. As the number of intersection points increases, we expect to get more diagonal multiplets.
proved in [62], where SN is the symmetric group of degree N and the delta function δ is defined with respect to the measure N −1 j=1 dza,j/2πiza,j. The overall factor K = s=±1 Γ((pq) sN R/2 ; p, q)) can be removed by rescaling the R-matrix.

JHEP10(2015)065
The number of U(1) flavor symmetries also gets larger. Recall that these come from global gauge symmetries on the NS5-branes. In a brane box model, gauge transformations on the upper and lower halves of an NS5-brane give the same flavor symmetry in the 4d theory since they simply act in opposite manners on the horizontal and vertical multiplets (and the action on the diagonal multiplets is determined by the requirement that the superpotential be neutral). After the brane configuration is deformed, there are no horizontal or vertical multiplets anymore, so gauge transformations on the two halves can lead to different flavor symmetries.
We can make these statements more precise when the deformed system contains only (N, 0) and (N, ±1) 5-branes. In fact, in such a situation the system is still described by an N = 1 quiver gauge theory [10]. The quiver is such that an SU(N ) node is assigned to each (N, 0) region, and an arrow connects two nodes on regions sharing a vertex: (4.1) (An (N, ±1) 5-brane is dual to a single D5-brane, so it supports a U(1) gauge field which is frozen at low energies.) To the ith zigzag path is associated a flavor symmetry U(1) i , and arrows intersecting with this path have nonzero U(1) i -charge F i . We choose the normalization for the F i such that the arrow in the above picture has F i = +1 and F j = −1.
It is known that the U(1) i account for all nonanomalous U(1) flavor symmetries present in the gauge theory [65]. They are not independent, however. Since each arrow is intersected precisely by two zigzag paths assigning opposite charges to it, the sum of the charges vanishes: Hence, the number of U(1) flavor symmetries is equal to the number of zigzag paths minus one.
Once we start thinking in terms of zigzag paths, we can construct many more N = 1 theories. We can consider various configurations of zigzag paths, not necessarily obtained by deforming brane box configurations. Such configurations of zigzag paths are called brane tilings. Provided that only (N, 0) and (N, ±1) 5-branes appear on the graph of zigzag paths, brane tilings yield N = 1 quiver gauge theories, whose quivers are determined by the same rule as above. Actually, brane box models can also be described as a brane tiling model; see figure 9 for the brane tiling configuration for the 2 × 3 brane box model, whose quiver is shown in figure 2(b). In this sense, brane tilings generalize the brane box construction. The reader may consult the reviews [66,67] for more extensive discussions on brane tilings and their relations to other subjects such as the AdS/CFT correspondence. Now, let us try to connect brane tilings to an integrable lattice model. Since the only difference compared to the brane box case is the type of defects inserted in the 6d theory on the D5-branes, much of the previous argument carries over. Using this 6d theory, we can define a 2d TQFT whose correlation function for a configuration of zigzag paths is given by the supersymmetric index of the corresponding 4d N = 1 theory. An extra dimension emerges if we utilize dualities and embed the 6d theory in M-theory. Zigzag paths are mapped to semi-infinite M5-branes, and their x 10 -coordinates provide spectral parameters. So we indeed have all ingredients required for the construction of an integrable lattice model. It is reassuring that we have found the relation (4.2), which implies that the supersymmetric index is invariant under an overall shift of the x 10 -coordinates. The next step would be to write down an integral expression for the supersymmetric index and read off the R-matrix. Here we get into trouble. Clearly, we cannot do this for an arbitrary configuration of zigzag paths; in general, we find (N, q) regions with |q| > 1, and do not know what the corresponding 4d theory is. 9 Then we are forced to restrict our attention to configurations without such regions. Sadly, this restriction is not compatible with integrability: the Yang-Baxter equation for three zigzag paths always involves regions with |q| > 1, as can be seen from figure 10.
The difficulty stems from the fact that zigzag paths are not really line operators. They are more properly called domain walls since they separate regions with different physical properties. This is a problem we did not encounter for brane box models. In that case, rapidity lines were genuine line operators.

JHEP10(2015)065
Our consideration at the beginning of this section suggests a resolution to this problem. We have seen that when a brane box model is deformed to a brane tiling model, a rapidity line splits into two antiparallel zigzag paths. Conversely, we can take two neighboring antiparallel zigzag paths, and regard them as one thick line (or "ribbon") operator. In this way we can make two kinds of line operators, namely and another one for which the orientations of the zigzag paths on the right-hand side are flipped. Below we will only use the first one. If we use this line operator and give the "background charge" q = −1 to the TQFT, then regions with |q| > 1 never arise: Thus, a brane tiling constructed with line operators of this type is always described by a quiver gauge theory, and we can readily write down an integral expression for its supersymmetric index. From this expression we can read off the R-matrix of the associated vertex model. Just as in the case for brane box models, we expect that the Yang-Baxter equation for this R-matrix can be understood as an equality between the supersymmetric indices of two dual gauge theories. Let us see if this is the case. From the quiver rule (4.1), we find that the lattice model in question is a vertex model 10 with the R-matrix given by (4.5) Figure 11 shows the case when the model is placed on a 2 × 3 lattice. The R-charges of the bifundamental multiplets, specified by the numbers accompanying the arrows, are chosen to be consistent with the normalization of the flavor charges and add up to 2 around loops. With this choice, the R-charges satisfy the anomaly cancellation condition. What we have just constructed is the integrable lattice model studied in [2,8]. (Its generalization to the lens space index was considered in [9].) The Yang-Baxter equation Figure 11. For simplicity we have omitted the R-charges in the quivers. As expected, this equation follows from Seiberg duality: applying the basic duality transformation (3.31) four times, we can turn the left-hand side into the right-hand side. This process is illustrated in figure 12.
Incidentally, a single Seiberg duality transformation is induced by the Yang-Baxter move involving two zigzag paths and one "twisted" ribbon operator: This relation between the Yang-Baxter move and Seiberg duality was pointed out by Hanany and Vegh [71].

3d N = 2 and 2d N = (2, 2) quiver gauge theories
The results from the previous sections imply, via T-duality, that there exist similar connections between lower-dimensional quiver gauge theories and integrable lattice models. In this section we discuss integrable lattice models associated with 3d N = 2 and 2d N = (2, 2) theories. We will focus on those coming from brane box configurations, though our analysis can be adapted straightforwardly to the brane tiling case. Figure 12. A sequence of duality transformations that demonstrates the Yang-Baxter equation (4.6). The letter on an arrow between two quivers indicates the node at which the transformation is applied. Note that circle nodes can be relabeled freely since their fugacities are integrated over.

3d brane box models
Let us consider the following brane setup in Type IIA superstring theory, which is related to the 4d brane box model (3.1) by T-duality along the 2-direction: This is a brane box configuration that realizes a 3d N = 2 quiver gauge theory. Being related by T-duality, the theory is essentially the dimensional reduction of the corresponding 4d N = 1 theory, and is described by the same quiver (with all Chern-Simons levels vanishing). We expect that the supersymmetric index of this theory is given by the partition function of an integrable lattice model. As in the 4d case, the theory can be placed on S 2 × S 1 , with all four supercharges unbroken [72,73]. We are interested in the supersymmetric index where J 3 is the Cartan generator of the isometry group SU(2) of S 2 . It receives contributions only from states with energy E = R + J 3 . As usual, we have omitted the fugacities u α for the flavor symmetries U(1) α , whose effects can be taken into account by keeping the dependence of the R-charge R on the spectral parameters r α .

JHEP10(2015)065
The 3d supersymmetric index is computed by an integral formula similar to the one in the 4d case. The novelty is that there can be nontrivial magnetic fluxes through S 2 . For each gauge group SU(N ) a , the flux is specified by a set of integers m a = (m a,1 , . . . , m a,N ) subject to the condition i m a,i = 0. Therefore, the formula involves a sum over fluxes as well as an integration over the fugacities for the gauge groups: Here |W ma | is the order of the Weyl group of the subgroup of G that is left unbroken by m a , and the vector and bifundamental multiplet factors are given by [72,74,75] The bifundamental factor I B satisfies the identity We can connect the supersymmetric index to a lattice model by following the same procedure as before. We define an IRF model on the lattice drawn on the 46-torus by the NS5-branes. The state variables are (z a , m a ), and the Bolzmann weight is given by the same picture (3.27). By construction, the supersymmetric index of a 3d brane box model coincides with the partition function of this IRF model. The Yang-Baxter equation again boils down to the equality (3.31) between the supersymmetric indices of two gauge theories. This equality, if true, establishes the integrability of the IRF model.
The equality indeed follows from the SU(N ) version [76,77] of the duality for 3d N = 2 gauge theories proposed by Aharony [19]. There is an interesting twist, though: the theories described by the quivers that appear in the equality are not dual to each other.
The correct duality takes the theory on the left-hand side to a theory whose matter content consists of the chiral multiplets described by the quiver on the right-hand side, plus two extra singlets V + , V − . More generally, Aharony duality relates two 3d N = 2 gauge theories with the following matter contents:

JHEP10(2015)065
The gauge group G is SU(N c ) for the theory with Q, Q, and SU(N f − N c ) for its dual. Although a proof has not been given yet, there is strong evidence for the equality of the supersymmetric indices of these two theories in terms of series expansion in x [77][78][79]. 11 The above table contains one more global symmetry compared to its 4d counterpart (3.32), namely the axial symmetry U(1) A which is anomalous in four dimensions. In the definition of the index (5.2), we did not include fugacities for axial symmetries. Thanks to this omission, V ± always have R = 1 for whatever shift of R by the relevant U(1) flavor symmetries, and their contributions to the index cancel since we can turn on a superpotential W = mV + V − . If we included these fugacities, the cancellation would no longer occur. In that case, the presence of V ± would be crucial for the indices of the two theories to match.
Why does the logic fail if the fugacities for axial symmetries are turned on? The point is that when we apply T-duality to get a 3d brane box model from a 4d one, the 2-direction is compactified to a circle, however small its radius may be. In other words, we are really compactifying the 4d theory on S 1 with finite radius, not dimensional reducing it. As emphasized in [76], the effective 3d theory obtained by compactification has a superpotential that contains monopole operators. This superpotential breaks the axial symmetries, thereby reproducing the effect of anomalies in the 4d theory. So it is not that the logic fails. Rather, we have no fugacities to turn on to begin with. Upon inclusion of such superpotentials on both sides, the extra multiplets disappear from the duality.
The axial symmetries are recovered if we decompactify the 2-direction. Although it is perfectly fine to do so, the resulting system is not related to a 4d brane box model by Tduality and its connection to a lattice model requires a more careful analysis. It is not clear whether these additional symmetries admit a natural interpretation in the lattice model.

2d brane box models
Applying further T-duality along the 1-direction, we obtain the following brane configuration realizing a 2d N = (2, 2) quiver gauge theory: This theory is described by the same quiver diagram as in the 3d and 4d brane box cases. However, each node now represents a U(N ) gauge group, not SU(N ). The reason is that unlike the case with D4-or D5-branes, motion of D3-brane segments along NS5-branes creates disturbances on the NS5-branes that fall off sufficiently rapidly, and costs only a finite amount of energy. (In the 3d brane box case, on the other hand, the required energy becomes arbitrarily large as we increase the radius of the 2-circle.)

JHEP10(2015)065
The supersymmetric index of a 2d N = (2, 2) theory is known as the elliptic genus. It is given by where H L is the left-moving Hamiltonian, and R is defined as twice the left-moving Rcharge so that a superpotential preserving the R-symmetry has R = 2. The trace receives contributions only from states with the right-moving Hamiltonian H R = 0. The elliptic genus can be computed as the partition function with twisted boundary conditions on a torus whose complex parameter τ is given by q = e 2πτ . As such, it enjoys a nice modular property. An integral formula for the elliptic genus of an N = (2, 2) gauge theory was derived in [81][82][83]. For the theory we are considering, the formula reads 12 with the vector and bifundamental multplet factors given by Here z is related to the fugacity y by y = e 2πiz , and (1 − q n ), (5.13) (−1) n e 2πiz(n+1/2) e πiτ (n+1/2) 2 (5.14) are the Dedekind eta function and a Jacobi theta function. Note that θ 1 (−z|τ ) = −θ 1 (z|τ ). As a consequence, I B obeys the identity (3.28). The above formula takes the same form as the 4d index formula (3.24) under the identification z a,i = e 2πiu a,i . The subtlety lies in the integration contour, as was elucidated in [82,83] with a careful path integral analysis. Since θ 1 (z|τ ) has a pole at z = 0, the integrand has poles at various places in the u-space, and the contour must pick up the residues at some but not all of these poles. There are many choices that lead to the correct answer. For us, a simple choice is such that for each node a, every u a,i encircles the pole located at u a,i = u b,j − R ba z/2 for some (b, j), which comes from the factor I B (u b , u a ; R ba ) associated to the incoming arrow

JHEP10(2015)065
Moreover, u a,i and u a,j for i = j must encircle different poles. We sum over the contributions from all such contours. Alternatively, we may choose the contours to encircle poles coming from outgoing arrows. The two choices give the same result, up to an overall sign. We refer the reader to [82,83] for more details on the integration contour in general, and section 4.6 of [83] for details specific to theories closely related to ours. As in the higher-dimensional cases, the supersymmetric index of a 2d brane box model coincides with the partition function of an IRF model. The Boltzmann weight is given by the formula (3.27), and the Yang-Baxter equation reduces to the equality (3.31). This time, let us demonstrate this equality explicitly.
The elliptic genus of the theory described by the quiver on the left-hand side is computed by the contour integral We choose to evaluate it with contours that encircle N poles from the factors associated with the incoming arrows. For instance, suppose that we are evaluating the integral for contours such that the unordered set of these poles is {u a,j − R ag z/2}, that is, each u g,iintegral picks up the residue at u g,i = u a,j − R ag z/2 for some j. The N ! different ways to assign the poles to the u g,i make equal contributions, so we only need to consider the case when u g,i = u a,i − R ag z/2 for all i. Using the fact that the residue of 1/θ 1 (u|τ ) at u = 0 is 1/2πη(τ ) 3 , we find that the sum of the contributions from these contours is On the other hand, the elliptic genus of the right-hand side is given by For the dual theory, we choose the poles from the outgoing arrows. The contours picking up the residues at the poles {u d,i + R gd /2} contribute After canceling out some factors using the identity (3.28), we see that this is equal to the contribution (5.17) found above. In a similar fashion, one can show that for each set of poles {û g,i } ⊂ {u a,i − R ag z/2} ∪ {u d,i − R dg z/2} in the theory on the left-hand side, there is a set of poles {ū g,i } ⊂ {u a,i + R ga z/2} ∪ {u d,i + R gd z/2} in the theory on the right-hand side such that the contours JHEP10(2015)065 encircling these poles give the same contributions to the elliptic genera of the respective theories. (In the case that the R-charges vanish, {ū g,i } is the complement of {û g,i } in {u a,i } ∪ {u d,i }.) This is a one-to-one correspondence between the choices of poles in the two theories. Therefore, I LHS = I RHS .
The equality just proved is basically a consequence of a variant of Hori-Tong duality [20] proposed in [84]. However, it is important that the fugacities u a , u c , u d , u f are unconstrained here. By contrast, when regarded as the elliptic genera of dual theories, the two sides of the equality must be evaluated with the constraint i (u a,i +u c,i +u d,i +u f,i ) = 0 since the diagonal U(1) subgroup of the flavor group U(N ) a × U(N ) c × U(N ) d × U(N ) f is gauged. So strictly speaking, the duality does not imply the Yang-Baxer equation. Also, note that the fugacity for the axial symmetry U(1) A is set to zero as in the 3d case. In general, this can be turned on in the elliptic genus.
Finally, we remark that the duality does not work if we replace the gauge group with SU(N ). This is unlike the higher-dimensional cases, where one can gauge U(1) B to obtain the duality for U(N ) theories from that for SU(N ) theories. Had we started with the dimensional reduction of the 3d brane box model and simply discarded the U(1) A fugacity, we would have reached a wrong conclusion. 6 2d N = (0, 2) quiver gauge theories Looking at how the duality relation (3.31) was verified for 2d brane box models, we notice that the numerator and denominator of the bifundamental factor I B played rather different roles. More specifically, while the denominator determined the pole structure and hence the possible choices for integration contours, the numerator only provided cancellations of some factors. The separation in their roles hints at the existence of integrability in less supersymmetric situations where an N = (2, 2) chiral multiplet decomposes into two multiplets that correspond to the numerator and denominator. N = (0, 2) supersymmetry provides precisely the required decomposition: an N = (2, 2) chiral multiplet consists of an N = (0, 2) chiral multiplet and Fermi multiplet, with the former corresponding to the denominator and the latter to the numerator. In this section we introduce three classes of N = (0, 2) quiver gauge theories whose elliptic genera are captured by integrable lattice models. The first two classes lead to IRF models much like N = (2, 2) brane box and brane tiling models discussed in section 5.2. The third class gives rise to an IRC model on 3d lattices.

N = (0, 2) theories related to brane box configurations
Let us take a quiver from some brane box model, and replace the vertical arrows with dotted arrows. (Of course, one may as well choose to replace the horizontal arrows instead.) For example, starting from the quiver for the 2 × 3 brane box model shown in figure 2(b), we obtain the diagram in figure 13. We interpret the resulting diagram as a quiver of an N = (0, 2) gauge theory, letting dotted arrows represent bifundamental Fermi multiplets. As usual, circle nodes and solid arrows represent vector multiplets and bifundamental chiral multiplets. By this procedure we can associate an N = (0, 2) quiver gauge theory to every brane box model. The reader is referred to [21,85] for basics of N = (0, 2) gauge theories.
Although the left-moving R-symmetry is no longer present, the theory still has the flavor symmetries U(1) α , at least classically. So we define the "R-charge" in the present case by Our claim is that the elliptic genus (5.9) of this theory is equal to the partition function of an integrable IRF model. Before we give a proof of this claim, cautionary remarks are in order. As it is, the theory defined above suffers from mixed anomalies for the diagonal U(1) factors of the U(N ) gauge groups. Similarly, the flavor symmetry generated by R is anomalous. These anomalies must be canceled by introduction of extra multiplets. For the moment let us ignore these issues; we will address them later.
The relevant formula for elliptic genera was derived in [82,83]. The only difference compared to the N = (2, 2) case is that it involves three kinds of factors, corresponding to the three kinds of multiplets: where the vector, bifundamental chiral and bifundamental Fermi multiplet factors are 13 3) Up to an immaterial overall sign, I BC (u a , u b ; R ab )I BF (u a , u b ; R ab − 2) is equal to the N = (2, 2) bifundamental chiral multiplet factor (5.12). Likewise, I V (u a )I BC (u a , u a ; −2) is equal to the N = (2, 2) vector multiplet factor (5.11), as is consistent with the decomposition of an N = (2, 2) vector multiplet into an N = (0, 2) vector multiplet and adjoint chiral multiplet. We have I BC (u a , u b ; R ab )I BF (u b , u a ; R ba ) = 1 (6.6) for R ab + R ba = 0, or more graphically, (6.7) The cancellation of arrows corresponds to giving masses to a pair of chiral multiplet and Fermi multiplet. For the theory under consideration, the elliptic genus can be computed as the partition function of an IRF model with Boltzmann weight Let us demonstrate it. The left-hand side is given by the contour integral du g,j 2πi I V (u g )I BC (u d , u g ; R dg )I BF (u a , u g ; R ag ) × I BC (u g , u c ; R gc )I BC (u g , u f ; R gf ). (6.10) If we choose the contours to pick up residues from the incoming arrow, then the set of relevant poles is {u d,i − R dg z/2}. Thus we have I LHS = I BF (u a , u d ; R ag − R dg )I BC (u d , u c ; R dg + R gc )I BC (u d , u f ; R dg + R gf ). (6.11) The right-hand side of the equality (6.9) is du g,j 2πi I V (u g )I BC (u g , u a ; R ga )I BF (u g , u d ; R gd ) × I BC (u c , u g ; R cg )I BC (u f , u g ; R f g ) (6.12) × I BF (u a , u c ; R ac )I BF (u a , u f ; R af )I BC (u d , u c ; R dc )I BC (u d , u f ; R df ). The "complement" set of poles is {u a,i + R ga z/2}, and they give I RHS = I BF (u a , u d ; R gd − R ga )I BC (u c , u a ; R cg + R ga )I BC (u f , u a ; R f g + R ga ) × I BF (u a , u c ; R ac )I BF (u a , u f ; R af )I BC (u d , u c ; R dc )I BC (u d , u f ; R df ). (6.13) Canceling some factors using the identity (6.6), we find I LHS = I RHS .
In fact, the quivers on the two sides of the equality (6.9) describe two theories related by the (0, 2) triality transformation [21]. The third theory in the triality is the free theory with quiver (6.14) This is manifest in the expression (6.11) of the elliptic genus. Finally, we come back to the issues of anomalies. To cancel the mixed U(1) gauge anomalies and R-anomaly, we add to each solid arrow Here is a nonzero parameter. Furthermore, to each node we introduce a singlet chiral multiplet with R = , though this is not required for anomaly cancellation. We can visualize these extra multiplets as wavy arrows, as in figure 14.
The presence of the extra multiplets modifies the factors associated to vector and bifundamental multiplets to Apart from this modification, the computations of the elliptic genera for the equality (6.9) remain unchanged. In particular, we can use the same integration contours, since the extra multiplets introduce neither solid incoming arrows to the left-hand side nor solid outgoing arrows to the right-hand side.
6.2 N = (0, 2) theories related to brane tiling configurations Quivers from brane tiling models can also be modified to produce N = (0, 2) theories that exhibit integrability. As in the brane box case discussed above, we obtain these theories by replacing one of the arrows in the R-matrix with a dotted arrow: (6.20) Extra multiplets for anomaly cancellations are implicit in this picture. Figure 15 shows the quiver for the N = (0, 2) theory obtained from the 2 × 3 brane tiling model, whose quiver is given in figure 11(b). The Yang-Baxter equation for this R-matrix reduces to the equality Application of the (0, 2) triality transformation (6.9) four times (more precisely, one triality transformation followed by three others in the opposite direction) turns the left-hand side into the right-hand side. This is illustrated in figure 16.

Brane cube models
Lastly, we briefly discuss the class of N = (0, 2) quiver gauge theories known as brane cube models [22]. These theories are constructed from brane configurations analogous to  Figure 16. A sequence of (0, 2) triality transformations that relates the two sides of the Yang-Baxter equation (6.21). An arrow between two quivers represents a (0, 2) triality transformation in the direction from the right-to left-hand side of the equality (6.9).
brane boxes: 0 1 2 3 4 5 6 7 8 9 D4 × × × × × NS5 × × × × × × NS5 × × × × × × NS5 × × × × × × (6.22) Note that brane cube models include 3d brane box models (5.1) as special cases. A brane box model is characterized by the 2d lattice drawn on the 46-torus by the NS5-branes. For a brane cube model, the NS5-branes make a 3d lattice in the 246-space which we take to be a 3-torus T 3 . A brane cube configuration can be thought of as describing intersecting codimension-1 defects in the 5d theory on the D4-branes. We can topologically twist the theory along the 246-space, replacing the holonomy group SO(3) 246 with the diagonal subgroup of SO(3) 246 × SO(3) 357 . The twisted theory has four supercharges that are scalar in the 246-space, hence unbroken when this space is a general 3-manifold Σ. These supercharges generate N = (2, 2) supersymmetry in the 01-space. Half of them, generating an N = (0, 2) subalgebra, are preserved by codimension-1 defects supported on arbitrary surfaces inside Σ. Therefore, the twisted theory gives a morphism that sends a configuration of surfaces in Σ to the effective N = (0, 2) theory. Taking the elliptic genus, we get a 3d TQFT on Σ equipped with surface operators. An extra dimension emerges upon lifting the system to M-theory, and it follows that the elliptic genus of a brane cube model is equal to the partition function of a 3d integrable lattice model. Like an IRF model is associated with brane box models, the lattice model associated with brane cube models is an IRC model. According to the quiver rule found in [22], one This Boltzmann weight, or another one that leads to the same IRC model on cubic lattices, should solve the tetrahedron equation (2.25). It would be interesting to verify this statement.