CLASSICAL LOGIC and FUZZY LOGIC. CLASSICAL LOGIC In classical logic, a simple proposition P is a linguistic, or declarative, statement contained within.

Slides:



Advertisements
Similar presentations
Artificial Intelligence
Advertisements

Fuzzy Sets and Fuzzy Logic
Fuzzy Expert System  An expert might say, “ Though the power transformer is slightly overloaded, I can keep this load for a while”.  Another expert.
Chapter 2 Fundamentals of Logic Dept of Information management National Central University Yen-Liang Chen.
1 Logic Logic in general is a subfield of philosophy and its development is credited to ancient Greeks. Symbolic or mathematical logic is used in AI. In.
Lecture 4 Fuzzy expert systems: Fuzzy logic
04 March 2009Instructor: Tasneem Darwish1 University of Palestine Faculty of Applied Engineering and Urban Planning Software Engineering Department Introduction.
Logic Concepts Lecture Module 11.
Copyright © Cengage Learning. All rights reserved.
Fuzzy Logic The restriction of classical propositional calculus to a two- valued logic has created many interesting paradoxes over the ages. For example,
AI TECHNIQUES Fuzzy Logic (Fuzzy System). Fuzzy Logic : An Idea.
Fuzzy Expert System. Basic Notions 1.Fuzzy Sets 2.Fuzzy representation in computer 3.Linguistic variables and hedges 4.Operations of fuzzy sets 5.Fuzzy.
Fuzzy Expert Systems. Lecture Outline What is fuzzy thinking? What is fuzzy thinking? Fuzzy sets Fuzzy sets Linguistic variables and hedges Linguistic.
Fuzzy Logic Frank Costanzo – MAT 7670 Spring 2012.
Logic and Set Theory.
Propositional Logic. Negation Given a proposition p, negation of p is the ‘not’ of p.
From Chapter 4 Formal Specification using Z David Lightfoot
Let remember from the previous lesson what is Knowledge representation
COMP 578 Fuzzy Sets in Data Mining Keith C.C. Chan Department of Computing The Hong Kong Polytechnic University.
Proof by Deduction. Deductions and Formal Proofs A deduction is a sequence of logic statements, each of which is known or assumed to be true A formal.
Ming-Feng Yeh General Fuzzy Systems A fuzzy system is a static nonlinear mapping between its inputs and outputs (i.e., it is not a dynamic system).
Propositional Calculus Math Foundations of Computer Science.
Classical Relations and Fuzzy Relations
Rule-Based Fuzzy Model. In rule-based fuzzy systems, the relationships between variables are represented by means of fuzzy if–then rules of the following.
Adapted from Discrete Math
Discrete Mathematics Goals of a Discrete Mathematics Learn how to think mathematically 1. Mathematical Reasoning Foundation for discussions of methods.
Propositions and Truth Tables
CSCI 115 Chapter 2 Logic. CSCI 115 §2.1 Propositions and Logical Operations.
Systems Architecture I1 Propositional Calculus Objective: To provide students with the concepts and techniques from propositional calculus so that they.
Fuzzy Logic. Lecture Outline Fuzzy Systems Fuzzy Sets Membership Functions Fuzzy Operators Fuzzy Set Characteristics Fuzziness and Probability.
Of 33 lecture 12: propositional logic – part I. of 33 propositions and connectives … two-valued logic – every sentence is either true or false some sentences.
Propositional Logic Dr. Rogelio Dávila Pérez Profesor-Investigador División de Posgrado Universidad Autónoma Guadalajara
0 What logic is or should be Propositions Boolean operations The language of classical propositional logic Interpretation and truth Validity (tautologicity)
Propositional Calculus CS 270: Mathematical Foundations of Computer Science Jeremy Johnson.
Logical Systems and Knowledge Representation Fuzzy Logical Systems 1.
Lógica difusa  Bayesian updating and certainty theory are techniques for handling the uncertainty that arises, or is assumed to arise, from statistical.
Hazırlayan DISCRETE COMPUTATIONAL STRUCTURES Propositional Logic PROF. DR. YUSUF OYSAL.
Theory and Applications
“Principles of Soft Computing, 2 nd Edition” by S.N. Sivanandam & SN Deepa Copyright  2011 Wiley India Pvt. Ltd. All rights reserved. CHAPTER 12 FUZZY.
CS6133 Software Specification and Verification
Mathematical Preliminaries
Chapter 2 Logic 2.1 Statements 2.2 The Negation of a Statement 2.3 The Disjunction and Conjunction of Statements 2.4 The Implication 2.5 More on Implications.
Fuzzy Inference and Reasoning
11 Artificial Intelligence CS 165A Thursday, October 25, 2007  Knowledge and reasoning (Ch 7) Propositional logic 1.
Fuzzy Expert System n Introduction n Fuzzy sets n Linguistic variables and hedges n Operations of fuzzy sets n Fuzzy rules n Summary.
1 Propositional Logic: Fundamental Elements for Computer Scientists 0. Motivation for Computer Scientists 1. Propositions and Propositional Variables 2.
Chapter 7. Propositional and Predicate Logic Fall 2013 Comp3710 Artificial Intelligence Computing Science Thompson Rivers University.
Propositional Logic Rather than jumping right into FOL, we begin with propositional logic A logic involves: §Language (with a syntax) §Semantics §Proof.
ARTIFICIAL INTELLIGENCE Lecture 2 Propositional Calculus.
Ch.3 Fuzzy Rules and Fuzzy Reasoning
Foundations of Discrete Mathematics Chapter 1 By Dr. Dalia M. Gil, Ph.D.
CT214 – Logical Foundations of Computing Darren Doherty Rm. 311 Dept. of Information Technology NUI Galway
Discrete Mathematical Structures: Theory and Applications 1 Logic: Learning Objectives  Learn about statements (propositions)  Learn how to use logical.
Propositional Logic. Assignment Write any five rules each from two games which you like by using propositional logic notations.
Fuzzy Logic 1. Introduction Form of multivalued logic Deals reasoning that is approximate rather than precise The fuzzy logic variables may have a membership.
March 3, 2016Introduction to Artificial Intelligence Lecture 12: Knowledge Representation & Reasoning I 1 Back to “Serious” Topics… Knowledge Representation.
Artificial Intelligence Logical Agents Chapter 7.
Sound Arguments and Derivations. Topics Sound Arguments Derivations Proofs –Inference rules –Deduction.
Chapter 7. Propositional and Predicate Logic
2. The Logic of Compound Statements Summary
Classical Relations and Fuzzy Relations
Advanced Algorithms Analysis and Design
Knowledge Representation and Reasoning
CLASSICAL LOGIC and FUZZY LOGIC
Chapter 8 Logic Topics
FUZZIFICATION AND DEFUZZIFICATION
Back to “Serious” Topics…
Chapter 7. Propositional and Predicate Logic
Foundations of Discrete Mathematics
Presentation transcript:

