Theory
Elementary logic
What a proposition is, how propositions are combined with connectives, how statements with quantifiers are negated, and how proofs are built.
On this page
Propositions
Proposition
A proposition is a statement for which it makes sense to ask whether it is true or false, and which has exactly one of the two truth values. Propositions are denoted by letters such as , , . Every mathematical statement, such as an equality or a theorem, is a proposition.
- ” is a prime number”: true proposition.
- "": false proposition.
- "": statement with a variable, which becomes a proposition when a value is assigned to . A statement of this kind is called a predicate and is denoted by ; predicates also become propositions through quantifiers.
Logical connectives
Connectives build new propositions from given propositions; the truth value of the result depends only on the truth values of the parts, according to the truth tables.
1. Negation
The negation of , denoted by (“not ”), is the proposition that is true when is false and false when is true.
The negation of ” is prime” is ” is not prime”. Double negation gives back the original proposition: has the same truth table as . Negation appears in counterexamples and in proofs by contradiction.
2. Conjunction and disjunction
The conjunction (” and ”) is true when and are both true. The disjunction (” or ”) is true when at least one of and is true, including the cases in which both are.
For : the proposition "" is false, because the second part is false; the proposition "" is true, because the first part is true.
Remark
In mathematics “or” is inclusive: is true also when and are true together. The statement ” is even or is divisible by ” is true, and both parts are true.
3. De Morgan's laws
The symbol indicates that the two propositions have the same truth table. Negation swaps “and” with “or” and negates the individual parts. These laws are used whenever a compound condition is negated, for example a pair of inequalities; they are verified by comparing the truth tables row by row.
Negating a conjunction
The negation of ” and ” is ” or ”. Since negating means asserting , by De Morgan’s laws the conjunction turns into the disjunction of the two negations.
The theory continues with 4 more sections (implication, necessary and sufficient condition, quantifiers…), plus all worked examples, the solutions and the PDF.
Unlock now