Fact-checked by Grok 2 weeks ago

Propositional formula

A propositional formula is a formal expression in propositional logic, constructed recursively from propositional variables (such as p, q, or r) and logical connectives, including (\neg), (\wedge), disjunction (\vee), (\rightarrow), and biconditional (\leftrightarrow). These formulas represent declarative statements that can be evaluated as true or false under a given truth assignment to the variables, forming the syntactic backbone of propositional logic. The ensures through rules: atomic propositions are formulas; if A is a formula, then \neg A is a formula; and if A and B are formulas, then (A \wedge B), (A \vee B), (A \rightarrow B), and (A \leftrightarrow B) are formulas. Propositional formulas enable the systematic analysis of logical inference, where their truth values are determined semantically via truth tables that exhaustively list all possible assignments of truth values (true or false) to the variables. For instance, the formula \neg p \vee q is true unless p is true and q is false, illustrating how connectives define truth-functional relationships. A formula is deemed valid (a ) if it evaluates to true under every possible assignment, such as (p \vee q) \leftrightarrow (q \vee p), which captures the commutativity of disjunction. Historically, propositional formulas emerged in the late as part of the development of modern logic, with key contributions from , who formalized connectives and their inferential roles, building on earlier Aristotelian ideas about syllogisms but abstracting away from content to focus on form. This abstraction distinguishes propositional logic from predicate logic, limiting analysis to whole propositions without internal structure. In contemporary applications, propositional formulas underpin in , including solving (SAT) for optimization problems and in software and , due to their decidability via exhaustive . Their simplicity yet expressiveness make them essential for modeling binary decisions in fields like and .

Fundamentals of Propositions

Definition and Basic Concepts

In logic, a is defined as a declarative statement that expresses a complete thought and possesses a definite , being either true or false but not both. For instance, the sentence "It is raining" qualifies as a because it can be verified as true or false depending on the current weather conditions, while "2 + 2 = 4" is always true as a mathematical fact. Propositions form the foundational units in propositional logic, distinguishing them from questions, commands, or exclamations that lack such binary truth values. A propositional formula, also referred to as a propositional expression, is a finite syntactic expression constructed by combining propositions using logical connectives, without the inclusion of quantifiers or variables that vary over domains. These formulas represent structured logical assertions that can be analyzed for their overall truth conditions based on the truth values of their components. propositions serve as the simplest building blocks of these formulas, while compound formulas arise from applying connectives to one or more or other compound propositions, enabling the expression of more complex relationships. In formal notation, atomic propositions are typically represented by uppercase letters such as P, Q, or R, allowing for abstract representation of any declarative statement with a truth value. This symbolic approach facilitates rigorous analysis without tying formulas to specific natural language sentences. Propositional formulas are essential for modeling binary decision-making and truth-functional structures across disciplines, including computer science for designing digital circuits and verifying program correctness, philosophy for evaluating deductive arguments, and mathematics for constructing proofs in discrete structures. Their simplicity in handling only truth values makes them a cornerstone for understanding more advanced logical systems.

Relation to Predicate Logic

Predicate logic, also known as , extends propositional logic by incorporating predicates, variables, and quantifiers such as ∀ () and ∃ (). In this framework, predicate formulas build upon propositional structures but allow for the expression of relations between objects and properties within a domain, enabling more complex statements about generality and specificity. Propositional formulas represent a special case within predicate logic, where atomic propositions—such as or —are treated as indivisible units without internal structure, relying solely on connectives like (∧) or (¬) to form compound statements. For instance, a propositional formula like [P](/page/P′′) \land [Q](/page/Q) captures the truth-functional combination of two atomic propositions but cannot specify the objects or relations they involve. In contrast, predicate logic treats such atoms as predicate applications, such as Man(x) for "x is a man," allowing formulas like \forall x (Man(x) \to Mortal(x)), which asserts "" by quantifying over a domain of individuals. This extension highlights key limitations of propositional logic: it lacks the expressive power to handle quantifications or relations, making it unable to formalize statements involving variables or claims, such as "there exists a mortal man" (\exists x (Man(x) \land [Mortal](/page/Mortal)(x))). Propositional logic thus serves as a foundational but restricted , suitable for analyzing sentence-level inferences without delving into sub-sentential components. Historically, propositional logic's development in the , building on earlier Aristotelian syllogistics, provided a simplified lens for studying logical connectives, paving the way for Gottlob Frege's introduction of predicate logic in , which integrated quantification to address these expressive gaps. This simplification allowed early logicians to isolate truth-functional aspects before tackling the fuller machinery of predicate logic, as formalized in Kurt Gödel's 1930 completeness theorem for systems.

Components of Formulas

Propositional Variables

Propositional variables, also known as propositions or sentence letters, are fundamental symbols in propositional that serve as placeholders for simple declarative statements capable of being true or false. These variables represent unspecified without specifying their content, allowing the focus to remain on the structure of logical expressions rather than particular facts about the world. By convention, propositional variables are typically denoted using lowercase letters such as p, q, r or uppercase letters with numerical subscripts like P_1, P_2, \dots, drawn from a countable to ensure an ample supply for any formula construction. This notation facilitates clear distinction among variables, where each distinct symbol is treated as representing a potentially unique . The primary role of propositional variables is to formalize logical arguments by abstracting away from concrete propositions, enabling generalization and analysis of patterns across diverse contexts. For example, one might substitute p with the "Snow is white" and q with "Grass is green" to instantiate a general , thereby testing the logical validity of relationships without reliance on the actual truth of those specific statements. This abstraction underscores how distinct variables maintain , as they can be assigned differing truth values in any given .

