Automaten und Formale Sprachen alias Theoretische Informatik. Sommersemester 2012

Size: px
Start display at page:

Download "Automaten und Formale Sprachen alias Theoretische Informatik. Sommersemester 2012"

Transcription

1 Automaten und Formale Sprachen alias Theoretische Informatik Sommersemester 2012 Dr. Sander Bruggink Übungsleitung: Jan Stückrath Sander Bruggink Automaten und Formale Sprachen 1

2 Who are we? Teacher: Dr. Sander Bruggink Roomm LF Teaching assistent: Jan Stückrath Room LF Tutors: Dennis Nolte / Martin Kutscher Dennis Nolte: JokerX@gmx.de Martin Kutscher: martin.kutscher@uni-due.de Sander Bruggink Automaten und Formale Sprachen 2

3 Introduction Who are you? BAI ISE Others Website Moodle-Site Sander Bruggink Automaten und Formale Sprachen 3

4 Appointments Lecture: Tuesday, 12pm 2pm, room LB 131 Exercise groups: Group ISE: Tuesday, 8am 10am, room LC 137 (English) Jan Stückrath Group BAI-1: Wednesday, 12pm 2pm, room LE 120 (German) Martin Kutscher Group BAI-2: Thursday, 2pm 4pm, room LF 125 (German) Dennis Nolte Group BAI-3: Thursday, 4pm 6pm, room LF 125 Dennis Nolte Group BAI-4: Friday, 10am 12pm, raum LE 120 Dennis Nolte Sander Bruggink Automaten und Formale Sprachen 4

5 Advice about the exercises Please try to split evenly among the exercise groups. Visit the exercise groups and do the homework. The material of this lecture can only be mastered by frequent practice. Memorizing doesn t help much. The exercise groups start in the third week of the semester. Thus, the first exercise group take place from 24 to 27 April. Sander Bruggink Automaten und Formale Sprachen 5

6 Advice about the exercises The exercise sheet is put online every week on Tuesday at the latest. The written exercises must be handed in on Monday, 4pm of the following week. In this week the exercise sheet is discussed in the exercise groups. Handing in: in the letter box adjacent to room LF 259. online through Moodle. Plase write clearly your name, student number and group number on your exercise. Also write down the name of the lecture. Sander Bruggink Automaten und Formale Sprachen 6

7 Exam BAI: Oral exam in the module Theoretische Informatik ( Automaten und formale Sprachen together with Berechenbarkeit und Komplexität ). Students, who have started in the summer semester, can take an exam in both lectures separately. ISE: Written exam after the semester. Others: Written exam after the semester. Sander Bruggink Automaten und Formale Sprachen 7

8 Bonus points Bonus points: During the semester the will be 12 (or 11) exercise sheets of 20 points each. If you receive 50% of the points, you will recieve one grade level higher (for example 2,0 instead of 2,3) for your exam. For the oral exam of the module Theoretische Informatik you must obtain the bonus in both Automaten und Formale Sprachen and in Berechenbarkeit und Komplexität. Sander Bruggink Automaten und Formale Sprachen 8

9 Literature We use the following book: Uwe Schöning: Theoretische Informatik kurzgefaßt. Spektrum, (5. Auflage) Other relevant literature: Neuauflage eines alten Klassikers: Hopcroft, Motwani, Ullman: Introduction to Automata Theory, Languages, and Computation. Addison-Wesley, Sander Bruggink Automaten und Formale Sprachen 9

10 Literatur Organisatorisches und Einführung Sander Bruggink Automaten und Formale Sprachen 10

11 Adventure-Problem Sander Bruggink Automaten und Formale Sprachen 11

12 Adventure-Problem Adventure Problem (Level 1) Rules of the Adventure Problem: The Treasure Rule You must find at least two treasures. The Door Rule You can only go through a door, when you found a key before. (The key can be used arbitrarily many times.) Sander Bruggink Automaten und Formale Sprachen 12

13 Adventure-Problem Adventure Problem (Level 1) The Dragon Rule Immediately after the encounter with a dragon, you must jump into a river, because the dragon will otherwise ignite you. This is not the case anymore, if you have previously found a sword, because then you can kill the dragon. Remark: Dragons, treasures and keys are refilled after you left the according field. We are look for a path from a start to an end state, which satisfies all of the above conditions. Sander Bruggink Automaten und Formale Sprachen 13

14 Adventure-Problem Adventure Problem (Level 1) Question (Level 1) Is there a solution in the example? Adventure Yes! The shortest solution is: 1, 2, 3, 1, 2, 4, 10, 4, 5, 6, 4, 5, 6, 4, 11, 12 (length 16). Is there a general solving procedure which given an adventure in the form of a graph can always determine whether there is a solution? Yes! We will see this procedure in the lecture. In order to be able to implement this procedure, we need also formal description of the rules (door rule, dragon rule, treasure rule). Sander Bruggink Automaten und Formale Sprachen 14

15 Adventure Problem (Level 2) Adventure-Problem New Door Rule The keys are magical and disappear immediately after being used to open a door. As soon as you go through a door, the door is locked again. However, you can carry more than one key. Sander Bruggink Automaten und Formale Sprachen 15

16 Adventure-Problem Adventure Problem (Level 2) Questions (Level 2) Is there a solution in the example? Adventure Yes! The shortest solution is: 1, 2, 3, 1, 2, 4, 10, 4, 7, 8, 9, 4, 7, 8, 9, 4, 11, 12. (length 18) Is there a general solving procedure? Yes! We will see this procedure in the lecture. Why is the new problem harder? We have to count the keys. Sander Bruggink Automaten und Formale Sprachen 16

17 Adventure-Problem Adventure Problem (Expert Level) New Dragon Rule Swords become unusable by the dragon s blood, as soon as one has killed a dragon. However, dragons are replaced after being killed. Key Regel A magic gate can only be passed, when you don t own a key. Sword Rule A river can only be passed, when you don t have a sword (otherwise, you ll drown). Sander Bruggink Automaten und Formale Sprachen 17

