Mathematical Logic Part Three

Similar documents
Mathematical Logic Part Three

Mathematical Logic Part Three

Mathematical Logic Part Three

Mathematical Logic Part Two

Mathematical Logic Part One

Outline for Today. What is an Implication? Negations and their Applications. Proof by Contrapositive. Proof by Contradiction

Outline for Today. What is an Implication? Negations and their Applications. Proof by Contrapositive. Proof by Contradiction

CS103 Handout 09 Fall 2012 October 19, 2012 Problem Set 4

Mathematical Logic Part One

Math.3336: Discrete Mathematics. Nested Quantifiers

Guide to Negating Formulas

Announcements. Problem Set 1 out. Checkpoint due Monday, September 30. Remaining problems due Friday, October 4.

Announcements. CS311H: Discrete Mathematics. Introduction to First-Order Logic. A Motivating Example. Why First-Order Logic?

CS103 Handout 08 Spring 2012 April 20, 2012 Problem Set 3

Mathematical Logic Part Three

THE LOGIC OF QUANTIFIED STATEMENTS. Statements with Multiple Quantifiers. Statements with Multiple Quantifiers CHAPTER 3 SECTION 3.

Mathematical Logic Part One

CS103 Handout 47 Spring 2018 Practice CS103 Final Exam V

Mathematical Logic Part One

Finite Automata Part One

Recommended Reading. A Brief History of Infinity The Mystery of the Aleph Everything and More

The Pigeonhole Principle & Functions

Math 31 Lesson Plan. Day 2: Sets; Binary Operations. Elizabeth Gillaspy. September 23, 2011

Predicates, Quantifiers and Nested Quantifiers

Checkpoint Questions Due Monday, October 1 at 2:15 PM Remaining Questions Due Friday, October 5 at 2:15 PM

Propositional Logic Not Enough

Recap from Last Time

Mathematical Logic Part One

Recap from Last Time

Mathematical Logic Part One

Section Summary. Section 1.5 9/9/2014

THE LOGIC OF QUANTIFIED STATEMENTS. Predicates and Quantified Statements I. Predicates and Quantified Statements I CHAPTER 3 SECTION 3.

The Pigeonhole Principle & Functions

Section Summary. Predicate logic Quantifiers. Negating Quantifiers. Translating English to Logic. Universal Quantifier Existential Quantifier

Formal Logic: Quantifiers, Predicates, and Validity. CS 130 Discrete Structures

Introduction to Sets and Logic (MATH 1190)

NP-Completeness Part II

Section 2.1: Introduction to the Logic of Quantified Statements

CM10196 Topic 2: Sets, Predicates, Boolean algebras

Mathematical Logic Part One

Course Staff. Textbook

MITOCW ocw f99-lec09_300k

Recap from Last Time

Math 31 Lesson Plan. Day 5: Intro to Groups. Elizabeth Gillaspy. September 28, 2011

Discrete Mathematics and Its Applications

Chapter 1 Review of Equations and Inequalities

Review: Potential stumbling blocks

Nonregular Languages

Quantifiers Here is a (true) statement about real numbers: Every real number is either rational or irrational.

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

Outline for Today. Revisiting our first lecture with our new techniques! How do we know when two sets have the same size?

MAT2345 Discrete Math

ICS141: Discrete Mathematics for Computer Science I

CS103 Handout 22 Fall 2012 November 30, 2012 Problem Set 9

Predicate Calculus lecture 1

MATH 341, Section 001 FALL 2014 Introduction to the Language and Practice of Mathematics

Outline for Today. Modeling transformations between sets. Injections, surjections, and bijections.

CS Module 1. Ben Harsha Apr 12, 2017

Section Summary. Predicate logic Quantifiers. Negating Quantifiers. Translating English to Logic. Universal Quantifier Existential Quantifier

Binary Relations Part Two

Negations of Quantifiers

Predicate Logic. CSE 191, Class Note 02: Predicate Logic Computer Sci & Eng Dept SUNY Buffalo

Finite Automata Part One

A Little Deductive Logic

3/29/2017. Logic. Propositions and logical operations. Main concepts: propositions truth values propositional variables logical operations

6.041SC Probabilistic Systems Analysis and Applied Probability, Fall 2013 Transcript Tutorial:A Random Number of Coin Flips

