Solutions Q1, Q3, Q4.(a), Q5, Q6 to INTLOGS16 Test 1



Similar documents
def: An axiom is a statement that is assumed to be true, or in the case of a mathematical system, is used to specify the system.

CHAPTER 3. Methods of Proofs. 1. Logical Arguments and Formal Proofs

3. Mathematical Induction

Likewise, we have contradictions: formulas that can only be false, e.g. (p p).

NP-Completeness and Cook s Theorem

Handout #1: Mathematical Reasoning

WRITING PROOFS. Christopher Heil Georgia Institute of Technology

8 Divisibility and prime numbers

Cardinality. The set of all finite strings over the alphabet of lowercase letters is countable. The set of real numbers R is an uncountable set.

6.2 Permutations continued

Solutions to Math 51 First Exam January 29, 2015

Mathematics for Computer Science/Software Engineering. Notes for the course MSM1F3 Dr. R. A. Wilson

8 Primes and Modular Arithmetic

Mathematical Induction

Mathematical Induction. Mary Barnes Sue Gordon

This asserts two sets are equal iff they have the same elements, that is, a set is determined by its elements.

COMPUTER SCIENCE TRIPOS

Cartesian Products and Relations

C H A P T E R Regular Expressions regular expression

CHAPTER 2. Logic. 1. Logic Definitions. Notation: Variables are used to represent propositions. The most common variables used are p, q, and r.

Answer Key for California State Standards: Algebra I

Computability Theory

Beyond Propositional Logic Lukasiewicz s System

Formal Languages and Automata Theory - Regular Expressions and Finite Automata -

Regular Languages and Finite Automata

MATHEMATICAL INDUCTION. Mathematical Induction. This is a powerful method to prove properties of positive integers.

The last three chapters introduced three major proof techniques: direct,

Logic in general. Inference rules and theorem proving

Five High Order Thinking Skills

How To Understand The Theory Of Computer Science

Special Situations in the Simplex Algorithm

CHAPTER 7 GENERAL PROOF SYSTEMS

This chapter is all about cardinality of sets. At first this looks like a

MATH10040 Chapter 2: Prime and relatively prime numbers

The Halting Problem is Undecidable

Turing Machines, Busy Beavers, and Big Questions about Computing

Math 3000 Section 003 Intro to Abstract Math Homework 2

Lecture 16 : Relations and Functions DRAFT

CS 3719 (Theory of Computation and Algorithms) Lecture 4

1 Definition of a Turing machine

Mathematical Induction. Lecture 10-11

Lecture Notes in Discrete Mathematics. Marcel B. Finan Arkansas Tech University c All Rights Reserved

1. Give the 16 bit signed (twos complement) representation of the following decimal numbers, and convert to hexadecimal:

SECTION 10-2 Mathematical Induction

DISCRETE MATH: LECTURE 3

You know from calculus that functions play a fundamental role in mathematics.

Discrete Mathematics and Probability Theory Fall 2009 Satish Rao, David Tse Note 2

Lemma 5.2. Let S be a set. (1) Let f and g be two permutations of S. Then the composition of f and g is a permutation of S.

Primes in Sequences. Lee 1. By: Jae Young Lee. Project for MA 341 (Number Theory) Boston University Summer Term I 2009 Instructor: Kalin Kostadinov

Chapter 11 Number Theory

CS 103X: Discrete Structures Homework Assignment 3 Solutions

CS510 Software Engineering

Elementary Number Theory and Methods of Proof. CSE 215, Foundations of Computer Science Stony Brook University

Reading 13 : Finite State Automata and Regular Expressions

Regular Expressions with Nested Levels of Back Referencing Form a Hierarchy

Introduction to Theory of Computation

26 Integers: Multiplication, Division, and Order

Fundamentele Informatica II

Math 223 Abstract Algebra Lecture Notes

Graph Theory Problems and Solutions

3.1. Solving linear equations. Introduction. Prerequisites. Learning Outcomes. Learning Style

Computational Models Lecture 8, Spring 2009

Clock Arithmetic and Modular Systems Clock Arithmetic The introduction to Chapter 4 described a mathematical system

Basic Proof Techniques

University of Ostrava. Reasoning in Description Logic with Semantic Tableau Binary Trees

CSE 135: Introduction to Theory of Computation Decidability and Recognizability

One natural response would be to cite evidence of past mornings, and give something like the following argument:

Scalar Valued Functions of Several Variables; the Gradient Vector

Full and Complete Binary Trees

Proseminar on Semantic Theory Fall 2013 Ling 720. Problem Set on the Formal Preliminaries : Answers and Notes

We can express this in decimal notation (in contrast to the underline notation we have been using) as follows: b + 90c = c + 10b

