In their paper, "Logic as a Vector System" (Journal of Logic and Computation 2005 15(5): 751-765), Jonathan Westphal and Jim Hardy, describe propositional logic in terms of summed displacements in space. This allows for a fairly clean presentation of some common logical rules.
Modus Ponens
premise/conclusion | p | q |
---|---|---|
p -> q | -1 | 1 |
p | 1 | 0 |
q | 0 | 1 |
Modus Tollens
premise/conclusion | p | q |
---|---|---|
p -> q | -1 | 1 |
~q | 0 | -1 |
~p | -1 | 0 |
Disjunctive Syllogism
premise/conclusion | p | q |
---|---|---|
p v q | 1 | 1 |
~p | -1 | 0 |
q | 0 | 1 |
Hypothetical Syllogism
premise/conclusion | p | q | r |
---|---|---|---|
p -> q | -1 | 1 | 0 |
q -> r | 0 | -1 | 1 |
p -> r | -1 | 0 | 1 |
Constructive Dilemma
premise/conclusion | p | q | r | s |
---|---|---|---|---|
p -> q | -1 | 1 | 0 | 0 |
r -> s | 0 | 0 | -1 | 1 |
p v r | 1 | 0 | 1 | 0 |
q v s | 0 | 1 | 0 | 1 |
And so forth. You will note that you can get the conclusions from the premises by adding the columns. The reason for representing rules like this is that solving logical problems becomes vector addition in mathematics -- the summed displacements represent vectors, and then you can add the vectors. You can represent each of the above tables graphically, and the paper does so. Hypothetical Syllogism, of course, requires three dimensions and Constructive Dilemma four, but this doesn't affect the way the vectors work.
We see a similar structure in Term Functor Logic, in which p -> q is represented as -p+q, etc. TFL, of course, is mostly used for syllogisms, and can just be extended to propositional logic using analogies that have been known for well over a century and a half now. The pluses and minuses in TFL represent what in old-fashioned logical texts is called 'distribution'. But in any case, the analogies mean that Westphal's and Hardy's vectorization of propositional logic can be extended in the other direction to represent syllogisms.
Barbara Syllogism
premise/conclusion | S | M | P |
---|---|---|---|
All S is M | -1 | 1 | 0 |
All M is P | 0 | -1 | 1 |
All S is P | -1 | 0 | 1 |