2.1 Mathematical Statement

A mathematical statement (also called proposition) is a statement that is true or false in an absolute sense.

Implication and Double-Implication

signifies that S implies T. This has nothing to do with causality, it only tells us something about the truthyness of both statements.

can only be false if is false while is true. As long as is false, does not need to be false as well for the whole statement to be true.

means that S is only true if T is true and likewise. This is the same as .

Propositional Logic

2.5 Formulas

A correctly formed expression involving the propositional symbols and logical operators is called a formula (of propositional logic).

Every such formula can be seen as a function with the domain . We can also express every function of that type as a logical formula as there is a function table for it.

Types for the different expressions

  • formula statement (used to link different PL formulas, not part of PL itself)
  • formula formula
  • statement statement and equivalently for
  • formula statement
  • formula formula
  • statement statement

2.1 Rules of Propositional Logic

  1. and (idempotence);
  2. and (commutativity of and );
  3. and (associativity);
  4. and (absorption);
  5. (first distributive law);
  6. (second distributive law);
  7. (double negation);
  8. and (de Morgan’s rules).
  9. (double implication);

2.6 Logical Equivalence

Two formulas and (in propositional logic) are called equivalent, denoted as , if they correspond to the same function, i.e., if the truth values are equal for all truth assignments to the propositional symbols appearing in or . Examples:

  • (commutativity)
  • (double negation)
  • (implication as disjunction)

2.7 A Logical Consequence

A formula is a logical consequence of a formula denoted if for all truth assignments to the propositional symbols appearing in F or G, the truth value of is if the truth value of is 1.

2.8 Tautology

A formula (in PL) is called a tautology or valid if it is true for all truth assignments of the involved propositional symbols. One often writes . The symbol is used to denote a tautology.

2.9 Satisfiable

A formula (in PL) is called satisfiable if it is true for at least one truth assignment of the involved propositional symbols. It is called unsatisfiable otherwise (denoted ).

2.2 Tautology and Unsatisfiability

A formula F is a tautology if and only if is unsatisfiable.

2.3 Tautology

For any formulas and , is a tautology if and only if .

First Introduction to Predicate Logic

2.10 -ary Predicates

A -ary predicate on is a function .

This predicate assigns each element of to a truth value.

We can use functions on and constants (fixed elements from ).

2.11 Quantifiers and

For a universe and a predicate we define the following logical statements:

  • stands for is true for all in .

  • stands for is true for some in , i.e. there exists an in for which is true.

    Note that quantifiers bind stronger than logical operators!

The quantifiers can also be nested, where the order of the quantifiers matters.

Free parts

A formula of predicate logic has some free parts that are usually left open for interpretation. These could be predicates or the universe.

Some statements in PL are true for all interpretations, some depend on the specific interpretation…

  • is satisfiable, since the interpretation Q is always true satisfies it. This is true, even though there is no quantifier or universe or predicate defined.

  • We can even say that since if there is an interpretation that makes satisfiable, there is at least one in that universe that satisfies .

The other way around however is not true however! That is because if we were to provide an interpretation for that formula we would need to provide:

  • A universe
  • A function for the predicate
  • A specific value for !

If there is no quantifier, then has to be replaced by a constant from the universe!

Satisfiability, Tautology and Unsatisfiability

Tautology

A formula is a tautology (or valid) if it is true for all interpretations (all choices of universe and predicates).

Satisfiable

A formula is satisfiable if there is at least one interpretation under which it is true.

Unsatisfiable

A formula is unsatisfiable if it’s never true under any interpretation.

These definitions are distinct from those of Aussagenlogik, where they are about truth-assignments to symbols.

We are not allowed to use or in formulas, to replace statement that are true or false under our interpretation. For example, in , but this is wrong as is only equivalent to in this specific universe. We instead can just write the implication directly.

Rules of manipulation

Equivalence in predicate logic

Two formulas are equivalent () if the evaluate to the same truth table for any interpretation of the symbols in the formula.

Distributivity of

Distributivity of

Negation of and

Formulas vs. Mathematical Statements

If for a formula the interpretation is fixed then this can be a mathematical statement. It is then also meaningful to say that the formula is true or false (we can then use them in proofs).

2.4 Tautology and Logical Consequence

For any two formulas and , if , then .

Proof Patterns

Composing implications works by transitivity.

2.12 Transitivity of Implication

The proof step of composing implications is as follows: If and are both true, then is also true.

2.5 Transitivity of Implication

.

Direct Proof of an Implication

2.13 Direct proof

A direct proof of an implication works by assuming and then proving under this assumption.

Indirect Proof of an Implication

2.14 Indirect Proof (Proving the Contraposition)

An indirect proof of an implication proceeds by assuming that is false and proving that is false, under this assumption. This works because

Modus Ponens

2.15 Modus Ponens

A proof of a statement by use of modus ponens proceeds in three steps:

  1. Find a suitable mathematical statement
  2. Prove
  3. Prove

2.7 Modus Ponens

.

Case Distinction

2.16 Case Distinction

A proof of a statement by case distinction proceeds in three steps:

  1. Find a finite list of mathematical statements (the cases)
  2. Prove that at least one of is true (at least one case occurs)
  3. Prove that for .

One proves for a complete list of cases that the statement S holds in all the cases.

2.8 Case Distinction

For every we have

If a single one of the is true then also true thus is also true.

Proofs by Contradiction

2.17 Proof by contradiction

A proof by contradiction of a statement proceeds in three steps:

  1. Find a suitable statement .
  2. Prove that is false.
  3. Assume is false and prove that is true (a contradiction).

2.9 Contradiction

Existence Proofs

2.18 Existence Proof

Consider a universe of parameters and consider for each in a statement . An existence proof is a proof of the statement that is true for at least one . An existence proof is constructive if it exhibits an for which is true, otherwise it’s non constructive.

Existence Proof via the Pigeonhole principle

2.10 Pigeonhole Principle

If a set of objects is partitioned into sets, then at least one of those sets contains at least objects.

Example Among 100 people, there are at least nine who were born in the same month. Proof: Set and (number of months). Then . By the pigeonhole principle, at least one month must contain at least 9 birthdays.

Proofs by Counterexample

Counterexample

Consider a universe or parameters and consider for each a statement . A proof by counterexample is a proof of the statement that is not true for all by exhibiting an called counterexample such that is false.

Proof by Induction

We prove that a statement is true for the first element of the set is in.

We then prove the induction step which shows that .

2.11 Induction

For the universe and an arbitrary unary predicate we have