CLASSICAL LOGIC and FUZZY LOGIC

CLASSICAL LOGIC In classical logic, a simple proposition P is a linguistic, or declarative, statement contained within a universe of elements, X, that can be identified as being a collection of elements in X that are strictly true or strictly false. The veracity (truth) of an element in the proposition P can be assigned a binary truth value, called T (P), For binary (Boolean) classical logic, T (P) is assigned a value of 1 (truth) or 0 (false). If U is the universe of all propositions, then T is a mapping of the elements, u, in these propositions (sets) to the binary quantities (0, 1), or T : u ∈ U −→ (0, 1)

CLASSICAL LOGIC

L et P and Q be two simple propositions on the same universe of discourse that can be combined using the following five logical connectives Disjunction ( ∨ ) Conjunction ( ∧ ) Negation (−) Implication (→) Equivalence (↔) CLASSICAL LOGIC

define sets A and B from universe, where these sets might represent linguistic ideas or thoughts. A propositional calculus (sometimes called the algebra of propositions) will exist for the case where proposition P measures the truth of the statement that an element, x, from the universe X is contained in set A and the truth of the statement Q that this element, x, is contained in set B, or more conventionally, P : truth that x ∈ A Q : truth that x ∈ B where truth is measured in terms of the truth value, i.e., İf x ∈ A, T (P) = 1; otherwise, T (P) = 0 İf x ∈ B, T (Q) = 1; otherwise, T (Q) = 0 or, using the characteristic function to represent truth (1) and falsity (0), the following notation results: CLASSICAL LOGIC

The five logical connectives already defined can be used to create compound propositions, where a compound proposition is defined as a logical proposition formed by logically connecting two or more simple propositions. CLASSICAL LOGIC

Truth table for various compound propositions CLASSICAL LOGIC

The implication P →Q can be represented in set-theoretic terms by the relation R, Suppose the implication operation involves two different universes of discourse; P is a proposition described by set A, which is defined on universe X, and Q is a proposition described by set B, which is defined on universe Y. CLASSICAL LOGIC

