Predicate Logic as Working Language

Size: px
Start display at page:

Download "Predicate Logic as Working Language"

Transcription

1 full.nb 1 Predicate Logic as Working Language Bruno Buchberger Research Institute for Symbolic Computation Johannes Kepler University, Linz, Austria Version: : This manuscript will be published as a book. No part of it may be copied or stored without the written permission of the author. The file may be used by the students of the course "TSW" at the Johannes Kepler University, Linz, Austria, winter semester 2006 for their personal training. However, copying the file, inclusion of parts of the file into other files, and subsequent distribution of the results of such actions is strictly forbidden. If there are any questions on the usage of this file, write directly to buchberger@risc.uni linz.ac.at.

2 full.nb 2 Chapter 4: Eploration Using Quantifier Predicate Logic Quantifier Rules for Proving Eistentially Quantified Formulae in the Knowledge Base Rule ("Skolem Constants") If F Ξ,Η,... is in the knowledge base (where Ξ,Η,... are the only free variables in F) then you can add F Ξ,Η, 0,y0,... to the knowledge base, where 0, y0,... are new object constants (i.e. constants that do neither occur in the knowledge base nor in the goal formula). (One calls these constants "Skolem constants".) Wording Application of this rule is often announced in the following way. "We know F. Ξ,Η,... Therefore we can chose 0, y0,... such that F Ξ,Η, 0,y0,.... Rule ("Skolem Functions") If F Α,Β,... Ξ,Η,...

3 full.nb 3 is in the knowledge base (where Α,Β,Ξ,Η,... are the only free variables in F) then you can add F Ξ,Η, 0 Α,Β,...,,y0 Α,Β,...,... to the knowledge base, where 0, y0,... are new function constants (i.e. function constants that do neither occur in the knowledge base nor in the goal formula). (One calls these constants "Skolem function constants".) Wording Application of this rule is often announced in the following way. "We know F Α,Β,... Ξ,Η,... Therefore we can chose functions 0, y0,... such that F Ξ,Η, 0 Α,Β,...,,y0 Α,Β,...,... Eistentially Quantified Formulae as Proof Goals Rule ("Find Appropriate Terms") If the proof goal is F Ξ,Η,... (where Ξ,Η,... are the only free variables in F) then it suffices to find terms s, t,... such that F Ξ,Η, s,t,... can be proved. Universally Quantified Formulae in the Knowledge Base The appropriate rule for formulae of the form F Ξ,Η,... in the knowledge base was already given in Chapter 3.

4 full.nb 4 Universally Quantified Formulae as Proof Goals The appropriate rule for proof goals of the form F Ξ,Η,... was already given in Chapter 3. The Interplay Between the Quantifier Rules The interplay between the proof rules for universally and eistentially quantified formulae in the knowledge base and as proof goals is the most important and characteristic aspect of full predicate logic. Typically, one has proof goals of the form Α Ξ F or, as special case, proof goals of the form Ξ F and formulae in the knowledge base of the form Β Η G 1 a or the special form Η G 1 b In such situations one normally proceeds by taking "an a0 arbitrary but fied" and tries to find a term s such that F Α a0,ξ s. The term s is then typically constructed from the constants available in the knowledge base and, in particular, from the Skolem constant y0 that can be introduced because of (1a) or (1b), i.e. for which F Η y0 Β or F Η y0 holds.

5 full.nb 5 Eamples The Notion of Limit Definition In the sequel, some of the variables, like, range over the real numbers, some others, like n, over the natural numbers, and some others, like f, over sequences of real numbers (i.e. over functions with natural number input and real number output). Now we define limit f, a f n a Ε, Ε 0 N n N f g n f n g n. definition of limit definition of sequence sum Available Knowledge We assume that we have "all" knowledge available on the arithmetical operations, like +,, <, etc., for eample y y. Proposition We want to prove that limit f, a limit g, b limit f g, a b. limit of sum Proof Let f, g, a, b be arbitrary but fied and assume limit f, a, limit g, b. Af Ag We have to prove limit f g, a b. G By (definition of limit), we have to prove f g n a b Ε. Ε 0 N n N For this, we take Ε arbitrary but fied, assume

6 full.nb 6 Ε 0, AΕ and have to find an N0 such that f g n a b Ε. GN0 n N0 Now, by (Af) and (Ag) and (definition of limit), we know that f n a Ε, Ε 0 N n N g n b Ε, Ε 0 N n N and, hence, by (AΕ) and (arithmetic), we know in particular that N N f n a Ε 2, n N g n b Ε 2. n N Hence, we can choose two natural numbers Nf and Ng such that f n a Ε 2, n Nf g n b Ε 2, n Ng ANf ANg We now take N0 : ma Nf, Ng definition of N0 and try to prove (GN0). In fact, for arbitrary but fied n with n N0 An we have f g n a b by definition of sequence sum f n g n a b by arithmetic f n a g n b by arithmetic f n a g n b by An, definition of N0, ANf, ANg, arithmetic Ε 2 Ε 2 by arithmetic

7 full.nb 7 Ε. Annotated Proof We now present the same proof with additional annotations and details (in red color) eplaining the proof techniques applied. Let f0, g0, a0, b0 be arbitrary but fied and assume limit f0, a0, limit g0, b0. Af Ag We have to prove limit f0 g0, a0 b0. G (Note that f0, etc. are new constants and must not be confused with the variables appearing in the (defintion of limit) etc.) By (definition of limit), using the substitutions we have to prove f f0 g0, a a0 b0, f0 g0 n a0 b0 Ε. Ε 0 N n N For this, we take Ε0 arbitrary but fied, assume Ε0 0, AΕ and have to find an N0 such that f0 g0 n a0 b0 Ε0. n N0 GN0 Now, by (Af) and (Ag) and (definition of limit), using the substitutions we know that f f0, a a0 f0 n a0 Ε, Ε 0 N n N and using the substitution we know that f g0, a b0 g0 n b0 Ε, Ε 0 N n N and, hence, by (AΕ) and (arithmetic), we know in particular that