Instructor (Brad Osgood)

MITOCW ocw f99-lec05_300k

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

3.1 Universal quantification and implication again. Claim 1: If an employee is male, then he makes less than 55,000.

Introduction to Logic and Axiomatic Set Theory

Mat 243 Exam 1 Review

Section Summary. Predicates Variables Quantifiers. Negating Quantifiers. Translating English to Logic Logic Programming (optional)

CS1021. Why logic? Logic about inference or argument. Start from assumptions or axioms. Make deductions according to rules of reasoning.

A Little Deductive Logic

Predicate Logic. Example. Statements in Predicate Logic. Some statements cannot be expressed in propositional logic, such as: Predicate Logic

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

Today s Lecture. ICS 6B Boolean Algebra & Logic. Predicates. Chapter 1: Section 1.3. Propositions. For Example. Socrates is Mortal

Functions, High-School Edition

NP-Completeness Part II

CS 730/730W/830: Intro AI

Chapter 2: The Logic of Quantified Statements

Seminaar Abstrakte Wiskunde Seminar in Abstract Mathematics Lecture notes in progress (27 March 2010)

COMP Intro to Logic for Computer Scientists. Lecture 11

Complexity Theory Part I

Chapter 2: The Logic of Quantified Statements. January 22, 2010

MATH 22 INFERENCE & QUANTIFICATION. Lecture F: 9/18/2003

Section 2.3: Statements Containing Multiple Quantifiers

MITOCW ocw f99-lec16_300k

Logic and Mathematics:

2/2/2018. CS 103 Discrete Structures. Chapter 1. Propositional Logic. Chapter 1.1. Propositional Logic

Dialog on Simple Derivatives

Philosophy 240 Symbolic Logic Russell Marcus Hamilton College Fall 2014

MITOCW watch?v=ed_xr1bzuqs

LIN1032 Formal Foundations for Linguistics

Adam Blank Spring 2017 CSE 311. Foundations of Computing I

Intermediate Logic Spring. Second-Order Logic

Modern Algebra Prof. Manindra Agrawal Department of Computer Science and Engineering Indian Institute of Technology, Kanpur

Mathematical Logic Part One

Chapter 2. Logical Notation. Bahar Aameri. Department of Computer Science University of Toronto. Jan 09, Mathematical Expression and Reasoning 1

Transcription:

Mathematical Logic Part Three

Recap from Last Time

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, and functions that map objects to one another, quantifiers that allow us to reason about multiple objects simultaneously.

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.

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.

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.

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. The quantifier usually is paired with. 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.

The Art of Translation

Using the predicates - Person(p), which states that p is a person, and - Loves(x, y), which states that x loves y, write a sentence in first-order logic that means everybody loves someone else.

Everybody loves someone else

Every person loves some other person

Every person p loves some other person

p. (Person(p) p loves some other person )

p. (Person(p) there is some other person that p loves )

p. (Person(p) there is a person other than p that p loves )

p. (Person(p) there is a person q, other than p, where p loves q )

p. (Person(p) there is a person q, other than p, where p loves q )

p. (Person(p) q. (Person(q), other than p, where p loves q ) )

p. (Person(p) q. (Person(q) p q p loves q ) )

p. (Person(p) q. (Person(q) p q Loves(p, q) ) )

Using the predicates - Person(p), which states that p is a person, and - Loves(x, y), which states that x loves y, write a sentence in first-order logic that means there is a person that everyone else loves.

There is a person that everyone else loves

There is a person p where everyone else loves p

p. (Person(p) everyone else loves p )

p. (Person(p) every other person q loves p )

p. (Person(p) every person q, other than p, loves p )

