INF3170 Logikk Spring Homework #8 For Friday, March 18

Similar documents
Propositional Logic Language

Description Logics. Foundations of Propositional Logic. franconi. Enrico Franconi

cis32-ai lecture # 18 mon-3-apr-2006

Comp487/587 - Boolean Formulas

02 Propositional Logic

Logic: Propositional Logic (Part I)

Learning Goals of CS245 Logic and Computation

Natural Deduction for Propositional Logic

15414/614 Optional Lecture 1: Propositional Logic

Syntax of propositional logic. Syntax tree of a formula. Semantics of propositional logic (I) Subformulas

Propositional logic (revision) & semantic entailment. p. 1/34

Applied Logic. Lecture 1 - Propositional logic. Marcin Szczuka. Institute of Informatics, The University of Warsaw

A brief introduction to Logic. (slides from


Chapter 4: Classical Propositional Semantics

CHAPTER 4 CLASSICAL PROPOSITIONAL SEMANTICS

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

Introduction to Metalogic

Propositional Logic: Models and Proofs

3 Propositional Logic

Natural Deduction. Formal Methods in Verification of Computer Systems Jeremy Johnson

Section 3.1: Direct Proof and Counterexample 1

Compound Propositions

Propositional Logics and their Algebraic Equivalents

Truth-Functional Logic

Examples: P: it is not the case that P. P Q: P or Q P Q: P implies Q (if P then Q) Typical formula:

Propositional Logic: Syntax

Description Logics. Deduction in Propositional Logic. franconi. Enrico Franconi

Warm-Up Problem. Is the following true or false? 1/35

Knowledge representation DATA INFORMATION KNOWLEDGE WISDOM. Figure Relation ship between data, information knowledge and wisdom.

Tecniche di Verifica. Introduction to Propositional Logic

Introduction to Metalogic

Lecture 4: Proposition, Connectives and Truth Tables

Normal Forms of Propositional Logic

2. The Logic of Compound Statements Summary. Aaron Tan August 2017

CHAPTER 11. Introduction to Intuitionistic Logic

Logical Agents. Knowledge based agents. Knowledge based agents. Knowledge based agents. The Wumpus World. Knowledge Bases 10/20/14

INTRODUCTION TO LOGIC. Propositional Logic. Examples of syntactic claims

CSCI.6962/4962 Software Verification Fundamental Proof Methods in Computer Science (Arkoudas and Musser) Chapter p. 1/33

Logic. Propositional Logic: Syntax. Wffs

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

Lecture 7. Logic. Section1: Statement Logic.

Advanced Topics in LP and FP

The semantics of propositional logic

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

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

CS70 is a course about on Discrete Mathematics for Computer Scientists. The purpose of the course is to teach you about:

Discrete Mathematics(II)

The Importance of Being Formal. Martin Henz. February 5, Propositional Logic

22c:145 Artificial Intelligence

Propositional Logic and Semantics

03 Propositional Logic II

Logic. Propositional Logic: Syntax

MA103 STATEMENTS, PROOF, LOGIC

Propositional and Predicate Logic - V

UNIT-I: Propositional Logic

Foundation of proofs. Jim Hefferon.

Classical Propositional Logic

Logic for Computer Science - Week 4 Natural Deduction

Announcements. CS243: Discrete Structures. Propositional Logic II. Review. Operator Precedence. Operator Precedence, cont. Operator Precedence Example

Introduction to Metalogic 1

Propositional Logic: Part II - Syntax & Proofs 0-0

Announcements. CS311H: Discrete Mathematics. Propositional Logic II. Inverse of an Implication. Converse of a Implication

An Intuitively Complete Analysis of Gödel s Incompleteness

First Order Logic (FOL) 1 znj/dm2017

ECE473 Lecture 15: Propositional Logic

First Order Logic: Syntax and Semantics

A statement is a sentence that is definitely either true or false but not both.

Discrete Mathematics and Probability Theory Fall 2012 Vazirani Note 1

Logic as a Tool Chapter 1: Understanding Propositional Logic 1.1 Propositions and logical connectives. Truth tables and tautologies

Propositional and Predicate Logic - VII

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

Notes on Propositional and First-Order Logic (CPSC 229 Class Notes, January )

Sample Problems for all sections of CMSC250, Midterm 1 Fall 2014

CS 2800: Logic and Computation Fall 2010 (Lecture 13)

Logic As Algebra COMP1600 / COMP6260. Dirk Pattinson Australian National University. Semester 2, 2017

FORMAL PROOFS DONU ARAPURA

Outline. Formale Methoden der Informatik First-Order Logic for Forgetters. Why PL1? Why PL1? Cont d. Motivation

Logic Synthesis and Verification

Inference in Propositional Logic

Part 1: Propositional Logic

Artificial Intelligence. Propositional Logic. Copyright 2011 Dieter Fensel and Florian Fischer

Propositional Logic Part 1

Part Two: The Basic Components of the SOFL Specification Language

CS 2740 Knowledge Representation. Lecture 4. Propositional logic. CS 2740 Knowledge Representation. Administration

Propositional Logic. Jason Filippou UMCP. ason Filippou UMCP) Propositional Logic / 38