8 full.nb 8 N N f0 n a0 Ε0 2, n N g0 n b0 Ε0 2. n N (The (arithmetic) used here infers Ε from (AΕ). Now f0 n a0 Ε, Ε 0 N n N which is an abbreviation for implies Ε Ε 0 N f0 n a0 Ε, n N Ε0 2 0 N f0 n a0 Ε0 2. n N 2 Now, from (1) and (2), by modus ponens, we obtain ) N f0 n a0 Ε0 2 n N Hence, we can choose two natural numbers Nf and Ng such that f0 n a0 Ε0 2, n Nf g0 n b0 Ε0 2. n Ng ANf ANg We now take N0 : ma Nf0, Ng0 definition of N0 and try to prove (GN0). In fact, for arbitrary but fied n0 with n0 N0 An we have f0 g0 n0 a0 b0 by definition of sequence sum f0 n0 g0 n0 a0 b0 by arithmetic f0 n0 a0 g0 n0 b0

9 full.nb 9 by arithmetic f0 n0 a0 g0 n0 b0 by An, definition of N0, ANf, ANg, arithmetic Ε0 2 Ε0 2 by arithmetic Ε0. (Each of the steps in the above sequence is a symbolic computation proof step. For eample f0 g0 n a0 b0 f n g n a b because, by (definition of sequence sum) using the substitutions f f0, g g0, n n0 we have f0 g0 n0 f0 n0 g0 n0 and, hence, by replacing f0 g0 n0 by f0 n0 g0 n0 in f0 g0 n a0 b0 we obtain f0 g0 n a0 b0 f n g n a b. ) (From the above chain of proof steps, we can conclude f0 g0 n0 a0 b0 Ε in the following way: First, f0 g0 n0 a0 b0 f0 n0 g0 n0 a0 b0 and f0 n0 g0 n0 a0 b0 f0 n0 a0 g0 n0 b0 implies

10 full.nb 10 f0 g0 n0 a0 b0 f0 n0 a0 g0 n0 b0 by the transitivity rule for equality. Second, f0 g0 n0 a0 b0 f0 n0 a0 g0 n0 b0 and f0 n0 a0 g0 n0 b0 f0 n0 a0 g0 n0 b0 implies f0 g0 n0 a0 b0 f0 n0 a0 g0 n0 b0. This can be concluded from the general proposition y y z z by appropriate substitutions and modus ponens. Eercise: Prove the above proposition. Which laws for do you need?) Equivalences and Partitions Overview We will start from the basic notions of set theory like,, etc. and assume that their elementary properties are known (i.e. available in the "knowledge base"). In addition, we will assume that the inference rules for the set quantifiers are known: The set quantifiers allow to construct terms of the following form: and, where is a variable, is a formula, and is a term. We anticipate here the chapter on set theory. We will define two important notions of elementary set theory equivalences and partitions and eplore their interrelation. In the sequel, the variables R, X, P, p, etc. range over arbitrary objects ("sets").

11 full.nb 11 Inference Rules for the Set Quantifiers First note that is an abbreviation for y y T. If one has to prove that S, where S is a term, it suffices to prove that S. Conversely, if S is in the knowledge base, one can also add S to the knowledge base. Hence, in order to prove S one has to find a term U such that Conversely, if S T U U. S is in the knowledge base, one can introduce a new constant Η and add S T Η Η to the knowledge base. Available Knowledge We just give the definitions or aioms for some basic notions of set theory. In addition, we assume that all elementary properties of these notions are known.

12 full.nb 12 A B A B set equality a, b u, v a u b v pair equality A B A B A B A B A B A B U A a A a : : : : U : A B a, b a A b B : a,b Here is an eample of an elementary property that follows from these definitions and aioms: A A. When we use formulae in this knowledge base, we just reference it by the label (set theory). Definition: Equivalences is relation R, X is refleive R, X is equivalence R, X is symmetric R is transitive R is relation R, X R X X is refleive R, X X, R is symmetric R,y, y R y, R is equivalence : is relation : is refleive : is symmetric : is transitive R,y,z, y R y, z R, z R is transitive : Definition: Partitions is subset set P, X are all nonempty P is partition P, X are all disjoint P covers P, X is subset set P, X p X p P are all nonempty P p P p is partition : is subset set : are all nonempty : are all disjoint P p,q P p q p q are all disjoint : covers P, X U P X covers :

13 full.nb 13 Definition: Sets Determined by a Relation sets of relation R, X class, R, X X sets of relation : class, R, X y X y, R y class : Definition: Relation Determined by Sets relation of sets P, X, y,y X p y p relation of sets : p P Theorem We want to prove that is equivalence R, X is partition sets of relation R, X, X partition from equivalence is partition P, X is equivalence relation of sets P, X, X equivalence from partition is equivalence R, X relation of sets sets of relation R, X, X R equivalence of partion of equivalence is partition P, X sets of relation relation of sets P, X, X P partition of equivalence of partition Proof of (partition from equivalence) We take R and X arbitrary but fied, assume and show is equivalence R, X is partition sets of relation R, X, X. For proving this, by (is partition:), we have to prove is subset set P, X, are all nonempty P, are all disjoint P, covers P, X. SS NE DJ CV We only show the proof of (DJ). For the other proofs, see the eercises. Proof of (DJ) For proving (DJ), by (are all disjoint:), we have to prove

14 full.nb 14 p q p q. p,q sets of relation R,X For this, we take p, q arbitrary but fied, assume p sets of relation R, X, q sets of relation R, X, p q, p q NE and show p q. For this, by (set theory), it suffices to prove that p q. For proving this, we assume that Ξ is such that Ξ p, Ξ q, and show a contradiction. In fact, we show that p q. By (set theory), for this it is sufficient to show that p q. For this, we take Η arbitrary but fied, assume and show Η p Η q, and we assume and show Η q Η p. We only show one direction. The other direction is analogous. Now, from (p ) and (q ), by (sets of relation:), we know that p class, R, X X, q class, R, X X.

15 full.nb 15 Because of this we can take Α and Β such that p class Α, R, X, q class Β, R, X. Now, from this and from Ξ p, by (class:), we know that Ξ,Α R, Ξ,Β R, Η,Α R. Hence, from is equivalence[r,x], Η,Β R, i.e., by (class:), i.e. Η class Β, R, X, Η q. Proof of (partition from equivalence) with Comments on the Proof Techniques We take R and X arbitrary but fied, assume and show is equivalence R, X is partition sets of relation R, X, X. (Note that R and X are now considered to be "new" constants.) For proving this, by (is partition:), we have to prove is subset set P, X, are all nonempty P, are all disjoint P, covers P, X. SS NE DJ CV We only show the proof of (DJ). For the other proofs, see the eercises. Proof of (DJ) For proving (DJ), by (are all disjoint:), we have to prove p q p q. p,q sets of relation R,X

