Mathematical Logic Part Two

Similar documents
Mathematical Logic Part Two

Mathematical Logic Part Two

Mathematical Logic Part Two

Mathematical Logic Part One

Mathematical Logic Part One

First-Order Translation Checklist

CS103 Handout 29 Winter 2018 February 9, 2018 Inductive Proofwriting Checklist

CS103 Spring 2018 Mathematical Vocabulary

Proofwriting Checklist

Program Verification & Testing; Review of Propositional Logic

Functions, High-School Edition

for all x, the assertion P(x) is false. there exists x, for which the assertion P(x) is true.

Formal Methods of Software Design, Eric Hehner, segment 1 page 1 out of 5

CS103 Handout 50 Fall 2018 November 30, 2018 Problem Set 9

University of Illinois at Chicago Department of Computer Science. Final Examination. CS 151 Mathematical Foundations of Computer Science Fall 2012

Strategies for Proofs

Lecture Notes 15 Number systems and logic CSS Data Structures and Object-Oriented Programming Professor Clark F. Olson

Mathematical Logic Prof. Arindama Singh Department of Mathematics Indian Institute of Technology, Madras. Lecture - 9 Normal Forms

In our first lecture on sets and set theory, we introduced a bunch of new symbols and terminology.

Chapter 1.3 Quantifiers, Predicates, and Validity. Reading: 1.3 Next Class: 1.4. Motivation

Range Minimum Queries Part Two

Guide to First-Order Logic Translations

MITOCW watch?v=kz7jjltq9r4

CS 161 Computer Security

Practice Problems: All Computer Science majors are people. Some computer science majors are logical thinkers. Some people are logical thinkers.

Shared Variables and Interference

CMPSCI 250: Introduction to Computation. Lecture #7: Quantifiers and Languages 6 February 2012

Shared Variables and Interference

Logical Connectives. All kittens are cute. ; I like pizza. ; The sky is blue. ; Triangles have three sides.

Propositional Logic. Part I

CS103 Handout 35 Spring 2017 May 19, 2017 Problem Set 7

L05 - Negating Statements

Notes. Notes. Introduction. Notes. Propositional Functions. Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry.

To prove something about all Boolean expressions, we will need the following induction principle: Axiom 7.1 (Induction over Boolean expressions):

CS Bootcamp Boolean Logic Autumn 2015 A B A B T T T T F F F T F F F F T T T T F T F T T F F F

CPSC 121: Models of Computation. Module 6: Rewriting predicate logic statements

Binary Relations Part One

MITOCW watch?v=4dj1oguwtem

CITS2211 Discrete Structures Logic

So many Logics, so little time

Propositional Logic Formal Syntax and Semantics. Computability and Logic

These are notes for the third lecture; if statements and loops.

Skill 1: Multiplying Polynomials

Sets. Margaret M. Fleck. 15 September 2010

CS 3512, Spring Instructor: Doug Dunham. Textbook: James L. Hein, Discrete Structures, Logic, and Computability, 3rd Ed. Jones and Barlett, 2010

Section 2.4: Arguments with Quantified Statements

For next Tuesday. Read chapter 8 No written homework Initial posts due Thursday 1pm and responses due by class time Tuesday

Propositional Logic. Application of Propositional logic

Multi-Place Predicates and Multiple Quantifiers

Finite Automata Part Three

Propositional Calculus: Boolean Algebra and Simplification. CS 270: Mathematical Foundations of Computer Science Jeremy Johnson

Solutions to Selected Exercises

Lecture 5: Predicate Calculus. ffl Predicate Logic ffl The Language ffl Semantics: Structures

Quantification. Using the suggested notation, symbolize the statements expressed by the following sentences.

Homework 1. Due Date: Wednesday 11/26/07 - at the beginning of the lecture

Summary of Course Coverage

Predicate Logic CHAPTER What This Chapter Is About

This is already grossly inconvenient in present formalisms. Why do we want to make this convenient? GENERAL GOALS

To prove something about all Boolean expressions, we will need the following induction principle: Axiom 7.1 (Induction over Boolean expressions):

CS70 - Lecture 6. Graphs: Coloring; Special Graphs. 1. Review of L5 2. Planar Five Color Theorem 3. Special Graphs:

Binary, Hexadecimal and Octal number system

Computation Club: Gödel s theorem

LOGIC AND DISCRETE MATHEMATICS

CSE 311: Foundations of Computing. Lecture 8: Predicate Logic Proofs

6.034 Notes: Section 10.1

Guidelines for Writing Mathematical Proofs

Today s Topics. What is a set?

CPSC 121 Some Sample Questions for the Final Exam Tuesday, April 15, 2014, 8:30AM