Propositional Logic: Logical Agents (Part I)

EECS 1028 M: Discrete Mathematics for Engineers

CONTENTS. Appendix C: Gothic Alphabet 109

An Introduction to Modal Logic III

1 Propositional Logic

AI Principles, Semester 2, Week 2, Lecture 5 Propositional Logic and Predicate Logic

Section 1.1: Logical Form and Logical Equivalence

Logic and Proofs. (A brief summary)

Final Exam (100 points)

Introduction to Sets and Logic (MATH 1190)

Inf2D 06: Logical Agents: Knowledge Bases and the Wumpus World

CS 486: Lecture 2, Thursday, Jan 22, 2009

1 Completeness Theorem for First Order Logic

Foundations of Mathematics Worksheet 2

Transcription:

INF3170 Logikk Spring 2011 Homework #8 For Friday, March 18 Problems 2 6 have to do with a more explicit proof of the restricted version of the completeness theorem: if = ϕ, then ϕ. Note that, other than Problem 3, none are starred. 1. Read through Section 2.5 in van Dalen. 2. Using the proof of Theorem 1.3.8 in van Dalen, describe an algorithm that converts any formula ϕ to formulas ϕ and ϕ, in disjunctive and conjunctive normal form, respectively. 3. a. Remember that a formula ϕ is satisfiable if there is a truth assignment v such that [[ϕ] v = 1. ϕ is unsatisfiable if it is not satisfiable. Show that for any formula ϕ, ϕ is unsatisfiable if and only if = ϕ. b. Now suppose ϕ is of the form ϕ 1 ϕ 2... ϕ k in disjunctive normal form, so that each formula ϕ i is a conjunction of atomic formulas and their negations. Show that ϕ is satisfiable if and only if one of the conjunctions ϕ i does not contain an atomic formula p j together with its negation p j. c. Use this, together with the previous problem, to give an algorithm to determine whether or not a formula ϕ is valid. 4. This problem outlines a more constructive approach to the following special case of the completeness theorem: if = ϕ, then ϕ. a. Modify the algorithm of problem 5 so that given ϕ, it outputs not only a formula ϕ, but also a proof of ϕ ϕ. b. Show that if ϕ is valid, it is easy to prove. (The previous problem is relevant.) 5. If ϕ is any formula, show that length(ϕ ) 2 length(ϕ)+3. (Use the definition of ϕ implicit in Theorem 1.3.9 on page 26.)

