The semiotic square, introduced by Algirdas Julien Greimas in the 1960s, is a structuralist diagram that takes a single semantic opposition and unfolds it into four positions joined by six typed relations. This companion treats the square as two layers that the playground keeps deliberately separate. The lower layer is a small, exact combinatorial object: four positions, an involutive negation, and a fixed lattice of contradiction, contrariety, sub-contrariety, and implication, which is isomorphic to the Klein four-group. The upper layer is the interpretive claim that an arbitrary semantic field can be exhausted by exactly these four positions. The first layer is checkable and is what the calibration panel verifies; the second is a productive but contestable analytic heuristic, and the playground marks it as such.
The square of opposition is ancient. In the Aristotelian tradition, codified by Apuleius and Boethius, four categorical propositions (A, E, I, O) sit at the corners of a diagram whose edges encode contrariety, sub-contrariety, contradiction, and subalternation. Two propositions are contraries when they cannot both be true but can both be false; sub-contraries can both be true but not both false; contradictories partition truth exactly, so precisely one of the pair holds.
Greimas, working with the linguist Francois Rastier, recast this logical apparatus as a tool for analysing meaning. The corners are no longer propositions but semantic positions. Begin with a single category articulated as two contrary terms, S1 and S2 (for instance, in a classic example, the opposition of "life" and "death", or of permitted and forbidden). Negation then generates two further terms, not-S1 and not-S2, the contradictories of the originals. The resulting four-term configuration is the elementary structure of signification: the smallest unit Greimas claims is needed to make an opposition fully articulate.
The playground fixes the canonical relational skeleton:
Keeping contrariety and contradiction apart is the conceptual load-bearing distinction. Contraries leave room for a middle (neither S1 nor S2); contradictories do not. Collapsing the two is the most common way the square is misused.
There is an exact algebraic fact underneath the diagram. Encode each corner with two bits: let the first bit mark the contradiction axis and the second the contrariety axis. In the playground's encoding S1 is (1,0), not-S1 is (0,0), S2 is (0,1), and not-S2 is (1,1). The three non-trivial moves on the square are then bit flips:
Each generator is its own inverse, applying it twice returns to the start, and any two of them compose to give the third. This is precisely the Klein four-group V4 = Z2 x Z2, the unique non-cyclic group of order four. The four corners are the group; there is nothing outside them, which is the algebraic content of the square's claim to closure. Double negation cancels because a composed with a is the identity, the group-theoretic statement that not-not-S1 is S1.
This is the part of the model that is genuinely exact, and it is what the calibration panel checks. None of the calibration values are written by hand: the contradictory of S1 is computed from the bit encoding and compared to the position labelled not-S1; the involution is checked by applying the contradiction map twice to every corner; the typed edges are looked up from the same adjacency matrix that the diagram draws; and the four-position closure is verified by encoding and decoding each corner. Every case is a structural fact about the group and the relation lattice, so each predicts 1 against an expected 1 with zero error.
The animated particles are a separate, optional layer. They trace reachability through whichever edges are enabled: in "from selected node" mode they emit from a chosen corner along directed and optionally undirected edges, visualising which positions are accessible from a given semantic commitment; the random walk mode shows which corners act as steady-state sinks under the current configuration. This transport is stochastic and carries no claim about meaning. The calibration deliberately verifies only the deterministic relation lattice and leaves the flow uncalibrated, because reading particle density as a statement about semantics would over-interpret the toy.
The square's reach is a structuralist wager, not a theorem. Its first assumption is that a semantic field can be exhausted by four positions; many oppositions are graded, multivalent, or otherwise non-binary (colour, temperature, kinship), and forcing them onto four corners either collapses categories or silently excludes a middle. Its second assumption is that negation is a clean involution; in intuitionistic or paraconsistent logics double negation does not return the original, and there the group structure dissolves. Its third is that the deictic diagonals carry a real directed implication, which is an analytic overlay rather than something the bare opposition forces.
The square has nonetheless been productive far beyond linguistics, in narratology, anthropology, design theory, and Fredric Jameson's literary criticism, precisely because it is a disciplined prompt: given one opposition, it asks you to name both contradictories and inspect the neutral and complex terms you might otherwise miss. The honest position is the one the playground takes. The relational skeleton, the involution, and the group structure are exact and checkable. The claim that any given field decomposes neatly into these four positions is a heuristic that sometimes illuminates and sometimes distorts, and it is for the analyst, not the diagram, to earn it case by case.