28. predicate logic lidity - helsingin yliopisto · 2011-04-01 · last viewed deductions! en a...

40
28. Predicate Logic Validity The Lecture

Upload: others

Post on 07-Aug-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 28. Predicate Logic lidity - Helsingin yliopisto · 2011-04-01 · Last viewed deductions! en a potential deduction for a formula A it is not difficult to check whether the deduction

28. Predicate LogicValidity

The Lecture

Page 2: 28. Predicate Logic lidity - Helsingin yliopisto · 2011-04-01 · Last viewed deductions! en a potential deduction for a formula A it is not difficult to check whether the deduction

Last viewed

Validity

Jouko Väänänen: Predicate logic

Page 3: 28. Predicate Logic lidity - Helsingin yliopisto · 2011-04-01 · Last viewed deductions! en a potential deduction for a formula A it is not difficult to check whether the deduction

Last viewed

ValidityIn everyday language a person utters a validity if he or she says something which is true but only because of its form, like every day is rainy or else some days are not rainy.

Jouko Väänänen: Predicate logic

Page 4: 28. Predicate Logic lidity - Helsingin yliopisto · 2011-04-01 · Last viewed deductions! en a potential deduction for a formula A it is not difficult to check whether the deduction

Last viewed

ValidityIn everyday language a person utters a validity if he or she says something which is true but only because of its form, like every day is rainy or else some days are not rainy.A formula of predicate logic is valid, or a validity, if it is satisfied by every assignment in every structure.

Jouko Väänänen: Predicate logic

Page 5: 28. Predicate Logic lidity - Helsingin yliopisto · 2011-04-01 · Last viewed deductions! en a potential deduction for a formula A it is not difficult to check whether the deduction

Last viewed

ValidityIn everyday language a person utters a validity if he or she says something which is true but only because of its form, like every day is rainy or else some days are not rainy.A formula of predicate logic is valid, or a validity, if it is satisfied by every assignment in every structure. Examples

xA ¬ x¬A xA ¬ x¬Ax(A B) xA xBx(A B) xA xBx x=x (identity axioms have the special role that they are

always assumed when �”=�” is part of the formula.)

Jouko Väänänen: Predicate logic

Page 6: 28. Predicate Logic lidity - Helsingin yliopisto · 2011-04-01 · Last viewed deductions! en a potential deduction for a formula A it is not difficult to check whether the deduction

Last viewed

Satisfiable

Jouko Väänänen: Predicate logic

Page 7: 28. Predicate Logic lidity - Helsingin yliopisto · 2011-04-01 · Last viewed deductions! en a potential deduction for a formula A it is not difficult to check whether the deduction

Last viewed

Satisfiable

A formula is satisfiable if it is satisfied by some assignment in some structure.

Jouko Väänänen: Predicate logic

Page 8: 28. Predicate Logic lidity - Helsingin yliopisto · 2011-04-01 · Last viewed deductions! en a potential deduction for a formula A it is not difficult to check whether the deduction

Last viewed

Satisfiable

A formula is satisfiable if it is satisfied by some assignment in some structure.Examples

Jouko Väänänen: Predicate logic

Page 9: 28. Predicate Logic lidity - Helsingin yliopisto · 2011-04-01 · Last viewed deductions! en a potential deduction for a formula A it is not difficult to check whether the deduction

Last viewed

Satisfiable

A formula is satisfiable if it is satisfied by some assignment in some structure.Examples

�• x yR0(x,y) ¬ y xR0(x,y)

�• x(P0(x) P1(x)) (¬ xP0(x) ¬ xP1(x))

�•¬( xP0(x) xP0(x))

Jouko Väänänen: Predicate logic

Page 10: 28. Predicate Logic lidity - Helsingin yliopisto · 2011-04-01 · Last viewed deductions! en a potential deduction for a formula A it is not difficult to check whether the deduction

Last viewed

Contingent

Jouko Väänänen: Predicate logic

