Signs and phases are ignored throughout; "" between groups means equality up to signs of the generators.
Step 1: two colours form hexagons. Fix colours and let be the third. Each vertex lies on exactly one plaquette of colour , and its two boundary edges there have colours and (they lie on a plaquette of colour , so they are not of colour , and the colours at a vertex are distinct). Hence the edges of colours and form the disjoint union of the boundaries of the colour- plaquettes, each a 6-cycle alternating between and . For such a plaquette write for the product of its three colour- checks; then .
Step 2: a commutant. Let be a set of colour- edges. A colour- check , , anticommutes with the colour- check at and with the one at and commutes with all others. So commutes with if and only if contains both or neither of the colour- edges at the ends of . Going around each hexagon of step 1, the product commutes with all colour- checks if and only if, on every colour- plaquette, contains all three or none of its colour- edges. Hence the elements of that commute with form the group .
Step 3: induction. By the update rule, measuring the commuting checks on a state with ISG gives with the elements of commuting with all of . Plaquette operators commute with every check, so for with any set of plaquette operators, by step 2. Since and , the result is
Starting from , measuring gives (case 2 of the rule for each check). Then gives , gives , gives , and for the step maps to of the stated form. The new plaquette operators of colour in round (with , ) equal , so their values are products of outcomes of rounds and .
Step 4: relations. Identify a product of checks with the set of edges it uses (mod 2). At a vertex, the product of the checks on a set of incident edges is proportional to only if that set is empty or all three edges, since the three have different Paulis. As the lattice is connected, a product of checks is only for the empty set or the set of all edges. Now take a set of plaquettes and a set of colour- edges and suppose . The edge set is , where is the set of edges bordering exactly one plaquette of .
- If , no edge of colour or lies in . An edge of colour borders plaquettes of colours and , one of colour borders colours and ; so every colour- plaquette is in exactly when all its six neighbours are. Any two adjacent plaquettes of colours and share an edge, and the colour- plaquette at either endpoint of that edge borders both of them, so this constraint graph is connected and is empty or everything. = everything gives , : the relation .
- If is all edges, every edge of colour or lies in , so each colour- plaquette differs in membership from all its neighbours: is the set of colour- plaquettes or its complement. For the former, is exactly the edges of colours and is all colour- edges, the second relation; the complement gives the product of the two relations.
So the relation group is generated by the two relations stated, which are independent (the first involves no checks, the second does), and the rank is . The argument follows section 1.3 of Hastings and Haah, with the commutant and the relation count written out. That the remaining two logical qubits are protected, with the non-contractible check loops acting as nontrivial inner logical operators, is shown there and is not reproved here.