18 Adventure-Problem Adventure Problem (Expert Level) Questions (Expert Level) Is there a solution in the example? Adventure Yes! The shortest solution is: Ja! Die kürzeste Lösung ist 1, 2, 3, 1, 2, 4, 10, 4, 7, 8, 9, 4, 10, 4, 5, 6, 4, 11, 12. (Länge 19) Is there a general solving procedure? No! It is a so-called undecidable problem. This is not discussed in this lecture, but in Berechenbarkeit und Komplexität. Sander Bruggink Automaten und Formale Sprachen 18

19 Formal Languages Adventure Problem and Formal Languages (Formal) Languages Language = Set of words Languages contain in general infinitely may words. Thus: We need finite descriptions of infinite languages. Sander Bruggink Automaten und Formale Sprachen 19

20 Formal Languages Adventure Problem und Formale Languages Questions Typical questions here are: Is a language L empty or does it contain (at least) one word? L =? Is a word w in the language? w L? Are two languages included in one another? L 1 L 2? Depending on the language (or languages) these question are either decidable (there is a general procedure to solve the problem) or undecidable Sander Bruggink Automaten und Formale Sprachen 20

21 Formal Languages Adventure Problem and Formal Languages The single levels of the adventure belong to the following language classes: Level 1 regular languages Level 2 context free languages Expert level Chomsky-0 languages (semi-decidable languages) These are discussed in Berechenbarkeit & Komplexität. Sander Bruggink Automaten und Formale Sprachen 21

22 For theoretical computer science Contents of the Lecture How can infinite structures be represented by finite descriptions (automata, grammars)? There are numerous applications for example in the following areas: searching in texts (regular expressions) syntax of (programming) languages and compiler construction modelling system behaviour verification of systems Sander Bruggink Automaten und Formale Sprachen 22

23 Contents of the Lecture Contents of the lecture Automata and formal languages Mathematical foundations and formal proofs Languages, grammars and automata Chomsky Hierarchy (different language classes) Regular languages and context free languages How can we show that a language is not of a certain class (pumping lemma) Decision procedures Closure properties (is the intersection of two regular languages also regular?) Sander Bruggink Automaten und Formale Sprachen 23

24 Sets Organisatorisches und Einführung Mathematical Foundations and Formal Proofs Set A set M of elements is denoted as enumerations M = {0, 2, 4, 6, 8,... } or a a set of elements with a certain property General format: M = {n n N and n even} M = {x P(x)} (M is the set of all elements x, which satisfy property P.) Sander Bruggink Automaten und Formale Sprachen 24

25 Mathematical Foundations and Formal Proofs Sets Remarks: The elements of a set a unordered, that is, their order is not important. For example: {1, 2, 3} = {1, 3, 2} = {2, 1, 3} = {2, 3, 1} = {3, 1, 2} = {3, 2, 1} An element cannot occur in a set more than once. It is either in the set, or not. For example: {1, 2, 3} {1, 2, 3, 4} = {1, 2, 3, 4, 4} Sander Bruggink Automaten und Formale Sprachen 25

26 Mathematical Foundations and Formal Proofs Stes Element of a set We write a M, when an element a is contained in the set M. Number of elements of a set For a set M the number of elements of M is denoted by M. Subset We write A B when every element of A is also an element of B. A is then called a subset of B. The relation is also called inclusion. Sander Bruggink Automaten und Formale Sprachen 26

27 Mathematical Foundations and Formal Proofs Sets Example: 2 {1, 2, 3}? 2 {1, 2, 3}? {1, 2} {1, 2, 3}? {1, 2} {1, 2, 3}? Sander Bruggink Automaten und Formale Sprachen 27

28 Venn-Diagrams Organisatorisches und Einführung Mathematical Foundations and Formal Proofs Venn-Diagrams are graphical representation of sets and the relationships between them. A B B A Sander Bruggink Automaten und Formale Sprachen 28

29 Mathematical Foundations and Formal Proofs Set operations Union: A B = {e e A oder e B} Intersection: A B = {e e A und e B} Difference: A \ B = {e e A und e / B} A B A B A \ B A B A B A B Sander Bruggink Automaten und Formale Sprachen 29

30 Mathematical Foundations and Formal Proofs Power set Power set Let M be a set. The set P(M) is the set of all subsets of M. P(M) = {A A M} We have: P(M) = 2 M (for a finite set M). Sander Bruggink Automaten und Formale Sprachen 30

31 Mathematical Foundations and Formal Proofs Tupel Tupel Besides sets we also use tuples, which are written with (round) parenthesis: (a 1,..., a n ) In a tuple the elements are ordered. For example: (1, 2, 3) (1, 3, 2) An element can occur multiple times in a tuple. Tuples of different size are always unequal. For example (1, 2, 3, 4) (1, 2, 3, 4, 4) A tuple (a 1,..., a n ) consisting of n elements is called n-tuple. A 2-tupel is also called a pair. Sander Bruggink Automaten und Formale Sprachen 31

32 Mathematical Foundations and Formal Proofs Cross product Cross product (or cartesian product) Let A, B be two sets. The set A B is the set of all pairs (a, b), where a is an element of A and b an element of B. A B = {(a, b) a A, b B} We have: A B = A B (for finite sets A, B). Sander Bruggink Automaten und Formale Sprachen 32

33 Mathematical Foundations and Formal Proofs Relations Binary relation Let A, B be two sets. A binary relation between A and B is a set of pairs R A B. Relation Let A 1,..., A n be sets. An (n-ary) relation is a set of tuples R A 1 A n. Sander Bruggink Automaten und Formale Sprachen 33

34 Mathematical Foundations and Formal Proofs Properties of Relations Let R A A be a relation from A to A. R is called reflexive, when for all x A it holds, that x R x. R is called symmetric, when for all x, y A it holds, that when x R y, then y R x. R is called antisymmetric, when for all x, y A it holds, that when x R y and y R x, then x = y. R is called transitive, when for all x, y, z A it holds, that when x R y and y R z, then x R z. Sander Bruggink Automaten und Formale Sprachen 34

