This is a model of the syntax of sentential and quantified logic made of LEGO.
Sentential Logic
For sentential logic, each of the smallest yellow block-like assemblies represents an atomic sentence, and each red, light and dark grey, green, and blue T-shaped assembly represents a sentential logical connective ¬ (not), & (and), ∨ (or), ⊃ (if … then), and ≡ (if and only if), respectively. Each connective can be coupled with up to two atomic sentences and other connectives via LEGO Technic pins and pinholes, forming complex sentences of sentential logic in accordance with the sentence-formation rules of the syntax of sentential logic. 'A & ¬ B', for example, can be built as follows.
The basic elements of the model (the assemblies representing atomic sentences and connectives) are easiest to combine only in ways that the basic elements of the syntax of sentential logic can be combined to form sentences in accordance with its sentence-formation rules. Thus exploring this model can aid in one’s understanding of the syntax of sentential logic.
There are some differences between the syntax of sentential logic and the model that are worth noting. First, an advantageous way the model differs from the syntax concerns the fact that the design of the connectives in the model obviates the need for parentheses. The main connective of a sentence can be discerned by its higher y-axis position relative to other connectives, as the immediate component sentences of S are fitted onto its lower Technic pins. One can see the grammatical difference between '(A ∨ ¬ B) ⊃ C' and 'A ∨ (¬ B ⊃ C', for example, by noting that in the model of the former the ⊃ is highest connective, while in the latter, ∨ is the highest.
The physical construction of the models of these two sentences reflects the different ways the sentences are built via the sentence-formation rules of sentential logic. Note how these models reflect the differing syntax trees of these two sentences.
A limitation of the model's construction is that the connectives aren't stretchy. As a result, for some sentences, such as '(A & (B ⊃ C)) ∨ ((A ⊃ B) & C)', "connective extenders" must be used with the main connective in the model, so that there is enough physical space to fit low-level connectives between medium-level connectives.
Quantified Logic
When the yellow atomic sentence elements are replaced with the tan block-like property and relation assemblies, and the small yellow individuals and the black and white quantifiers and their variables (the last consisting of white labels connected to black ropes), the model can be used to represent sentences of quantified logic. Each quantifier will be fitted with an appropriate number of appropriate variable "ropes" (with variables matching the variable of the quantifier). (I should add that the idea of representing variables as ropes from quantifiers to argument positions in properties and relations can be traced back to a very similar idea communicated to me by Cody Gilmore at UC Davis of how he imagined variables in his theory of propositons, slot theory. For more on slot theory, see, e.g., Gilmore's 2013 article "Slots in Universals".)
The number of variables fitted to a quantifier will depend on the number of variables one needs to bind in the formula that falls within the scope of the quantifier. In '∀x x = a', for example, only one variable must be fitted to the ∀x quantifier, since there is only one variable that needs to be bound in 'x = a'.
In '∀x x = x', however, two variables must be fitted to the ∀x quantifier, since there are two variables that need to be bound in 'x = x'.
If the length of a formula bound by a quantifier is large, ropes can be added to extend the physical range of a variable, as in the following model of '∃x (Fx & ∀y (Fy ⊃ x = y))'.
The higher complexity of the model of quantified logic means there is more freedom of movement in it. In some cases, this freedom is reflected in the freedom one has in concatenating the vocabulary of quantified logic. The following assembly, for example, is naturally interpreted as representing the ungrammatical '∀xR'.
In other cases, however, the physical design of the model introduces more freedom of movement than is present in the concatenatability of the vocabulary of quantified logic. For example, properties and relations can be inappropriately fitted to the bottom of connectives. There is no expression of quantified logic--grammatical or ungrammatical--that could plausibly be said to be represented by the following assembly.
Perhaps stranger still, it is possible in a LEGO model for a quantifier to bind a variable outside its scope! Compare the following variant of the model of '∃x (Fx & ∀y (Fy ⊃ x = y))'. This would be a model of '∃x (Fy & ∀y (Fx ⊃ x = y))' except that in this sentence, the first occurrence of 'y' is not bound by the ∀y quantifier. In the model below, it shows this occurrence of 'y' as being so bound, since a y-variable rope from the ∀y quantifier is attached to one of the argument places in the first occurrence of the predicate 'F'. When writing a sentence of logic, it is not possible to bind an occurrence of a variable outside of a quantifier's scope, since the definition of a bound variable is just that it is a variable that occurs within the scope of the quantifier.
A last difference I'll mention between the syntax of quantified logic and the LEGO model of it is the fact the elements of the model can be internally modified due to them being composite structures made of LEGO elements. And, indeed, they must be internally modified sometimes, e.g., when fitting a quantifier with a certain number of variables. Compare how one versus two variable ropes are fitted to the ∀x quantifier in the models of '∀x x = a' and '∀x x = x' above. This is not something that has an analog in the syntax of quantified logic.
Factors like these may lower the pedagogical value of the LEGO model of quantified logic somewhat relative to that of the model of sentential logic. Students having trouble with the complexity of the syntax of quantified logic may have just as much trouble with the complexity of the LEGO model, including all the rules one must follow to avoid combining the elements in ways both possible with and not possible with the vocabulary of quantified logic. Still, some may find it more intuitive to learn rules when they concern allowable combinations of physical objects rather than of more abstract objects like the vocabulary of a language. There will be more rules governing model construction than just the direct analogs of the rules of syntax of quantified logic, yet still the two sets on rules can be explored in concert, providing opportunities for multi-modal exploration and reinforcement. So there is still a substantial measure of pedagogical value in the LEGO model of quantified logic.
Instructions for the model, including ideas for using connective extenders and fitting various numbers of variables to quantifiers, and a parts list, can be found at the link below.