Propositional Logic Fundamentals
Fundamentals of Propositional Logic
Definition of a Proposition:
- A proposition is a declarative sentence that declares a fact.
- A proposition must evaluate to either True () or False (), but it cannot be both True and False simultaneously.
Non-Propositions:
- Sentences or mathematical expressions that do not express a complete, definite statement of fact with a fixed truth value are not propositions.
- Examples of non-propositions include:
- Problem numbers or question prompts (such as )
- Equations with free variables whose truth values depend on variable assignments, such as
- Commands or imperative requests
Propositional Variables:
- Variables are used to represent specific propositions or facts.
- Standard lowercase letters are used as propositional variables, primarily , , , and
- Capital letters are not used for simple propositional variables because they are strictly reserved for propositional functions.
Negation of a Proposition
Definition and Symbolic Notation:
- The negation of a proposition is denoted symbolically by or .
- Negation represents the logical NOT operation.
- Verbally, is stated as "It is not the case that ".
Example 1 (Ronnie and Taco Bell):
- Define the propositional variable:
- The negation can be written in either of the following equivalent forms:
- "It is not the case that Ronnie likes Taco Bell"
- "Ronnie does not like Taco Bell" (or "Ronnie does not like TB")
Example 2 (Thor's Hammer and Double Negation):
- Statement: "Thor's hammer is not named Mjölain."
- Define the positive baseline propositional variable:
- The given statement corresponds to the negation .
- Evaluating the negation of this statement produces a double negation:
- Double Negation Cancellation Law: A double negation operator cancels out, returning the original proposition:
Truth Values and Truth Tables
Truth Values:
- Every proposition evaluates to one of two valid truth values: True () or False ().
Truth Table for Negation:
- A truth table outlines the truth values of a logical expression based on input proposition variables.
- For a proposition and its negation :
- When ,
- When ,
Logical Connectives: Conjunction, Disjunction, and Exclusive OR
Conjunction ():
- Let and be propositions.
- The conjunction of and is "p and q", denoted symbolically as .
- Conjunction represents the logical AND operation.
- The compound statement is True () if and only if both and are True ().
- If either or (or both) is False (), then is False ().
Disjunction ():
- Let and be propositions.
- The disjunction of and is "p or q", denoted symbolically as .
- Disjunction represents the logical OR operation.
- The compound statement is True () when is True (), is True (), or both and are True ().
- Disjunction is inclusive.
Exclusive OR ( / XOR):
- For propositions and , the Exclusive OR is abbreviated as XOR or denoted symbolically as
- The statement is True () only when exactly one of OR is True ().
- The statement evaluates to False () in all other cases (when both and are True, or both and are False).
- The logical expansion for Exclusive OR using standard connectives is: