The Language of Propositional Logic The Syntax and Semantics of PL.

Slides:



Advertisements
Similar presentations
Logic & Critical Reasoning Translation into Propositional Logic.
Advertisements

Chapter Two Symbolizing in Sentential Logic This chapter is a preliminary to the project of building a model of validity for sentential arguments. We.
Introductory Logic PHI 120 Presentation: "Intro to Formal Logic" Please turn off all cell phones!
An Introduction to Propositional Logic Translations: Ordinary Language to Propositional Form.
Today’s Topics Logical Syntax Logical Syntax o Well-Formed Formulas o Dominant Operator (Main Connective) Putting words into symbols Putting words into.
Copyright 2013, 2010, 2007, Pearson, Education, Inc. Section 3.2 Truth Tables for Negation, Conjunction, and Disjunction.
EE1J2 - Slide 1 EE1J2 – Discrete Maths Lecture 3 Syntax of Propositional Logic Parse trees revised Construction of parse trees Semantics of propositional.
An Introduction to Propositional Logic Translations: Ordinary Language to Propositional Form.
Today’s Topics n Review Logical Implication & Truth Table Tests for Validity n Truth Value Analysis n Short Form Validity Tests n Consistency and validity.
1 Section 1.2 Propositional Equivalences. 2 Equivalent Propositions Have the same truth table Can be used interchangeably For example, exclusive or and.
1 Section 1.1 Logic. 2 Proposition Statement that is either true or false –can’t be both –in English, must contain a form of “to be” Examples: –Cate Sheller.
Sentential Logic(SL) 1.Syntax: The language of SL / Symbolize 2.Semantic: a sentence / compare two sentences / compare a set of sentences 3.DDerivation.
Let remember from the previous lesson what is Knowledge representation
SEVENTH EDITION and EXPANDED SEVENTH EDITION
Tweedledum: “I know what you’re thinking, but it isn’t so. No how.” Tweedledee: “Contrariwise, if it was so, it might be; and if it were so, it would be;
Chapter 2: The Logic of Compound Statements 2.1 Logical Forms and Equivalence 12.1 Logical Forms and Equivalences Logic is a science of the necessary laws.
Adapted from Discrete Math
Predicates and Quantifiers
3.2 – Truth Tables and Equivalent Statements
Copyright 2013, 2010, 2007, Pearson, Education, Inc. Section 3.2 Truth Tables for Negation, Conjunction, and Disjunction.
Chapter 3 – Introduction to Logic The initial motivation for the study of logic was to learn to distinguish good arguments from bad arguments. Logic is.
Propositional Logic Review
Elementary Logic PHIL Intersession 2013 MTWHF 10:00 – 12:00 ASA0118C Steven A. Miller Day 4.
Copyright © Curt Hill Truth Tables A way to show Boolean Operations.
Chapter 2 Section 5 - Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
MATH 102 Contemporary Math S. Rook
The Language S : Æ Ç ! $.
2.2 Statements, Connectives, and Quantifiers
Symbolic Language and Basic Operators Kareem Khalifa Department of Philosophy Middlebury College.
Logic Disjunction A disjunction is a compound statement formed by combining two simple sentences using the word “OR”. A disjunction is true when at.
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
Chapter 2: The Logic of Compound Statements 2.2 Conditional Statements
Lecture 4. CONDITIONAL STATEMENTS: Consider the statement: "If you earn an A in Math, then I'll buy you a computer." This statement is made up of two.
MLS 570 Critical Thinking Reading Notes for Fogelin: Propositional Logic Fall Term 2006 North Central College.
Chapter 8 – Symbolic Logic Professor D’Ascoli. Symbolic Logic Because the appraisal of arguments is made difficult by the peculiarities of natural language,
Thinking Mathematically
Logical Form and Logical Equivalence M Logical Form Example 1 If the syntax is faulty or execution results in division by zero, then the program.
CS6133 Software Specification and Verification
1 Propositional Logic Introduction. 2 What is propositional logic? Propositional Logic is concerned with propositions and their interrelationships. 
The Foundations: Logic and Proof, Sets, and Foundations PROPOSITIONS A proposition is a declarative sentence that is either True or False, but not the.
Chapter 3 Section 1 - Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
Propositional Logic – The Basics (2) Truth-tables for Propositions.
Section 1.1 Propositions and Logical Operations. Introduction Remember that discrete is –the study of decision making in non-continuous systems. That.
Mathematics for Comter I Lecture 2: Logic (1) Basic definitions Logical operators Translating English sentences.
ARTIFICIAL INTELLIGENCE Lecture 2 Propositional Calculus.
Outline Logic Propositional Logic Well formed formula Truth table
TRUTH TABLES Edited from the original by: Mimi Opkins CECS 100 Fall 2011 Thanks for the ppt.
Week 8 Discussion: Ch 8, TA: Karin Howe PHIL 121 Spring 2012.
Lesson 2-2.B Logic: Truth Tables. 5-Minute Check on Lesson 2-2.A Transparency 2-2 Make a conjecture about the next item in the sequence. 1. 1, 4, 9, 16,
Introductory Logic PHI 120 Presentation: "Truth Tables – Sentences"
3.3 – The Conditional A conditional statement is a compound statement that uses the connective if…then. The conditional is written with an arrow, so “if.
 Statement - sentence that can be proven true or false  Truth value – true or false  Statements are often represented using letters such as p and q.
