The Basic Formal Logic (1)
Here are some basic mathematical logic definitions, theorems, and other notes.
Proposition
Generally speaking, a proposition is typically composed of a declarative sentence expressing a judgment. Propositions are classified into true and false propositions. Propositions can often be assigned to a symbol for expression, such as , where these symbols are called propositional variables. A simple proposition is the most basic form of a proposition that cannot be divided into sub-propositions.
For convenience in operations, the truth or falsity of a proposition is represented using binary values and , where they respectively indicate false and true propositions.
Connectives
These connectives are basic tools in formal logic, used to construct and analyze complex logical expressions that describe the combination of propositions.
- Negation (Not), denoted as
- Conjunction (And), denoted as
- Disjunction (Or), denoted as
- Conditional (Implies, ImpliedBy), denoted as and
- Biconditional (If and only if), denoted as
Multiple simple propositions are combined into compound propositions using these connectives. The precedence of these connectives decreases from top to bottom.
Their truth table is as follows:
Well-formed Formulas (WFF)
- A single propositional variable is a well-formed formula (WFF), also called an atomic proposition.
- If is a WFF, then is a WFF.
- If and are WFFs, then , , , and are WFFs.
- A string of symbols formed by applying (1)~(3) a finite number of times is a WFF.
WFFs are also called propositional formulas, or simply formulas. They are often represented as .
Formula Levels
-
If the formula is a single propositional variable, then is called a level-0 formula.
-
A formula is called a level- formula (for ) if one of the following holds:
- (a) , where is a level- formula;
- (b) , where and are formulas of levels and , and ;
- (c) , where the levels of and and are as in (b);
- (d) , where the levels of and and are as in (b);
- (e) , where the levels of and are as in (b).
-
If the level of formula is , then is called a level- formula.
-
The formula is used to express a formula of level .
Tautologies and Contradictions
If , , then is called a tautology, or a logically valid formula. Conversely, if , , then is called a contradiction.
If a formula is not a contradiction, it is also called a satisfiable formula.
Dummy Variables
A dummy variable (also known as a neutral element) refers to a special element that, under a certain operation, does not change the value of other elements.
If the value of formula depends only on certain variables , then the remaining variables are called dummy variables. Changing the dummy variables does not affect the value of the formula.
For example, in , where , the formula is always true regardless of the value of , making a dummy variable.
Formula Equivalence
If two formulas have the same number of variables and the same truth table (or logical behavior), then these two formulas are equivalent. In other words, if , , and , then , and we can say that and are logically equivalent.
Logical Equivalence Calculus
Let formulas and share the same propositional variables, and or may contain dummy variables. If and have the same truth table, then is a tautology. This indicates that and are logically equivalent, denoted as .
Below are some common identities, which can be used to perform more complex logical operations.
Equivalence Identities
1.1 Double Negation
1.2 Idempotent Laws
1.3 Commutative Laws
1.4 Associative Laws
1.5 Distributive Laws
(Distributivity of over )
(Distributivity of over )
1.6 De Morgan's Laws
1.7 Absorption Laws
1.8 Zero Laws
1.9 Identity Laws
1.10 Law of the Excluded Middle
1.11 Law of Non-Contradiction
1.12 Implication Identity
1.13 Biconditional Identity
1.14 Contrapositive
1.15 Biconditional Negation
1.16 Reductio ad Absurdum
The 16 equivalence identities presented above contain 24 important equivalences. The variables , , and in the equivalence patterns can be replaced by any propositional formulas, resulting in infinitely many specific equivalences of the same type.
These are typical examples of equivalences derived from truth tables and form the foundational formulas of logical operations.