Propositional Logic:

CPSC 121: Models of Computation. Module 5: Predicate Logic

Outline for Today. Why could we construct them in time O(n)? Analyzing data structures over the long term.

Section 2.2: Introduction to the Logic of Quantified Statements

CS103 Handout 13 Spring 2018 April 6, 2018 Problem Set 1

n! = 1 * 2 * 3 * 4 * * (n-1) * n

First Order Predicate Logic CIS 32

CPSC 121: Models of Computation Assignment #4, due Thursday, March 16 th,2017at16:00

Propositional Calculus. CS 270: Mathematical Foundations of Computer Science Jeremy Johnson

x 2 + 3, r 4(x) = x2 1

PHIL 240, Introduction to Logic, Sections Fall 2011 FINAL EXAM 14 December Name (5 points): Section (5 points):

The Stack, Free Store, and Global Namespace

CSE 20 DISCRETE MATH. Fall

A Random Walk through CS70

CS221 / Autumn 2017 / Liang & Ermon. Lecture 17: Logic II

Overview. CS389L: Automated Logical Reasoning. Lecture 6: First Order Logic Syntax and Semantics. Constants in First-Order Logic.

61A LECTURE 1 FUNCTIONS, VALUES. Steven Tang and Eric Tzeng June 24, 2013

Propositional Calculus: Boolean Functions and Expressions. CS 270: Mathematical Foundations of Computer Science Jeremy Johnson

CS112 Friday, September 12, 2008

PROFESSOR: Last time, we took a look at an explicit control evaluator for Lisp, and that bridged the gap between

Lecture 6,

Introduction to Sets and Logic (MATH 1190)

CSL105: Discrete Mathematical Structures. Ragesh Jaiswal, CSE, IIT Delhi

Outline for Today. The Pigeonhole Principle. Graph Theory Party Tricks. The Hadwiger-Nelson Problem. Results that are too big to fail.

Problem One: A Quick Algebra Review

The Haskell HOP: Higher-order Programming

Automated Reasoning PROLOG and Automated Reasoning 13.4 Further Issues in Automated Reasoning 13.5 Epilogue and References 13.

Turing Machines Part Two

Recursively Enumerable Languages, Turing Machines, and Decidability

Final Solution. CS510, Fall 2012, Drexel University Ariel Stolerman

Finite Automata Part Three

Back to the knights and knaves island

Transcription:

Mathematical Logic Part Two

Recap from Last Time

Recap So Far A propositional variable is a variable that is either true or false. The propositional connectives are as follows: Negation: p Conjunction: p q Disjunction: p q Implication: p q Biconditional: p q True: False:

Take out a sheet of paper!

What's the truth table for the connective?

What's the negation of p q?

New Stuff!

First-Order Logic

What is First-Order Logic? First-order logic is a logical system for reasoning about properties of objects. Augments the logical connectives from propositional logic with predicates that describe properties of objects, functions that map objects to one another, and quantifiers that allow us to reason about multiple objects.

Some Examples

Likes(You, Eggs) Likes(You, Tomato) Likes(You, Shakshuka) Learns(You, History) ForeverRepeats(You, History) DrinksTooMuch(Me) IsAnIssue(That) IsOkay(Me)

Likes(You, Eggs) Likes(You, Tomato) Likes(You, Shakshuka) Learns(You, History) ForeverRepeats(You, History) DrinksTooMuch(Me) IsAnIssue(That) IsOkay(Me)

Likes(You, Eggs) Likes(You, Tomato) Likes(You, Shakshuka) Learns(You, History) ForeverRepeats(You, History) DrinksTooMuch(Me) IsAnIssue(That) IsOkay(Me)

Likes(You, Eggs) Likes(You, Tomato) Likes(You, Shakshuka) Learns(You, History) ForeverRepeats(You, History) DrinksTooMuch(Me) IsAnIssue(That) IsOkay(Me) These These blue blue terms terms are are called called constant constant symbols. symbols. Unlike Unlike propositional propositional variables, variables, they they refer refer to to objects, objects, not not propositions. propositions.

Likes(You, Eggs) Likes(You, Tomato) Likes(You, Shakshuka) Learns(You, History) ForeverRepeats(You, History) DrinksTooMuch(Me) IsAnIssue(That) IsOkay(Me)

Likes(You, Eggs) Likes(You, Tomato) Likes(You, Shakshuka) Learns(You, History) ForeverRepeats(You, History) DrinksTooMuch(Me) IsAnIssue(That) IsOkay(Me) The The red red things things that that look look like like function function calls calls are are called called predicates. predicates. Predicates Predicates take take objects objects as as arguments arguments and and evaluate evaluate to to true true or or false. false.