16 full.nb 16 For this, we take p, q arbitrary but fied, assume p sets of relation R, X, q sets of relation R, X, p q, p q NE and show p q. For this, by (set theory), it suffices to prove that p q. (For proving... we assume... and show a contradiction. By the assumption it Ξ and assume that... holds for Ξ.)..., we are allowed to take an object, call For proving this, we assume that Ξ is such that Ξ p, Ξ q, and show a contradiction. In fact, we show that p q. By (set theory), for this it is sufficient to show that p q. For this, we take Η arbitrary but fied, assume and show Η p Η q, and we assume and show Η q Η p. We only show one direction. The other direction is analogous. Now, from (p ) and (q ), by (sets of relation:), we know that p class, R, X X,

17 full.nb 17 q class, R, X X. (p class, R, X X means that p t t class, R, X X and this means that p has the property characterizing this set, i.e. p class, R, X X. Hence, we are allowed to take an object, call it Α and assume that p class Α, R, X, Α X. ) Because of this we can take Α and Β such that p class Α, R, X, q class Β, R, X. Now, from this and from Ξ p, by (class:), we know that Ξ,Α R, Ξ,Β R, Η,Α R. Hence, from is equivalence[r,x], Η,Β R, i.e., by (class:), Η class Β, R, X, i.e. Η q. (Here, we may further detail the steps that lead from Ξ,Α R, Ξ,Β R, Η,Α R, to

18 full.nb 18 In fact, from Η,Β R. is equivalence R, X, by (is equivalence:), we know that is symmetric R, X, is transitive R, X, and, hence, by (is symmetric:) and (is transitive:),, y R y, R 1,y, y R y, z R, z R. 2,y,z Now, from Ξ,Α R, by (1), Α,Ξ R. Now, from Η,Α R and Α,Ξ R, by (2), Η,Ξ R. And now, from Η,Ξ R and Ξ,Β R, again by (2), ) Η,Β R. Structuring Proofs Unfolding Definitions As shown in the above eamples, proofs proceed by "unfolding" the definitions of notions occuring in the goal formula and in the formulae in the knowledge base. In many proofs, hardly any difficult idea is needed ecept unfolding the definitions and playing with the constants introduced in the various stages of the proofs for combining suitable terms that fulfill the conditions specified in eistentially quantified formulae. However, proofs of theorems may become quite long. Also, one uses to reference long formulae occurring in proofs by labels. Thus, long proofs may become hard to read because one tends to lose the overview and it is sometimes quite annoying to jump back and forth a couple of pages for finding the formulae referenced in a given proof step. Also, understanding proofs has two very different aspects both of which are equally important: understanding the main idea of a proof independent of formal details, being able to check the correctness of each step of the proof and the completeness of the proof.

19 full.nb 19 Therefore it is very important to develop techniques for structuring proofs with the goal to invent and understand proofs more easily. We discuss three techniques for structuring proofs: develop the key ideas of proofs in eamples, in particular graphic illustrations, theory eploration instead of isolated theorem proving, introducing only one quantifier at a time, "backward proof presentation" versus "forward proof presentation".

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes These notes form a brief summary of what has been covered during the lectures. All the definitions must be memorized and understood. Statements

More information

Propositional and Predicate Logic - V

Propositional and Predicate Logic - V Propositional and Predicate Logic - V Petr Gregor KTIML MFF UK WS 2016/2017 Petr Gregor (KTIML MFF UK) Propositional and Predicate Logic - V WS 2016/2017 1 / 21 Formal proof systems Hilbert s calculus

More information

Lecture 11: Measuring the Complexity of Proofs

Lecture 11: Measuring the Complexity of Proofs IAS/PCMI Summer Session 2000 Clay Mathematics Undergraduate Program Advanced Course on Computational Complexity Lecture 11: Measuring the Complexity of Proofs David Mix Barrington and Alexis Maciel July

More information

Logic Overview, I. and T T T T F F F T F F F F

Logic Overview, I. and T T T T F F F T F F F F Logic Overview, I DEFINITIONS A statement (proposition) is a declarative sentence that can be assigned a truth value T or F, but not both. Statements are denoted by letters p, q, r, s,... The 5 basic logical

More information

a. (6.25 points) where we let b. (6.25 points) c. (6.25 points) d. (6.25 points) B 3 =(x)[ H(x) F (x)], and (11)

a. (6.25 points) where we let b. (6.25 points) c. (6.25 points) d. (6.25 points) B 3 =(x)[ H(x) F (x)], and (11) A1 Logic (25 points) For each of the following either prove it step-by-step using resolution or another sound and complete technique of your stated choice or disprove it by exhibiting in detail a relevant

More information

Homework 12; Due Monday, 4/9/2018

Homework 12; Due Monday, 4/9/2018 Homework 2; Due Monday, 4/9/28 Answer-Only Questions Credit based solely on the answer Question For each of the following relations, determine whether each one is symmetric, transitive, or refleive If

More information

Inference in first-order logic

Inference in first-order logic CS 270 Foundations of AI Lecture 4 Inference in first-order logic Milos Hauskrecht milos@cs.pitt.edu 5329 Sennott Square First-order logic FOL More epressive than propositional logic Advantages: Represents

More information

Modal Logic. UIT2206: The Importance of Being Formal. Martin Henz. March 19, 2014

Modal Logic. UIT2206: The Importance of Being Formal. Martin Henz. March 19, 2014 Modal Logic UIT2206: The Importance of Being Formal Martin Henz March 19, 2014 1 Motivation The source of meaning of formulas in the previous chapters were models. Once a particular model is chosen, say

More information

Automata Theory and Formal Grammars: Lecture 1

Automata Theory and Formal Grammars: Lecture 1 Automata Theory and Formal Grammars: Lecture 1 Sets, Languages, Logic Automata Theory and Formal Grammars: Lecture 1 p.1/72 Sets, Languages, Logic Today Course Overview Administrivia Sets Theory (Review?)

More information

Introduction to Proofs