Page 11: 28. Predicate Logic lidity - Helsingin yliopisto · 2011-04-01 · Last viewed deductions! en a potential deduction for a formula A it is not difficult to check whether the deduction

Last viewed

ContingentA formula is contingent if it is both consistent and refutable. A person utters a contingency, like �”It is raining�” if what he or she says can be true but can also be false.

Jouko Väänänen: Predicate logic

Page 12: 28. Predicate Logic lidity - Helsingin yliopisto · 2011-04-01 · Last viewed deductions! en a potential deduction for a formula A it is not difficult to check whether the deduction

Last viewed

ContingentA formula is contingent if it is both consistent and refutable. A person utters a contingency, like �”It is raining�” if what he or she says can be true but can also be false.Examples

xP0(x)

x yR0(x,y)

x(R0(x,y) P0(x))

x=y (depending on the assignment this can be true or false)

Jouko Väänänen: Predicate logic

Page 13: 28. Predicate Logic lidity - Helsingin yliopisto · 2011-04-01 · Last viewed deductions! en a potential deduction for a formula A it is not difficult to check whether the deduction

Last viewed

Refutable

Jouko Väänänen: Predicate logic

Page 14: 28. Predicate Logic lidity - Helsingin yliopisto · 2011-04-01 · Last viewed deductions! en a potential deduction for a formula A it is not difficult to check whether the deduction

Last viewed

Refutable

A formula is refutable if there are an assignment s and a structure M that refute it, i.e. The assignment s does not satisfy the formula in M. It is like someone says �”Every day in August is rainy�” and you refute it by pointing out that in the year 1996 there was a day in August when it did not rain.

Jouko Väänänen: Predicate logic

Page 15: 28. Predicate Logic lidity - Helsingin yliopisto · 2011-04-01 · Last viewed deductions! en a potential deduction for a formula A it is not difficult to check whether the deduction

Last viewed

Refutable

A formula is refutable if there are an assignment s and a structure M that refute it, i.e. The assignment s does not satisfy the formula in M. It is like someone says �”Every day in August is rainy�” and you refute it by pointing out that in the year 1996 there was a day in August when it did not rain.

ExamplesxP0(x) xP0(x)

x yR0(x,y) y xR0(x,y)

x=y

Jouko Väänänen: Predicate logic

Page 16: 28. Predicate Logic lidity - Helsingin yliopisto · 2011-04-01 · Last viewed deductions! en a potential deduction for a formula A it is not difficult to check whether the deduction

Last viewed

Contradiction

Jouko Väänänen: Predicate logic

Page 17: 28. Predicate Logic lidity - Helsingin yliopisto · 2011-04-01 · Last viewed deductions! en a potential deduction for a formula A it is not difficult to check whether the deduction

Last viewed

ContradictionIn everyday language a person utters a contradiction if he or she says something which is false merely because of its form, like Every day is sunny but August 15 is not sunny.

Jouko Väänänen: Predicate logic

Page 18: 28. Predicate Logic lidity - Helsingin yliopisto · 2011-04-01 · Last viewed deductions! en a potential deduction for a formula A it is not difficult to check whether the deduction

Last viewed

ContradictionIn everyday language a person utters a contradiction if he or she says something which is false merely because of its form, like Every day is sunny but August 15 is not sunny.A formula of predicate logic is a contradiction if it is not satisfied by any assignment in any structure.

Jouko Väänänen: Predicate logic

Page 19: 28. Predicate Logic lidity - Helsingin yliopisto · 2011-04-01 · Last viewed deductions! en a potential deduction for a formula A it is not difficult to check whether the deduction

Last viewed

ContradictionIn everyday language a person utters a contradiction if he or she says something which is false merely because of its form, like Every day is sunny but August 15 is not sunny.A formula of predicate logic is a contradiction if it is not satisfied by any assignment in any structure.Examples

xA x¬A xA x¬Ax(A B) x(A ¬B)