Logical Connectives

Logical connectives, also known as propositional connectives, are operators that combine propositional variables to form compound propositions in propositional logic. These connectives allow the construction of complex statements from simpler ones, serving as the building blocks for expressing relationships between propositions. The standard unary connective is negation, denoted by ¬ or ~, which reverses the truth value of its operand: ¬P is true if and only if P is false. The common binary connectives include (∧ or AND), disjunction (∨ or OR), (→ or ⇒), and biconditional (↔ or ⇔). Their intuitive meanings are as follows:
ConnectiveSymbol(s)Intuitive Meaning
True only if both operands are true (e.g., P ∧ Q holds when P and Q both occur).
DisjunctionTrue if at least one operand is true (inclusive OR, e.g., P ∨ Q holds if either or both occur).
→, ⇒True unless the first operand is true and the second is false (e.g., P → Q means if P then Q).
Biconditional↔, ⇔True if both operands have the same (e.g., P ↔ Q means P Q).
In and computational contexts, disjunction often defaults to inclusive OR, but (⊕ or XOR) is a variant that is true only if exactly one operand is true. The origins of these connectives trace back to philosophical reasoning in Aristotle's syllogisms, which laid foundational ideas for relating propositions through deduction in works like the Prior Analytics. In the 19th century, advanced this by formalizing logic algebraically, mapping operations like addition to disjunction and multiplication to conjunction in his The Mathematical Analysis of Logic (1847) and An Investigation of (1854). A ternary connective, if-then-else (often denoted as IF P THEN Q ELSE R), selects Q if P is true and R otherwise; it is equivalent to (P ∧ Q) ∨ (¬P ∧ R). This connective, inspired by programming constructs, extends binary operators for conditional expressions in logic.

Syntax and Construction

Inductive Definition

A propositional formula is defined inductively as the smallest set of expressions closed under a base case and specific formation rules using logical connectives. In the base case, the atomic formulas consist of propositional variables, such as p, q, r, and the truth constants [\top](/page/top) (true) and \bot (false). For the inductive step, given any formulas \phi and \psi, the following compound expressions are also formulas: the \neg \phi; the (\phi \wedge \psi); the disjunction (\phi \vee \psi); the (\phi \to \psi); and the biconditional (\phi \leftrightarrow \psi). Parentheses are required around compound expressions to ensure structural clarity and unambiguous nesting, though the outermost pair may sometimes be omitted in informal notation. The set of all propositional formulas is thus the under these rules, meaning it includes exactly those expressions generated by starting from formulas and repeatedly applying the inductive steps. To illustrate, consider constructing the formula (([p](/page/P′′) \wedge [q](/page/Q)) \to [r](/page/R)):
  • Base: [p](/page/P′′), [q](/page/Q), and [r](/page/R) are formulas.
  • Inductive: ([p](/page/P′′) \wedge [q](/page/Q)) is a , as it applies to [p](/page/P′′) and [q](/page/Q).
  • Inductive: (([p](/page/P′′) \wedge [q](/page/Q)) \to [r](/page/R)) is a , as it applies to ([p](/page/P′′) \wedge [q](/page/Q)) and [r](/page/R).

Well-Formed Formulas

In propositional logic, a (WFF), also known as a well-formed expression, is a finite over a specified that adheres strictly to the syntactic rules of the , ensuring it can be unambiguously interpreted as a logical expression. These rules are derived from the inductive definition of formulas, which builds expressions recursively from basic components. Unlike semantically valid formulas, which are true under all interpretations, WFFs concern only syntactic correctness and do not imply truth or falsity. The alphabet for propositional formulas consists of propositional variables (typically denoted by uppercase letters such as P, Q, or lowercase p, q), logical connectives (including \neg or \sim, \land, disjunction \lor, \to or \Rightarrow, and \leftrightarrow or \Leftrightarrow), and parentheses ( and ) to enforce grouping. A string qualifies as a WFF through a recursive : atomic formulas, such as single propositional variables (e.g., P), are WFFs by case; a negated formula \neg \phi is a WFF if \phi is a WFF; and a compound formula (\phi \circ \psi) is a WFF if \phi and \psi are WFFs and \circ is a binary connective, with parentheses ensuring balanced nesting. This recursion guarantees that every subexpression is itself a WFF, preventing malformed structures. For instance, the expression ((P \to Q) \land R) is a WFF, as it is built by first recognizing [P](/page/P′′) and [Q](/page/Q) as atomic WFFs, forming (P \to Q), then combining it with [R](/page/R) using \land under outer parentheses. In contrast, P \land Q \to R is not a WFF due to missing parentheses, which would render the structure ambiguous and fail the recursive balance check. Another valid example is \neg \neg ([P](/page/P′′) \to [Q](/page/Q)), formed by successive negations of the WFF ([P](/page/P′′) \to [Q](/page/Q)). Well-formedness is preserved under : replacing any in a WFF with another WFF (fully parenthesized if compound) yields a new WFF, maintaining syntactic integrity without altering the recursive structure. This property allows for the construction of complex expressions while ensuring all remain syntactically valid.

Parsing and Precedence