Introduction to Proofs Introduction to Proofs Notes by Dr. Lynne H. Walling and Dr. Steffi Zegowitz September 018 The Introduction to Proofs course is organised into the following nine sections. 1. Introduction: sets and functions

More information

Today. Proof using contrapositive. Compound Propositions. Manipulating Propositions. Tautology

Today. Proof using contrapositive. Compound Propositions. Manipulating Propositions. Tautology 1 Math/CSE 1019N: Discrete Mathematics for Computer Science Winter 2007 Suprakash Datta datta@cs.yorku.ca Office: CSEB 3043 Phone: 416-736-2100 ext 77875 Course page: http://www.cs.yorku.ca/course/1019

More information

Advanced Topics in LP and FP

Advanced Topics in LP and FP Lecture 1: Prolog and Summary of this lecture 1 Introduction to Prolog 2 3 Truth value evaluation 4 Prolog Logic programming language Introduction to Prolog Introduced in the 1970s Program = collection

More information

Manual of Logical Style

Manual of Logical Style Manual of Logical Style Dr. Holmes January 9, 2015 Contents 1 Introduction 2 2 Conjunction 3 2.1 Proving a conjunction...................... 3 2.2 Using a conjunction........................ 3 3 Implication

More information

3. Only sequences that were formed by using finitely many applications of rules 1 and 2, are propositional formulas.

3. Only sequences that were formed by using finitely many applications of rules 1 and 2, are propositional formulas. 1 Chapter 1 Propositional Logic Mathematical logic studies correct thinking, correct deductions of statements from other statements. Let us make it more precise. A fundamental property of a statement is

More information

WUCT121. Discrete Mathematics. Logic. Tutorial Exercises

WUCT121. Discrete Mathematics. Logic. Tutorial Exercises WUCT11 Discrete Mathematics Logic Tutorial Exercises 1 Logic Predicate Logic 3 Proofs 4 Set Theory 5 Relations and Functions WUCT11 Logic Tutorial Exercises 1 Section 1: Logic Question1 For each of the

More information

Introduction to Metalogic

Introduction to Metalogic Philosophy 135 Spring 2008 Tony Martin Introduction to Metalogic 1 The semantics of sentential logic. The language L of sentential logic. Symbols of L: Remarks: (i) sentence letters p 0, p 1, p 2,... (ii)

More information

What are the recursion theoretic properties of a set of axioms? Understanding a paper by William Craig Armando B. Matos

What are the recursion theoretic properties of a set of axioms? Understanding a paper by William Craig Armando B. Matos What are the recursion theoretic properties of a set of axioms? Understanding a paper by William Craig Armando B. Matos armandobcm@yahoo.com February 5, 2014 Abstract This note is for personal use. It

More information

Predicate Logic. Andreas Klappenecker

Predicate Logic. Andreas Klappenecker Predicate Logic Andreas Klappenecker Predicates A function P from a set D to the set Prop of propositions is called a predicate. The set D is called the domain of P. Example Let D=Z be the set of integers.

More information

3. The Logic of Quantified Statements Summary. Aaron Tan August 2017

3. The Logic of Quantified Statements Summary. Aaron Tan August 2017 3. The Logic of Quantified Statements Summary Aaron Tan 28 31 August 2017 1 3. The Logic of Quantified Statements 3.1 Predicates and Quantified Statements I Predicate; domain; truth set Universal quantifier,

More information

Proving logical equivalencies (1.3)

Proving logical equivalencies (1.3) EECS 203 Spring 2016 Lecture 2 Page 1 of 6 Proving logical equivalencies (1.3) One thing we d like to do is prove that two logical statements are the same, or prove that they aren t. Vocabulary time In

More information

3 The Semantics of the Propositional Calculus

3 The Semantics of the Propositional Calculus 3 The Semantics of the Propositional Calculus 1. Interpretations Formulas of the propositional calculus express statement forms. In chapter two, we gave informal descriptions of the meanings of the logical

More information

Gödel s Incompleteness Theorems

Gödel s Incompleteness Theorems Seminar Report Gödel s Incompleteness Theorems Ahmet Aspir Mark Nardi 28.02.2018 Supervisor: Dr. Georg Moser Abstract Gödel s incompleteness theorems are very fundamental for mathematics and computational

More information

Inference in first-order logic

Inference in first-order logic CS 2710 Foundations of AI Lecture 15 Inference in first-order logic Milos Hauskrecht milos@cs.pitt.edu 5329 Sennott Square Logical inference in FOL Logical inference problem: Given a knowledge base KB

More information

Propositional Logic. Fall () Propositional Logic Fall / 30

Propositional Logic. Fall () Propositional Logic Fall / 30 Propositional Logic Fall 2013 () Propositional Logic Fall 2013 1 / 30 1 Introduction Learning Outcomes for this Presentation 2 Definitions Statements Logical connectives Interpretations, contexts,... Logically

More information

Lecture 2: Axiomatic semantics

Lecture 2: Axiomatic semantics Chair of Software Engineering Trusted Components Prof. Dr. Bertrand Meyer Lecture 2: Axiomatic semantics Reading assignment for next week Ariane paper and response (see course page) Axiomatic semantics

More information

LECTURE NOTES DISCRETE MATHEMATICS. Eusebius Doedel

LECTURE NOTES DISCRETE MATHEMATICS. Eusebius Doedel LECTURE NOTES on DISCRETE MATHEMATICS Eusebius Doedel 1 LOGIC Introduction. First we introduce some basic concepts needed in our discussion of logic. These will be covered in more detail later. A set is

More information

The Process of Mathematical Proof

The Process of Mathematical Proof 1 The Process of Mathematical Proof Introduction. Mathematical proofs use the rules of logical deduction that grew out of the work of Aristotle around 350 BC. In previous courses, there was probably an

More information

Meta-logic derivation rules

Meta-logic derivation rules Meta-logic derivation rules Hans Halvorson February 19, 2013 Recall that the goal of this course is to learn how to prove things about (as opposed to by means of ) classical first-order logic. So, we will

More information

Chapter 2. Assertions. An Introduction to Separation Logic c 2011 John C. Reynolds February 3, 2011