p. (Person(p) q. (Person(q) p q q loves p )

p. (Person(p) q. (Person(q) p q Loves(q, p) ) )

Combining Quantifiers Most interesting statements in first-order logic require a combination of quantifiers. Example: Everyone loves someone else.

Combining Quantifiers Most interesting statements in first-order logic require a combination of quantifiers. Example: Everyone loves someone else. p. (Person(p) q. (Person(q) p q Loves(p, q)))

Combining Quantifiers Most interesting statements in first-order logic require a combination of quantifiers. Example: Everyone loves someone else. p. (Person(p) q. (Person(q) p q Loves(p, q))) For every person,

Combining Quantifiers Most interesting statements in first-order logic require a combination of quantifiers. Example: Everyone loves someone else. p. (Person(p) q. (Person(q) p q Loves(p, q))) For every person, there is some person

Combining Quantifiers Most interesting statements in first-order logic require a combination of quantifiers. Example: Everyone loves someone else. p. (Person(p) q. (Person(q) p q Loves(p, q))) For every person, there is some person who isn't them

Combining Quantifiers Most interesting statements in first-order logic require a combination of quantifiers. Example: Everyone loves someone else. p. (Person(p) q. (Person(q) p q Loves(p, q))) For every person, there is some person who isn't them that they love.

Combining Quantifiers Most interesting statements in first-order logic require a combination of quantifiers. Example: There is someone everyone else loves.

Combining Quantifiers Most interesting statements in first-order logic require a combination of quantifiers. Example: There is someone everyone else loves. p. (Person(p) q. (Person(q) p q Loves(q, p)))

Combining Quantifiers Most interesting statements in first-order logic require a combination of quantifiers. Example: There is someone everyone else loves. p. (Person(p) q. (Person(q) p q Loves(q, p))) There is some person

Combining Quantifiers Most interesting statements in first-order logic require a combination of quantifiers. Example: There is someone everyone else loves. p. (Person(p) q. (Person(q) p q Loves(q, p))) There is some person who everyone

Combining Quantifiers Most interesting statements in first-order logic require a combination of quantifiers. Example: There is someone everyone else loves. p. (Person(p) q. (Person(q) p q Loves(q, p))) There is some person who everyone who isn't them

Combining Quantifiers Most interesting statements in first-order logic require a combination of quantifiers. Example: There is someone everyone else loves. p. (Person(p) q. (Person(q) p q Loves(q, p))) There is some person who everyone who isn't them loves.

For Comparison p. (Person(p) q. (Person(q) p q Loves(p, q))) For every person, there is some person who isn't them that they love. p. (Person(p) q. (Person(q) p q Loves(q, p))) There is some person who everyone who isn't them loves.

Everyone Loves Someone Else

Everyone Loves Someone Else No No one one here here isis universally universally loved. loved.

There is Someone Everyone Else Loves

There is Someone Everyone Else Loves This This person person does does not not love love anyone anyone else. else.

Everyone Loves Someone Else and There is Someone Everyone Else Loves

p. (Person(p) q. (Person(q) p q Loves(p, q))) For every person, there is some person who isn't them that they love. p. (Person(p) q. (Person(q) p q Loves(q, p))) There is some person who everyone who isn't them loves.

Quantifier Ordering The statement x. y. P(x, y) means for any choice x, there's some y where P(x, y) is true. The choice of y can be different every time and can depend on x.

Quantifier Ordering The statement x. y. P(x, y) means there is some x where for any choice of y, we get that P(x, y) is true. Since the inner part has to work for any choice of y, this places a lot of constraints on what x can be.

Order matters when mixing existential and universal quantifiers!

Time-Out for Announcements!

Problem Set Two Problem Set One was due at 3:00PM today. You can submit late up until Monday at 3:00PM. Problem Set Two goes out now. Checkpoint due Monday. Remaining problems due next Friday. Play around with propositional logic, firstorder logic, and their applications! As always, feel free to ask us questions!

Global Engineering Programs Fair Stanford's Global Engineer Programs office (GEP) is holding a Global Engineering Programs Fair. Representatives will be there from Bing Overseas Studies, the Global Studies Department, and the Overseas Resource Center. October 13 from 4PM 6PM in Huang Amphitheater. Questions? Email ming@stanford.edu.

WiCS Industry Mentorship Stanford WiCS (Women in Computer Science) runs an industry mentorship program pairing Stanford students with industry professionals. Interested? Apply online by October 15: http://goo.gl/1vc3ct

RSVP Here

Picking Up Solution Sets

This is the CS103 drawer This is the CS103A drawer

Your Questions

What was your first career fair and internship like? Oh man, I made myself look like an idiot on many Oh man, I made myself look like an idiot on many occasions at that career fair. No one told me how to occasions at that career fair. No one told me how to prepare or how to write a good resume, which is one of prepare or how to write a good resume, which is one of the reasons I'm happy we offer CS9. the reasons I'm happy we offer CS9. My first internship was interesting. I was working at My first internship was interesting. I was working at Mozilla, so I could show everyone my code. I don't think Mozilla, so I could show everyone my code. I don't think it was the best fit for me, but I only figured that out it was the best fit for me, but I only figured that out afterwards. Still, it was a fun experience! afterwards. Still, it was a fun experience!

Why do some PhDs do research in industry over academia? Replace some with most. Replace some with most. People tend to go where the interesting problems are. Many People tend to go where the interesting problems are. Many companies work on problems that are at a large scale or that have a companies work on problems that are at a large scale or that have a huge impact. Companies also often pay much better and don't have huge impact. Companies also often pay much better and don't have a demanding tenure process. a demanding tenure process. That said, academia has its advantages. You get to mentor new That said, academia has its advantages. You get to mentor new students, work on fundamental research or highly theoretical topics, students, work on fundamental research or highly theoretical topics, and (post-tenure) have incredible job security. and (post-tenure) have incredible job security.

How did you and your girlfriend meet? Thanks for asking, but this Thanks for asking, but this one's a bit personal and one's a bit personal and I'd prefer not to share. I'd prefer not to share.

What private Silicon Valley tech companies do you find most promising or fascinating? Tesla and SpaceX are doing some amazing work, though I've Tesla and SpaceX are doing some amazing work, though I've heard that the work is super demanding. Some of the ML heard that the work is super demanding. Some of the ML work that Google is doing is truly amazing. Khan Academy has work that Google is doing is truly amazing. Khan Academy has huge impact and is a great place to work (or intern!). huge impact and is a great place to work (or intern!). Palantir makes some really neat technology as well, though Palantir makes some really neat technology as well, though make sure you're okay with what they do with it. make sure you're okay with what they do with it.

Back to CS103!

Set Translations

Using the predicates - Set(S), which states that S is a set, and - x y, which states that x is an element of y, write a sentence in first-order logic that means the empty set exists.

Using the predicates - Set(S), which states that S is a set, and - x y, which states that x is an element of y, write a sentence in first-order logic that means the empty set exists. First-order First-order logic logic doesn't doesn't have have set set operators operators or or symbols symbols built built in. in. If If we we only only have have the the predicates predicates given given above, above, how how might might we we describe describe this? this?

The empty set exists.( ( (

There is some set S that is empty.( ( (

S. (Set(S) S is empty. )

S. (Set(S) there are no elements in S )

S. (Set(S) there is an element in S )

S. (Set(S) there is an element x in S )

S. (Set(S) x. x S )

S. (Set(S) x. x S)

S. (Set(S) x. x S) S. (Set(S) there are no elements in S( )

S. (Set(S) x. x S) S. (Set(S) every object does not belong to S( )

S. (Set(S) x. x S) S. (Set(S) every object x does not belong to S( )

S. (Set(S) x. x S) S. (Set(S) x. (x S) )

S. (Set(S) x. x S) S. (Set(S) x. (x S))

S. (Set(S) x. x S) S. (Set(S) x. (x S)) Both Both of of these these translations translations are are correct. correct. Just Just like like inin propositional propositional logic, logic, there there are are many many different different equivalent equivalent ways ways of of expressing expressing the the same same statement statement inin firstfirstorder order logic. logic.

Using the predicates - Set(S), which states that S is a set, and - x y, which states that x is an element of y, write a sentence in first-order logic that means two sets are equal if and only if they contain the same elements.

Using the predicates - Set(S), which states that S is a set, and - x y, which states that x is an element of y, write a sentence in first-order logic that means two sets are equal if and only if they contain the same elements. This This isis called called the the axiom axiom of of extensionality, extensionality, by by the the way. way.

Two sets are equal if and only if they have the same elements. ) ) ) ) )

Any two sets are equal if and only if they have the same elements.) ) ) ) )