This implication is also equivalent to the linguistic rule form, IF A, THEN B. Another compound proposition in linguistic rule form is the expression IF A, THEN B, ELSE C

CLASSICAL LOGIC Tautologies In classical logic it is useful to consider compound propositions that are always true, irrespective of the truth values of the individual simple propositions. Classical logical compound propositions with this property are called tautologies. Tautologies are useful for deductive reasoning, for proving theorems, and for making deductive inferences.

CLASSICAL LOGIC Tautologies Some common tautologies follow: Proof ?

CLASSICAL LOGIC Tautologies Truth table (modus ponens) Truth table (modus tollens)

CLASSICAL LOGIC Deductive Inferences The modus ponens deduction is used as a tool for making inferences in rule-based systems. A typical if–then rule is used to determine whether an antecedent (cause or action) infers a consequent (effect or reaction). Suppose we have a rule of the form IF A, THEN B, where A is a set defined on universe X and B is a set defined on universe Y. As discussed before, this rule can be translated into a relation between sets A and B;

CLASSICAL LOGIC Deductive Inferences Suppose a new antecedent, say A’, is known. Can we use modus ponens deduction to infer a new consequent, say B’, resulting from the new antecedent? That is, can we deduce, in rule form, IF A’, THEN B’? Yes, through the use of the composition operation. Since ‘‘A implies B’’ is defined on the Cartesian space X × Y, B can be found through the following set-theoretic formulation,

CLASSICAL LOGIC Deductive Inferences

CLASSICAL LOGIC Deductive Inferences The compound rule IF A, THEN B, ELSE C can also be defined in terms of a matrix relation as where the membership function is determined as

CLASSICAL LOGIC EXAMPLE Suppose we have two universes of discourse for a heat exchanger problem described by the following collection of elements, X = {1, 2, 3, 4} and Y = {1, 2, 3, 4, 5, 6}. Suppose X is a universe of normalized temperatures and Y is a universe of normalized pressures. Define crisp set A on universe X and crisp set B on universe Y as follows: A = {2, 3} and B = {3, 4}. The deductive inference IF A, THEN B (i.e., IF temperature is A, THEN pressure is B) will yield a matrix describing the membership values of the relation R, i.e., χR(x, y) That is, the matrix R represents the rule IF A, THEN B as a matrix of characteristic (crisp membership) values.

FUZZY LOGIC The restriction of classical propositional calculus to a two-valued logic has created many interesting paradoxes over the ages. For example, the Barber of Seville is a classic paradox (also termed Russell’s barber). In the small Spanish town of Seville, there is a rule that all and only those men who do not shave themselves are shaved by the barber. Who shaves the barber? Another example comes from ancient Greece. Does the liar from Crete lie when he claims, ‘‘All Cretians are liars?’’ If he is telling the truth, his statement is false. But if his statement is false, he is not telling the truth. A simpler form of this paradox is the two-word proposition, ‘‘I lie.’’ The statement can not be both true and false.

FUZZY LOGIC A fuzzy logic proposition, P ∼, is a statement involving some concept without clearly defined boundaries. Most natural language is fuzzy, in that it involves vague and imprecise terms. Statements describing a person’s height or weight or a ssessments of people’s preferences about colors or menus can be used as examples of fuzzy propositions. The truth value assigned to P ∼ can be any value on the interval [0, 1]. The assignment of the truth value to a proposition is actually a mapping from the interval [0, 1] to the universe U of truth values, T, as indicated

FUZZY LOGIC indicates that the degree of truth for the proposition is equal to the membership grade of x in the fuzzy set A ∼.

FUZZY LOGIC The logical connectives of negation, disjunction, conjunction, and implication are also defined for a fuzzy logic.

FUZZY LOGIC As before in binary logic, the implication connective can be modeled in rule-based form; and it is equivalent to the following fuzzy relation, The membership function of R ∼ is expressed by the following formula:

FUZZY LOGIC

Approximate reasoning The ultimate goal of fuzzy logic is to form the theoretical foundation for reasoning about imprecise propositions; such reasoning has been referred to as approximate reasoning [Zadeh, 1976, 1979]. Approximate reasoning is analogous to classical logic for reasoning with precise propositions, and hence is an extension of classical propositional calculus that deals with partial truths.

FUZZY LOGIC Approximate reasoning

FUZZY LOGIC