x=y x=z ¬y=z (Identity has a special role. We always assume the identity axioms if = is present. Therefore this formula is a contradiction.)

Jouko Väänänen: Predicate logic

Page 20: 28. Predicate Logic lidity - Helsingin yliopisto · 2011-04-01 · Last viewed deductions! en a potential deduction for a formula A it is not difficult to check whether the deduction

Last viewed

Categories of formulas of predicate logic

Contradictions

Validities

Contingencies

Jouko Väänänen: Predicate logic

Page 21: 28. Predicate Logic lidity - Helsingin yliopisto · 2011-04-01 · Last viewed deductions! en a potential deduction for a formula A it is not difficult to check whether the deduction

Last viewed

Categories of formulas of predicate logic

Every formula of predicate logic is either a validity, a contradiction or a contingency.

Contradictions

Validities

Contingencies

Jouko Väänänen: Predicate logic

Page 22: 28. Predicate Logic lidity - Helsingin yliopisto · 2011-04-01 · Last viewed deductions! en a potential deduction for a formula A it is not difficult to check whether the deduction

Last viewed

Categories of formulas of predicate logic

Every formula of predicate logic is either a validity, a contradiction or a contingency.Every satisfiable formula is either valid or contingent.

Contradictions

Validities

Contingencies

Jouko Väänänen: Predicate logic

Page 23: 28. Predicate Logic lidity - Helsingin yliopisto · 2011-04-01 · Last viewed deductions! en a potential deduction for a formula A it is not difficult to check whether the deduction

Last viewed

Categories of formulas of predicate logic

Every formula of predicate logic is either a validity, a contradiction or a contingency.Every satisfiable formula is either valid or contingent.Every refutable formula is either a contradiction or a contingency

Contradictions

Validities

Contingencies

Jouko Väänänen: Predicate logic

Page 24: 28. Predicate Logic lidity - Helsingin yliopisto · 2011-04-01 · Last viewed deductions! en a potential deduction for a formula A it is not difficult to check whether the deduction

Last viewed

Hard question

Jouko Väänänen: Predicate logic

Page 25: 28. Predicate Logic lidity - Helsingin yliopisto · 2011-04-01 · Last viewed deductions! en a potential deduction for a formula A it is not difficult to check whether the deduction

Last viewed

Hard question

Given a formula, can you decide mechanically whether it is a validity, a contradiction or a contingency?

Jouko Väänänen: Predicate logic

Page 26: 28. Predicate Logic lidity - Helsingin yliopisto · 2011-04-01 · Last viewed deductions! en a potential deduction for a formula A it is not difficult to check whether the deduction

Last viewed

Hard question

Given a formula, can you decide mechanically whether it is a validity, a contradiction or a contingency?It can be proved that this is not possible (if mechanically is interpreted as is now common).

Jouko Väänänen: Predicate logic

Page 27: 28. Predicate Logic lidity - Helsingin yliopisto · 2011-04-01 · Last viewed deductions! en a potential deduction for a formula A it is not difficult to check whether the deduction

Last viewed

The method of deductions

Jouko Väänänen: Predicate logic

Page 28: 28. Predicate Logic lidity - Helsingin yliopisto · 2011-04-01 · Last viewed deductions! en a potential deduction for a formula A it is not difficult to check whether the deduction

Last viewed

The method of deductions

�•Given a potential deduction for a formula A it is not difficult to check whether the deduction is correct or not.

Jouko Väänänen: Predicate logic

Page 29: 28. Predicate Logic lidity - Helsingin yliopisto · 2011-04-01 · Last viewed deductions! en a potential deduction for a formula A it is not difficult to check whether the deduction

Last viewed

The method of deductions

�•Given a potential deduction for a formula A it is not difficult to check whether the deduction is correct or not.�•This can be done mechanically. Such computer programs are called proof checkers.

Jouko Väänänen: Predicate logic

