Chapter 3: Propositional Languages

Similar documents
Foundations of AI. 9. Predicate Logic. Syntax and Semantics, Normal Forms, Herbrand Expansion, Resolution

Mathematically Rigorous Software Design Review of mathematical prerequisites

Propositional Logic. Part I

Propositional Logic. Andreas Klappenecker

CSE 20 DISCRETE MATH. Fall

Lecture 5. Logic I. Statement Logic

Knowledge Representation

Formally-Proven Kosaraju s algorithm

This book is licensed under a Creative Commons Attribution 3.0 License

Warm-Up Problem. Let L be the language consisting of as constant symbols, as a function symbol and as a predicate symbol. Give an interpretation where

Recursion and Structural Induction

Appendix 1. Description Logic Terminology

CSE 20 DISCRETE MATH. Winter

ON THE GRAMMAR OF FIRST-ORDER LOGIC

Intro to semantics; Small-step semantics Lecture 1 Tuesday, January 29, 2013

Semantics via Syntax. f (4) = if define f (x) =2 x + 55.

Context-Free Grammars

Propositional Calculus: Boolean Functions and Expressions. CS 270: Mathematical Foundations of Computer Science Jeremy Johnson

Introduction to Sets and Logic (MATH 1190)

Uncertain Data Models

Recursively Defined Functions

1.3. Conditional expressions To express case distinctions like

Review Material: First Order Logic (FOL)

Topology notes. Basic Definitions and Properties.

Appendix 1. Description Logic Terminology

BDDC v2 A basic bdd-based logical calculator

Cantor s Diagonal Argument for Different Levels of Infinity

Logic Informatics 1 Functional Programming: Tutorial 6

Lecture 1: Conjunctive Queries

15-819M: Data, Code, Decisions

Overview. CS389L: Automated Logical Reasoning. Lecture 6: First Order Logic Syntax and Semantics. Constants in First-Order Logic.

6 NFA and Regular Expressions

SC/MATH Boolean Formulae. Ref: G. Tourlakis, Mathematical Logic, John Wiley & Sons, York University

THREE LECTURES ON BASIC TOPOLOGY. 1. Basic notions.

Binary Decision Diagrams

Chapter 3. Set Theory. 3.1 What is a Set?

MC 302 GRAPH THEORY 10/1/13 Solutions to HW #2 50 points + 6 XC points

Introduction to Logic Programming

To prove something about all Boolean expressions, we will need the following induction principle: Axiom 7.1 (Induction over Boolean expressions):

1.4 Normal Forms. We define conjunctions of formulas as follows: and analogously disjunctions: Literals and Clauses

What is a Logic Program. Introduction to Logic Programming. Introductory Examples. Introductory Examples. Foundations, First-Order Language

Constraint Solving. Systems and Internet Infrastructure Security

BDDC v2 A basic bdd-based logical calculator

Slides for Faculty Oxford University Press All rights reserved.

Propositional Calculus: Boolean Algebra and Simplification. CS 270: Mathematical Foundations of Computer Science Jeremy Johnson

SOFTWARE ENGINEERING DESIGN I

Introductory logic and sets for Computer scientists

HANDBOOK OF LOGIC IN ARTIFICIAL INTELLIGENCE AND LOGIC PROGRAMMING

2.2 Set Operations. Introduction DEFINITION 1. EXAMPLE 1 The union of the sets {1, 3, 5} and {1, 2, 3} is the set {1, 2, 3, 5}; that is, EXAMPLE 2

To prove something about all Boolean expressions, we will need the following induction principle: Axiom 7.1 (Induction over Boolean expressions):

A Modality for Recursion

Typed Lambda Calculus

On the implementation of a multiple output algorithm for defeasible argumentation

Chapter 1.3 Quantifiers, Predicates, and Validity. Reading: 1.3 Next Class: 1.4. Motivation

Modal Logic: Implications for Design of a Language for Distributed Computation p.1/53

Definition: A context-free grammar (CFG) is a 4- tuple. variables = nonterminals, terminals, rules = productions,,

Model checking for nonmonotonic logics: algorithms and complexity

Reflection in the Chomsky Hierarchy

The set consisting of all natural numbers that are in A and are in B is the set f1; 3; 5g;

CSC 501 Semantics of Programming Languages

CS4215 Programming Language Implementation. Martin Henz

Constructive Coherent Translation of Propositional Logic

Towards a Logical Reconstruction of Relational Database Theory

Logic and its Applications

On Agda JAIST/AIST WS CVS/AIST Yoshiki Kinoshita, Yoriyuki Yamagata. Agenda

LOGIC AND DISCRETE MATHEMATICS

Automata Theory for Reasoning about Actions

Propositional Calculus. CS 270: Mathematical Foundations of Computer Science Jeremy Johnson