35 Properties of Relations (Continued) Mathematical Foundations and Formal Proofs Reflexive: a Symmetric: a b Antisymmetric: a b wobei a b Transitive: a b c Sander Bruggink Automaten und Formale Sprachen 35

36 Speical Relations Organisatorisches und Einführung Mathematical Foundations and Formal Proofs A quasi-order (or pre-order) is a reflexive, transitive relation. A order is a reflexive, transitive und antisymmetric relation. An equivalence relation is a reflexive, transitive and symmetric relation. Quasi-order: order: equivalence relation: a c a c a c b d b d b d Sander Bruggink Automaten und Formale Sprachen 36

37 Mathematical Foundations and Formal Proofs functions Function f : A B a f (a) The function f maps an element a A to an element f (a) B. Here, A is the domain and B the codomain. Formally: a function f : A B is a total and unambiguous relation between A and B. Sander Bruggink Automaten und Formale Sprachen 37

38 Mathematical Foundations and Formal Proofs Mathematical Statements In mathematics, statement are either true or false. Statements can be composed from smaller statements: P and Q When P, then Q For all P, Q P doesn t hold There are: basic statements of mathematics (axioms) statements which are already proved from the axioms (theorems) statements which are assumed to be true (hypotheses, premises, assumptions) assertions that we want to prove or refute. Sander Bruggink Automaten und Formale Sprachen 38

39 Formal Proofs Organisatorisches und Einführung Mathematical Foundations and Formal Proofs Example of a theorem For all n > 0 it holds, that n = n (n + 1). 2 Premise: n is a number greater than 0. Conclusion: n = n (n + 1). 2 If the premises are true, then the conclusion is also true. Sander Bruggink Automaten und Formale Sprachen 39

40 Mathematical Foundations and Formal Proofs Implication Implication ( if, then ) Wenn P, dann Q (P Q) ist wahr, wenn Q aus P folgt. Using: If P is known, and P Q is known, then Q is known. (Modus Ponens). Proving: To prove P Q, assume P, and show under this assumption, that Q is true. Refuting: To refute P Q, show that P is true, but Q isn t. Sander Bruggink Automaten und Formale Sprachen 40

41 Mathematical Foundations and Formal Proofs Konjunktion Conjunction ( and ) P and Q (P Q) is true, when P and Q are both true. Using: When P Q ist known, then P and Q are also known separately (and can be used as premises). Proving: To prove P Q, we have to prove P and prove Q. Refuting: To refute P Q, we have to refute P or refute Q. Sander Bruggink Automaten und Formale Sprachen 41

42 Mathematical Foundations and Formal Proofs Disjunction Disjunction ( or ) P or Q (P Q) is true, when P is true or Q is true. Refuting: To refute P Q, one must refute P or refute Q. Using: To prove R from P Q: Assume P, and show under that assumption, that R is true. Assume Q, and show under that assumption, that R is true. Since R follows from both P and Q, and P or Q holds, R must also hold. Prove: To prove P Q, you have to prove P or you have to prove Q. (In most cases, this doesn t work, however.) Sander Bruggink Automaten und Formale Sprachen 42