propositional formulas requires unambiguous rules to interpret linear strings of symbols, as well-formed formulas may lack sufficient parentheses to dictate grouping. These rules, known as precedence and associativity conventions, establish a standard and grouping for logical connectives, allowing consistent without full parenthesization. The standard precedence order assigns the highest priority to (¬), followed by (∧), then disjunction (∨), and finally (→) and (↔) at the lowest level. For instance, the formula ¬p ∧ q is parsed as (¬p) ∧ q, where binds more tightly to p than does. Similarly, ∧ and ∨ take precedence over →, so p → q ∧ r is interpreted as p → (q ∧ r). Associativity determines grouping when multiple connectives of the same precedence appear consecutively. and disjunction are left-associative, meaning p ∧ q ∧ r parses as (p ∧ q) ∧ r, and likewise for ∨. In contrast, and are right-associative, so p → q → r is parsed as p → (q → r). These conventions apply only to syntactic parsing and do not alter the semantic commutativity of ∧ and ∨, where p ∧ q is equivalent to q ∧ p despite the fixed left-to-right grouping. While precedence and associativity reduce the need for parentheses in many cases, fully parenthesized formulas eliminate all ambiguity and are required for non-standard interpretations. For example, the ambiguous string p ∧ q → r could be intended as (p ∧ q) → r or p ∧ (q → r), necessitating explicit parentheses to specify the grouping. Adhering to these conventions ensures that well-formed formulas are parsed consistently across logical systems.

Semantics and Evaluation

Truth Values and Assignments

In propositional logic, the semantics are bivalent, meaning every atomic proposition assumes exactly one of two truth values: true (often denoted as 1, T, or \top) or false (denoted as 0, F, or \bot). These truth values form the foundational building blocks for evaluating the truth of more complex formulas. A truth assignment, or valuation, is a function v that assigns to each propositional variable one of these two truth values, thereby specifying a complete for the variables in a given . For instance, in a language with variables p and q, one possible assignment might be v(p) = \top and v(q) = \bot. Given n distinct propositional variables, the total number of possible truth assignments is $2^n, as each variable can independently take one of two values. Propositional constants include \top, which evaluates to true under every truth assignment, and \bot, which evaluates to false under every truth assignment. To illustrate, consider the two propositional variables p and q; the four possible truth assignments are enumerated in the following table:
pq
\top\top
\top\bot
\bot\top
\bot\bot

Formula Evaluation

The evaluation of a propositional formula under a given truth assignment proceeds recursively, starting from the atomic propositions and building up to compound subformulas using the semantics of the logical connectives. A truth assignment, or valuation, assigns a (true, denoted T, or false, denoted F) to each , and this extends inductively to all formulas. For an p, the value v(p) is simply the assigned of p. For , v(\neg \phi) is T if v(\phi) is F, and F otherwise. For , v(\phi \wedge \psi) is T if and only if both v(\phi) is T and v(\psi) is T; otherwise, it is F. For disjunction, v(\phi \vee \psi) is T if at least one of v(\phi) or v(\psi) is T; otherwise, it is F. For , v(\phi \to \psi) is F only if v(\phi) is T and v(\psi) is F; in all other cases, it is T. For biconditional, v(\phi \leftrightarrow \psi) is T if v(\phi) and v(\psi) have the same , and F otherwise. These semantics for the connectives are often presented via truth tables, which exhaustively list the output truth values for all possible input combinations from the operands. The following table shows the truth tables for the connectives, assuming standard truth values T and F:
\phi\psi\phi \wedge \psi\phi \vee \psi\phi \to \psi\phi \leftrightarrow \psi
TTTTTT
TFFTFF
FTFTTF
FFFFTT
For instance, the for the p \to q is derived directly from the row above, with the four rows corresponding to all possible assignments to p and q. Certain formulas, such as the nullary connective \top (always T) and \bot (always F), interact with other formulas in identity-like ways during evaluation. Specifically, for any \phi, v(\phi \vee \bot) = v(\phi), since disjoining with F preserves the value of \phi; similarly, v(\phi \wedge \top) = v(\phi), as conjoining with T also preserves it. To illustrate, consider the formula (p \wedge q) \to r under the assignment where v(p) = \mathrm{T}, v(q) = \mathrm{F}, and v(r) = \mathrm{T}. First, evaluate the subformula p \wedge q: since v(p) = \mathrm{T} and v(q) = \mathrm{F}, v(p \wedge q) = \mathrm{F}. Then, v((p \wedge q) \to r) = v(\mathrm{F} \to \mathrm{T}) = \mathrm{T}, as the antecedent is F.

Tautologies and Validity

In propositional logic, a tautology is a formula that evaluates to true under every possible truth assignment to its propositional variables. For instance, the formula p \lor \neg p (the ) is a because it holds regardless of whether p is true or false. A valid formula is synonymous with a , particularly in contexts involving , where it denotes a that cannot be false. In contrast, a is a that evaluates to false under every truth assignment, such as p \land \neg p, which is impossible for any value of p. A is satisfiable if there exists at least one truth assignment under which it evaluates to true; otherwise, it is unsatisfiable, which is equivalent to being a . To detect whether a formula is a tautology, contradiction, or satisfiable, one can construct an exhaustive that enumerates all possible assignments for its variables and evaluates the formula in each case. For a formula with n variables, the table has $2^n rows. Consider the formula (p \to q) \lor (q \to p), where \to denotes (equivalent to \neg p \lor q). The below demonstrates that it is a , as it yields true in every row:
pqp \to qq \to p(p \to q) \lor (q \to p)
TTTTT
TFFTT
FTTFT
FFTTT
This method confirms the formula's status by inspection. Valid formulas, or tautologies, play a central role in logical inferences by preserving truth: if a conclusion is a valid consequence of premises, no assignment can make the premises true while falsifying the conclusion, ensuring sound deductions.

Algebraic Structure

