Fact-checked by Grok 2 weeks ago

Logical matrix

In algebraic logic, a logical matrix is a semantic structure consisting of an algebra \mathbf{A} and a non-empty subset D of its carrier set A, where the elements of D are designated values that represent the acceptable or "true" truth values for formulas in a given logic. Logical matrices generalize the truth-table semantics of classical propositional to arbitrary algebraic structures, enabling the modeling of relations in a precise algebraic framework. A set of \Gamma entails a \phi in a \mathbf{L} if, for every logical matrix \langle \mathbf{A}, D \rangle that models \mathbf{L}, any valuation sending all elements of \Gamma to designated elements in D also sends \phi to D. This approach connects syntactic deduction to algebraic properties, such as filters and congruences, and is particularly powerful for protoalgebraic logics where reduced matrices (obtained via the Leibniz \mathbf{\Omega}_{\mathbf{A}}(D)) capture the logic's full semantics. The concept of logical matrices originated with in the 1920s, though it built on implicit ideas in Jan Łukasiewicz's work on many-valued logics, and was further formalized by figures like Jerzy Łoś and Roman Suszko in the mid-20th century. They form the foundation of matrix semantics, which applies to a wide range of non-classical logics, including intuitionistic, , and paraconsistent systems, by associating each logic with a class of such matrices that validate its theorems and rules. In practice, the Lindenbaum matrix—derived from the of the logic quotiented by its —provides a , ensuring every propositional logic admits a complete matrix semantics.

Fundamentals

Definition

A logical matrix is an m \times n matrix A = (a_{ij}) whose entries a_{ij} belong to the two-element \{0, 1\}, equipped with operations such as meet (\wedge), join (\vee), and complement (\neg). This is a special case of more general matrices over algebras B, where matrix operations use the algebraic operations of B (such as for meet and for join) rather than standard arithmetic, distinguishing them from real-valued matrices that rely on addition and multiplication over the reals. In this structure, $0 acts as the , $1 as , \wedge corresponds to logical AND (), \vee to logical OR (), and \neg to logical NOT (complement). This yields a or (0,1)-matrix, often termed a logical matrix in contexts involving relations. More generally, matrices over any B, such as the power set algebra \beta_k of subsets of a k-element set (with \cap as meet, \cup as join, and set complement as negation) or algebras of intervals over the reals ordered by inclusion, can be considered, though the term "logical matrix" is typically reserved for the {0,1} case. The dimensions m and n typically reflect the sizes of the domain and sets in applications like .

Relation Representation

A logical matrix provides a standard way to encode a binary relation R \subseteq X \times Y between finite sets X and Y, where |X| = m and |Y| = n. Assuming fixed enumerations X = \{x_1, \dots, x_m\} and Y = \{y_1, \dots, y_n\}, the corresponding m \times n logical matrix A = [a_{ij}] is defined such that a_{ij} = 1 if (x_i, y_j) \in R and a_{ij} = 0 otherwise. This construction yields a between the set of all R \subseteq X \times Y and the set of all m \times n matrices over \{0,1\}, as each possible corresponds uniquely to a choice of entries in the matrix based on membership in R. The original can be recovered from the matrix by determining that (x_i, y_j) \in [R](/page/R) if and only if a_{ij} = 1. When X and Y have different cardinalities, the resulting logical matrices are rectangular (non-square), reflecting the asymmetry in the dimensions of the Cartesian product X \times Y.

Examples

Basic Example

A fundamental example of a logical matrix is the two-valued matrix for classical propositional . The algebra \mathbf{A} is the with carrier set A = \{0, 1\}, where 0 represents falsehood and 1 truth. The operations are defined as follows: \land by \min(x, y) or xy, disjunction \lor by \max(x, y) or x + y - xy, and negation \lnot by $1 - x. The set of designated values is D = \{1\}. In this matrix \langle \mathbf{A}, D \rangle, a is valid if every valuation (homomorphism from the formula algebra to \mathbf{A}) maps it to 1 whenever the premises are mapped to 1. This captures the truth-table semantics of , where tautologies always evaluate to 1. For instance, the p \lor \lnot p evaluates to 1 for any assignment to p. To verify, consider the implicit in the operations: for p \land q, the values are 1 only if both are 1, matching classical AND.