CONTENTS 1. Peter Kahn. Spring 2007

mod 10 = mod 10 = 49 mod 10 = 9.

Theorem3.1.1 Thedivisionalgorithm;theorem2.2.1insection2.2 If m, n Z and n is a positive

Lecture 2: Universality

Mathematics Course 111: Algebra I Part IV: Vector Spaces

Math Content by Strand 1

GRAPH THEORY LECTURE 4: TREES

Notes on Complexity Theory Last updated: August, Lecture 1

4: EIGENVALUES, EIGENVECTORS, DIAGONALIZATION

Introduction to Logic in Computer Science: Autumn 2006

6.3 Conditional Probability and Independence

CHAPTER 5. Number Theory. 1. Integers and Division. Discussion

Solving Rational Equations

Predicate logic Proofs Artificial intelligence. Predicate logic. SET07106 Mathematics for Software Engineering

CMPSCI 250: Introduction to Computation. Lecture #19: Regular Expressions and Their Languages David Mix Barrington 11 April 2013

Calculate Highest Common Factors(HCFs) & Least Common Multiples(LCMs) NA1

The Graphical Method: An Example

Properties of Real Numbers

MATH 289 PROBLEM SET 4: NUMBER THEORY

MATH 4330/5330, Fourier Analysis Section 11, The Discrete Fourier Transform

WHAT ARE MATHEMATICAL PROOFS AND WHY THEY ARE IMPORTANT?

4.5 Linear Dependence and Linear Independence

Math 319 Problem Set #3 Solution 21 February 2002

Undergraduate Notes in Mathematics. Arkansas Tech University Department of Mathematics

Lecture 13 - Basic Number Theory.

Degrees that are not degrees of categoricity

Examination paper for MA0301 Elementær diskret matematikk

Cryptography and Network Security Department of Computer Science and Engineering Indian Institute of Technology Kharagpur

Transcription:

Solutions Q1, Q3, Q4.(a), Q5, Q6 to INTLOGS16 Test 1 Prof S Bringsjord 0317161200NY Contents I Problems 1 II Solutions 3 Solution to Q1 3 Solutions to Q3 4 Solutions to Q4.(a) (i) 4 Solution to Q4.(a)........................................ 4 Solution to Q5 5 Solution to Q6 5