Chapter 2. Assertions. An Introduction to Separation Logic c 2011 John C. Reynolds February 3, 2011 Chapter 2 An Introduction to Separation Logic c 2011 John C. Reynolds February 3, 2011 Assertions In this chapter, we give a more detailed exposition of the assertions of separation logic: their meaning,

More information

Informal Statement Calculus

Informal Statement Calculus FOUNDATIONS OF MATHEMATICS Branches of Logic 1. Theory of Computations (i.e. Recursion Theory). 2. Proof Theory. 3. Model Theory. 4. Set Theory. Informal Statement Calculus STATEMENTS AND CONNECTIVES Example

More information

Proofs. Chapter 2 P P Q Q

Proofs. Chapter 2 P P Q Q Chapter Proofs In this chapter we develop three methods for proving a statement. To start let s suppose the statement is of the form P Q or if P, then Q. Direct: This method typically starts with P. Then,

More information

Knowledge base (KB) = set of sentences in a formal language Declarative approach to building an agent (or other system):

Knowledge base (KB) = set of sentences in a formal language Declarative approach to building an agent (or other system): Logic Knowledge-based agents Inference engine Knowledge base Domain-independent algorithms Domain-specific content Knowledge base (KB) = set of sentences in a formal language Declarative approach to building

More information

A MODEL-THEORETIC PROOF OF HILBERT S NULLSTELLENSATZ

A MODEL-THEORETIC PROOF OF HILBERT S NULLSTELLENSATZ A MODEL-THEORETIC PROOF OF HILBERT S NULLSTELLENSATZ NICOLAS FORD Abstract. The goal of this paper is to present a proof of the Nullstellensatz using tools from a branch of logic called model theory. In

More information

1 Predicates and Quantifiers

1 Predicates and Quantifiers 1 Predicates and Quantifiers We have seen how to represent properties of objects. For example, B(x) may represent that x is a student at Bryn Mawr College. Here B stands for is a student at Bryn Mawr College

More information

Section 3.1: Direct Proof and Counterexample 1

Section 3.1: Direct Proof and Counterexample 1 Section 3.1: Direct Proof and Counterexample 1 In this chapter, we introduce the notion of proof in mathematics. A mathematical proof is valid logical argument in mathematics which shows that a given conclusion

More information

2. Introduction to commutative rings (continued)

2. Introduction to commutative rings (continued) 2. Introduction to commutative rings (continued) 2.1. New examples of commutative rings. Recall that in the first lecture we defined the notions of commutative rings and field and gave some examples of

More information

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

COMP219: Artificial Intelligence. Lecture 19: Logic for KR COMP219: Artificial Intelligence Lecture 19: Logic for KR 1 Overview Last time Expert Systems and Ontologies Today Logic as a knowledge representation scheme Propositional Logic Syntax Semantics Proof

More information

First-Order Theorem Proving and Vampire. Laura Kovács (Chalmers University of Technology) Andrei Voronkov (The University of Manchester)

First-Order Theorem Proving and Vampire. Laura Kovács (Chalmers University of Technology) Andrei Voronkov (The University of Manchester) First-Order Theorem Proving and Vampire Laura Kovács (Chalmers University of Technology) Andrei Voronkov (The University of Manchester) Outline Introduction First-Order Logic and TPTP Inference Systems

More information

Chapter 1 Elementary Logic

Chapter 1 Elementary Logic 2017-2018 Chapter 1 Elementary Logic The study of logic is the study of the principles and methods used in distinguishing valid arguments from those that are not valid. The aim of this chapter is to help

More information

Chapter 3: Propositional Calculus: Deductive Systems. September 19, 2008

Chapter 3: Propositional Calculus: Deductive Systems. September 19, 2008 Chapter 3: Propositional Calculus: Deductive Systems September 19, 2008 Outline 1 3.1 Deductive (Proof) System 2 3.2 Gentzen System G 3 3.3 Hilbert System H 4 3.4 Soundness and Completeness; Consistency

More information

1 Introduction to Predicate Resolution

1 Introduction to Predicate Resolution 1 Introduction to Predicate Resolution The resolution proof system for Predicate Logic operates, as in propositional case on sets of clauses and uses a resolution rule as the only rule of inference. The

More information

Section 2.1: Introduction to the Logic of Quantified Statements

Section 2.1: Introduction to the Logic of Quantified Statements Section 2.1: Introduction to the Logic of Quantified Statements In the previous chapter, we studied a branch of logic called propositional logic or propositional calculus. Loosely speaking, propositional

More information

Proseminar on Semantic Theory Fall 2013 Ling 720 Propositional Logic: Syntax and Natural Deduction 1

Proseminar on Semantic Theory Fall 2013 Ling 720 Propositional Logic: Syntax and Natural Deduction 1 Propositional Logic: Syntax and Natural Deduction 1 The Plot That Will Unfold I want to provide some key historical and intellectual context to the model theoretic approach to natural language semantics,

More information

n logical not (negation) n logical or (disjunction) n logical and (conjunction) n logical exclusive or n logical implication (conditional)

n logical not (negation) n logical or (disjunction) n logical and (conjunction) n logical exclusive or n logical implication (conditional) Discrete Math Review Discrete Math Review (Rosen, Chapter 1.1 1.6) TOPICS Propositional Logic Logical Operators Truth Tables Implication Logical Equivalence Inference Rules What you should know about propositional

More information

Chapter 2 Classical Probability Theories

Chapter 2 Classical Probability Theories Chapter 2 Classical Probability Theories In principle, those who are not interested in mathematical foundations of probability theory might jump directly to Part II. One should just know that, besides

More information

Solutions Quiz 9 Nov. 8, Prove: If a, b, m are integers such that 2a + 3b 12m + 1, then a 3m + 1 or b 2m + 1.

Solutions Quiz 9 Nov. 8, Prove: If a, b, m are integers such that 2a + 3b 12m + 1, then a 3m + 1 or b 2m + 1. Solutions Quiz 9 Nov. 8, 2010 1. Prove: If a, b, m are integers such that 2a + 3b 12m + 1, then a 3m + 1 or b 2m + 1. Answer. We prove the contrapositive. Suppose a, b, m are integers such that a < 3m

More information

Gödel s Incompleteness Theorems by Sally Cockburn (2016)