Further Examples

For many-valued logics, consider Łukasiewicz's three-valued logic. The carrier set is A = \{0, \frac{1}{2}, 1\}, with conjunction \land defined as \min(x, y), disjunction \lor as \max(x, y), and implication \to as \min(1, 1 - x + y). The designated set can be D = \{1\} (strong) or D = \{\frac{1}{2}, 1\} (weak), depending on the variant. This matrix models intermediate truth values, useful for vague or uncertain statements. Another example is the matrix for , based on a \mathbf{A} (e.g., the chain A = \{0 < a < 1\} for a simple finite case). Operations include defined as the relative pseudocomplement: x \to y = \max\{z \mid x \land z \leq y\}, with D = \{1\}. Unlike , excluded middle p \lor \lnot p does not always evaluate to 1, reflecting intuitionistic rejection of without constructive evidence. These examples demonstrate how logical matrices adapt s to define semantics for non-classical logics, with designated values determining validity.

Properties

Core Properties

Logical matrices provide a semantic framework for propositional logics through their and designated values. A key property is the definition of the consequence relation: for a class of matrices \mathcal{M}, a set of formulas \Gamma entails \phi if, in every matrix \langle \mathbf{A}, D \rangle \in \mathcal{M}, every valuation v: \mathrm{Form} \to A such that v(\gamma) \in D for all \gamma \in \Gamma also satisfies v(\phi) \in D. This ensures that the semantics capture the logic's deductive rules in an algebraically precise manner. Another fundamental property involves reduced matrices, which eliminate redundancies in the carrier set. A matrix \langle \mathbf{A}, D \rangle is reduced if the Leibniz congruence \mathbf{\Omega}_{\mathbf{A}}(D) = \{(a, b) \in A \times A \mid \forall \phi \in \mathrm{Form}, \, \mathbf{A} \models \phi(a) \leftrightarrow \phi(b) \implies a \in D \iff b \in D\} is the equality relation on A. The reduced form is obtained by quotienting \mathbf{A} by this congruence, and for protoalgebraic logics, the reduced matrices fully determine the semantics. Logical matrices are particularly useful in protoalgebraic logics, where there exists a set of equivalence formulas \Delta(p, q) such that the Leibniz congruence for any filter coincides with the relation defined by \Delta. This property bridges syntax and semantics, allowing the logic to be characterized by algebraic filters and congruences. Filters in the algebra \mathbf{A} are subsets closed under the logic's operations and containing designated values, playing a analogous to theories in syntactic terms.

Lattice Structure

In the context of logical matrices, the underlying algebras \mathbf{A} are often lattice-based, such as algebras for or Heyting algebras for , where the carrier A forms a under meet and join operations. The set of all congruences on \mathbf{A} forms an algebraic , ordered by , with the trivial congruence as the bottom element and the full relation as the top; joins and meets correspond to the transitive closures and intersections of relations, respectively. This structure facilitates the study of quotient matrices and semantic equivalences. Additionally, the collection of filters on \mathbf{A} (upward closed subsets compatible with the designated set D) inherits a lattice structure under intersection (meet) and union-generated filters (join), forming a complete lattice that models the theories of the logic. For example, in classical propositional logic, the filters of the Boolean algebra correspond to the prime filters, yielding the Stone representation. This lattice-theoretic perspective underscores the connections between logical matrices and order theory in algebraic semantics.

Extensions

Logical Vectors

In the context of Boolean-valued logical matrices used for relation representation, a logical vector can be viewed as an n \times 1 or $1 \times n matrix with entries from the Boolean algebra \{[0](/page/0), [1](/page/1)\}. These arise as rows or columns of such matrices, capturing characteristic functions of subsets or preimages/images under relations. Operations on logical vectors are component-wise Boolean operations: disjunction \vee (OR), conjunction \wedge (AND), and negation \neg. For example, for vectors a = (1, 0, 1) and b = (0, 1, 1), a \vee b = (1, 1, 1). The Boolean inner product \langle a, b \rangle = \bigvee_{i=1}^n (a_i \wedge b_i) indicates if their supports overlap.