Any two sets S and T are equal if and only if they have the same elements.) ) ) ) )

S. (Set(S) T. (Set(T) ) S and T are equal if and only if they have the same ) elements.) ) )

S. (Set(S) T. (Set(T) (S = T if and only if they have the same elements.)) ) )

S. (Set(S) T. (Set(T) (S = T they have the same elements.)) ) )

S. (Set(S) T. (Set(T) (S = T S and T have the same elements.)) ) )

S. (Set(S) T. (Set(T) (S = T every element of S is an element of T and vice-versa) ) )

S. (Set(S) T. (Set(T) (S = T x is an element of T if and only if x is an element of S) ) )

S. (Set(S) T. (Set(T) (S = T x. (x S x T)) ) )

S. (Set(S) T. (Set(T) (S = T x. (x S x T)) ) )

S. (Set(S) T. (Set(T) (S = T x. (x S x T)) ) ) You You sometimes sometimes see see the the universal universal quantifier quantifier pair pair with with the the connective. connective. This This isis especially especially common common when when talking talking about about sets sets because because two two sets sets are are equal equal when when they they have have precisely precisely the the same same elements. elements.

Mechanics: Negating Statements

Negating Quantifiers We spent much of Monday's lecture discussing how to negate propositional constructs. How do we negate statements with quantifiers in them?