Likes(You, Eggs) Likes(You, Tomato) Likes(You, Shakshuka) Learns(You, History) ForeverRepeats(You, History) DrinksTooMuch(Me) IsAnIssue(That) IsOkay(Me)

Likes(You, Eggs) Likes(You, Tomato) Likes(You, Shakshuka) Learns(You, History) ForeverRepeats(You, History) DrinksTooMuch(Me) IsAnIssue(That) IsOkay(Me) What What remains remains are are traditional traditional propositional propositional connectives. connectives. Because Because each each predicate predicate evaluates evaluates to to true true or or false, false, we we can can connect connect the the truth truth values values of of predicates predicates using using normal normal propositional propositional connectives. connectives.

Reasoning about Objects To reason about objects, first-order logic uses predicates. Examples: IsCute(Quokka) ArgueIncessantly(Democrats, Republicans) Applying a predicate to arguments produces a proposition, which is either true or false.

First-Order Sentences Sentences in first-order logic can be constructed from predicates applied to objects: Cute(a) Dikdik(a) Kitty(a) Puppy(a) Succeeds(You) Practices(You) x < 8 x < 137 The The less-than less-than sign sign isis just just another another predicate. predicate. Binary Binary predicates predicates are are sometimes sometimes written written inin infix infix notation notation this this way. way. Numbers Numbers are are not not built built in in to to first-order first-order logic. logic. They re They re constant constant symbols symbols just just like like You You and and a a above. above.

Equality First-order logic is equipped with a special predicate = that says whether two objects are equal to one another. Equality is a part of first-order logic, just as and are. Examples: TomMarvoloRiddle = LordVoldemort MorningStar = EveningStar Equality can only be applied to objects; to state that two propositions are equal, use.

Let's see some more examples.

FavoriteMovieOf(You) FavoriteMovieOf(Her) StarOf(FavoriteMovieOf(You)) = StarOf(FavoriteMovieOf(Her))

FavoriteMovieOf(You) FavoriteMovieOf(Her) StarOf(FavoriteMovieOf(You)) = StarOf(FavoriteMovieOf(Her))

FavoriteMovieOf(You) FavoriteMovieOf(Her) StarOf(FavoriteMovieOf(You)) = StarOf(FavoriteMovieOf(Her))

FavoriteMovieOf(You) FavoriteMovieOf(Her) StarOf(FavoriteMovieOf(You)) = StarOf(FavoriteMovieOf(Her))

FavoriteMovieOf(You) FavoriteMovieOf(Her) StarOf(FavoriteMovieOf(You)) = StarOf(FavoriteMovieOf(Her)) These These purple purple terms terms are are functions. functions. Functions Functions take take objects objects as as input input and and produce produce objects objects as as output. output.

FavoriteMovieOf(You) FavoriteMovieOf(Her) StarOf(FavoriteMovieOf(You)) = StarOf(FavoriteMovieOf(Her))

FavoriteMovieOf(You) FavoriteMovieOf(Her) StarOf(FavoriteMovieOf(You)) = StarOf(FavoriteMovieOf(Her))

FavoriteMovieOf(You) FavoriteMovieOf(Her) StarOf(FavoriteMovieOf(You)) = StarOf(FavoriteMovieOf(Her))

Functions First-order logic allows functions that return objects associated with other objects. Examples: ColorOf(Money) MedianOf(x, y, z) x+y As with predicates, functions can take in any number of arguments, but always return a single value. Functions evaluate to objects, not propositions.

Objects and Predicates When working in first-order logic, be careful to keep objects (actual things) and predicates (true or false) separate. You cannot apply connectives to objects: Venus TheSun You cannot apply functions to propositions: StarOf(IsRed(Sun) IsGreen(Mars)) Ever get confused? Just ask!

One last (and major) change

For any natural number n, n is even iff n2 is even

For any natural number n, n is even iff n2 is even n. (n ℕ (Even(n) Even(n2)))

For any natural number n, n is even iff n2 is even n. (n ℕ (Even(n) Even(n2))) isis the the universal universalquantifier quantifier and and says says for for any any choice choice of of n, n, the the following following isis true. true.

The Universal Quantifier A statement of the form x. some-formula is true if, for every choice of x, the statement some-formula is true when x is plugged into it. Examples: p. (Puppy(p) Cute(p)) m. (IsMillennial(m) IsSpecial(m)) Tallest(SK) x. (SK x ShorterThan(x, SK))

The Universal Quantifier x. Smiling(x)

The Universal Quantifier x. Smiling(x)

The Universal Quantifier x. Smiling(x)