Propositional logic possesses a rich algebraic structure, specifically that of a Boolean algebra. The carrier set consists of equivalence classes of propositional formulas under logical equivalence, where two formulas are equivalent if they have the same truth value in every interpretation. The Boolean operations are defined by the logical connectives: conjunction \wedge as meet, disjunction \vee as join, negation \neg as complement, with constant formulas \top (tautology) as the top element and \bot (contradiction) as the bottom element. This structure captures the semantic relationships among formulas algebraically.

Propositional Calculus

The propositional calculus provides a formal deductive framework for reasoning about propositional formulas, where theorems are derived from a set of axioms using specified rules. This system ensures that valid inferences in can be mechanically justified through syntactic alone. In this calculus, propositions are treated algebraically, with logical connectives functioning as operations that combine propositions or formulas to yield new formulas. The connectives, such as (→), (¬), (∧), and disjunction (∨), form the basis for constructing the algebra, allowing the expression of complex relationships among truth-bearing statements. A prominent formulation is the Hilbert-style system, which relies on a finite set of axiom schemas for the implicational and negation fragments of propositional logic. The core axiom schemas include:
  • p \to (q \to p)
  • (p \to (q \to r)) \to ((p \to q) \to (p \to r))
  • (\neg p \to \neg q) \to (q \to p)
For classical propositional logic, an additional schema such as elimination, \neg\neg p \to p, or , ((p \to q) \to p) \to p, is included to capture the . These schemas are applied uniformly via of arbitrary formulas for propositional variables. The primary inference rule is : from formulas \phi and \phi \to \psi, infer \psi. Uniform substitution serves as a meta-rule, allowing consistent replacement of variables throughout a formula or proof. Together, these enable the derivation of theorems, which are formulas provable from the axioms without premises. Among the theorems derivable in this system is the , p \vee \neg p, which asserts that every proposition is either true or false. A basic example is the derivation of reflexivity for implication, p \to p, proceeding as follows using the first two axiom schemas and :
  1. p \to ((p \to p) \to p) (axiom 1, substituting q with p \to p)
  2. (p \to ((p \to p) \to p)) \to ((p \to (p \to p)) \to (p \to p)) (axiom 2, substituting appropriately)
  3. p \to (p \to p) (modus ponens from 1 and 2)
  4. (p \to p) \to (p \to (p \to p)) \to (p \to p) (axiom 1, substituting q with p \to p)
  5. p \to (p \to p) \to (p \to p) (modus ponens from 3 and 4)
  6. p \to p (modus ponens from 3 and 5)
This deduction illustrates how even simple identities require multiple applications of the axioms and rule. The Hilbert-style is , meaning every provable is semantically valid (a under all truth assignments), and complete, meaning every is provable within the system. The completeness result for propositional logic was first established by Emil Post in 1921.

Logical Equivalences and Laws

in propositional logic refers to the relation between two formulas \phi and \psi, denoted \phi \equiv \psi, where the formulas have the same under every possible truth assignment to their propositions. This equivalence preserves the semantic meaning of formulas and enables rewriting them without altering their truth conditions, which is fundamental for simplification and proof construction. Key logical equivalences include , which handle negations over conjunctions and disjunctions: \neg(\phi \land \psi) \equiv \neg\phi \lor \neg\psi \neg(\phi \lor \psi) \equiv \neg\phi \land \neg\psi The distributive laws allow one connective to distribute over another, analogous to arithmetic distribution: \phi \land (\psi \lor \chi) \equiv (\phi \land \psi) \lor (\phi \land \chi) \phi \lor (\psi \land \chi) \equiv (\phi \lor \psi) \land (\phi \lor \chi) laws eliminate redundant terms by absorbing one subformula into another: \phi \land (\phi \lor \psi) \equiv \phi \phi \lor (\phi \land \psi) \equiv \phi The law states that applying negation twice returns the original : \neg\neg\phi \equiv \phi For implications, the can be expressed as a disjunction, and it is equivalent to its contrapositive: \phi \to \psi \equiv \neg\phi \lor \psi \phi \to \psi \equiv \neg\psi \to \neg\phi These equivalences can be verified through evaluation, where corresponding formulas yield identical truth values for all assignments. As an example, consider simplifying the formula \neg(p \land q) \lor (p \land \neg q). Applying De Morgan's law gives (\neg p \lor \neg q) \lor (p \land \neg q), which associates to \neg p \lor (\neg q \lor (p \land \neg q)). Now, apply the distributive law to the inner part: \neg q \lor (p \land \neg q) = (\neg q \lor p) \land (\neg q \lor \neg q) = (p \lor \neg q) \land \neg q. Substituting back: \neg p \lor [(p \lor \neg q) \land \neg q]. Distribute the disjunction: [\neg p \lor (p \lor \neg q)] \land [\neg p \lor \neg q] = [(\neg p \lor p) \lor \neg q] \land (\neg p \lor \neg q) = (\top \lor \neg q) \land (\neg p \lor \neg q) = \neg p \lor \neg q.

Simplification Techniques

Normal Forms