Row and Column Sums

For logical matrices representing binary relations or directed graphs over the domain, the cardinal row sum s_i = \sum_j a_{ij} gives the out-degree of i, and the column sum t_j = \sum_i a_{ij} the in-degree. In the semiring (addition \vee, multiplication \wedge), the row s_i = \bigvee_j a_{ij} is 1 if the row has at least one 1, indicating existence of relations. For the matrix A = \begin{pmatrix} 1 & 0 & 1 \\ 0 & 1 & 0 \\ 1 & 1 & 0 \end{pmatrix}, cardinal row sums are 2, 1, 2 and column sums 2, 2, 1; all sums are 1, as each row and column has at least one 1. This represents a where element 1 relates to 1 and 3, 2 to 2, and 3 to 1 and 2. In , extensions of logical matrices include reduced forms using the Leibniz \mathbf{\Omega}_{\mathbf{A}}(D) for capturing semantics in protoalgebraic logics.

References

  1. [1]
    Algebraic Propositional Logic - Stanford Encyclopedia of Philosophy
    Dec 12, 2016 · The logical matrix models of a given logic can be thought of as algebraic generalizations of its theories, more precisely, of its Lindenbaum ...
  2. [2]
  3. [3]
    [PDF] Directed Graphs, Boolean Matrices,and Relations
    For a directed graph Γ, one can construct the Boolean matrix MΓ containing complete information about Γ in the numerical form. If Γ has n vertices A = {a1, ..., ...
  4. [4]
    [PDF] Foundations of Computer Science [.5em] Comp109
    Definition A binary relation between two sets A and B is a subset. R of the ... The logical matrix M representing R is given by: M(i, j) = {. T if (ai,bj) ...
  5. [5]
    (PDF) Maximal Rectangular Relations - Academia.edu
    S~ce the correspondence between binary relations and 0-i matrices is well ~ o w n ~ let R be g ~ e n by the following matrix: R 1 2 3 4 5 1 0 1 1 0 0 2 i ...
  6. [6]
    [PDF] Binary Relations
    A binary relation R from a set A to a set B is a subset R ⊆ A × B. 1 Let A = {0,1,2} and B = {a,b} 2 {(0,a),(0,b),(1,a),(2,b)} is a relation from A to B. or ...Missing: logical | Show results with:logical
  7. [7]
    6.4: Matrices of Relations - Mathematics LibreTexts
    Aug 17, 2021 · In this section we will discuss the representation of relations by matrices. Representing a Relation with a Matrix. Definition \(\PageIndex{1}\) ...Missing: logical | Show results with:logical
  8. [8]
  9. [9]
    [PDF] Direct sum decompositions of quasi-ordered sets - SANU
    For a non-empty set X, P(X) will denote the Boolean algebra of subsets of X, B(X) will denote the Boolean algebra of binary relations on X, and. Ɛ(X) will ...
  10. [10]
    [PDF] MATRIX-VECTOR REPRESENTATION OF VARIOUS SOLUTION ...
    A characteristic vector of a union of sets is a sum of characteristic vectors of the sets united. Let P(R) and S(R) denote matrices representing π(ρ) and σ(ρ), ...
  11. [11]
    [PDF] Chapter 1 - Our Adversary: The Circuit
    If these operators are applied to boolean vectors or boolean matrices, then they are usually performed componentwise. Negation acts on ANDs and ORs via.<|control11|><|separator|>
  12. [12]
    None
    ### Summary of Boolean Inner Product from arXiv:0902.1290
  13. [13]
    None
    ### Summary: Adjacency Matrix for Digraphs
  14. [14]
    [PDF] Symmetric Sparse Boolean Matrix Factorization and Applications
    We provide a definition for Boolean semiring. ▷ Definition 12. The Boolean semiring is the set {0, 1} equipped with addition corresponding to logical OR ...