The Universal Quantifier x. Smiling(x)

The Universal Quantifier x. Smiling(x)

The Universal Quantifier x. Smiling(x)

The Universal Quantifier x. Smiling(x)

The Universal Quantifier x. Smiling(x) Since SinceSmiling(x) Smiling(x) isistrue truefor forevery every choice of x, choice of x,this this statement statement evaluates evaluatesto totrue. true.

The Universal Quantifier x. Smiling(x) Since SinceSmiling(x) Smiling(x) isistrue truefor forevery every choice of x, choice of x,this this statement statement evaluates evaluatesto totrue. true.

The Universal Quantifier x. Smiling(x)

The Universal Quantifier x. Smiling(x)

The Universal Quantifier x. Smiling(x)

The Universal Quantifier x. Smiling(x)

The Universal Quantifier x. Smiling(x) Since SinceSmiling(x) Smiling(x)isis true truefor forthis thischoice choice x,x,this statement this statement evaluates evaluatesto tofalse. false.

The Universal Quantifier x. Smiling(x) Since SinceSmiling(x) Smiling(x)isis true truefor forthis thischoice choice x,x,this statement this statement evaluates evaluatesto tofalse. false.

The Universal Quantifier ( x. Smiling(x)) ( y. WearingHat(y))

The Universal Quantifier ( x. Smiling(x)) ( y. WearingHat(y))

The Universal Quantifier IsIsthis thispart partofofthe the statement true statement trueor or false? false? ( x. Smiling(x)) ( y. WearingHat(y))

The Universal Quantifier IsIsthis thispart partofofthe the statement true statement trueor or false? false? ( x. Smiling(x)) ( y. WearingHat(y))

The Universal Quantifier IsIsthis thispart partofofthe the statement true statement trueor or false? false? ( x. Smiling(x)) ( y. WearingHat(y))

The Universal Quantifier IsIsthis thispart partofofthe the statement true statement trueor or false? false? ( x. Smiling(x)) ( y. WearingHat(y))

The Universal Quantifier IsIsthis thisoverall overall statement statementtrue trueor or false in this false in this scenario? scenario? ( x. Smiling(x)) ( y. WearingHat(y))

The Universal Quantifier IsIsthis thisoverall overall statement statementtrue trueor or false in this false in this scenario? scenario? ( x. Smiling(x)) ( y. WearingHat(y))

Some muggles are intelligent.

Some muggles are intelligent. m. (Muggle(m) Intelligent(m))

Some muggles are intelligent. m. (Muggle(m) Intelligent(m)) isis the the existential existentialquantifier quantifier and and says says for for some some choice choice of of m, m, the the following following isis true. true.

The Existential Quantifier A statement of the form x. some-formula is true if, for some choice of x, the statement some-formula is true when that x is plugged into it. Examples: x. (Even(x) Prime(x)) x. (TallerThan(x, me) LighterThan(x, me)) ( x. Appreciates(x, me)) Happy(me)

The Existential Quantifier x. Smiling(x)

The Existential Quantifier x. Smiling(x)

The Existential Quantifier x. Smiling(x)

The Existential Quantifier x. Smiling(x)

The Existential Quantifier x. Smiling(x)

The Existential Quantifier x. Smiling(x)

The Existential Quantifier x. Smiling(x)

The Existential Quantifier x. Smiling(x) Since SinceSmiling(x) Smiling(x) isistrue truefor forsome some choice of x, choice of x,this this statement statement evaluates evaluatesto totrue. true.

The Existential Quantifier x. Smiling(x) Since SinceSmiling(x) Smiling(x) isistrue truefor forsome some choice of x, choice of x,this this statement statement evaluates evaluatesto totrue. true.

The Existential Quantifier x. Smiling(x)

The Existential Quantifier x. Smiling(x)

The Existential Quantifier x. Smiling(x)

The Existential Quantifier x. Smiling(x)

The Existential Quantifier x. Smiling(x)

The Existential Quantifier x. Smiling(x)

The Existential Quantifier x. Smiling(x)

The Existential Quantifier x. Smiling(x) Since SinceSmiling(x) Smiling(x)isis not nottrue truefor forany any choice of x, this choice of x, this statement statementevaluates evaluates to false. to false.

The Existential Quantifier x. Smiling(x) Since SinceSmiling(x) Smiling(x)isis not nottrue truefor forany any choice of x, this choice of x, this statement statementevaluates evaluates to false. to false.

The Existential Quantifier ( x. Smiling(x)) ( y. WearingHat(y))

The Existential Quantifier ( x. Smiling(x)) ( y. WearingHat(y))