An Extremely Important Table When is this true? When is this false? x. P(x) For any choice of x, P(x) For some choice of x, P(x) x. P(x) For some choice of x, P(x) For any choice of x, P(x) For any choice of x, P(x) For some choice of x, P(x) For some choice of x, P(x) For any choice of x, P(x) x. P(x) x. P(x)

An Extremely Important Table When is this true? When is this false? x. P(x) For any choice of x, P(x) For some choice of x, P(x) x. P(x) For some choice of x, P(x) For any choice of x, P(x) For any choice of x, P(x) For some choice of x, P(x) For some choice of x, P(x) For any choice of x, P(x) x. P(x) x. P(x)

An Extremely Important Table When is this true? When is this false? x. P(x) For any choice of x, P(x) x. P(x) x. P(x) For some choice of x, P(x) For any choice of x, P(x) For any choice of x, P(x) For some choice of x, P(x) For some choice of x, P(x) For any choice of x, P(x) x. P(x) x. P(x)

An Extremely Important Table When is this true? When is this false? x. P(x) For any choice of x, P(x) x. P(x) x. P(x) For some choice of x, P(x) For any choice of x, P(x) For any choice of x, P(x) For some choice of x, P(x) For some choice of x, P(x) For any choice of x, P(x) x. P(x) x. P(x)

An Extremely Important Table x. P(x) When is this true? When is this false? For any choice of x, P(x) x. P(x) x. P(x) For some choice of x, For any choice of x, P(x) P(x) x. P(x) For any choice of x, For some choice of x, P(x) P(x) x. P(x) For some choice of x, P(x) For any choice of x, P(x)

An Extremely Important Table When is this true? When is this false? x. P(x) For any choice of x, P(x) x. P(x) x. P(x) For some choice of x, P(x) x. P(x) x. P(x) x. P(x) For any choice of x, For some choice of x, P(x) P(x) For some choice of x, P(x) For any choice of x, P(x)

An Extremely Important Table When is this true? When is this false? x. P(x) For any choice of x, P(x) x. P(x) x. P(x) For some choice of x, P(x) x. P(x) For any choice of x, P(x) For some choice of x, P(x) For some choice of x, P(x) For any choice of x, P(x) x. P(x) x. P(x)

An Extremely Important Table When is this true? When is this false? x. P(x) For any choice of x, P(x) x. P(x) x. P(x) For some choice of x, P(x) x. P(x) For any choice of x, P(x) For some choice of x, P(x) For some choice of x, P(x) For any choice of x, P(x) x. P(x) x. P(x)

An Extremely Important Table When is this true? When is this false? x. P(x) For any choice of x, P(x) x. P(x) x. P(x) For some choice of x, P(x) x. P(x) For any choice of x, P(x) x. P(x) For some choice of x, P(x) For any choice of x, P(x) x. P(x) x. P(x)

An Extremely Important Table When is this true? When is this false? x. P(x) For any choice of x, P(x) x. P(x) x. P(x) For some choice of x, P(x) x. P(x) For any choice of x, P(x) x. P(x) For some choice of x, P(x) For any choice of x, P(x) x. P(x) x. P(x)