43 Mathematical Foundations and Formal Proofs Negation Negation ( not ) Not P ( P) is true, when P is not true, and false, when P is true. Using: Negations can be used to prove contradictions. Proving: You prove P by refuting P. (In many cases you need a proof by contradiction. Refuting: You refute P by proving P. Sander Bruggink Automaten und Formale Sprachen 43

44 Mathematical Foundations and Formal Proofs Universal quantifier Universal quantifier ( for all ) For all x from P it holds that Q ( x P : Q) is true, when Q holds for all objects x from P. Using: When x P : Q is known, and you have an object a from P hat, you know that Q holds for a. Proving: Assume, that x is an element of P and show under this assumption that Q holds for x. You cannot assume any other things about x! Wiederlegen: Suche einen Gegenbeispiel, das heißt ein Objekt aus P, für das Q nicht gilt. Sander Bruggink Automaten und Formale Sprachen 44

45 Mathematical Foundations and Formal Proofs Existential quantifier Existential quantifier ( there is a ) There is a x from P, such that Q ( x P : Q) is true, when an object x P exists, such that Q holds for x. Using: When x P : Q is known, you may introduce an object from P (with an arbitrary name) for which Q holds. You cannot assume any other things about Q. Proving: Suche ein Beispiel: ein Objekt x P für das Q gilt. Refuting: Nehme an, dass x P, und beweise, dass Q nicht für x gilt. Sonst darf man nichts über x annehmen. Sander Bruggink Automaten und Formale Sprachen 45

46 Example Organisatorisches und Einführung Mathematical Foundations and Formal Proofs Prove the following theorem: Theorem Let A be a set, and A A a quasi-order on A. Define the relation as follows: x y whenever x y and y x. Then is an equivalence relation. Sander Bruggink Automaten und Formale Sprachen 46

Automaten und Formale Sprachen Automata and Formal Languages

Automaten und Formale Sprachen Automata and Formal Languages WS 2014/15 Automaten und Formale Sprachen Automata and Formal Languages Ernst W. Mayr Fakultät für Informatik TU München http://www14.in.tum.de/lehre/2014ws/afs/ Wintersemester 2014/15 AFS Chapter 0 Organizational

More information

CA320 - Computability & Complexity

CA320 - Computability & Complexity CA320 - Computability & Complexity David Sinclair Overview In this module we are going to answer 2 important questions: Can all problems be solved by a computer? What problems be efficiently solved by

More information

Preparing for the CS 173 (A) Fall 2018 Midterm 1

Preparing for the CS 173 (A) Fall 2018 Midterm 1 Preparing for the CS 173 (A) Fall 2018 Midterm 1 1 Basic information Midterm 1 is scheduled from 7:15-8:30 PM. We recommend you arrive early so that you can start exactly at 7:15. Exams will be collected

More information

The Theory of Finite-State Adventures

The Theory of Finite-State Adventures The Theory of Finite-State Adventures Wilfried Brauer 1, Markus Holzer 1, Barbara König 1, and Stefan Schwoon 2 1 Institut für Informatik, Technische Universität München, Germany 2 Institutsverbund Informatik,

More information

Introduction to the Theory of Computation. Automata 1VO + 1PS. Lecturer: Dr. Ana Sokolova.

Introduction to the Theory of Computation. Automata 1VO + 1PS. Lecturer: Dr. Ana Sokolova. Introduction to the Theory of Computation Automata 1VO + 1PS Lecturer: Dr. Ana Sokolova http://cs.uni-salzburg.at/~anas/ Setup and Dates Lectures Tuesday 10:45 pm - 12:15 pm Instructions Tuesday 12:30

More information

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska LECTURE 1 Course Web Page www3.cs.stonybrook.edu/ cse303 The webpage contains: lectures notes slides; very detailed solutions to

More information

Introduction to the Theory of Computation. Automata 1VO + 1PS. Lecturer: Dr. Ana Sokolova.

Introduction to the Theory of Computation. Automata 1VO + 1PS. Lecturer: Dr. Ana Sokolova. Introduction to the Theory of Computation Automata 1VO + 1PS Lecturer: Dr. Ana Sokolova http://cs.uni-salzburg.at/~anas/ Setup and Dates Lectures and Instructions 23.10. 3.11. 17.11. 24.11. 1.12. 11.12.

More information

Review 3. Andreas Klappenecker

Review 3. Andreas Klappenecker Review 3 Andreas Klappenecker Final Exam Friday, May 4, 2012, starting at 12:30pm, usual classroom Topics Topic Reading Algorithms and their Complexity Chapter 3 Logic and Proofs Chapter 1 Logic and Proofs

More information

3515ICT: Theory of Computation. Regular languages

3515ICT: Theory of Computation. Regular languages 3515ICT: Theory of Computation Regular languages Notation and concepts concerning alphabets, strings and languages, and identification of languages with problems (H, 1.5). Regular expressions (H, 3.1,

More information

n Empty Set:, or { }, subset of all sets n Cardinality: V = {a, e, i, o, u}, so V = 5 n Subset: A B, all elements in A are in B

n Empty Set:, or { }, subset of all sets n Cardinality: V = {a, e, i, o, u}, so V = 5 n Subset: A B, all elements in A are in B Discrete Math Review Discrete Math Review (Rosen, Chapter 1.1 1.7, 5.5) TOPICS Sets and Functions Propositional and Predicate Logic Logical Operators and Truth Tables Logical Equivalences and Inference

More information

CSCE 222 Discrete Structures for Computing. Review for the Final. Hyunyoung Lee

CSCE 222 Discrete Structures for Computing. Review for the Final. Hyunyoung Lee CSCE 222 Discrete Structures for Computing Review for the Final! Hyunyoung Lee! 1 Final Exam Section 501 (regular class time 8:00am) Friday, May 8, starting at 1:00pm in our classroom!! Section 502 (regular

More information

Mathematical Preliminaries. Sipser pages 1-28

Mathematical Preliminaries. Sipser pages 1-28 Mathematical Preliminaries Sipser pages 1-28 Mathematical Preliminaries This course is about the fundamental capabilities and limitations of computers. It has 3 parts 1. Automata Models of computation

More information

Chapter 0 Introduction. Fourth Academic Year/ Elective Course Electrical Engineering Department College of Engineering University of Salahaddin

Chapter 0 Introduction. Fourth Academic Year/ Elective Course Electrical Engineering Department College of Engineering University of Salahaddin Chapter 0 Introduction Fourth Academic Year/ Elective Course Electrical Engineering Department College of Engineering University of Salahaddin October 2014 Automata Theory 2 of 22 Automata theory deals

More information

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes

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

More information

Lecture Notes 1 Basic Concepts of Mathematics MATH 352

Lecture Notes 1 Basic Concepts of Mathematics MATH 352 Lecture Notes 1 Basic Concepts of Mathematics MATH 352 Ivan Avramidi New Mexico Institute of Mining and Technology Socorro, NM 87801 June 3, 2004 Author: Ivan Avramidi; File: absmath.tex; Date: June 11,

More information

The Pumping Lemma. for all n 0, u 1 v n u 2 L (i.e. u 1 u 2 L, u 1 vu 2 L [but we knew that anyway], u 1 vvu 2 L, u 1 vvvu 2 L, etc.

The Pumping Lemma. for all n 0, u 1 v n u 2 L (i.e. u 1 u 2 L, u 1 vu 2 L [but we knew that anyway], u 1 vvu 2 L, u 1 vvvu 2 L, etc. The Pumping Lemma For every regular language L, there is a number l 1 satisfying the pumping lemma property: All w L with w l can be expressed as a concatenation of three strings, w = u 1 vu 2, where u

More information

Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018

Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018 Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018 Lecture 15 Ana Bove May 17th 2018 Recap: Context-free Languages Chomsky hierarchy: Regular languages are also context-free; Pumping lemma

More information

CS 208: Automata Theory and Logic

CS 208: Automata Theory and Logic CS 208: Automata Theory and Logic b a a start A x(la(x) y.(x < y) L b (y)) B b Department of Computer Science and Engineering, Indian Institute of Technology Bombay. 1 of 19 Logistics Course Web-page:

More information

CS 154 Introduction to Automata and Complexity Theory

CS 154 Introduction to Automata and Complexity Theory CS 154 Introduction to Automata and Complexity Theory cs154.stanford.edu 1 INSTRUCTORS & TAs Ryan Williams Cody Murray Lera Nikolaenko Sunny Rajan 2 Textbook 3 Homework / Problem Sets Homework will be

More information

CS 301. Lecture 18 Decidable languages. Stephen Checkoway. April 2, 2018

CS 301. Lecture 18 Decidable languages. Stephen Checkoway. April 2, 2018 CS 301 Lecture 18 Decidable languages Stephen Checkoway April 2, 2018 1 / 26 Decidable language Recall, a language A is decidable if there is some TM M that 1 recognizes A (i.e., L(M) = A), and 2 halts

More information

Automata Theory and Formal Grammars: Lecture 1

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

More information

Proofs: A General How To II. Rules of Inference. Rules of Inference Modus Ponens. Rules of Inference Addition. Rules of Inference Conjunction

Proofs: A General How To II. Rules of Inference. Rules of Inference Modus Ponens. Rules of Inference Addition. Rules of Inference Conjunction Introduction I Proofs Computer Science & Engineering 235 Discrete Mathematics Christopher M. Bourke cbourke@cse.unl.edu A proof is a proof. What kind of a proof? It s a proof. A proof is a proof. And when

More information

Discrete Mathematics & Mathematical Reasoning Course Overview

Discrete Mathematics & Mathematical Reasoning Course Overview Discrete Mathematics & Mathematical Reasoning Course Overview Colin Stirling Informatics Colin Stirling (Informatics) Discrete Mathematics Today 1 / 19 Teaching staff Lecturers: Colin Stirling, first half

More information

NP-Complete problems

NP-Complete problems NP-Complete problems NP-complete problems (NPC): A subset of NP. If any NP-complete problem can be solved in polynomial time, then every problem in NP has a polynomial time solution. NP-complete languages

More information

Einführung in die Computerlinguistik

Einführung in die Computerlinguistik Einführung in die Computerlinguistik Context-Free Grammars formal properties Laura Kallmeyer Heinrich-Heine-Universität Düsseldorf Summer 2018 1 / 20 Normal forms (1) Hopcroft and Ullman (1979) A normal

More information

With Question/Answer Animations. Chapter 2

With Question/Answer Animations. Chapter 2 With Question/Answer Animations Chapter 2 Chapter Summary Sets The Language of Sets Set Operations Set Identities Functions Types of Functions Operations on Functions Sequences and Summations Types of

More information

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

MATH 341, Section 001 FALL 2014 Introduction to the Language and Practice of Mathematics MATH 341, Section 001 FALL 2014 Introduction to the Language and Practice of Mathematics Class Meetings: MW 9:30-10:45 am in EMS E424A, September 3 to December 10 [Thanksgiving break November 26 30; final

More information

Theory of Computer Science. Theory of Computer Science. D7.1 Introduction. D7.2 Turing Machines as Words. D7.3 Special Halting Problem

Theory of Computer Science. Theory of Computer Science. D7.1 Introduction. D7.2 Turing Machines as Words. D7.3 Special Halting Problem Theory of Computer Science May 2, 2018 D7. Halting Problem and Reductions Theory of Computer Science D7. Halting Problem and Reductions Gabriele Röger University of Basel May 2, 2018 D7.1 Introduction

More information

Logic, Sets, and Proofs

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

More information

CSE 105 THEORY OF COMPUTATION

CSE 105 THEORY OF COMPUTATION CSE 105 THEORY OF COMPUTATION Spring 2016 http://cseweb.ucsd.edu/classes/sp16/cse105-ab/ Today's learning goals Sipser Ch 1.4 Give an example of a non-regular language Outline two strategies for proving

More information

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

Seminaar Abstrakte Wiskunde Seminar in Abstract Mathematics Lecture notes in progress (27 March 2010) http://math.sun.ac.za/amsc/sam Seminaar Abstrakte Wiskunde Seminar in Abstract Mathematics 2009-2010 Lecture notes in progress (27 March 2010) Contents 2009 Semester I: Elements 5 1. Cartesian product

More information

1 Initial Notation and Definitions

1 Initial Notation and Definitions Theory of Computation Pete Manolios Notes on induction Jan 21, 2016 In response to a request for more information on induction, I prepared these notes. Read them if you are interested, but this is not

More information

1 More finite deterministic automata

1 More finite deterministic automata CS 125 Section #6 Finite automata October 18, 2016 1 More finite deterministic automata Exercise. Consider the following game with two players: Repeatedly flip a coin. On heads, player 1 gets a point.

More information

Theorem. For every positive integer n, the sum of the positive integers from 1 to n is n(n+1)

Theorem. For every positive integer n, the sum of the positive integers from 1 to n is n(n+1) Week 1: Logic Lecture 1, 8/1 (Sections 1.1 and 1.3) Examples of theorems and proofs Theorem (Pythagoras). Let ABC be a right triangle, with legs of lengths a and b, and hypotenuse of length c. Then a +

More information

CS 275 Automata and Formal Language Theory

CS 275 Automata and Formal Language Theory CS 275 Automata and Formal Language Theory Course Notes Part II: The Recognition Problem (II) Chapter II.4.: Properties of Regular Languages (13) Anton Setzer (Based on a book draft by J. V. Tucker and

More information

Theoretical Foundations of the UML

Theoretical Foundations of the UML Theoretical Foundations of the UML Lecture 17+18: A Logic for MSCs Joost-Pieter Katoen Lehrstuhl für Informatik 2 Software Modeling and Verification Group moves.rwth-aachen.de/teaching/ws-1718/fuml/ 5.

More information

Non-emptiness Testing for TMs

Non-emptiness Testing for TMs 180 5. Reducibility The proof of unsolvability of the halting problem is an example of a reduction: a way of converting problem A to problem B in such a way that a solution to problem B can be used to

More information

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

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

More information

2. Introduction to commutative rings (continued)

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

More information

Intro to Logic and Proofs

Intro to Logic and Proofs Intro to Logic and Proofs Propositions A proposition is a declarative sentence (that is, a sentence that declares a fact) that is either true or false, but not both. Examples: It is raining today. Washington

More information

It rains now. (true) The followings are not propositions.

It rains now. (true) The followings are not propositions. Chapter 8 Fuzzy Logic Formal language is a language in which the syntax is precisely given and thus is different from informal language like English and French. The study of the formal languages is the

More information

Today s topics. Introduction to Set Theory ( 1.6) Naïve set theory. Basic notations for sets

Today s topics. Introduction to Set Theory ( 1.6) Naïve set theory. Basic notations for sets Today s topics Introduction to Set Theory ( 1.6) Sets Definitions Operations Proving Set Identities Reading: Sections 1.6-1.7 Upcoming Functions A set is a new type of structure, representing an unordered

More information

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

The Importance of Being Formal. Martin Henz. February 5, Propositional Logic The Importance of Being Formal Martin Henz February 5, 2014 Propositional Logic 1 Motivation In traditional logic, terms represent sets, and therefore, propositions are limited to stating facts on sets

More information

Introduction to Metalogic

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

More information

Practice Test III, Math 314, Spring 2016

Practice Test III, Math 314, Spring 2016 Practice Test III, Math 314, Spring 2016 Dr. Holmes April 26, 2016 This is the 2014 test reorganized to be more readable. I like it as a review test. The students who took this test had to do four sections

More information

Logic and Propositional Calculus

Logic and Propositional Calculus CHAPTER 4 Logic and Propositional Calculus 4.1 INTRODUCTION Many algorithms and proofs use logical expressions such as: IF p THEN q or If p 1 AND p 2, THEN q 1 OR q 2 Therefore it is necessary to know

More information

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

CS 2740 Knowledge Representation. Lecture 4. Propositional logic. CS 2740 Knowledge Representation. Administration Lecture 4 Propositional logic Milos Hauskrecht milos@cs.pitt.edu 5329 Sennott Square dministration Homework assignment 1 is out Due next week on Wednesday, September 17 Problems: LISP programming a PL

More information

Discrete Mathematics: Lectures 6 and 7 Sets, Relations, Functions and Counting Instructor: Arijit Bishnu Date: August 4 and 6, 2009

Discrete Mathematics: Lectures 6 and 7 Sets, Relations, Functions and Counting Instructor: Arijit Bishnu Date: August 4 and 6, 2009 Discrete Mathematics: Lectures 6 and 7 Sets, Relations, Functions and Counting Instructor: Arijit Bishnu Date: August 4 and 6, 2009 Our main goal is here is to do counting using functions. For that, we

More information

INF210 Datamaskinteori (Models of Computation)

INF210 Datamaskinteori (Models of Computation) INF210 Datamaskinteori (Models of Computation) Textbook: John Martin, Introduction to Languages and the Theory of Computation, McGraw Hill, Third Edition. Fedor V. Fomin Datamaskinteori 1 Datamaskinteori

More information

Logic and Propositional Calculus

Logic and Propositional Calculus CHAPTER 4 Logic and Propositional Calculus 4.1 INTRODUCTION Many algorithms and proofs use logical expressions such as: IF p THEN q or If p 1 AND p 2, THEN q 1 OR q 2 Therefore it is necessary to know

More information

CS 581: Introduction to the Theory of Computation! Lecture 1!

CS 581: Introduction to the Theory of Computation! Lecture 1! CS 581: Introduction to the Theory of Computation! Lecture 1! James Hook! Portland State University! hook@cs.pdx.edu! http://www.cs.pdx.edu/~hook/cs581f10/! Welcome!! Contact Information! Jim Hook! Office:

More information

Sets, Logic, Relations, and Functions

Sets, Logic, Relations, and Functions Sets, Logic, Relations, and Functions Andrew Kay September 28, 2014 Abstract This is an introductory text, not a comprehensive study; these notes contain mainly definitions, basic results, and examples.

More information

Introduction. Foundations of Computing Science. Pallab Dasgupta Professor, Dept. of Computer Sc & Engg INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR

Introduction. Foundations of Computing Science. Pallab Dasgupta Professor, Dept. of Computer Sc & Engg INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR 1 Introduction Foundations of Computing Science Pallab Dasgupta Professor, Dept. of Computer Sc & Engg 2 Comments on Alan Turing s Paper "On Computable Numbers, with an Application to the Entscheidungs

More information

Fuzzy and Rough Sets Part I

Fuzzy and Rough Sets Part I Fuzzy and Rough Sets Part I Decision Systems Group Brigham and Women s Hospital, Harvard Medical School Harvard-MIT Division of Health Sciences and Technology Aim Present aspects of fuzzy and rough sets.

More information

Math 10850, fall 2017, University of Notre Dame

Math 10850, fall 2017, University of Notre Dame Math 10850, fall 2017, University of Notre Dame Notes on first exam September 22, 2017 The key facts The first midterm will be on Thursday, September 28, 6.15pm-7.45pm in Hayes-Healy 127. What you need

More information

Section Summary. Relations and Functions Properties of Relations. Combining Relations

Section Summary. Relations and Functions Properties of Relations. Combining Relations Chapter 9 Chapter Summary Relations and Their Properties n-ary Relations and Their Applications (not currently included in overheads) Representing Relations Closures of Relations (not currently included

More information

MATH 2200 Final Review

MATH 2200 Final Review MATH 00 Final Review Thomas Goller December 7, 01 1 Exam Format The final exam will consist of 8-10 proofs It will take place on Tuesday, December 11, from 10:30 AM - 1:30 PM, in the usual room Topics

More information

Manual of Logical Style

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

More information

Packet #2: Set Theory & Predicate Calculus. Applied Discrete Mathematics

Packet #2: Set Theory & Predicate Calculus. Applied Discrete Mathematics CSC 224/226 Notes Packet #2: Set Theory & Predicate Calculus Barnes Packet #2: Set Theory & Predicate Calculus Applied Discrete Mathematics Table of Contents Full Adder Information Page 1 Predicate Calculus

More information

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

Math 31 Lesson Plan. Day 2: Sets; Binary Operations. Elizabeth Gillaspy. September 23, 2011 Math 31 Lesson Plan Day 2: Sets; Binary Operations Elizabeth Gillaspy September 23, 2011 Supplies needed: 30 worksheets. Scratch paper? Sign in sheet Goals for myself: Tell them what you re going to tell

More information

ECS 120: Theory of Computation UC Davis Phillip Rogaway February 16, Midterm Exam

ECS 120: Theory of Computation UC Davis Phillip Rogaway February 16, Midterm Exam ECS 120: Theory of Computation Handout MT UC Davis Phillip Rogaway February 16, 2012 Midterm Exam Instructions: The exam has six pages, including this cover page, printed out two-sided (no more wasted

More information

Tribhuvan University Institute of Science and Technology Micro Syllabus

Tribhuvan University Institute of Science and Technology Micro Syllabus Tribhuvan University Institute of Science and Technology Micro Syllabus Course Title: Discrete Structure Course no: CSC-152 Full Marks: 80+20 Credit hours: 3 Pass Marks: 32+8 Nature of course: Theory (3

More information

10/5/2012. Logic? What is logic? Propositional Logic. Propositional Logic (Rosen, Chapter ) Logic is a truth-preserving system of inference

10/5/2012. Logic? What is logic? Propositional Logic. Propositional Logic (Rosen, Chapter ) Logic is a truth-preserving system of inference Logic? Propositional Logic (Rosen, Chapter 1.1 1.3) TOPICS Propositional Logic Truth Tables Implication Logical Proofs 10/1/12 CS160 Fall Semester 2012 2 What is logic? Logic is a truth-preserving system

More information

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

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

More information

INF Introduction and Regular Languages. Daniel Lupp. 18th January University of Oslo. Department of Informatics. Universitetet i Oslo

INF Introduction and Regular Languages. Daniel Lupp. 18th January University of Oslo. Department of Informatics. Universitetet i Oslo INF28 1. Introduction and Regular Languages Daniel Lupp Universitetet i Oslo 18th January 218 Department of Informatics University of Oslo INF28 Lecture :: 18th January 1 / 33 Details on the Course consists

More information

79 Wyner Math Academy I Spring 2016

79 Wyner Math Academy I Spring 2016 79 Wyner Math Academy I Spring 2016 CHAPTER NINE: HYPOTHESIS TESTING Review May 11 Test May 17 Research requires an understanding of underlying mathematical distributions as well as of the research methods

More information

CM10196 Topic 2: Sets, Predicates, Boolean algebras

CM10196 Topic 2: Sets, Predicates, Boolean algebras CM10196 Topic 2: Sets, Predicates, oolean algebras Guy McCusker 1W2.1 Sets Most of the things mathematicians talk about are built out of sets. The idea of a set is a simple one: a set is just a collection

More information

Lecture 4: Proposition, Connectives and Truth Tables

Lecture 4: Proposition, Connectives and Truth Tables Discrete Mathematics (II) Spring 2017 Lecture 4: Proposition, Connectives and Truth Tables Lecturer: Yi Li 1 Overview In last lecture, we give a brief introduction to mathematical logic and then redefine

More information

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

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

More information

Theory of Languages and Automata

Theory of Languages and Automata Theory of Languages and Automata Chapter 0 - Introduction Sharif University of Technology References Main Reference M. Sipser, Introduction to the Theory of Computation, 3 nd Ed., Cengage Learning, 2013.

More information

Automata and Languages

Automata and Languages Automata and Languages Prof. Mohamed Hamada Software Engineering Lab. The University of Aizu Japan Mathematical Background Mathematical Background Sets Relations Functions Graphs Proof techniques Sets

More information

Readings: Conjecture. Theorem. Rosen Section 1.5

Readings: Conjecture. Theorem. Rosen Section 1.5 Readings: Conjecture Theorem Lemma Lemma Step 1 Step 2 Step 3 : Step n-1 Step n a rule of inference an axiom a rule of inference Rosen Section 1.5 Provide justification of the steps used to show that a

More information

SE 2FA3: Discrete Mathematics and Logic II. Teaching Assistants: Yasmine Sharoda,

SE 2FA3: Discrete Mathematics and Logic II. Teaching Assistants: Yasmine Sharoda, SE 2FA3: Discrete Mathematics and Logic II Instructor: Dr. Ryszard Janicki, ITB 217, e-mail: janicki@mcmaster.ca, tel: 529-7070 ext: 23919, Teaching Assistants: Yasmine Sharoda, e-mail: sharodym@mcmaster.ca,

More information

Tutorial on Axiomatic Set Theory. Javier R. Movellan

Tutorial on Axiomatic Set Theory. Javier R. Movellan Tutorial on Axiomatic Set Theory Javier R. Movellan Intuitively we think of sets as collections of elements. The crucial part of this intuitive concept is that we are willing to treat sets as entities

More information

COMP9414: Artificial Intelligence Propositional Logic: Automated Reasoning

COMP9414: Artificial Intelligence Propositional Logic: Automated Reasoning COMP9414, Monday 26 March, 2012 Propositional Logic 2 COMP9414: Artificial Intelligence Propositional Logic: Automated Reasoning Overview Proof systems (including soundness and completeness) Normal Forms

More information

Wednesday, 10 September 2008

Wednesday, 10 September 2008 MA211 : Calculus, Part 1 Lecture 2: Sets and Functions Dr Niall Madden (Mathematics, NUI Galway) Wednesday, 10 September 2008 MA211 Lecture 2: Sets and Functions 1/33 Outline 1 Short review of sets 2 Sets

More information

Outline. Wednesday, 10 September Schedule. Welcome to MA211. MA211 : Calculus, Part 1 Lecture 2: Sets and Functions

Outline. Wednesday, 10 September Schedule. Welcome to MA211. MA211 : Calculus, Part 1 Lecture 2: Sets and Functions Outline MA211 : Calculus, Part 1 Lecture 2: Sets and Functions Dr Niall Madden (Mathematics, NUI Galway) Wednesday, 10 September 2008 1 Short review of sets 2 The Naturals: N The Integers: Z The Rationals:

More information

Inference and Proofs (1.6 & 1.7)

Inference and Proofs (1.6 & 1.7) EECS 203 Spring 2016 Lecture 4 Page 1 of 9 Introductory problem: Inference and Proofs (1.6 & 1.7) As is commonly the case in mathematics, it is often best to start with some definitions. An argument for

More information

Propositional Logic Not Enough

Propositional Logic Not Enough Section 1.4 Propositional Logic Not Enough If we have: All men are mortal. Socrates is a man. Does it follow that Socrates is mortal? Can t be represented in propositional logic. Need a language that talks

More information

CSE 311 Lecture 28: Undecidability of the Halting Problem. Emina Torlak and Kevin Zatloukal

CSE 311 Lecture 28: Undecidability of the Halting Problem. Emina Torlak and Kevin Zatloukal CSE 311 Lecture 28: Undecidability of the Halting Problem Emina Torlak and Kevin Zatloukal 1 Topics Final exam Logistics, format, and topics. Countability and uncomputability A quick recap of Lecture 27.

More information

COMP 182 Algorithmic Thinking. Proofs. Luay Nakhleh Computer Science Rice University

COMP 182 Algorithmic Thinking. Proofs. Luay Nakhleh Computer Science Rice University COMP 182 Algorithmic Thinking Proofs Luay Nakhleh Computer Science Rice University 1 Reading Material Chapter 1, Section 3, 6, 7, 8 Propositional Equivalences The compound propositions p and q are called

More information

uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 1 Turing Reducibility

uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 1 Turing Reducibility uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 1 Turing Reducibility uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 2 FINITE We have already seen that the language FINITE

More information

Informal Statement Calculus

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

More information

Extensions to the Logic of All x are y: Verbs, Relative Clauses, and Only

Extensions to the Logic of All x are y: Verbs, Relative Clauses, and Only 1/53 Extensions to the Logic of All x are y: Verbs, Relative Clauses, and Only Larry Moss Indiana University Nordic Logic School August 7-11, 2017 2/53 An example that we ll see a few times Consider the

More information

CSCI-2200 FOUNDATIONS OF COMPUTER SCIENCE

CSCI-2200 FOUNDATIONS OF COMPUTER SCIENCE 1 CSCI-2200 FOUNDATIONS OF COMPUTER SCIENCE Spring 2015 February 5, 2015 2 Announcements Homework 1 is due now. Homework 2 will be posted on the web site today. It is due Thursday, Feb. 12 at 10am in class.

More information

Preliminaries to the Theory of Computation

Preliminaries to the Theory of Computation Preliminaries to the Theory of Computation 2 In this chapter, we explain mathematical notions, terminologies, and certain methods used in convincing logical arguments that we shall have need of throughout

More information

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:

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: Logic: The Big Picture Logic is a tool for formalizing reasoning. There are lots of different logics: probabilistic logic: for reasoning about probability temporal logic: for reasoning about time (and

More information

A Guide to Proof-Writing

A Guide to Proof-Writing A Guide to Proof-Writing 437 A Guide to Proof-Writing by Ron Morash, University of Michigan Dearborn Toward the end of Section 1.5, the text states that there is no algorithm for proving theorems.... Such

More information

Price: $25 (incl. T-Shirt, morning tea and lunch) Visit:

Price: $25 (incl. T-Shirt, morning tea and lunch) Visit: Three days of interesting talks & workshops from industry experts across Australia Explore new computing topics Network with students & employers in Brisbane Price: $25 (incl. T-Shirt, morning tea and

More information

Propositional Logics and their Algebraic Equivalents

Propositional Logics and their Algebraic Equivalents Propositional Logics and their Algebraic Equivalents Kyle Brooks April 18, 2012 Contents 1 Introduction 1 2 Formal Logic Systems 1 2.1 Consequence Relations......................... 2 3 Propositional Logic

More information

Proof Worksheet 2, Math 187 Fall 2017 (with solutions)

Proof Worksheet 2, Math 187 Fall 2017 (with solutions) Proof Worksheet 2, Math 187 Fall 2017 (with solutions) Dr. Holmes October 17, 2017 The instructions are the same as on the first worksheet, except you can use all the rules in the strategies handout. We

More information

Section 2.3: Statements Containing Multiple Quantifiers

Section 2.3: Statements Containing Multiple Quantifiers Section 2.3: Statements Containing Multiple Quantifiers In this section, we consider statements such as there is a person in this company who is in charge of all the paperwork where more than one quantifier

More information

Sets. Introduction to Set Theory ( 2.1) Basic notations for sets. Basic properties of sets CMSC 302. Vojislav Kecman

Sets. Introduction to Set Theory ( 2.1) Basic notations for sets. Basic properties of sets CMSC 302. Vojislav Kecman Introduction to Set Theory ( 2.1) VCU, Department of Computer Science CMSC 302 Sets Vojislav Kecman A set is a new type of structure, representing an unordered collection (group, plurality) of zero or

More information

ABOUT THE CLASS AND NOTES ON SET THEORY

ABOUT THE CLASS AND NOTES ON SET THEORY ABOUT THE CLASS AND NOTES ON SET THEORY About the Class Evaluation. Final grade will be based 25%, 25%, 25%, 25%, on homework, midterm 1, midterm 2, final exam. Exam dates. Midterm 1: Oct 4. Midterm 2:

More information

Announcements. Problem Set Four due Thursday at 7:00PM (right before the midterm).

Announcements. Problem Set Four due Thursday at 7:00PM (right before the midterm). Finite Automata Announcements Problem Set Four due Thursday at 7:PM (right before the midterm). Stop by OH with questions! Email cs3@cs.stanford.edu with questions! Review session tonight, 7PM until whenever

More information

Chapter 1 Elementary Logic

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

More information

185.A09 Advanced Mathematical Logic

185.A09 Advanced Mathematical Logic 185.A09 Advanced Mathematical Logic www.volny.cz/behounek/logic/teaching/mathlog13 Libor Běhounek, behounek@cs.cas.cz Lecture #1, October 15, 2013 Organizational matters Study materials will be posted

More information

Deductive Systems. Lecture - 3

Deductive Systems. Lecture - 3 Deductive Systems Lecture - 3 Axiomatic System Axiomatic System (AS) for PL AS is based on the set of only three axioms and one rule of deduction. It is minimal in structure but as powerful as the truth

More information

Theory of Computer Science

Theory of Computer Science Theory of Computer Science B1. Propositional Logic I Malte Helmert University of Basel February 29, 2016 Motivation Exercise from Last Lecture What s the secret of your long life? Simplify this advice!

More information

CSCI 2670 Introduction to Theory of Computing

CSCI 2670 Introduction to Theory of Computing CSCI 267 Introduction to Theory of Computing Agenda Last class Reviewed syllabus Reviewed material in Chapter of Sipser Assigned pages Chapter of Sipser Questions? This class Begin Chapter Goal for the

More information