1 / 91

Logic

Logic. Unsolvability results also imply unprovability in logics Logics we will look at (all very briefly) Aristotelian logic Euclidean geometry Propositional logic First order logic Peano axioms Zermelo Fraenkel set theory Higher order logic.

marlin
Download Presentation

Logic

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Logic

  2. Unsolvability results also imply unprovability in logics • Logics we will look at (all very briefly) • Aristotelian logic • Euclidean geometry • Propositional logic • First order logic • Peano axioms • Zermelo Fraenkel set theory • Higher order logic

  3. This material is presented so as to require a minimum of mathematical formalism.

  4. What is truth? • Logic can infer the truth of statements in the conceptual world of mathematics, or statements about the real world. • The “real” world is perceived through senses • We all perceive the same real world • How is the conceptual world perceived?

  5. How do we know we perceive the same conceptual world? • The symbol “1” that we see is just ink on paper (or shadow on screen) and not the same as the concept of the number one. • “1” can be written different ways but the concept does not change • The conceptual world is not perceived but imagined • It is a world of ideas rather than objects

  6. Why study the conceptual world? • For some reason mathematics is helpful in understanding the real world • Why should this be so? • A possible argument for the existence of God • The correspondence between mathematics and reality can be seen as an evidence that the designer of the world was a thinking being • Statements may be true or false in the conceptual world

  7. Possible Worlds • Logic considers not only the world that exists but also other potential worlds, the way things could be • Different statements may be true in different possible worlds. • In one world, the statement “It is raining” may be true. • In another world, this statement may be false.

  8. There are many “possible worlds” • There are also many “possible worlds” in the conceptual realm of mathematics. • In a logic a possible world is called an interpretation. It assigns meanings to the symbols in the logic. • Thus each interpretation makes some statements true and some statements false. • Then what does it mean to say that a statement in mathematics is true?

  9. What is truth?

  10. We believe certain statements are true • Fermat’s last theorem • There are infinitely many primes • What does it mean that such statements are true? • The answer is not straightforward • Primes are not physical objects • They can’t be directly counted • Even if you could count them you could not count infinitely many of them

  11. How can one check the truth of a statement in the conceptual world? • In the real world this is easier • Either it’s raining or it isn’t • We all perceive the same real world • The question of meaning is more straightforward • A mathematical statement is logically true if it is true when the symbols in it are given their standard mathematical meaning

  12. This is called the standard interpretation • For example, the integers are …, -2, -1, 0, 1, 2, … under the standard interpretation • Sometimes mathematicians debate about the standard interpretation • Is the axiom of choice true or not? • Then there can be disagreement about whether a logical statement is true or not

  13. The purpose of logic is to distinguish correct forms of argument from incorrect forms of argument • This is done using only the form of the argument, independently of the subject matter

  14. A logic consists of a set of statements (syntax), an assignment of meaning to the statements (semantics), and a method of proving statements. • A logic L is sound if all statements provable in L, are true • A logic L is effective if the problem of determining whether a statement A is provable in L, is partially decidable • We assume all logics are sound and effective

  15. A theorem prover for a logic is a Turing machine that tests if a statement is provable in the logic. If the statement is provable, the Turing machine halts. If not, the Turing machine either runs forever or halts in the “n” state. • Thus if there is a theorem prover for a logic L, then it is partially decidable whether a statement of L is provable in L. • All these logics have theorem provers.

  16. All these logics also have interpretations of formulas. • An interpretation assigns meanings to the symbols in the logic. It is a “possible world” described by the logic. • A statement in L is valid if it is true in all interpretations of L.

  17. An interpretation that makes a statement A true is called a model of A. • A nonstandard model has a counterintuitive meaning. For example, it may have integers larger than infinity. • We will see that any sufficiently powerful logic has nonstandard models. • If a statement X is valid then it is true in standard models so it is true. • A statement may be true but not valid.

  18. Aristotelian Logic • Three part statements called categorical syllogisms • 256 forms of categorical syllogisms in all • Validity depends only on the form of the syllogism

  19. Example of a categorical syllogism: • All P are Q. All Q are R. Thus all P are R. • An interpretation of this syllogism: • All North Carolinians are Southerners. • All Southerners are Earthlings. • Therefore all North Carolinians are Earthlings. • Another interpretation: • All ducks are sponges. • All sponges are happy. • Therefore all ducks are happy.

  20. The syllogism is true if • one of the hypotheses is false or • the conclusion is true • Both interpretations make the syllogism true. • This syllogism is valid. Thus it is true in all interpretations.

  21. Another syllogism: • All P are Q. All P are R. Thus all Q are R. • An interpretation: • All North Carolinians are Earthlings. • All North Carolinians are Southerners. • Therefore all Earthlings are Southerners. • Another interpretation: • All students are people. • All students are mortal. • Therefore all people are mortal.

  22. The first interpretation makes the syllogism false. • The second interpretation makes the syllogism true. • This syllogism is not valid. • Syllogisms can be conditionally or unconditionally valid.

  23. Aristotelian Logic • Conditional validity assumes non empty sets P,Q,R et cetera • Unconditional validity has no assumptions • 15 unconditionally valid syllogisms • 9 conditionally valid syllogisms • 24 valid either way

  24. Table 9: Valid categorical syllogisms [Hurley, 1985]. • Unconditionally valid: • All M are P. All S are M. Thus All S are P. • No M are P. All S are M. Thus No S are P. • All M are P. Some S are M. Thus Some S are P. • No M are P. Some S are M. Thus Some S are not P. • No P are M. All S are M. Thus No S are P. • All P are M. No S are M. Thus No S are P. • No P are M. Some S are M. Thus Some S are not P. • All P are M. Some S are not M. Thus Some S are not P. • Some M are P. All M are S. Thus Some S are P. • All M are P. Some M are S. Thus Some S are P. • Some M are not P. All M are S. Thus Some S are not P. • No M are P. Some M are S. Thus Some S are not P. • All P are M. No M are S. Thus No S are P. • Some P are M. All M are S. Thus Some S are P. • No P are M. Some M are S. Thus Some S are not P.

  25. Conditionally valid: • All M are P. All S are M. Thus Some S are P. (S must exist) • No M are P. All S are M. Thus Some S are not P. (S must exist) • All P are M. No S are M. ThusSome S are not P. (S must exist) • No P are M. All S are M. Thus Some S are not P. (S must exist) • All P are M. No M are S. Thus Some S are not P. (S must exist) • All M are P. All M are S. Thus Some S are P. (M must exist) • No M are P. All M are S. Thus Some S are not P. (M must exist) • No P are M. All M are S. Thus Some S are not P. (M must exist) • All P are M. All M are S. Thus Some S are P. (P must exist)

  26. Interpretations assign meanings to symbols • The meaning of S in interpretation I is a set • This set is called SI. • Interpretations also assign meanings to statements • Let I be an interpretation of a categorical syllogism. Then I is extended to statements as follows:

  27. All S are P means that SI is a subset of PI. • Some S are P means that SI and PI have nonempty intersection. • No S are P means that SI and PI have empty intersection. • Some S are not P means that SI and the complement of PI have nonempty intersection. • A categorical syllogism is valid if it is true in all interpretations.

  28. Example: All M are P. All S are M. Thus all S are P. • Example I: MI is {a,b,c}, SI is {a,b}, PI is {a,b,c,d}. • I is a model of this syllogism if: • (MI PI)  (SI MI)  (SI PI). • This syllogism is true for this particular I. • Another example I: MI is {a,b}, SI is {a,b,c}, PI is {a}. • This syllogism is also true for this I.

  29. This syllogism is true for all I, so this syllogism is valid. • Example: No M are P. Some M are S. Thus some S are not P. • I is a model of this syllogism if: • (MI PI =)  (SI MI)  (SI- PI ). • This syllogism is also true for all I so this syllogism is also valid.

  30. An invalid syllogism: • All S are P. All S are Q. Thus all P are Q. • An interpretation: SI = {a,b}, PI = {a,b,c}, QI={a,b,c,d}. • This I makes the syllogism true and is thus a model of it. • Another interpretation: SI = {a,b}, PI = {a,b,c,d}, QI={a,b,c}. • This I makes the first two statements true but the conclusion false. I is not a model.

  31. A categorical syllogism is satisfiable if there exists an interpretation I making it true. • Such an interpretation I is called a model of the syllogism. • It is possible to construct models of valid categorical syllogisms. • It is also possible to construct models of many non-valid categorical syllogisms.

  32. Venn diagrams can be used to check the validity of categorical syllogisms. • A Turing machine could use the same idea to check whether a categorical syllogism is valid. • A TM could also check that a statement followed from a set of statements by a sequence of categorical syllogisms. • Thus there is a theorem prover for this logic. In fact the validity problem is decidable.

  33. Given the assumptions • All M are P. All S are M. All P are Q. • To prove: • All S are Q • From the first two statements, it follows that all S are P. • From “all S are P” and “all P are Q,” it follows that “all S are Q.” • Thus “all S are Q” has been proved.

  34. GeometryEuclid's Axioms and Postulates • First Axiom: Things which are equal to the same thing are also equal to one another. • Second Axiom: If equals are added to equals, the whole are equal. • Third Axiom: If equals be subtracted from equals, the remainders are equal. • Fourth Axiom: Things which coincide with one another are equal to one another. • Fifth Axiom: The whole is greater than the part.

  35. First Postulate: To draw a line from any point to any point. • Second Postulate: To produce a finite straight line continuously in a straight line. • Third Postulate: To describe a circle with any center and distance. • Fourth Postulate: That all right angles are equal to one another. • Fifth Postulate: That, if a straight line falling on two straight lines make the interior angles on the same side less than two right angles, the two straight lines, if produced indefinitely, meet on that side of which are the angles less than the two right angles.

  36. Hilbert's Axioms of Geometry • Given below is the axiomatization of geometry by David Hilbert (1862-1943) in Foundations of Geometry (Grundlagen der Geometrie), 1902 (Open Court edition, 1971). This was logically a much more rigorous system than in Euclid. • I. Axioms of Incidence: • For every two points A, B there exists a line a that contains each of the points A, B. • For every two points A, B there exists no more than one line that contains each of the points A, B. • There exist at least two points on a line. There exist at least three points that do not lie on a line.

  37. For any three points A, B, C that do not lie on the same line there exists a plane [alpha] that contains each of the points A, B, C. For every plane there exists a point which it contains. • For any three points A, B, C that do not lie on one and the same line there exists no more than one plane that contains each of the three points A, B, C. • If two points A, B of a line a lie in a plane [alpha], then every point of a lies in the plane [alpha]. • If two planes [alpha], [beta] have a point A in common, then they have at least one more point B in common. • There exist at least four point which do not lie in a plane.

  38. II. Axioms of Order: • If a point B lies between a point A and a point C, then the points A, B, C are three distinct points of a line, and B then also lies between C and A. • For two points A and C, there always exists at lest one point B on the line AC such that C lies between A and B. • Of any three points on a line there exists no more than one that lies between the other two. • Let A, B, C be three points that do not lie on a line and let a be a line in the plane ABC which does not meet any of the points A, B, C. If the line a passes through a point of the segment AB, it also passes through a point of the segment AC, or through a point of the segment BC.

  39. III. Axioms of Congruence: • 1. If A, B are two points on a line a, and A' is a point on the same or on another line a' then it is always possible to find a point B' on a given side of the line a' through A' such that the segment AB is congruent or equal to the segment A'B'. In symbols AB = A'B'. • If a segment A'B' and a segment A"B", are congruent to the same segment AB, then the segment A'B' is also congruent to the segment A"B", or briefly, if two segments are congruent to a third one they are congruent to each other. • On the line a let AB and BC be two segments which except for B have no point in common. Furthermore, on the same or on another line a' let A'B' and B'C' be two segments which except for B' also have no point in common. In the case, if AB = A'B' and BC = B'C' then AC = A'C'.

  40. Let angle(h,k) be an angle in a plane [alpha] and a' a line in a plane [alpha]' and let a definite side of a' in [alpha]' be given. Let h' be a ray on the line a' that emanates from the point O'. Then there exists in the plane [alpha]' one and only one ray k' such that the angle(h,k) is congruent or equal to the angle(h',k') and at the same time all interior point of the angle(h',k') lie on the given side of a'. Symbolically angle(h,k) = angle(h',k'). Every angle is congruent to itself, i.e., angle(h,k) = angle(h,k) is always true. • If for two triangles ABC and A'B'C' the congruences AB = A'B', AC = A'C', angleBAC = angleB'A'C' hold, then the congruence angleABC = angleA'B'C' is also satisfied.

  41. IV. Axiom of Parallels: • (Euclid's Axiom) Let a be any line and A a point not on it. Then there is at most one line in the plane, determined by a and A, that passes through A and does not intersect a.

  42. V. Axioms of Continuity: • (Archimedes' Axiom or Axiom of Measure) If AB and CD are any segments, then there exists a number n such that n segments CD constructed contiguously from A, along the ray from A through B, will pass beyond the point B. • (Axiom of Line Completeness) An extension of a set of points on a line with its order and congruence relations that would preserve the relations existing among the original elements as well as the fundamental properties of line order and congruence that follow from Axioms I-III, and from V,1 is impossible.

  43. Examples of geometry proofs

  44. The diagram is an interpretation of the assumptions. • The two lines in the diagram are the meaning of the symbol 1 in the assumption. • Other diagrams would be other interpretations of these assumptions.

  45. The line in the diagram is the meaning of the symbol AC in the hypotheses. • Thus the diagram is an interpretation of the hypotheses of the theorem.

  46. Given: m1 = m2 • m3 = m4 • Prove: YS  XZ

More Related