The Existential Quantifier IsIsthis thispart partofofthe the statement true statement trueor or false? false? ( x. Smiling(x)) ( y. WearingHat(y))

The Existential Quantifier IsIsthis thispart partofofthe the statement true statement trueor or false? false? ( x. Smiling(x)) ( y. WearingHat(y))

The Existential Quantifier IsIsthis thispart partofofthe the statement true statement trueor or false? false? ( x. Smiling(x)) ( y. WearingHat(y))

The Existential Quantifier IsIsthis thispart partofofthe the statement true statement trueor or false? false? ( x. Smiling(x)) ( y. WearingHat(y))

The Existential Quantifier IsIsthis thisoverall overall statement statementtrue trueor or false? false? ( x. Smiling(x)) ( y. WearingHat(y))

The Existential Quantifier IsIsthis thisoverall overall statement statementtrue trueor or false? false? ( x. Smiling(x)) ( y. WearingHat(y))

Some Technical Details

Variables and Quantifiers Each quantifier has two parts: the variable that is introduced, and the statement that's being quantified. The variable introduced is scoped just to the statement being quantified. ( x. Loves(You, x)) ( y. Loves(y, You))

Variables and Quantifiers Each quantifier has two parts: the variable that is introduced, and the statement that's being quantified. The variable introduced is scoped just to the statement being quantified. ( x. Loves(You, x)) ( y. Loves(y, You)) The The variable variable xx just just lives lives here. here. The The variable variable yy just just lives lives here. here.

Variables and Quantifiers Each quantifier has two parts: the variable that is introduced, and the statement that's being quantified. The variable introduced is scoped just to the statement being quantified. ( x. Loves(You, x)) ( y. Loves(y, You))

Variables and Quantifiers Each quantifier has two parts: the variable that is introduced, and the statement that's being quantified. The variable introduced is scoped just to the statement being quantified. ( x. Loves(You, x)) ( x. Loves(x, You))

Variables and Quantifiers Each quantifier has two parts: the variable that is introduced, and the statement that's being quantified. The variable introduced is scoped just to the statement being quantified. ( x. Loves(You, x)) ( x. Loves(x, You)) The The variable variable xx just just lives lives here. here. AA different different variable, variable, also also named named x, x, just just lives lives here. here.

Operator Precedence (Again) When writing out a formula in first-order logic, the quantifiers and have precedence just below. The statement x. P(x) R(x) Q(x) is parsed like this: ( ( x. P (x) ) R (x) ) Q ( x ) This is syntactically invalid because the variable x is out of scope in the back half of the formula. To ensure that x is properly quantified, explicitly put parentheses around the region you want to quantify: x. (P(x) R(x) Q(x))

Time-Out for Announcements!

Checkpoints Graded The PS1 checkpoint assignment has been graded. Review your feedback on GradeScope. Contact the staff (via Piazza or by stopping by office hours) if you have any questions. Some notes: Make sure to list your partner through GradeScope. There's a space to list your partner when you submit the assignment. If you forget to do this, they won't get credit for the assignment! Make sure to check your grade ASAP. For the reason listed above, make sure you have a grade recorded. If not, contact the course staff. Plus, that way, you can take our feedback into account when writing up your answers to the rest of the problem set questions. Best of luck on the rest of the problem set!

Proofwriting Checklist We ve just released Handout 11, which contains a checklist of five good proofwriting tips. We ll be looking at these five specific points when grading your problem sets. Good idea: Before submitting, reread all of your proofs and make sure that you adhere to the conventions. Already submitted? No worries! You can resubmit and we ll grade the second version.

Your Questions

Industry or research? PhD or not to PhD? These These are are both both really really good good options options it s it s more more aa matter matter of of what what you re you re interested interested inin working working on on and and what s what s aa better better fit fit for for you. you. Working Working on on aa Ph.D Ph.D gives gives you you aa chance chance to to work work on on aa lot lot of of problems problems you you can t can t typically typically work work on on inin industry. industry. You ll You ll get get aa thorough thorough understanding understanding of of aa particular particular problem problem domain domain and and will will learn learn how how to to work work on on new new problems problems independently. independently. Post-graduation, Post-graduation, you you can can go go into into academia academia (there (there are are aa ton ton of of openings!) openings!) or or industry, industry, and and you ll you ll have have aa lot lot of of flexibility. flexibility. If If you re you re thinking thinking that that you you want want to to do do aa PhD, PhD, I d I d strongly strongly recommend recommend trying trying to to get get involved involved inin research research inin the the CS CS department. department. Keep Keep an an eye eye open open for for CURIS CURIS for for next next year, year, and and feel feel free free to to stop stop by by professors professors office office hours hours to to ask ask them them about about their their work work and and how how to to get get involved. involved. Take Take classes classes outside outside the the CS CS core, core, ifif you you can, can, since since that s that s another another great great way way to to meet meet professors. professors.