Chapter 1. Chapter Summary  Propositional Logic  The Language of Propositions (1.1)  Logical Equivalences (1.3)  Predicate Logic  The Language of.
Truth Tables, Continued 6.3 and 6.4 March 14th. 6.3 Truth tables for propositions Remember: a truth table gives the truth value of a compound proposition.
Simple Logic.
Sentential logic. Lecture based on: Graeme Forbes, Modern Logic Katarzyna Paprzycka, online lectures.
Presented by: Tutorial Services The Math Center
AND.
DISCRETE MATHEMATICS CHAPTER I.
Thinking Mathematically
CHAPTER 3 Logic.
Truth Tables – Logic (Continued)
Chapter 1 The Foundations: Logic and Proof, Sets, and Functions
Discrete Mathematics Lecture 2: Propositional Logic
Discrete Mathematics Lecture 2: Propositional Logic
Section 3.2 Truth Tables for Negation, Conjunction, and Disjunction
Statements and Logical Connectives
CHAPTER 3 Logic.
Truth tables.
Presentation transcript:

The Language of Propositional Logic The Syntax and Semantics of PL

Languages in General All languages have a set of symbols, rules for constructing compound constructions out of atomic constructions, and meanings assigned to the significant units. For example, the letter ‘A’ is part of English, but not part of Hindi. For example, English is a Subject-Verb-Object language, while Arabic is Subject-Object-Verb. For example, ‘snow’ means snow in English, but ‘schnee’ means snow in German. The syntax of a language is the grammar of the language. The semantics of a language is the meaning of the significant parts.

The Language of Propositional Logic Propositional Logic, PL, is a formal language, which has a set of symbols, a syntax, and a semantics. It is not a natural language, like English. It is possible to translate sentences of most natural languages, such as Greek, English, German, French, etc… into PL. PL is a language that focuses on a small set of expressions. These expressions are the words used to connect propositions (sentences) to one another: ‘and’, ‘or’, ‘if…,then’, ‘not’, ‘if and only if’, and combinations of them.

The Syntax of PL Symbols: Propositional Letters: P, Q, R, S, T, U, V, W, X, Y, and Z Logical Operators: ‘  ’ arrow ‘  ’ broken arrow ‘  ’ triple bar ‘  ’ carrot ‘  ’ wedge Grouping Symbols: ‘(, )’ parentheses, and ‘[,]’ brackets

Object Language vs. Meta-language The language of PL described previously is the object-language. The object language is the actual language that is used for communicating in the language. For example, just as the word ‘simple’ is part of the object language of English, the formula ‘(P  Q)’ is part of the object language of PL. The object language of PL must be distinguished from the meta- language for PL. The meta-language for PL is the language used for talking about PL. It is not part of PL, and is primarily used to describe the grammar and meaning of formulas at a level of generality. The meta-language variables are the lower case English letters: p, q, r,… z.

Rules for Well-Formed Formulas 1. All propositional letters P….Z are atomic well-formed formulas. 2. If p and q are well formed, then so are the following: I.  p II. ( p  q ) III. ( p  q ) IV. ( p  q ) V. ( p  q ) 3. Nothing is a well-formed formula, unless it follows from (1) and (2).

Examples Not well-formed 1. P  2. QP 3.  R 4. A  5.  R) Well-formed 1. (P  (Q  R)) 2. (V  (  R  S)) 3. (Q  (R  S)) 4. (S  (R  T)) 5. (P   (R  S))

The Semantics of PL PL is a language that only focuses on propositional connectives and operators. In English the main propositional connectives are ‘and’, ‘or’, ‘not’, ‘if…, then..’, and ‘if and only if’. Since PL is only focused on these terms it only has a semantics for these terms. The semantics for PL is binary and exclusive. There are only two truth-values: T and F, and no statement is both T and F. It is important to note that the semantics of PL is for the logical operators of its language: ‘  ’, ‘  ’, ‘  ’, ‘  ’, and ‘  ’.

Logical Meaning vs. Non-Logical Meaning Logicians try to give definitions of the propositional operators of PL that match perfectly with the logical meaning of ‘and’, ‘or’, ‘not’, ‘if…then…’, and ‘if and only if’. However, there are many cases in which the English use of, for example ‘and’ or ‘if…,then…’, do not match the definition given to carrot and arrow. In philosophy of logic one studies what the correct definition of the logical operators should be, and other questions about whether logic is binary and exclusive.

Truth-Tables In order to define the logical symbols of PL, one needs to use a truth-table. A truth-table is a table for visually displaying the distribution of truth and falsity across a compound formula given the basic inputs from the atomic letters. pq TT TF FT FF

Broken Arrow, Negation The definition of broken arrow is intended to capture the logical meaning of the word ‘not’, and the function of negation. The core idea is that the output is the opposite of the input. p  p p TF FT

Carrot, Conjunction The definition of carrot is intended to capture the logical meaning of the word ‘and’, and the function of conjunction. The core idea is that the output is true only if both inputs are true. pq (p  q) TT T TF F FT F FF F

Wedge, Disjunction The definition of wedge is intended to capture the logical meaning of the word ‘or’, and the function of disjunction. The core idea is that the output is true as long at least one input is true. pq (p  q)(p  q) TT T TF T FT T FF F

Arrow, Material Conditional The definition of the arrow is intended to capture the logical meaning of the phrase ‘if…., then…’, and the function of material conditional. The core idea is that the output is false only when the first input is true, and the second input is false. pq (p  q)(p  q) TT T TF F FT T FF T

Triple Bar, Biconditional The definition of triple bar is intended to capture the logical meaning of the phrase ‘if and only if’, and the function of biconditional. The core idea is that the output is true just in case the inputs are the same. pq (p  q)(p  q) TT T TF F FT F FF T