ACLT: Algebra, Categories, Logic in Topology - Grothendieck's generalized topological spaces (toposes)

Lecture 5: Formation Tree and Parsing Algorithm

Consider a description of arithmetic. It includes two equations that define the structural types of digit and operator:

[Ch 6] Set Theory. 1. Basic Concepts and Definitions. 400 lecture note #4. 1) Basics

Meeting13:Denotations

Math 5593 Linear Programming Lecture Notes

Handout 9: Imperative Programs and State

Essential Gringo (Draft)

CS Bootcamp Boolean Logic Autumn 2015 A B A B T T T T F F F T F F F F T T T T F T F T T F F F

RIF RuleML Rosetta Ring: Round-Tripping the Dlex Subset of Datalog RuleML and RIF-Core

Lamé s Theorem. Strings. Recursively Defined Sets and Structures. Recursively Defined Sets and Structures

Propositional Logic Formal Syntax and Semantics. Computability and Logic

Set and Set Operations

Generell Topologi. Richard Williamson. May 27, 2013

1 Elementary number theory

XI International PhD Workshop OWD 2009, October Fuzzy Sets as Metasets

However, this is not always true! For example, this fails if both A and B are closed and unbounded (find an example).

Safe Stratified Datalog With Integer Order Does not Have Syntax

Chapter Summary. Recursively defined Functions. Recursively defined sets and Structures Structural Induction

Automated Reasoning. Natural Deduction in First-Order Logic

Module 6. Knowledge Representation and Logic (First Order Logic) Version 2 CSE IIT, Kharagpur

Lecture 4. First order logic is a formal notation for mathematics which involves:

Semantic Forcing in Disjunctive Logic Programs

Semantic Subtyping. Alain Frisch (ENS Paris) Giuseppe Castagna (ENS Paris) Véronique Benzaken (LRI U Paris Sud)

Logic as a framework for NL semantics. Outline. Syntax of FOL [1] Semantic Theory Type Theory

A Knowledge Compilation Technique for ALC Tboxes

Basic Elements of Logical Graphs

LTCS Report. Concept Descriptions with Set Constraints and Cardinality Constraints. Franz Baader. LTCS-Report 17-02

CS4215 Programming Language Implementation. Martin Henz

Meeting14:Denotations

Point-Set Topology 1. TOPOLOGICAL SPACES AND CONTINUOUS FUNCTIONS

This is already grossly inconvenient in present formalisms. Why do we want to make this convenient? GENERAL GOALS

Transcription:

Chapter 3: Propositional Languages We define here a general notion of a propositional language. We show how to obtain, as specific cases, various languages for propositional classical logic and some non-classical logics. We assume the following : All propositional languages contain a set of variables V AR, which elements are denoted by a, b, c,... with indices, if necessary. 1

All propositional languages share the general way their sets of formulas are formed. We distinguish one propositional language from the other is the choice of its set of propositional connectives. We adopt a notation L CON, where CON stands for the set of connectives. We use a notation when the set of connectives is fixed. L 2

For example, the language L { } denotes a propositional language with only one connective. The language L {, } denotes that a language with two connectives and adopted as propositional connectives. Remember: any formal language deals with symbols only and is also called a symbolic language. 3

Symbols for connectives do have intuitive meaning. Semantics is a formal meaning of the connectives and is defined separately. One language can have many semantics. Different logics can share the same language. For example the language L {,,, } is used as a propositional language of classical and intuitionistic logics, some many- valued logics, and is extended to the language of modal logics. 4

Several languages can share the same semantics. The classical propositional logic is the best example of such situation. Due to functional dependency of classical logical connectives the languages: L { }, L { }, L { }, L {,,, }, L {,,,, }, L { }, L { } all share the same semantics characteristic for classical propositional logic. The connectives have well established common names and readings, even if their semantic can differ. 5

We use names negation, conjunction, disjunction and implication for,,,, respectively. The connective is called alternative negation and A B reads: not both A and B. The connective is called joint negation and A B reads: neither A nor B. 6

Other most common propositional connectives are modal connectives of possibility and necessity. Standard modal symbols are for necessity and for possibility. We will also use symbols C and I for modal connectives of possibility and necessity, respectively. The formula CA, or A reads: it is possible that A or A is possible and the formula IA, or A reads: it is necessary that A or A is necessary. The motivation for notation C and I arises from topological interpretation of modal S4 and S5 logics. 7

In topology C is a symbol for a set closure operation, hence CA means a closure of the set A I b is a symbol for a set interior operation and IA denotes an interior of the set A. Modal logics extend the classical logic. A modal logic language is for example L {C,I,,,, } or L {,,,,, }.