Gödel s Incompleteness Theorems by Sally Cockburn (2016) Gödel s Incompleteness Theorems by Sally Cockburn (2016) 1 Gödel Numbering We begin with Peano s axioms for the arithmetic of the natural numbers (ie number theory): (1) Zero is a natural number (2) Every

More information

Department of Computer Science University at Albany, State University of New York Solutions to Sample Discrete Mathematics Examination I (Spring 2008)

Department of Computer Science University at Albany, State University of New York Solutions to Sample Discrete Mathematics Examination I (Spring 2008) Department of Computer Science University at Albany, State University of New York Solutions to Sample Discrete Mathematics Examination I (Spring 2008) Problem 1: Suppose A, B, C and D are arbitrary sets.

More information

18.S097 Introduction to Proofs IAP 2015 Lecture Notes 1 (1/5/2015)

18.S097 Introduction to Proofs IAP 2015 Lecture Notes 1 (1/5/2015) 18.S097 Introduction to Proofs IAP 2015 Lecture Notes 1 (1/5/2015) 1. Introduction The goal for this course is to provide a quick, and hopefully somewhat gentle, introduction to the task of formulating

More information

First-Order Predicate Logic. Basics

First-Order Predicate Logic. Basics First-Order Predicate Logic Basics 1 Syntax of predicate logic: terms A variable is a symbol of the form x i where i = 1, 2, 3.... A function symbol is of the form fi k where i = 1, 2, 3... und k = 0,

More information

A Little Deductive Logic

A Little Deductive Logic A Little Deductive Logic In propositional or sentential deductive logic, we begin by specifying that we will use capital letters (like A, B, C, D, and so on) to stand in for sentences, and we assume that

More information

Combinatorial Techniques for Proof-Based Synthesis of Sorting Algorithms

Combinatorial Techniques for Proof-Based Synthesis of Sorting Algorithms Combinatorial echniques for Proof-Based Synthesis of Sorting Algorithms Isabela Dramnesc, udor Jebelean, Sorin Stratulat o cite this version: Isabela Dramnesc, udor Jebelean, Sorin Stratulat. Combinatorial

More information

Logic, Sets, and Proofs

Logic, Sets, and Proofs Logic, Sets, and Proofs David A. Cox and Catherine C. McGeoch Amherst College 1 Logic Logical Operators. A logical statement is a mathematical statement that can be assigned a value either true or false.

More information

Context-free grammars and languages

Context-free grammars and languages Context-free grammars and languages The next class of languages we will study in the course is the class of context-free languages. They are defined by the notion of a context-free grammar, or a CFG for

More information

Argument. whenever all the assumptions are true, then the conclusion is true. If today is Wednesday, then yesterday is Tuesday. Today is Wednesday.

Argument. whenever all the assumptions are true, then the conclusion is true. If today is Wednesday, then yesterday is Tuesday. Today is Wednesday. Logic and Proof Argument An argument is a sequence of statements. All statements but the first one are called assumptions or hypothesis. The final statement is called the conclusion. An argument is valid

More information

Axioms for Set Theory

Axioms for Set Theory Axioms for Set Theory The following is a subset of the Zermelo-Fraenkel axioms for set theory. In this setting, all objects are sets which are denoted by letters, e.g. x, y, X, Y. Equality is logical identity:

More information

1 Completeness Theorem for Classical Predicate

1 Completeness Theorem for Classical Predicate 1 Completeness Theorem for Classical Predicate Logic The relationship between the first order models defined in terms of structures M = [M, I] and valuations s : V AR M and propositional models defined

More information

Part II. Logic and Set Theory. Year

Part II. Logic and Set Theory. Year Part II Year 2018 2017 2016 2015 2014 2013 2012 2011 2010 2009 2008 2007 2006 2005 2018 60 Paper 4, Section II 16G State and prove the ǫ-recursion Theorem. [You may assume the Principle of ǫ- Induction.]

More information

A Little Deductive Logic

A Little Deductive Logic A Little Deductive Logic In propositional or sentential deductive logic, we begin by specifying that we will use capital letters (like A, B, C, D, and so on) to stand in for sentences, and we assume that

More information

First-Order Logic. 1 Syntax. Domain of Discourse. FO Vocabulary. Terms

First-Order Logic. 1 Syntax. Domain of Discourse. FO Vocabulary. Terms First-Order Logic 1 Syntax Domain of Discourse The domain of discourse for first order logic is FO structures or models. A FO structure contains Relations Functions Constants (functions of arity 0) FO

More information

Proof Techniques (Review of Math 271)

Proof Techniques (Review of Math 271) Chapter 2 Proof Techniques (Review of Math 271) 2.1 Overview This chapter reviews proof techniques that were probably introduced in Math 271 and that may also have been used in a different way in Phil

More information

Axiomatic set theory. Chapter Why axiomatic set theory?

Axiomatic set theory. Chapter Why axiomatic set theory? Chapter 1 Axiomatic set theory 1.1 Why axiomatic set theory? Essentially all mathematical theories deal with sets in one way or another. In most cases, however, the use of set theory is limited to its

More information

CMPSCI 250: Introduction to Computation. Lecture 11: Proof Techniques David Mix Barrington 5 March 2013

CMPSCI 250: Introduction to Computation. Lecture 11: Proof Techniques David Mix Barrington 5 March 2013 CMPSCI 250: Introduction to Computation Lecture 11: Proof Techniques David Mix Barrington 5 March 2013 Proof Techniques Review: The General Setting for Proofs Types of Proof: Direct, Contraposition, Contradiction

More information

Propositional Logic: Bottom-Up Proofs

Propositional Logic: Bottom-Up Proofs Propositional Logic: Bottom-Up Proofs CPSC 322 Logic 3 Textbook 5.2 Propositional Logic: Bottom-Up Proofs CPSC 322 Logic 3, Slide 1 Lecture Overview 1 Recap 2 Bottom-Up Proofs 3 Soundness of Bottom-Up

More information

a + b = b + a and a b = b a. (a + b) + c = a + (b + c) and (a b) c = a (b c). a (b + c) = a b + a c and (a + b) c = a c + b c.