When have you felt inadequate? I ll I ll take take this this one one inin class class rather rather than than writing writing things things down down for for posterity s posterity s sake, sake, but but the the short short answer answer isis all all the the time. time. As As for for what what should should you you do do about about it?, it?, II don t don t think think there s there s aa one-size-fits one-size-fits all all answer, answer, and and again again I ll I ll take take this this one one inin class. class.

What's your favorite game? AA tie tie between between Codenames, Codenames, Bananagrams, Bananagrams, Wise Wise and and Otherwise, Otherwise, and and One One Night Night Werewolf. Werewolf. II love love games games you you can can play play inin aa group group where where you you can can lose lose terribly terribly and and still still have have aa really really good good time. time.

Back to CS103!

Translating into First-Order Logic

Translating Into Logic First-order logic is an excellent tool for manipulating definitions and theorems to learn more about them. Applications: Determining the negation of a complex statement. Figuring out the contrapositive of a tricky implication.

Translating Into Logic Translating statements into first-order logic is a lot more difficult than it looks. There are a lot of nuances that come up when translating into first-order logic. We'll cover examples of both good and bad translations into logic so that you can learn what to watch for. We'll also show lots of examples of translations so that you can see the process that goes into it.

Using the predicates - Puppy(p), which states that p is a puppy, and - Cute(x), which states that x is cute, write a sentence in first-order logic that means all puppies are cute.

An Incorrect Translation All puppies are cute! x. (Puppy(x) Cute(x))

An Incorrect Translation All puppies are cute! x. (Puppy(x) Cute(x)) This This should should work work for for any any choice choice of of x, x, including including things things that that aren't aren't puppies. puppies.

An Incorrect Translation All puppies are cute! x. (Puppy(x) Cute(x)) This This should should work work for for any any choice choice of of x, x, including including things things that that aren't aren't puppies. puppies.

An Incorrect Translation All puppies are cute! x. (Puppy(x) Cute(x)) This This should should work work for for any any choice choice of of x, x, including including things things that that aren't aren't puppies. puppies.

An Incorrect Translation All puppies are cute! x. (Puppy(x) Cute(x)) This This should should work work for for any any choice choice of of x, x, including including things things that that aren't aren't puppies. puppies.

An Incorrect Translation All puppies are cute! x. (Puppy(x) Cute(x)) This This should should work work for for any any choice choice of of x, x, including including things things that that aren't aren't puppies. puppies.

An Incorrect Translation All puppies are cute! x. (Puppy(x) Cute(x)) This This should should work work for for any any choice choice of of x, x, including including things things that that aren't aren't puppies. puppies.

An Incorrect Translation All puppies are cute! x. (Puppy(x) Cute(x)) AA statement statement of of the the form form x. x. something something isis true true only only when when something something isis true true for for every every choice choice of of x. x.

An Incorrect Translation All puppies are cute! x. (Puppy(x) Cute(x)) AA statement statement of of the the form form x. x. something something isis true true only only when when something something isis true true for for every every choice choice of of x. x.

An Incorrect Translation All puppies are cute! x. (Puppy(x) Cute(x))

An Incorrect Translation All puppies are cute! x. (Puppy(x) Cute(x)) This This first-order first-order statement statement isis false false even even though though the the English English statement statement isis true. true. Therefore, Therefore, itit can't can't be be aa correct correct translation. translation.

An Incorrect Translation All puppies are cute! x. (Puppy(x) Cute(x)) The The issue issue here here isis that that this this statement statement asserts asserts that that everything everything isis aa puppy. puppy. That's That's too too strong strong of of aa claim claim to to make. make.

A Better Translation All puppies are cute! x. (Puppy(x) Cute(x))

A Better Translation All puppies are cute! x. (Puppy(x) Cute(x)) This This should should work work for for any any choice choice of of x, x, including including things things that that aren't aren't puppies. puppies.

A Better Translation All puppies are cute! x. (Puppy(x) Cute(x)) This This should should work work for for any any choice choice of of x, x, including including things things that that aren't aren't puppies. puppies.

A Better Translation All puppies are cute! x. (Puppy(x) Cute(x)) This This should should work work for for any any choice choice of of x, x, including including things things that that aren't aren't puppies. puppies.

A Better Translation All puppies are cute! x. (Puppy(x) Cute(x)) This This should should work work for for any any choice choice of of x, x, including including things things that that aren't aren't puppies. puppies.