Page 30: 28. Predicate Logic lidity - Helsingin yliopisto · 2011-04-01 · Last viewed deductions! en a potential deduction for a formula A it is not difficult to check whether the deduction

Last viewed

The method of deductions

�•Given a potential deduction for a formula A it is not difficult to check whether the deduction is correct or not.�•This can be done mechanically. Such computer programs are called proof checkers.�•One can make a list of all possible deductions and check them one by one.

Jouko Väänänen: Predicate logic

Page 31: 28. Predicate Logic lidity - Helsingin yliopisto · 2011-04-01 · Last viewed deductions! en a potential deduction for a formula A it is not difficult to check whether the deduction

Last viewed

The method of deductions

�•Given a potential deduction for a formula A it is not difficult to check whether the deduction is correct or not.�•This can be done mechanically. Such computer programs are called proof checkers.�•One can make a list of all possible deductions and check them one by one.�•The hard case is when there is no deduction, so it takes infinite time to find it out.

Jouko Väänänen: Predicate logic

Page 32: 28. Predicate Logic lidity - Helsingin yliopisto · 2011-04-01 · Last viewed deductions! en a potential deduction for a formula A it is not difficult to check whether the deduction

Last viewed

Equivalence of formulas

Jouko Väänänen: Predicate logic

Page 33: 28. Predicate Logic lidity - Helsingin yliopisto · 2011-04-01 · Last viewed deductions! en a potential deduction for a formula A it is not difficult to check whether the deduction

Last viewed

Equivalence of formulas

Two formulas of predicate logic, A and B, are called (logically) equivalent if A B is a validity.

Jouko Väänänen: Predicate logic

Page 34: 28. Predicate Logic lidity - Helsingin yliopisto · 2011-04-01 · Last viewed deductions! en a potential deduction for a formula A it is not difficult to check whether the deduction

Last viewed

Equivalence of formulas

Two formulas of predicate logic, A and B, are called (logically) equivalent if A B is a validity.

Equivalence of formulas is used in everyday language and in science all the time, often without paying much attention to it.

Jouko Väänänen: Predicate logic

Page 35: 28. Predicate Logic lidity - Helsingin yliopisto · 2011-04-01 · Last viewed deductions! en a potential deduction for a formula A it is not difficult to check whether the deduction

Last viewed

Formula Equivalent formula

Condition

xA ¬ x¬A

xA ¬ x¬A

x(A B) xA xB

x(A B) xA xB

x yA y xA

x yA y xA

x(A B) xA B x not free in B

x(A B) A xB x not free in A

x(A B) xA B x not free in B

Equivalent formulas of predicate logic

Jouko Väänänen: Predicate logic

Page 36: 28. Predicate Logic lidity - Helsingin yliopisto · 2011-04-01 · Last viewed deductions! en a potential deduction for a formula A it is not difficult to check whether the deduction

Last viewed

The method

Jouko Väänänen: Propositional logic

Page 37: 28. Predicate Logic lidity - Helsingin yliopisto · 2011-04-01 · Last viewed deductions! en a potential deduction for a formula A it is not difficult to check whether the deduction

Last viewed

The method

Jouko Väänänen: Propositional logic

Page 38: 28. Predicate Logic lidity - Helsingin yliopisto · 2011-04-01 · Last viewed deductions! en a potential deduction for a formula A it is not difficult to check whether the deduction

Last viewed

The method

Jouko Väänänen: Propositional logic

Page 39: 28. Predicate Logic lidity - Helsingin yliopisto · 2011-04-01 · Last viewed deductions! en a potential deduction for a formula A it is not difficult to check whether the deduction

Last viewed

The method

Jouko Väänänen: Propositional logic

Page 40: 28. Predicate Logic lidity - Helsingin yliopisto · 2011-04-01 · Last viewed deductions! en a potential deduction for a formula A it is not difficult to check whether the deduction

Last viewed

The method

Jouko Väänänen: Propositional logic