6. 7. a. Assuming ϕ has length n, what is the worst-case running time of the algorithm in part (c) of the problem 6? b. Another way to determine if a formula ϕ is a tautology is to compute its value on every truth assignment (the truth table method). What is the worst-case running time of this algorithm? c. Come up with a polynomial-time algorithm for determining if a propositional formula ϕ is a tautology or not, or prove that no such algorithm exists. (Note: a successful solution to this problem amounts to settling the famous open question, P = NP?.) Treating the connectives,,, and as basic (i.e. is not defined from other connectives, but,, and are), we get intuitionistic (propositional) logic by deleting RAA from our set of inference rules. The remaining rules, then, are intro and elim; intro and elim; intro and elim; and elim (that from you can conclude anything). We show that RAA does not follow from these rules by constructing a sound semantics for intuitionistic logic in which RAA does not hold. Let I be the closed unit interval, I = [0, 1] = {x R 0 x 1} a. Given a valuation v : {p 0, p 1,...} I justify briefly that there is a unique function such that [ ] v : PROP I [ ] v = 0 (1) [φ ψ ] v = min{[φ] v, [ψ ] v } (2) [φ ψ ] v = max{[φ] v, [ψ ] v } (3) { 1, if [[φ] v [ψ ] v [φ ψ ] v = (4) [ψ ] v, otherwise b. Define semantic consequence with respect to valuations in I by {φ 1,..., φ n } I ψ if min{φ 1,..., φ n } [ψ ] v for all valuations v : {p 0, p 1,...} I, where Γ is a finite set of formulas. (Accordingly, φ is valid, I φ, iff [[φ] v = 1 for all valuations

v.) Show by induction on derivations that this defines a sound semantics for intuitionistic logic. The induction step has one case for each derivation rule, do at least two of these cases. The -elim case is tricky, so you might want to avoid that one. c. Do all cases in the induction proof above. d. Use the definition of [ ] v to compute [φ φ] v. Conclude that RAA does not follow from the other deduction rules. e. Is this semantics complete? That is, is it the case that Γ I φ Γ φ for Γ a finite set of formulas? Justify your answer. 8. Do problem 1 on page 60. 9. Do problem 4 on page 67. For each one, just indicate whether the term is free or not free for the variable in question, and carry out the substitution either way. 10. Consider a first-order language, with relation symbols < and =. The intended interpretation is the natural numbers, with less-than and equality. Formalize the following statements: a. x is less than or equal to y b. 0 is the smallest number c. there is a smallest number d. there is no largest number e. every number has an immediate successor (in other words, for every number, there is another one that is the next largest ) 11. The language of arithmetic is intended to describe the natural numbers, with constant symbols 0 and 1, functions symbols + and, and a relation symbol <. Formalize the following: a. x is prime. b. There are infinitely many primes. c. the principle of induction for a formula ϕ(x) d. the least-element principle for a formula ϕ(x) You can define auxiliary notions along the way. Remember that a number x is prime if it is greater than 1 and its only divisors are 1 and itself. To say there are infinitely many primes, say that there are primes that are arbitrarily large. You can find the induction principle and the least element principle on pages 7 and 8 of the notes.

12. The language of sets has a single binary relation symbol, where x y is meant to denote the fact that x is an element of y. In the intended interpretation, everything is a set; that is, every object is a set, whose elements are sets, and so on. In this language, formalize the following statements: a. x is a subset of (or equal to) y. b. Two sets are equal if and only if they have the same elements. c. For any set z, there is another set w consisting of all the subsets of z. (You can use the symbol to abbreviate the formula you found in part (a).) 13. In a language with a binary relation symbol <, formalize the following statements: a. < is transitive. b. Between any two things there is another thing. c. There is a smallest thing. d. There is no largest thing. 14. In the language of groups, which has a multiplication symbol and a constant symbol i, formalize the following statements: a. is associative. b. is not commutative. c. i is an identity. d. Every element has an inverse. 15. Let A be the structure consisting of all objects on the planet Earth with relations IsCow(x), EatsGrass(x), IsCar(x), etc. Give reasonable formalizations of the following sentences: a. All cows eat grass. b. There is a car that is blue and old. c. No car is not pink. d. All cars that are old must be inspected annually. 16. In plain English, express the negation of each of these sentences, that is, the assertion that each sentence is false. 17. In a language with unary relation symbols Red(x), Car(x), and Broken(x), come up with a reasonable formalization of the sentence The red car is broken.

18. Do problem 1 on page 72. Use the symbols P, T, S, and c to denote addition, multiplication, successor ( +1 ), and 0 respectively. 19. Do problems 2 and 3 on page 72. 20. Prove unique readability for terms and formulas in a given first-order language (and/or write a parser).