A Better Translation All puppies are cute! x. (Puppy(x) Cute(x)) This This should should work work for for any any choice choice of of x, x, including including things things that that aren't aren't puppies. puppies.

A Better Translation All puppies are cute! x. (Puppy(x) Cute(x)) This This should should work work for for any any choice choice of of x, x, including including things things that that aren't aren't puppies. puppies.

A Better Translation All puppies are cute! x. (Puppy(x) Cute(x)) This This should should work work for for any any choice choice of of x, x, including including things things that that aren't aren't puppies. puppies.

A Better Translation All puppies are cute! x. (Puppy(x) Cute(x)) This This should should work work for for any any choice choice of of x, x, including including things things that that aren't aren't puppies. puppies.

A Better Translation All puppies are cute! x. (Puppy(x) Cute(x)) This This should should work work for for any any choice choice of of x, x, including including things things that that aren't aren't puppies. puppies.

A Better Translation All puppies are cute! x. (Puppy(x) Cute(x)) This This should should work work for for any any choice choice of of x, x, including including things things that that aren't aren't puppies. puppies.

A Better Translation All puppies are cute! x. (Puppy(x) Cute(x)) This This should should work work for for any any choice choice of of x, x, including including things things that that aren't aren't puppies. puppies.

A Better Translation All puppies are cute! x. (Puppy(x) Cute(x)) This This should should work work for for any any choice choice of of x, x, including including things things that that aren't aren't puppies. puppies.

A Better Translation All puppies are cute! x. (Puppy(x) Cute(x)) This This should should work work for for any any choice choice of of x, x, including including things things that that aren't aren't puppies. puppies.

A Better Translation All puppies are cute! x. (Puppy(x) Cute(x)) This This should should work work for for any any choice choice of of x, x, including including things things that that aren't aren't puppies. puppies.

A Better Translation All puppies are cute! x. (Puppy(x) Cute(x)) This This should should work work for for any any choice choice of of x, x, including including things things that that aren't aren't puppies. puppies.

A Better Translation All puppies are cute! x. (Puppy(x) Cute(x)) This This should should work work for for any any choice choice of of x, x, including including things things that that aren't aren't puppies. puppies.

A Better Translation All puppies are cute! x. (Puppy(x) Cute(x)) This This should should work work for for any any choice choice of of x, x, including including things things that that aren't aren't puppies. puppies.

A Better Translation All puppies are cute! x. (Puppy(x) Cute(x)) This This should should work work for for any any choice choice of of x, x, including including things things that that aren't aren't puppies. puppies.

A Better Translation All puppies are cute! x. (Puppy(x) Cute(x)) This This should should work work for for any any choice choice of of x, x, including including things things that that aren't aren't puppies. puppies.

A Better Translation All puppies are cute! x. (Puppy(x) Cute(x)) This This should should work work for for any any choice choice of of x, x, including including things things that that aren't aren't puppies. puppies.

A Better Translation All puppies are cute! x. (Puppy(x) Cute(x)) This This should should work work for for any any choice choice of of x, x, including including things things that that aren't aren't puppies. puppies.

A Better Translation All puppies are cute! x. (Puppy(x) Cute(x)) This This should should work work for for any any choice choice of of x, x, including including things things that that aren't aren't puppies. puppies.

A Better Translation All puppies are cute! x. (Puppy(x) Cute(x))

A Better Translation All puppies are cute! x. (Puppy(x) Cute(x)) AA statement statement of of the the form form x. x. something something isis true true only only when when something something isis true true for for every every choice choice of of x. x.

A Better Translation All puppies are cute! x. (Puppy(x) Cute(x)) AA statement statement of of the the form form x. x. something something isis true true only only when when something something isis true true for for every every choice choice of of x. x.

All P's are Q's translates as x. (P(x) Q(x))

Useful Intuition: Universally-quantified statements are true unless there's a counterexample. x. (P(x) Q(x)) If If xx isis aa counterexample, counterexample, itit must must have have property property PP but but not not have have property property Q. Q.

Using the predicates - Blobfish(b), which states that b is a blobfish, and - Cute(x), which states that x is cute, write a sentence in first-order logic that means some blobfish is cute.

Using the predicates - Blobfish(b), which states that b is a blobfish, and - Cute(x), which states that x is cute, write a sentence in first-order logic that means some blobfish is cute.

Using the predicates - Blobfish(b), which states that b is a blobfish, and - Cute(x), which states that x is cute, write a sentence in first-order logic that means some blobfish is cute.

An Incorrect Translation Some blobfish is cute. x. (Blobfish(x) Cute(x))

An Incorrect Translation Some blobfish is cute. x. (Blobfish(x) Cute(x))

