Department of Computer Science Abdul Wali Khan University Mardan

Slides:



Advertisements
Similar presentations
Open Sentences.
Advertisements

The Logic of Quantified Statements
Chapter 2 Fundamentals of Logic Dept of Information management National Central University Yen-Liang Chen.
Chapter 1: The Foundations: Logic and Proofs 1.1 Propositional Logic 1.2 Propositional Equivalences 1.3 Predicates and Quantifiers 1.4 Nested Quantifiers.
© by Kenneth H. Rosen, Discrete Mathematics & its Applications, Sixth Edition, Mc Graw-Hill, 2007 Chapter 1: (Part 2): The Foundations: Logic and Proofs.
Copyright © 2006 Addison-Wesley. All rights reserved.1-1 ICS 410: Programming Languages Chapter 3 : Describing Syntax and Semantics Axiomatic Semantics.
Computability and Complexity 9-1 Computability and Complexity Andrei Bulatov Logic Reminder (Cnt’d)
Computability and Complexity 8-1 Computability and Complexity Andrei Bulatov Logic Reminder.
Axiomatic Semantics Dr. M Al-Mulhem ICS
Chapter Predicate Calculus Formal language –True/False statements –Supports reasoning Usage –Integrity constraints –Non-procedural query languages.
Discrete Mathematics Math 6A Instructor: M. Welling.
Dr. Muhammed Al-Mulhem 1ICS ICS 535 Design and Implementation of Programming Languages Part 1 Fundamentals (Chapter 4) Axiomatic Semantics ICS 535.
BOOLEAN LOGIC CSC 171 FALL 2004 LECTURE 7. ASSIGNMENT Review Quiz # 2 Start reading Chapter 5.
CSE115/ENGR160 Discrete Mathematics 01/20/11 Ming-Hsuan Yang UC Merced 1.
13 May 2009Instructor: Tasneem Darwish1 University of Palestine Faculty of Applied Engineering and Urban Planning Software Engineering Department Formal.
Predicates and Quantifiers
1 CS 1502 Formal Methods in Computer Science Lecture Notes 12 Variables and Quantifiers.
Predicates & Quantifiers Goal: Introduce predicate logic, including existential & universal quantification Introduce translation between English sentences.
Chapter 1: The Foundations: Logic and Proofs
1-8 An Introduction to Equations
1st-order Predicate Logic (FOL)
The Recursion Theorem Pages 217– ADVANCED TOPICS IN C O M P U T A B I L I T Y THEORY.
Open Sentences.
Copyright © Curt Hill Quantifiers. Copyright © Curt Hill Introduction What we have seen is called propositional logic It includes.
Fundamentals of Logic 1. What is a valid argument or proof? 2. Study system of logic 3. In proving theorems or solving problems, creativity and insight.
Predicates and Quantified Statements
Chapter 2 The Logic of Quantified Statements. Section 2.1 Intro to Predicates & Quantified Statements.
1 Sections 1.3 and 1.4 Predicates & Quantifiers. 2 Propositional Functions In a mathematical assertion, such as x < 3, there are two parts: –the subject,
1.3 Open Sentences A mathematical statement with one or more variables is called an open sentence. An open sentence is neither true nor false until the.
Lecture 7 – Jan 28, Chapter 2 The Logic of Quantified Statements.
Fall 2008/2009 I. Arwa Linjawi & I. Asma’a Ashenkity 1 The Foundations: Logic and Proofs Predicates and Quantifiers.
Discrete Structures – CNS 2300
Discrete Structures Predicate Logic 1 Dr. Muhammad Humayoun Assistant Professor COMSATS Institute of Computer Science, Lahore.
LDK R Logics for Data and Knowledge Representation First Order Logics (FOL) Originally by Alessandro Agostini and Fausto Giunchiglia Modified by Fausto.
Predicate Logic One step stronger than propositional logic Copyright © Curt Hill.
Chapter 2 Fundamentals of Logic 1. What is a valid argument or proof?
1 Section 8.3 Higher-Order Logic A logic is higher-order if it allows predicate names or function names to be quantified or to be arguments of a predicate.
Copyright © Peter Cappello 2011 Predicates & Quantifiers.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
Tautology. In logic, a tautology (from the Greek word ταυτολογία) is a formula that is true in every possible interpretation.logic Greek formulainterpretation.
PREDICATES AND QUANTIFIERS COSC-1321 Discrete Structures 1.
Section 1.4. Propositional Functions Propositional functions become propositions (and have truth values) when their variables are each replaced by a value.
Introduction to Predicates and Quantified Statements I Lecture 9 Section 2.1 Wed, Jan 31, 2007.
1 Section 7.1 First-Order Predicate Calculus Predicate calculus studies the internal structure of sentences where subjects are applied to predicates existentially.
Propositional Logic. Assignment Write any five rules each from two games which you like by using propositional logic notations.
Chapter 1 Propositional Logic
3. The Logic of Quantified Statements Summary
CSE15 Discrete Mathematics 01/23/17
Predicates & Quantifiers
Negations of Quantified Statements
Today’s Topics Universes of Discourse
Mathematical Structures for Computer Science Chapter 1
CS201: Data Structures and Discrete Mathematics I
1.2 Propositional Equivalences
CS 1502 Formal Methods in Computer Science
Mathematics for Computer Science MIT 6.042J/18.062J
Introduction to Predicates and Quantified Statements I
Discrete Mathematics Lecture 4 & 5: Predicate and Quantifier
Open Sentences.
Computer Security: Art and Science, 2nd Edition
Discrete Mathematics CMP-200 Propositional Equivalences, Predicates & Quantifiers, Negating Quantified Statements Abdul Hameed
1.2 Propositional Equivalences
Understanding Conditions
Discrete Mathematics Lecture 4 & 5: Predicate and Quantifier
Department of Computer Science Abdul Wali Khan University Mardan
1.2 Propositional Equivalences
Logics for Data and Knowledge Representation
CS201: Data Structures and Discrete Mathematics I
Propositional Satisfiability
Presentation transcript:

Department of Computer Science Abdul Wali Khan University Mardan Predication Logic Dr. Rahim Kha Assistant Professor Department of Computer Science Abdul Wali Khan University Mardan

Scope of a Variable Just like local variable in PL

Describe these statements

Free variable If a variable x appears in a predicate p but is not bound by any quantifier OR Each occurrence of x that is outside the scope of a declaration of the form ᵾx : a’ or Ǝx : a’ is said to be a free occurrence

Substitution If we wish to change the subject of the statement from x to y, we must replace each free occurrence of x in p with an occurrence of y and is denoted by p[y / x]

Let Person denote the set of all people, and let m LooksLike n mean that person m looks like person n. The following predicate is a statement about a person o; it states that there is some person who does not look like o: substituting m for o: substituting o for p:

Satisfaction and validity A predicate with free variables or ‘spaces’ is neither true nor false it cannot be assigned a truth value until values are chosen or the spaces are filled Some predicates will become true whatever values are chosen: these are said to be valid predicates. Example If n denotes a natural number, then the predicate n ≥ 0 is valid. it will be true whichever value is chosen from the list 0, 1, 2, 3, . . . A predicate that is true for some, but not necessarily all, choices of values is said to be Satisfiable. n ≥ 5 is satisfiable. There are natural numbers greater than or equal to 5 A predicate that is false for all choices is said to be unsatisfiable

Quantifiers Notations