In propositional logic, a literal is an atomic proposition (propositional variable) or its negation. A term is a conjunction of one or more literals, while a clause is a disjunction of one or more literals. The (DNF) of a propositional formula is a disjunction of one or more terms. For example, the formula (p \land \lnot q) \lor (\lnot p \land q) is in DNF. A minterm is a specific type of term that includes exactly one literal for each in the formula, either the variable itself or its negation, corresponding to a complete truth assignment. For instance, with variables p, q, and r, the minterm p \land q \land \lnot r represents the assignment where p and q are true and r is false. Dually, the (CNF) of a propositional formula is a of one or more s. For example, the formula (p \lor \lnot q) \land (\lnot p \lor q) is in CNF. A maxterm is a specific type of that includes exactly one literal for each , where the disjunction is false only for a particular truth assignment. These forms arise as duals in the of propositions, with maxterms playing the role in CNF analogous to minterms in DNF. Every propositional formula is logically equivalent to a in DNF, obtained by disjoining the minterms corresponding to truth assignments that satisfy the original formula. Similarly, every propositional is equivalent to a in CNF, formed by conjoining the maxterms for assignments that falsify it. The canonical (or full) DNF and CNF, which use only minterms and maxterms respectively, are unique for a given up to the ordering of their components. Logical equivalences, such as and distributivity, facilitate the transformation to these normal forms.

Reduction Methods

Reduction methods for propositional formulas involve algorithmic techniques to simplify expressions by converting them into equivalent forms with fewer operators or literals, typically targeting normal forms like (DNF). These methods leverage the semantic structure of formulas, using exhaustive enumeration or systematic grouping to identify minimal representations. The truth table method provides a foundational approach for simplification. To apply it, one constructs the full for the formula by enumerating all possible truth assignments to its variables and evaluating the formula's under each assignment. The minterms—conjunctions of literals corresponding to assignments where the formula is true—are then collected and disjoined to yield an equivalent DNF expression. This exhaustive process guarantees but becomes computationally intensive for formulas with more than a few variables, as the table size grows exponentially with the number of variables. Karnaugh-Veitch maps offer a graphical alternative for visualizing and minimizing functions, particularly effective for up to four or five variables. Developed by Edward W. Veitch in 1952 as a chart method for simplifying truth functions and refined by in 1953 into a more intuitive grid using ordering, these maps arrange the 2^n cells of a in a grid where adjacent cells differ by exactly one variable. To use a Karnaugh-Veitch map, first generate the and plot 1s in cells where the is true; then, group contiguous 1s (including wrap-arounds) into the largest possible rectangles representing prime implicants, where each group corresponds to a simplified that covers those minterms. The minimal DNF is the disjunction of terms from these essential implicants. For instance, consider the exclusive-or (XOR) function for two variables, p \oplus q = (p \land \lnot q) \lor (\lnot p \land q); on a 2-variable map, the two 1s at positions (p=true, q=false) and (p=false, q=true) are separate groups since they are not adjacent, resulting in the minimal DNF of two terms, equivalent to p \oplus q, highlighting the map's ability to reveal equivalences visually. The steps for applying Karnaugh-Veitch maps are systematic: (1) produce the to identify true assignments; (2) draw the map with variables labeled along axes in sequence; (3) fill cells with 1s for true values and encircle maximal groups of 1s, ensuring each 1 is covered by at least one while minimizing the number of groups and literals; (4) derive the simplified by reading product terms from each group, where unchanged variables form literals and omitted variables indicate . This method reduces manual effort compared to raw s by exploiting adjacency to eliminate redundant literals. For larger numbers of variables beyond four, where maps become unwieldy, the Quine-McCluskey algorithm provides a tabular minimization technique. Introduced theoretically by Willard V. Quine in for finding irredundant normal forms of truth functions and implemented algorithmically by Edward J. McCluskey in , it systematically combines minterms into prime implicants through iterative pairwise comparisons. The process begins by listing minterms in binary and grouping them by the number of 1s; successive tables merge compatible terms (differing in one bit) into implicants, marking those not subsumed, until no further combinations are possible. A covering table then selects a minimal set of prime implicants that cover all minterms. This exhaustive search ensures optimality but has worst-case complexity, making it suitable for computer implementation up to around 10 variables. An illustrative example of reduction using a Karnaugh-Veitch is simplifying (p \land q) \lor (p \land \lnot q) \lor (\lnot p \land q). The shows this is true except when both p and q are false. On a 2-variable , the three 1s are covered by two groups (the column where p is true and the row where q is true), yielding the simplified form p \lor q. To verify any reduced , recompute its and confirm it matches the original formula's truth values across all assignments, ensuring semantic equivalence without altering the function.

Advanced and Specialized Topics

Functional Completeness

In propositional logic, a set of logical connectives is functionally complete if every possible on a finite number of propositional variables can be expressed using only those connectives and propositional variables. This means that any , represented by a , can be realized as a propositional formula built from the set. For instance, the set consisting of (∧) and (¬) is functionally complete, as any propositional formula can be converted to an equivalent one in using only these connectives. A notable achievement in this area is the identification of single binary connectives that are themselves functionally complete. The , denoted as | and defined by the formula p | q \equiv \neg (p \wedge q), where it evaluates to true only if at least one of p or q is false, suffices alone to express all truth functions. To see this, can be derived as \neg p \equiv p | p, since applying the stroke to a proposition with itself yields its opposite truth value. follows as p \wedge q \equiv (p | q) | (p | q), which negates the NAND of p and q. Disjunction and other connectives can then be obtained via , such as p \vee q \equiv \neg(\neg p \wedge \neg q) \equiv (p | p) | (q | q). Dually, the NOR connective, denoted as ↓ and defined by p \downarrow q \equiv \neg (p \vee q), which is true only if both p and q are false, is also individually functionally complete. Negation is \neg p \equiv p \downarrow p, and conjunction can be expressed as p \wedge q \equiv \neg (p \downarrow q) \equiv (p \downarrow q) \downarrow (p \downarrow q), with other operations derivable similarly. Ternary connectives provide another avenue for completeness. The if-then-else (ITE) connective, a three-argument operation ite(p, q, r) that evaluates to q if p is true and to r otherwise, is functionally complete when constants for true (⊤) and false (⊥) are available. It expresses as ite(p, ⊥, ⊤), disjunction as ite(p, ⊤, q), and as ite(p, q, ⊥), thereby generating all binary connectives and, with them, every . The systematic classification of functionally complete sets is captured by Post's lattice, which organizes all possible sets of Boolean functions based on the closure properties they generate. Post's functional completeness theorem states that a set of connectives is complete if and only if, for each of five specific classes of truth functions—those preserved under the constant true (1), constant false (0), (linear functions), monotonicity, and self-duality—the set contains at least one connective not belonging to that class. This lattice provides a comprehensive framework for determining minimality and equivalence among connective sets, highlighting that NAND and NOR occupy maximal positions as single-connective bases.

