Formal logic is a branch of logic that deals with the structure and validity of arguments using formal systems and symbols. It is used to analyze and represent reasoning in a precise and rigorous manner. Unlike informal logic, which deals with natural language arguments, formal logic abstracts reasoning into a symbolic language to ensure clarity and eliminate ambiguity. Formal logic plays a central role in mathematics, philosophy, computer science, and artificial intelligence.
A proposition (also called a statement) is a declarative sentence that is either true or false, but not both. Propositions are the basic building blocks in formal logic.
Propositions are often represented by letters like , , or .
Logical connectives are symbols used to combine or modify propositions. The main logical connectives are:
Negation (): The negation of a proposition is denoted , and it means "not ." If is true, then is false, and vice versa.
Example: If is "It is raining," then is "It is not raining."
Conjunction (): The conjunction of two propositions and is denoted , and it means "both and ." This is true only when both and are true.
Example: If is "It is raining" and is "It is cold," then is "It is raining and it is cold."
Disjunction (): The disjunction of two propositions and is denoted , and it means "either or (or both)." This is true if at least one of or is true.
Example: If is "It is raining" and is "It is snowing," then is "It is raining or it is snowing."
Implication (): The implication means "if , then ." This is true unless is true and is false.
Example: If is "It is raining" and is "The ground is wet," then is "If it is raining, then the ground is wet."
Biconditional (): The biconditional means " if and only if ." This is true when both and are either both true or both false.
Example: If is "It is raining" and is "The ground is wet," then means "It is raining if and only if the ground is wet."
A truth table is a table used to show the truth values of a logical expression based on all possible truth values of the components (propositions) involved. Truth tables help in analyzing the validity of logical connectives and logical formulas.
For example, here’s the truth table for conjunction ():
| T | T | T |
| T | F | F |
| F | T | F |
| F | F | F |
For implication ():
| T | T | T |
| T | F | F |
| F | T | T |
| F | F | T |
Two logical expressions are logically equivalent if they have the same truth table, meaning they always yield the same truth values for all possible assignments of truth values to their propositions.
Some common logical equivalences include:
An argument in formal logic is a sequence of statements (propositions), where the last statement (called the conclusion) is derived from the previous statements (called premises).
A valid argument is one in which the conclusion must be true if the premises are true. In formal logic, an argument is valid if the truth of the premises guarantees the truth of the conclusion.
A sound argument is a valid argument with all true premises. A valid argument can be unsound if one or more premises are false.
There are several methods used to prove logical statements:
Direct Proof: In a direct proof, we assume the premises are true and use logical reasoning to directly show that the conclusion follows.
Proof by Contradiction: In a proof by contradiction, we assume that the negation of the statement to be proven is true, and then show that this leads to a contradiction. Hence, the original statement must be true.
Proof by Contrapositive: To prove an implication , we prove its contrapositive . This is logically equivalent to the original implication.
Inductive Proof: Mathematical induction is used to prove statements about natural numbers. It involves proving a base case, and then proving that if the statement holds for an arbitrary case , it holds for .
In formal logic, quantifiers are used to express statements involving "all" or "some" elements of a set:
These are commonly used in predicate logic, where propositions involve variables.
Predicate logic (also known as first-order logic) extends propositional logic by including predicates, which are functions that return true or false based on the value of their variables. It also uses quantifiers to generalize propositions.
Formal logic is a powerful tool used to model reasoning and mathematical proof. Through propositions, logical connectives, truth tables, and various proof techniques, formal logic provides a clear and precise framework for understanding and analyzing arguments. It is essential not only in mathematics but also in fields like computer science, philosophy, and artificial intelligence.
Open this section to load past papers