Knowledge logics also extend the classical logic by adding a new knowledge connective denoted by K. T A formula KA reads: it is known that A or A is known. A language of a knowledge logic is for example L { K,,,, }. 8

Autoepistemic logics extend classical logic by adding a believe connective, often denoted by B. The formula BA reads:. it is believed that A A language of an Autoepistemic logic is for example L { B,,,, }. 9

Temporal logics also extend classical logic by adding temporal connectives. Some of temporal connectives are: F, P, G, and H. Intuitive meanings are: F A reads A is true at some future time, P A reads A was true at some past time, GA reads A will be true at all future times, and HA reads A has always been true in the past. It is possible to create connectives with more then one or two arguments. or two argu- We consider here only one ment connectives. 10

Propositional Languages Formal definitions A propositional language is a pair L = (A, F), where A, F are called the alphabet and a set of formulas,. Alphabet is a set A = V AR CON P AR, VAR, CON, PAR are all disjoint sets and VAR, CON are non-empty sets. 11

VAR is a countably infinite set, called a set of propositional variables. We denote elements of VAR by a, b, c,... etc, (with indices if necessary). The set CON is a finite set of logical connectives. We assume that CON a non empty set, what means that there is a logical connective. We denote the language L with the set of connectives CON by L CON. 12

PAR is a set of auxiliary symbols. This set may be empty (for example in case of Polish Notation). We assume here that it contains two parenthesis, i.e. P AR = {(, )}. We also assume that the set CON of logical connectives of the language L CON = (A, F) connec- contains only unary and binary tives. We write : CON = C 1 C 2 13

C 1 is the set of all unary connectives, C 2 is called the set of all binary connectives of the language L CON. The set F of all formulas of a propositional language L CON is build recursively from the signs of the alphabet A as follows. A is the smallest set built from the signs of the alphabet, such that: (1) V AR F (2) If A F, C 1, then A F. (3) If A, B F, C 2 i.e is a two argument connective, then (A B) F. 14

Propositional variables are formulas and they are called atomic formulas. is called a main connective of the formula A F. A is called its direct sub-formula of A. is called a main connective of the formula (A B) F. A, B are called direct sub-formulas of (A B). The set F is often called also a set of all well formed formulas (wff) of the language L. 15

1. Main connective of (a Nb) is. a, N b are direct sub-formulas. 2. Main connective of N(a b) is N. (a b) is the direct sub-formula. 3. Main connective of (a b) is. (a b) is the direct sub-formula. 4. Main connective of ( a (a b)) is. a, (a b)) are direct sub-formulas. 16

Sub-formula definition is defined in two steps: Step 1 For any formulas A and B, A is a proper sub-formula of B if there is sequence of formulas, beginning with A, ending with B, and in which each term is a direct sub-formula of the next. Step 2 A sub-formula of a given formula A is any proper sub-formula of A, or A itself. The formula ( a (a b)) has direct subformulas: a and (a b). The direct sub-formulas of a and (a b) are a and (a b), respectively. 17

The direct sub-formulas of a, (a b), are a, b. END of the process. The set of all proper sub-formulas ( a (a b)) is of S = { a, (a b), a, (a b), b}. The set of all sub-formulas ( a (a b)) is of S {( a (a b))}. 18

A degree of a formula is number of occurrences of logical connectives in the formula. The degree of ( a (a b)) is 4. The degree of (a b)) is 2. The degree of a is 1. The degree of a is 0. Observation: the degree of any proper subformula of A must be one less than the degree of A. This is the central fact upon which mathematical induction arguments are based. 19

Proofs of properties formulas are usually carried by mathematical induction on their degrees.

Exercise 1 Consider a language L = L {,,,,, } and a set S of formulas: S = { a (a b), ( ( a (a b))), (a (a b))} Determine which of the formulas from S is, and which is not well formed formulas of L. If a formula is correct, determine its connective. main If it is not correct, write the corrected formula and then determine its main connective. 20

If a formula is correct, write what it says. If it is not correct, write the corrected formula and then write what it says. Solution 1. The formula a (a b) is not a well formed formula. 21

The correct formula is ( a (a b)). The main connective is. The correct formula says: If negation of a is possible, then we have a or b. Another correct formula is ( a (a b)). The main connective is. The correct formula says: It is possible that not a implies a or b. 22

Exercise 2 Given a set S of formulas: S = {((a b) a), ( a a)}. Define a formal language L to which all formulas in S belong, i.e. a language determined by the set S. Solution All connectives appearing in the formulas in S are:,, and. The language is L {,,, }. 23

Exercise 3 For a given formula: ((a a) b). Determine its degree. Write down all its sub-formulas. Solution The degree is 4. All sub-formulas are: ((a a) b), ((a a) b), (a a), a, b, a. 24