Impredicative Propositions

Impredicative propositions arise in when a proposition is defined in terms of a totality that includes itself, creating a form of that can lead to foundational challenges. This concept is closely tied to impredicative definitions, where an entity is specified by quantifying over a domain that encompasses the entity being defined, potentially resulting in circularity or paradox. A seminal example is , which illustrates the issue in the context of sets but extends to propositional structures: consider the that asserts "the totality of all propositions that do not assert themselves," leading to a if it either asserts or denies itself. A classic illustration of self-referential impredicativity is Berry's paradox, phrased as "the smallest positive integer not definable in fewer than eleven words." This description uses fewer than eleven words to define the number, yet the number is supposed to be the smallest undefinable in such a way, generating an inconsistency through implicit to the definability totality. Standard propositional logic avoids impredicativity and self-reference by restricting formulas to non-self-referential constructions, relying on atomic propositions without quantification over totalities including themselves. Such paradoxes like the , informally represented as a sentence asserting its own falsity, are not expressible as formal propositional formulas and are instead analyzed in modal or higher-order logics. They highlight limitations in formal systems but do not fit within classical propositional syntax. Philosophically, impredicative constructions imply challenges in truth assignments and relate to , where self-referential constructions via produce undecidable propositions in arithmetic, underscoring that sufficiently expressive logical systems cannot prove all their truths consistently. More robust avoidance strategies include stratified definitions, which impose hierarchies to prevent , as in Russell's ramified , or impredicativity-free type theories that limit quantification to previously defined levels.

Formulas with

Propositional logic can be used to model systems with , such as in digital , where state transitions are defined using propositional connectives over time steps. Unlike static propositional formulas, which evaluate to a fixed based on atomic propositions, systems incorporate or loops, often represented as \phi(t+1) = f(\phi(t), inputs), where f is built from propositional connectives. These are analyzed by unrolling the recurrence into a static propositional formula over a finite number of time frames. A basic illustration of feedback is the oscillating system \phi(t+1) = \neg \phi(t), which alternates truth values periodically—true at even time steps and false at odd ones, assuming an initial value—analogous to a toggle mechanism in digital circuits that flips state without external inputs. This recursive negation captures simple periodic behavior, where the system's evolution depends on its prior output, leading to cycles rather than convergence to a single truth value. Such oscillation is evident in feedback loops within logic gates, where the output feeds back to the input, preventing static resolution. Memory elements further exemplify feedback through propositional definitions that retain state when unrolled. The SR flip-flop, a core component for bistable storage, follows the Q(t+1) = S \lor (\lnot R \land Q(t)), where S sets the output to true, R resets it to false, and the term \lnot R \land Q(t) preserves the current state Q(t) in the absence of reset; this avoids simultaneous set and reset to prevent inconsistency. A once-flip mechanism, used for irreversible setting, can be modeled as Q(t+1) = (Trigger \land \lnot Q(t)) \lor Q(t), where a single trigger event sets Q to true, after which it remains latched regardless of further inputs, simulating one-time activation. Clocked variants synchronize these transitions with an external C, modifying the equations to Q(t+1) = C \land (S \lor (\lnot R \land Q(t))), ensuring state updates occur only at clock edges to manage timing in larger systems. These feedback constructs find applications in digital logic, particularly with latches that extend combinational gates to sequential ones, enabling in processors and counters. In , such systems are encoded as propositional formulas for solving. In non-monotonic reasoning frameworks, feedback allows prior states to influence future evaluations, permitting defeasible conclusions that may revise with new inputs, unlike the monotonicity of . Fundamentally, feedback systems differ from classical propositional evaluation through time-dependent behavior, often analyzed via unrolling into static propositional formulas over multiple time frames for .