An Extremely Important Table When is this true? When is this false? x. P(x) For any choice of x, P(x) x. P(x) x. P(x) For some choice of x, P(x) x. P(x) For any choice of x, P(x) x. P(x) x. P(x) x. P(x) For some choice of x, For any choice of x, P(x) P(x)

An Extremely Important Table When is this true? When is this false? x. P(x) For any choice of x, P(x) x. P(x) x. P(x) For some choice of x, P(x) x. P(x) For any choice of x, P(x) x. P(x) For some choice of x, P(x) x. P(x) x. P(x) x. P(x)

An Extremely Important Table When is this true? When is this false? x. P(x) For any choice of x, P(x) x. P(x) x. P(x) For some choice of x, P(x) x. P(x) For any choice of x, P(x) x. P(x) For some choice of x, P(x) x. P(x) x. P(x) x. P(x)

Negating First-Order Statements Use the equivalences x. φ x. φ x. φ x. φ to negate quantifiers. Mechanically: Push the negation across the quantifier. Change the quantifier from to or vice-versa. Use techniques from propositional logic to negate connectives.

Taking a Negation x. y. Loves(x, y) ( Everyone loves someone. ) x. y. Loves(x, y) x. y. Loves(x, y) x. y. Loves(x, y) ( There's someone who doesn't love anyone. )

Two Useful Equivalences The following equivalences are useful when negating statements in first-order logic: (p q) p q (p q) p q These identities are useful when negating statements involving quantifiers. is used in existentially-quantified statements. is used in universally-quantified statements. When pushing negations across quantifiers, we strongly recommend using the above equivalences to keep with and with.

Negating Quantifiers What is the negation of the following statement, which says there is a cute puppy? x. (Puppy(x) Cute(x)) We can obtain it as follows: x. (Puppy(x) Cute(x)) x. (Puppy(x) Cute(x)) x. (Puppy(x) Cute(x)) This says every puppy is not cute. Do you see why this is the negation of the original statement from both an intuitive and formal perspective?

S. (Set(S) x. (x S)) ( There is a set that doesn't contain anything ) S. (Set(S) x. (x S)) S. (Set(S) x. (x S)) S. (Set(S) x. (x S)) S. (Set(S) x. (x S)) S. (Set(S) x. x S) ( Every set contains at least one element )

These two statements are not negations of one another. Can you explain why? S. (Set(S) x. (x S)) ( There is a set that doesn't contain anything ) S. (Set(S) x. (x S)) ( Everything is a set that contains something ) Remember: Remember: usually usually goes goes with with,, not not

Restricted Quantifiers

Quantifying Over Sets The notation x S. P(x) means for any element x of set S, P(x) holds. This is not technically a part of first-order logic; it is a shorthand for x. (x S P(x)) How might we encode this concept? x S. P(x) Answer: x. (x S P(x)). Note Note the the use use of of instead instead of of here. here.

Quantifying Over Sets The syntax x S. φ x S. φ is allowed for quantifying over sets. In CS103, feel free to use these restricted quantifiers, but please do not use variants of this syntax. For example, don't do things like this: x with P(x). Q(x) y such that P(y) Q(y). R(y).

Expressing Uniqueness

Using the predicate - Level(l), which states that l is a level, write a sentence in first-order logic that means there is only one level. AAfun fundiversion: diversion: http://www.onemorelevel.com/game/there_is_only_one_level http://www.onemorelevel.com/game/there_is_only_one_level

There is only one level.

Something is a level, and nothing else is.

Some thing l is a level, and nothing else is.

Some thing l is a level, and nothing besides l is a level

l. (Level(l) nothing besides l is a level. )

l. (Level(l) anything that isn't l isn't a level )

l. (Level(l) any thing x that isn't l isn't a level )

l. (Level(l) x. (x l x isn't a level) )

l. (Level(l) x. (x l Level(x)) )

Expressing Uniqueness To express the idea that there is exactly one object with some property, we write that there exists at least one object with that property, and that there are no other objects with that property. You sometimes see a special uniqueness quantifier used to express this:!x. φ For the purposes of CS103, please do not use this quantifier. We want to give you more practice using the regular and quantifiers.

Next Time Binary Relations First-Order Definitions Equivalence Relations Strict Orders