Part I Problems Q1 Prove that E N. (This is of course to be an informal proof, not a formal proof in Slate. By informal proof we mean the style of proof that is expressed in a mixture of English and formal symbols.) In addition, we stipulate that E here denotes the positive even numbers; i.e., the set {2, 4, 6,...}, a definition of E that differs slightly from what is in the LAMA-BDL book.) Q2 Suppose that you are presented with a version of the Wason Selection Task exactly the same as the one we considered in class, except the four cards in front of you have the following appearance. Which card or cards should you turn over? Prove that your answer is correct. (While you can use Slate to help you, your proof should be an informal one.) G E 7 4 Q3 The following four statements are either all true, or all false. Given this, can we deduce that Lola lies? Prove that your answer is correct. (While you can use Slate to help you, your proof should be an informal one.) 1. If Lucy lies, then so does Larry. 2. If Larry lies, then so does Linda. 3. If Linda lies, then Lola does as well. 4. Lucy lies. Q4 For each of the following formulae, first (i) write down the representation of the formula as an S-expression, then (ii) give a yes or no answer as to whether it s a theorem in the propositional calculus. In addition, (iii) for each of your affirmative verdicts, provide a clear, informal proof that confirms your verdict; and for each of your negative verdicts, provide a confirming counter-example (in the form of a set of assignments of true or false to the relevant atomic formulae (or to in Slate s on-screen terminology the relevant literals). (a) P (P Q) (b) (P Q) ( Q P) (c) ((P Q) Q) P (d) P (Q P) (e) (Z Z) P (f) (P (Q R)) ((P Q) (P R)) (g) ((P Q) P) Q (h) P P (i) (D E) ( D E) Q5 In a paragraph or two, explain cogently why the Entscheidungsproblem is relevant to claims that The Singularity will soon occur. 1

Q6 Suppose that E is a string built by concatenating the symbols that allow well-formed formulas of the propositional calculus to be built. Such symbols include, of course, the five truthfunctional connectives (,,,, ), and atomic formulas like P, Q, etc. Can you program a Raven-machine to decide whether or not E is in fact a well-formed formula of the propositional calculus? Rigorously justify your answer. 2

Part II Solutions Solution to Q1 Proof: By the definition of equinumerosity, we are done if we can establish that there is a bijection b from E to N. We define: b(n) = (n 2) 1, where n E (1) Applying the function b to the smallest element of E, and then size-wise the next two elements, gives: b(2) = 0, b(4) = 1, b(6) = 2 To show that b is bijective, it suffices to show that it s both injective and surjective. Consider injectivity first, and suppose that b is not injective. Then two distinct elements of the domain map to the same natural number k. That is, we have this situaion: where n m. This yields b(n) = k and b(m) = k, n 2 1 = m 2 1, which in turn by adding 1 to both sides gives n 2 = m 2, which in turn by multiplying both sides by 2 gives n = m, and we have reached a contradiction. Our supposition is hence false: b is injective. As to surjectivity: (We will grant full credit to any cogent rationale here (as we have not covered yet the informal proof technique mathematical induction, which is the natural tool to use in order to demonstrate surjectivity in the present case). Clearly, there can t possibly be a natural number that isn t mapped-to from some even numbers, because the pattern 2 4 6 8...... 0 1 2 3... continues forever, with one natural number at a time hit. Hence, for any natural number j N, j will eventually be reached in this progression. This means that the function b is surjective. QED 3

Solution to Q3 Theorem: Yes. Proof: There are two exhaustive cases to consider: one in which all four statements hold, and one in which they are all false. The first case is transparent: here, we can deduce that Lola lies by repeated application of modus ponens. In the second case, the first two statements are false; i.e., 1n. (LucyLies LarryLies) 2n. (LarryLies LindaLies) But as we have noted repeatedly from the very outset of the course, there is one and only one way a material conditional can be false: viz., when the antecedent holds, but the consequent doesn t. Therefore we can deduce from 1n. and 2n., respectively, this: (i) LucyLies LarryLies (ii) LarryLies LindaLies) But (i) and (ii) together immediately yield a contradiction that now stares us in the face: We have on the one hand LarryLies, and on the other LarryLies. Since eveything follows from a contradiction, we can immediately deduce LolaLies. QED Solutions to Q4.(a) (i) Solution to Q4.(a) (i) (if P (or P Q)) Note: I verified this in Slate to be sure. (ii) yes Note: I verified this in Slate to be sure. (iii) Proof: Suppose that P is true. A disjunction φ ψ in the propositional calculus holds provided that at least one of the disjuncts is true. But since by supposition P is true, it the follows immediately that the specific disjunction P Q is true. We have thus shown that if P, then P Q; that is, that P (P Q). QED Note: I built an oracular proof in Slate to be sure of my reasoning. 4

Solution to Q5 The easy version of the Entscheidungsproblem, i.e. the problem of deciding whether a given formula in the propositional caclulus is a theorem of that calculus, can be be solved by a standard algorithm (= by a Turing machine, by a program written in a standard programming language like Python, etc.). In terms of the slides/lectures, an algorithm to compute THEOREM P C exists, and can be engineered by us. (Indeed, Q4 repeatedly asks whether the test-taker can match wits with a machine able to compute THEOREM P C.) However, the Entscheidungsproblem is a harder problem, and it cannot be solved by a standard algorithm. In light of this, when people like Kurzweil glibly assert that computing machines of the future will be phenomenally smart, a key question to ask is whether these machines will be so smart that they can solve the Entscheidungsproblem. If the response is that they can solve the problem, then there is a major problem, because a computing machine unable to solve the Entscheidungsproblem cannot build one that does, so how would these Entscheidungsproblem-solving machines arrive in the first place? Suppose on the other hand that the response is a negative one. In this case, the only fundamental source of the intelligence of these super-smart future machines is that they process information faster than the machines (and humans) that come before them. But what s so special about mere speed of processing? After all, our calculators have long been much, much faster than us but does that make them more intelligent than us? Solution to Q6 Yes. 1 A proof isn t required here, only a rigrous justification for the affirmative. Here s an argument that fits the bill: First, Roger needs to be able to answer with a yes or no upon receiving E, and he needs to be invariably correct. In order to do this, he can just run an algorithm based on the Sept. 11 slide deck, which emphasized the grammar of the proposition calculus from the book, by centering around a table with six rows, where each row is a kind of wff for the propositional calculus. So here s an algorithm for Roger: 1. Check if E matches one of the forms in the six rows. (a) If not, set answer to no and halt. (b) If E is an atomic formula, set answer to yes. (c) If E is a negation φ, set E to φ and go to 1. (d) If E is a conjunction (disjunction), for as long as you don t get a command to halt, try each conjunct (disjunct) in φ i in turn as E and then go to 1. (e) If E is a conditional or biconditional φ ψ (where is either or ), first for φ set to E and then if you don t get a halt command for ψ set to E, go to 1. 2. Print answer and halt. 1 This question isn t asking whether a particular person can program Roger to be a good decider; it s asking whether, in general, one can program Roger to be a good decider. 5