References

  1. [1]
    SI242: Propositional formulas
    Definition 3: A propositional formula is defined by the following rules: Propositional variables are propositional formulas; If A is a propositional formula ...
  2. [2]
    Propositional Logic - Stanford Encyclopedia of Philosophy
    May 18, 2023 · Propositional logic is the study of the meanings of, and the inferential relationships that hold among, sentences based on the role that a specific class of ...
  3. [3]
    1 Propositional Logic
    Definition 1.1. A propositional formula is defined as follows. 1. Symbols T and F are propositional formulas. 2. A propositional variable is a propositional ...
  4. [4]
    [PDF] CHAPTER 2 1. Logic Definitions 1.1. Propositions ... - FSU Math
    1.1. Propositions. Definition 1.1. 1. A proposition is a declarative sentence that is either true (denoted either T or 1) or false (denoted either F or 0).
  5. [5]
    Propositional Logic | Internet Encyclopedia of Philosophy
    Propositional logic, also known as sentential logic, is that branch of logic that studies ways of combining or altering statements or propositions to form more ...Introduction · The Language of Propositional... · Deduction: Rules of Inference...
  6. [6]
    [PDF] LECTURE 7: PROPOSITIONAL LOGIC (1)
    • Definition: A proposition is a statement that can be either true or false; it must be one or the other, and it cannot be both. • EXAMPLES.
  7. [7]
    [PDF] Propositional Logic 1 Introduction 2 Syntax of Propositional Logic
    Propositional logic analyses how the truth values of compound sentences depend on their con- stituents. The most basic kind of sentences are atomic ...
  8. [8]
    Propositional Logic - Discrete Mathematics - An Open Introduction
    A proposition is simply a statement. Propositional logic studies the ways statements can interact with each other.<|control11|><|separator|>
  9. [9]
    [PDF] Propositional Logic | Discrete Mathematics
    Jan 31, 2021 · Computer science. To prove correctness of software/hardware. Used in computer circuit design. Used in modeling programming languages.
  10. [10]
    Propositional Logic | Baeldung on Computer Science
    Mar 18, 2024 · Propositional logic is a branch of logic, philosophy, and discrete mathematics that focuses on the study of statements and their relationships.3. Statements · 4. Declarative Versus... · 5. Well-Formed Formulas
  11. [11]
    Classical Logic - Stanford Encyclopedia of Philosophy
    Sep 16, 2000 · One-place predicate letters, called “monadic predicate letters”, correspond to linguistic items denoting properties, like “being a man ...
  12. [12]
    The Emergence of First-Order Logic (Stanford Encyclopedia of ...
    Nov 17, 2018 · First-order logic has long been regarded as the “right” logic for investigations into the foundations of mathematics.2. Charles S. Peirce · 8. David Hilbert And Paul... · 11. Conclusions
  13. [13]
    Connective -- from Wolfram MathWorld
    The terms "logical connective" and "propositional connective" (Mendelson 1997, p. 13) are also used. The following table summarizes some common connectives and ...
  14. [14]
  15. [15]
    XOR -- from Wolfram MathWorld
    XOR is a connective in logic known as the "exclusive or," or exclusive disjunction. It yields true if exactly one (but not both) of two conditions is true.
  16. [16]
    [PDF] Chapter Two: The Origins of Logic From Language to Reason
    From his Logical foundations, Aristotle went on to developed his system of Logical. Deduction, for which he uses the Greek term 'sullogismos' (the standard ...
  17. [17]
    None
    ### Summary of Boole's Contributions to Logical Connectives or Algebra
  18. [18]
    [PDF] The Logic of the Ternary Sentential Connective “If-Then-Else”
    Jul 2, 1997 · This document discusses the ternary (i.e., 3-place) if-then-else sentential connective, which is based on the if-then-else.
  19. [19]
    [PDF] syn.1 Propositional Formulas - Open Logic Project Builds
    The definition of formulas is an inductive definition. Essentially, we con- struct the set of formulas in infinitely many stages. In the initial stage, we.
  20. [20]
    [PDF] Propositional Logic: Syntax and Structural Induction
    Let P be a set of propositional variables. We define the set of well-formed formulas over P inductively as follows. 1. A propositional variable in P is ...
  21. [21]
    1.2 Well-formed formulas ‣ Chapter 1 Logic ‣ MATH0005 Algebra 1 ...
    Collections of propositional variables, connectives, and brackets to which we can give a sensible meaning will be called well-formed formulas.
  22. [22]
    [PDF] Logic Propositional Logic: Syntax Wffs - Cornell: Computer Science
    Typical formula: P ∧ (¬P ⇒ (Q ⇒ (R ∨ P))). 3. Wffs. Formally, we define well-formed formulas (wffs or just formulas) inductively (remember Chapter 2!): The ...
  23. [23]
    Propositional Logic - A short introduction
    ### Summary of Well-Formed Formulas (WFFs) in Propositional Logic
  24. [24]
    Operator Precedence - Stanford Introduction to Logic
    Operator precedence is an ordering of logical operators designed to allow the dropping of parentheses in logical expressions.
  25. [25]
    [PDF] 15414/614 Optional Lecture 1: Propositional Logic
    → and ↔ are right-associative. 2.3 Well-formed Propositional Formulas. The well-formed formulas of propositional logic are obtained by using the con-.
  26. [26]
    Truth Values - Stanford Encyclopedia of Philosophy
    Mar 30, 2010 · Functions whose values are truth values are called propositional functions. Frege also referred to them as concepts (Begriffe). A typical kind ...
  27. [27]
    Chapter 2 - Stanford Introduction to Logic
    We then introduce the notion of a truth assignment and use it to define the meaning of Propositional Logic sentences. After that, we present a mechanical method ...
  28. [28]
    Introduction to Logic - Lesson 2.5
    ... Propositional Logic sentences. ... Note that, for a propositional language with n proposition constants, there are n columns in the truth table and 2n rows.
  29. [29]
    [PDF] Propositional Logic: Semantics
    Values of formulas. The value assigned to formulas by a truth valuation t is defined by recursion: pt ∈ {1,0}. (¬A) t. = (. 1, if At. = 0,. 0, otherwise. (A∧B).
  30. [30]
    Contradiction -- from Wolfram MathWorld
    A sentence is called a contradiction if its truth table contains only false entries. See also Consistency Strength, Contingency, Tautology, Truth Table
  31. [31]
    Tautology -- from Wolfram MathWorld
    A tautology is a logical statement in which the conclusion is equivalent to the premise. More colloquially, it is formula in propositional calculus which is ...
  32. [32]
    Chapter 4 - Stanford Introduction to Logic
    The Hilbert system is sound and complete for Propositional Logic. In other words, for this system, logical entailment and provability are identical. An ...
  33. [33]
    [PDF] A Mathematical Introduction to Logic, 2nd Edition
    ... A Mathematical Introduction to Logic. And what does this sentence “say”? For q, we can take any number for which Wq = J. Then q ∈ K and q /∈ J. Here then ...
  34. [34]
    [PDF] Hilbert-style proof calculus - Homepages of UvA/FNWI staff
    An example of a Hilbert-style proof system for classical propositional logic is the following. The axiom schemes are: ϕ → (ψ → ϕ). (ϕ → (ψ → χ)) → ((ϕ ...
  35. [35]
    2.5: Logical Equivalences - Mathematics LibreTexts
    Feb 3, 2021 · Commutative properties apply to operations on two logical statements, but associative properties involves three logical statements. Since ...
  36. [36]
    [PDF] Lecture 1: Propositional Logic
    Propositional formulas are constructed from atomic propositions by using logical connectives. Connectives false true not and or conditional (implies).Missing: definition | Show results with:definition
  37. [37]
    [PDF] Lecture 4 1 Overview 2 Propositional Logic
    Jan 23, 2019 · Definition 1.​​ A propositional formula is in disjunctive normal form (DNF) if it is the disjunction of conjunctions of literals. On its own, ...
  38. [38]
    [PDF] Normal Forms Logical Operators
    Sep 14, 2020 · A CNF is a full CNF if every clause contains every variable exactly once. A DNF is a full DNF if every minterm contains every variable exactly ...
  39. [39]
    [PDF] 12 Propositional Logic - Department of Computer Science
    The minterm for row r is the product of the literals for each variable. Clearly, the minterm can only have the value 1 if all the variables have the values that ...
  40. [40]
    [PDF] Logic Synthesis & Optimization Lectures 4, 5 Boolean Algebra - Basics
    A function can be represented as a sum of products of ! literals, called the minterms of the function; alternatively product of sums and maxterms of the ...<|control11|><|separator|>
  41. [41]
    [PDF] (conjunctive or disjunctive) normal form
    normal form (C.C.N.F.) is a C.N.F. in which every propositional variable that occurs (negated or unnegated) in some e.d. occurs. (negated or unnegated) in ...
  42. [42]
    The Problem of Simplifying Truth Functions - jstor
    It seems reasonable to hope that this procedure of simplification, issuing as it does in a normal equivalent which is irredundant, may solve our original.
  43. [43]
    [PDF] The Truth Table Formulation of Propositional Logic - PhilArchive
    In the setting of propositional logic, truth tables are used to precisify logical notions such as those of tautologousness (a formula is a tautology iff it is ...
  44. [44]
  45. [45]
    Minimization of Boolean Functions* - McCluskey - Wiley Online Library
    A systematic procedure is presented for writing a Boolean function as a minimum sum of products. This procedure is a simplification and extension of the method ...
  46. [46]
    functional completeness - PlanetMath
    Mar 22, 2013 · Definition A set F F of logical connectives is said to be truth functionally complete, or functionally complete if, given logical connective ϕ ϕ ...
  47. [47]
    Chapter 46 Functional completeness ‣ Part IX Metatheory ‣ forall x
    Functional Completeness Theorem. The connectives of TFL are jointly functionally complete. Indeed, the following pairs of connectives are jointly functionally ...<|control11|><|separator|>
  48. [48]
    [PDF] Post's Functional Completeness Theorem
    This paper then is a description and proof of Post's Func- tional Completeness Theorem written with teachers of elementary logic in mind. Post's theorem is in ...
  49. [49]
    [PDF] 1 Propositional Logic
    The connective is ite, which stands for “if-then-else,” and means just that: if the first argument holds, return the second (the then branch), else return the ...
  50. [50]
    Predicative and Impredicative Definitions
    A definition is said to be impredicative if it generalizes over a totality to which the entity being defined belongs.
  51. [51]
    Russell's paradox - Stanford Encyclopedia of Philosophy
    Dec 18, 2024 · Russell's paradox is a contradiction—a logical impossibility—of concern to the foundations of set theory and logical reasoning generally.The Paradox · History of the Paradox · Early Responses to the Paradox · Russell
  52. [52]
  53. [53]
  54. [54]
    [PDF] Propositional Self-Reference and Modalities - Filosofiska Notiser
    Self-referential propositions (sentences, statements; I will use these words as equiva- lents of 'proposition') say something about themselves, that is, if ...
  55. [55]
    Gödel's Incompleteness Theorems
    Nov 11, 2013 · Gödel's two incompleteness theorems are among the most important results in modern logic, and have deep implications for various issues.<|separator|>
  56. [56]
    Type Theory - Stanford Encyclopedia of Philosophy
    Feb 8, 2006 · This example again illustrates that we can formulate impredicative definitions in simple type theory. The use of \(\lambda\)-terms and ...
  57. [57]
    2.3. Application: Logic Circuits — Delftse Foundations of Computation
    A feedback loop occurs when the output from a gate is connected—possibly through one or more intermediate gates—back to an input of the same gate. Fig. 2.3 ...
  58. [58]
    [PDF] 7. Latches and Flip-Flops
    Thus, the characteristic equation for the SR flip-flop is. Qnext. = S + R'Q. 7.9.7 State Diagram. A state diagram is a graph that shows the flip-flop's ...
  59. [59]
  60. [60]
    [PDF] Proving Flow Security of Sequential Logic via Automatically ...
    Proving Flow Security of Sequential Logic via ... In particular, for iteratively larger step bounds n, SIMAREL constructs a propositional formula φn for which ...