a + b = b + a and a b = b a. (a + b) + c = a + (b + c) and (a b) c = a (b c). a (b + c) = a b + a c and (a + b) c = a c + b c. Properties of the Integers The set of all integers is the set and the subset of Z given by Z = {, 5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, }, N = {0, 1, 2, 3, 4, }, is the set of nonnegative integers (also called

More information

Properties of the Integers

Properties of the Integers Properties of the Integers The set of all integers is the set and the subset of Z given by Z = {, 5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, }, N = {0, 1, 2, 3, 4, }, is the set of nonnegative integers (also called

More information

Math 225A Model Theory. Speirs, Martin

Math 225A Model Theory. Speirs, Martin Math 5A Model Theory Speirs, Martin Autumn 013 General Information These notes are based on a course in Metamathematics taught by Professor Thomas Scanlon at UC Berkeley in the Autumn of 013. The course

More information

For all For every For each For any There exists at least one There exists There is Some

For all For every For each For any There exists at least one There exists There is Some Section 1.3 Predicates and Quantifiers Assume universe of discourse is all the people who are participating in this course. Also let us assume that we know each person in the course. Consider the following

More information

Introduction to Predicate Logic Part 1. Professor Anita Wasilewska Lecture Notes (1)

Introduction to Predicate Logic Part 1. Professor Anita Wasilewska Lecture Notes (1) Introduction to Predicate Logic Part 1 Professor Anita Wasilewska Lecture Notes (1) Introduction Lecture Notes (1) and (2) provide an OVERVIEW of a standard intuitive formalization and introduction to

More information

= ϕ r cos θ. 0 cos ξ sin ξ and sin ξ cos ξ. sin ξ 0 cos ξ

= ϕ r cos θ. 0 cos ξ sin ξ and sin ξ cos ξ. sin ξ 0 cos ξ 8. The Banach-Tarski paradox May, 2012 The Banach-Tarski paradox is that a unit ball in Euclidean -space can be decomposed into finitely many parts which can then be reassembled to form two unit balls

More information

cse371/mat371 LOGIC Professor Anita Wasilewska Fall 2018

cse371/mat371 LOGIC Professor Anita Wasilewska Fall 2018 cse371/mat371 LOGIC Professor Anita Wasilewska Fall 2018 Chapter 7 Introduction to Intuitionistic and Modal Logics CHAPTER 7 SLIDES Slides Set 1 Chapter 7 Introduction to Intuitionistic and Modal Logics

More information

Theory of Computation

Theory of Computation Theory of Computation Prof. Michael Mascagni Florida State University Department of Computer Science 1 / 33 This course aims to cover... the development of computability theory using an extremely simple

More information

Logical Reasoning. Chapter Statements and Logical Operators

Logical Reasoning. Chapter Statements and Logical Operators Chapter 2 Logical Reasoning 2.1 Statements and Logical Operators Preview Activity 1 (Compound Statements) Mathematicians often develop ways to construct new mathematical objects from existing mathematical

More information

Thermodynamic entropy

Thermodynamic entropy 1 1.1 Thermodynamics and entropy The existence of entropy follows inevitably from the first and second laws of thermodynamics. However, our purpose is not to reproduce this deduction, but rather to focus

More information

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

COMP219: Artificial Intelligence. Lecture 19: Logic for KR COMP219: Artificial Intelligence Lecture 19: Logic for KR 1 Overview Last time Expert Systems and Ontologies Today Logic as a knowledge representation scheme Propositional Logic Syntax Semantics Proof

More information

Wollongong College Australia

Wollongong College Australia Wollongong College Australia University of Wollongong Diploma in Information Technology WUCT121 Discrete Mathematics Mid-Term Test #2 Autumn Session 2008 SOLUTIONS Time Allowed: 50 minutes DIRECTIONS TO

More information

Logic and Proofs 1. 1 Overview. 2 Sentential Connectives. John Nachbar Washington University December 26, 2014

Logic and Proofs 1. 1 Overview. 2 Sentential Connectives. John Nachbar Washington University December 26, 2014 John Nachbar Washington University December 26, 2014 Logic and Proofs 1 1 Overview. These notes provide an informal introduction to some basic concepts in logic. For a careful exposition, see, for example,

More information

Large subsets of semigroups

Large subsets of semigroups CHAPTER 8 Large subsets of semigroups In the van der Waerden theorem 7.5, we are given a finite colouring ω = A 1 A r of the commutative semigroup (ω, +); the remark 7.7(b) states that (at least) one of

More information

On the Structure and Complexity of Symbolic Proofs of Polynomial Identities

On the Structure and Complexity of Symbolic Proofs of Polynomial Identities On the Structure and Complexity of Symbolic Proofs of Polynomial Identities Iddo Tzameret Tel Aviv University, Tel Aviv 69978, Israel Abstract A symbolic proof for establishing that a given arithmetic

More information

Reasoning. Inference. Knowledge Representation 4/6/2018. User

Reasoning. Inference. Knowledge Representation 4/6/2018. User Reasoning Robotics First-order logic Chapter 8-Russel Representation and Reasoning In order to determine appropriate actions to take, an intelligent system needs to represent information about the world

More information

FORMAL PROOFS DONU ARAPURA

FORMAL PROOFS DONU ARAPURA FORMAL PROOFS DONU ARAPURA This is a supplement for M385 on formal proofs in propositional logic. Rather than following the presentation of Rubin, I want to use a slightly different set of rules which

More information

Lecture Notes on DISCRETE MATHEMATICS. Eusebius Doedel

Lecture Notes on DISCRETE MATHEMATICS. Eusebius Doedel Lecture Notes on DISCRETE MATHEMATICS Eusebius Doedel c Eusebius J. Doedel, 009 Contents Logic. Introduction............................................................................... Basic logical

More information

Löwenheim-Skolem Theorems, Countable Approximations, and L ω. David W. Kueker (Lecture Notes, Fall 2007)

Löwenheim-Skolem Theorems, Countable Approximations, and L ω. David W. Kueker (Lecture Notes, Fall 2007) Löwenheim-Skolem Theorems, Countable Approximations, and L ω 0. Introduction David W. Kueker (Lecture Notes, Fall 2007) In its simplest form the Löwenheim-Skolem Theorem for L ω1 ω states that if σ L ω1

More information

Resolution for mixed Post logic

Resolution for mixed Post logic Resolution for mixed Post logic Vladimir Komendantsky Institute of Philosophy of Russian Academy of Science, Volkhonka 14, 119992 Moscow, Russia vycom@pochtamt.ru Abstract. In this paper we present a resolution

More information

FOUNDATIONS & PROOF LECTURE NOTES by Dr Lynne Walling

FOUNDATIONS & PROOF LECTURE NOTES by Dr Lynne Walling FOUNDATIONS & PROOF LECTURE NOTES by Dr Lynne Walling Note: You are expected to spend 3-4 hours per week working on this course outside of the lectures and tutorials. In this time you are expected to review

More information

Reading 11 : Relations and Functions

Reading 11 : Relations and Functions CS/Math 240: Introduction to Discrete Mathematics Fall 2015 Reading 11 : Relations and Functions Instructor: Beck Hasti and Gautam Prakriya In reading 3, we described a correspondence between predicates

More information

Non-classical Study on the Simultaneous Rational Approximation ABSTRACT

Non-classical Study on the Simultaneous Rational Approximation ABSTRACT Malaysian Journal of Mathematical Sciences 9(2): 209-225 (205) MALAYSIAN JOURNAL OF MATHEMATICAL SCIENCES Journal homepage: http://einspem.upm.edu.my/journal Non-classical Study on the Simultaneous Rational

More information

Mathematics 114L Spring 2018 D.A. Martin. Mathematical Logic

Mathematics 114L Spring 2018 D.A. Martin. Mathematical Logic Mathematics 114L Spring 2018 D.A. Martin Mathematical Logic 1 First-Order Languages. Symbols. All first-order languages we consider will have the following symbols: (i) variables v 1, v 2, v 3,... ; (ii)

More information

CHAPTER 11. Introduction to Intuitionistic Logic

CHAPTER 11. Introduction to Intuitionistic Logic CHAPTER 11 Introduction to Intuitionistic Logic Intuitionistic logic has developed as a result of certain philosophical views on the foundation of mathematics, known as intuitionism. Intuitionism was originated

More information

Limits of Computability

Limits of Computability Limits of Computability Wolfgang Schreiner Wolfgang.Schreiner@risc.jku.at Research Institute for Symbolic Computation (RISC) Johannes Kepler University, Linz, Austria http://www.risc.jku.at Wolfgang Schreiner

More information

Introduction to Isabelle/HOL

Introduction to Isabelle/HOL Introduction to Isabelle/HOL 1 Notes on Isabelle/HOL Notation In Isabelle/HOL: [ A 1 ;A 2 ; ;A n ]G can be read as if A 1 and A 2 and and A n then G 3 Note: -Px (P x) stands for P (x) (P(x)) -P(x, y) can

More information

CSCE 222 Discrete Structures for Computing. Predicate Logic. Dr. Hyunyoung Lee. !!!!! Based on slides by Andreas Klappenecker

CSCE 222 Discrete Structures for Computing. Predicate Logic. Dr. Hyunyoung Lee. !!!!! Based on slides by Andreas Klappenecker CSCE 222 Discrete Structures for Computing Predicate Logic Dr. Hyunyoung Lee Based on slides by Andreas Klappenecker 1 Predicates A function P from a set D to the set Prop of propositions is called a predicate.

More information

KRIPKE S THEORY OF TRUTH 1. INTRODUCTION

KRIPKE S THEORY OF TRUTH 1. INTRODUCTION KRIPKE S THEORY OF TRUTH RICHARD G HECK, JR 1. INTRODUCTION The purpose of this note is to give a simple, easily accessible proof of the existence of the minimal fixed point, and of various maximal fixed

More information

2 Truth Tables, Equivalences and the Contrapositive

2 Truth Tables, Equivalences and the Contrapositive 2 Truth Tables, Equivalences and the Contrapositive 12 2 Truth Tables, Equivalences and the Contrapositive 2.1 Truth Tables In a mathematical system, true and false statements are the statements of the

More information

CSE 331 Winter 2018 Reasoning About Code I

CSE 331 Winter 2018 Reasoning About Code I CSE 331 Winter 2018 Reasoning About Code I Notes by Krysta Yousoufian Original lectures by Hal Perkins Additional contributions from Michael Ernst, David Notkin, and Dan Grossman These notes cover most

More information

Peter Kahn. Spring 2007

Peter Kahn. Spring 2007 MATH 304: CONSTRUCTING THE REAL NUMBERS Peter Kahn Spring 2007 Contents 1 The Natural Numbers 1 1.1 The Peano Axioms............................ 2 1.2 Proof by induction............................ 4 1.3

More information

CHAPTER 2. FIRST ORDER LOGIC

CHAPTER 2. FIRST ORDER LOGIC CHAPTER 2. FIRST ORDER LOGIC 1. Introduction First order logic is a much richer system than sentential logic. Its interpretations include the usual structures of mathematics, and its sentences enable us

More information

MAT 570 REAL ANALYSIS LECTURE NOTES. Contents. 1. Sets Functions Countability Axiom of choice Equivalence relations 9

MAT 570 REAL ANALYSIS LECTURE NOTES. Contents. 1. Sets Functions Countability Axiom of choice Equivalence relations 9 MAT 570 REAL ANALYSIS LECTURE NOTES PROFESSOR: JOHN QUIGG SEMESTER: FALL 204 Contents. Sets 2 2. Functions 5 3. Countability 7 4. Axiom of choice 8 5. Equivalence relations 9 6. Real numbers 9 7. Extended

More information

Homework 1 2/7/2018 SOLUTIONS Exercise 1. (a) Graph the following sets (i) C = {x R x in Z} Answer:

Homework 1 2/7/2018 SOLUTIONS Exercise 1. (a) Graph the following sets (i) C = {x R x in Z} Answer: Homework 1 2/7/2018 SOLTIONS Eercise 1. (a) Graph the following sets (i) C = { R in Z} nswer: 0 R (ii) D = {(, y), y in R,, y 2}. nswer: = 2 y y = 2 (iii) C C nswer: y 1 2 (iv) (C C) D nswer: = 2 y y =

More information

Department of Computer Science University at Albany, State University of New York Solutions to Sample Discrete Mathematics Examination II (Fall 2007)

Department of Computer Science University at Albany, State University of New York Solutions to Sample Discrete Mathematics Examination II (Fall 2007) Department of Computer Science University at Albany, State University of New York Solutions to Sample Discrete Mathematics Examination II (Fall 2007) Problem 1: Specify two different predicates P (x) and

More information