An Incorrect Translation Some blobfish is cute. x. (Blobfish(x) Cute(x))

An Incorrect Translation Some blobfish is cute. x. (Blobfish(x) Cute(x))

An Incorrect Translation Some blobfish is cute. x. (Blobfish(x) Cute(x))

An Incorrect Translation Some blobfish is cute. x. (Blobfish(x) Cute(x))

An Incorrect Translation Some blobfish is cute. x. (Blobfish(x) Cute(x)) AA statement statement of of the the form form x. x. something something isis true true only only when when something something isis true true for for at at least least one one choice choice of of x. x.

An Incorrect Translation Some blobfish is cute. x. (Blobfish(x) Cute(x)) AA statement statement of of the the form form x. x. something something isis true true only only when when something something isis true true for for at at least least one one choice choice of of x. x.

An Incorrect Translation Some blobfish is cute. x. (Blobfish(x) Cute(x))

An Incorrect Translation Some blobfish is cute. x. (Blobfish(x) Cute(x)) This This first-order first-order statement statement isis true true even even though though the the English English statement statement isis false. false. Therefore, Therefore, itit can't can't be be aa correct correct translation. translation.

An Incorrect Translation Some blobfish is cute. x. (Blobfish(x) Cute(x)) The The issue issue here here isis that that implications implications are are true true whenever whenever the the antecedent antecedent isis false. false. This This statement statement accidentally accidentally isis true true because because of of what what happens happens when when xx isn't isn't aa blobfish. blobfish.

A Correct Translation Some blobfish is cute. x. (Blobfish(x) Cute(x))

A Correct Translation Some blobfish is cute. x. (Blobfish(x) Cute(x))

A Correct Translation Some blobfish is cute. x. (Blobfish(x) Cute(x))

A Correct Translation Some blobfish is cute. x. (Blobfish(x) Cute(x))

A Correct Translation Some blobfish is cute. x. (Blobfish(x) Cute(x))

A Correct Translation Some blobfish is cute. x. (Blobfish(x) Cute(x))

A Correct Translation Some blobfish is cute. x. (Blobfish(x) Cute(x))

A Correct Translation Some blobfish is cute. x. (Blobfish(x) Cute(x))

A Correct Translation Some blobfish is cute. x. (Blobfish(x) Cute(x))

A Correct Translation Some blobfish is cute. x. (Blobfish(x) Cute(x))

A Correct Translation Some blobfish is cute. x. (Blobfish(x) Cute(x))

A Correct Translation Some blobfish is cute. x. (Blobfish(x) Cute(x))

A Correct Translation Some blobfish is cute. x. (Blobfish(x) Cute(x))

A Correct Translation Some blobfish is cute. x. (Blobfish(x) Cute(x))

A Correct Translation Some blobfish is cute. x. (Blobfish(x) Cute(x))

A Correct Translation Some blobfish is cute. x. (Blobfish(x) Cute(x))

A Correct Translation Some blobfish is cute. x. (Blobfish(x) Cute(x))

A Correct Translation Some blobfish is cute. x. (Blobfish(x) Cute(x))

A Correct Translation Some blobfish is cute. x. (Blobfish(x) Cute(x))

A Correct Translation Some blobfish is cute. x. (Blobfish(x) Cute(x))

A Correct Translation Some blobfish is cute. x. (Blobfish(x) Cute(x))

A Correct Translation Some blobfish is cute. x. (Blobfish(x) Cute(x)) AA statement statement of of the the form form x. x. something something isis true true only only when when something something isis true true for for at at least least one one choice choice of of x. x.

A Correct Translation Some blobfish is cute. x. (Blobfish(x) Cute(x)) AA statement statement of of the the form form x. x. something something isis true true only only when when something something isis true true for for at at least least one one choice choice of of x. x.

Some P is a Q translates as x. (P(x) Q(x))

Useful Intuition: Existentially-quantified statements are false unless there's a positive example. x. (P(x) Q(x)) If If xx isis an an example, example, itit must must have have property property PP on on top top of of property property Q. Q.

Good Pairings The quantifier usually is paired with. x. (P(x) Q(x)) The quantifier usually is paired with. x. (P(x) Q(x)) In the case of, the connective prevents the statement from being false when speaking about some object you don't care about. In the case of, the connective prevents the statement from being true when speaking about some object you don't care about.

Next Time First-Order Translations Quantifier Orderings How do you select the order of quantifiers in first-order logic formulas? Negating Formulas How do we translate from English into first-order logic? How do you mechanically determine the negation of a firstorder formula? Expressing Uniqueness How do we say there s just one object of a certain type?