Outline. Overview. Syntax Semantics. Introduction Hilbert Calculus Natural Deduction. 1 Introduction. 2 Language: Syntax and Semantics

Similar documents
Specification and Verification with Higher-Order Logic

Propositional Logic: Part II - Syntax & Proofs 0-0

02 Propositional Logic

An Introduction to Modal Logic III

Natural Deduction. Formal Methods in Verification of Computer Systems Jeremy Johnson

Advanced Topics in LP and FP

Propositional Logic: Deductive Proof & Natural Deduction Part 1

Chapter 11: Automated Proof Systems (1)

Theorem Proving beyond Deduction

Natural Deduction for Propositional Logic

Propositional Calculus - Hilbert system H Moonzoo Kim CS Division of EECS Dept. KAIST

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

Modal Logic XX. Yanjing Wang

Applied Logic. Lecture 1 - Propositional logic. Marcin Szczuka. Institute of Informatics, The University of Warsaw

Logic for Computer Science - Week 4 Natural Deduction

Overview. Knowledge-Based Agents. Introduction. COMP219: Artificial Intelligence. Lecture 19: Logic for KR

Nonclassical logics (Nichtklassische Logiken)

Chapter 11: Automated Proof Systems

Overview. I Review of natural deduction. I Soundness and completeness. I Semantics of propositional formulas. I Soundness proof. I Completeness proof.

Uniform Schemata for Proof Rules

Fundamentals of Logic

Propositional Logics and their Algebraic Equivalents

CHAPTER 10. Gentzen Style Proof Systems for Classical Logic

15414/614 Optional Lecture 1: Propositional Logic

03 Propositional Logic II

Hypersequent Calculi for some Intermediate Logics with Bounded Kripke Models

Propositional Calculus - Natural deduction Moonzoo Kim CS Dept. KAIST

Přednáška 12. Důkazové kalkuly Kalkul Hilbertova typu. 11/29/2006 Hilbertův kalkul 1

Propositional Logic Arguments (5A) Young W. Lim 10/11/16

On the Complexity of the Reflected Logic of Proofs

Semantics for Propositional Logic

185.A09 Advanced Mathematical Logic

Proper multi-type display calculi for classical and intuitionistic inquisitive logic

Propositional Logic: Syntax

Propositional Calculus - Hilbert system H Moonzoo Kim CS Dept. KAIST

Write your own Theorem Prover

Propositional Logic: Review

CHAPTER 11. Introduction to Intuitionistic Logic

Lecture 11: Measuring the Complexity of Proofs

First-Order Logic. Chapter Overview Syntax

Fundamentals of Software Engineering

Propositional and Predicate Logic - V

UNIVERSITY OF EAST ANGLIA. School of Mathematics UG End of Year Examination MATHEMATICAL LOGIC WITH ADVANCED TOPICS MTH-4D23

127: Lecture notes HT18. Week 3. D.I. Semantic and proof-theoretic approaches to consequence (LfP 1.5)

Propositional Logic Arguments (5A) Young W. Lim 11/8/16

cis32-ai lecture # 18 mon-3-apr-2006

Formal Methods for Java

Logic: The Big Picture

Notation for Logical Operators:

Fundamentals of Software Engineering

Propositional Calculus - Deductive Systems

3 Propositional Logic

First Order Logic: Syntax and Semantics

How to determine if a statement is true or false. Fuzzy logic deal with statements that are somewhat vague, such as: this paint is grey.

Propositional logic (revision) & semantic entailment. p. 1/34

Evaluation Driven Proof-Search in Natural Deduction Calculi for Intuitionistic Propositional Logic

A Schütte-Tait style cut-elimination proof for first-order Gödel logic

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

Logic for Computer Science - Week 5 Natural Deduction

Basic Algebraic Logic

Predicate Logic. Andreas Klappenecker

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

Formal Methods for Java

Deductive Systems. Lecture - 3

Intelligent Agents. First Order Logic. Ute Schmid. Cognitive Systems, Applied Computer Science, Bamberg University. last change: 19.

cse371/mat371 LOGIC Professor Anita Wasilewska Fall 2018

MAI0203 Lecture 7: Inference and Predicate Calculus

Principles of Knowledge Representation and Reasoning

A Weak Post s Theorem and the Deduction Theorem Retold

Inducing syntactic cut-elimination for indexed nested sequents

Knowledge base (KB) = set of sentences in a formal language Declarative approach to building an agent (or other system):

Chapter 3: Propositional Calculus: Deductive Systems. September 19, 2008

Mathematics for linguists

Mathematical Logic. Reasoning in First Order Logic. Chiara Ghidini. FBK-IRST, Trento, Italy

Nested Sequent Calculi for Normal Conditional Logics

1. Propositional Calculus

Intelligent Systems. Propositional Logic. Dieter Fensel and Dumitru Roman. Copyright 2008 STI INNSBRUCK

2. The Logic of Compound Statements Summary. Aaron Tan August 2017

Propositional Calculus - Soundness & Completeness of H

PHIL 50 - Introduction to Logic

Gödel s Completeness Theorem

Part 1: Propositional Logic

Manual of Logical Style

Every formula evaluates to either \true" or \false." To say that the value of (x = y) is true is to say that the value of the term x is the same as th

Logical Closure Properties of Propositional Proof Systems

Propositional Logic: Models and Proofs

Introduction to Intuitionistic Logic

Foundations of Artificial Intelligence

Foundations of Artificial Intelligence

First Order Logic: Syntax and Semantics

Positive provability logic

Propositional Logic Arguments (5B) Young W. Lim 11/30/16

Model Theory in the Univalent Foundations

Propositional Logic Arguments (5A) Young W. Lim 11/30/16

Artificial Intelligence. Propositional Logic. Copyright 2011 Dieter Fensel and Florian Fischer

General methods in proof theory for modal logic - Lecture 1

Methods of AI. Practice Session 7 Kai-Uwe Kühnberger Dec. 13 th, 2002

3. The Logic of Quantified Statements Summary. Aaron Tan August 2017

Propositional Logic: Logical Agents (Part I)

Transcription:

Introduction Arnd Poetzsch-Heffter Software Technology Group Fachbereich Informatik Technische Universität Kaiserslautern Sommersemester 2010 Arnd Poetzsch-Heffter ( Software Technology Group Fachbereich Informatik Introduction Technische Universität Kaiserslautern) Sommersemester 2010 1 / 24

Outline Introduction 1 Introduction Overview 2 Language: Syntax and Semantics Syntax Semantics 3 Proof Systems/Logical Calculi Introduction Hilbert Calculus Natural Deduction 4 Summary Arnd Poetzsch-Heffter ( Software Technology Group Fachbereich Informatik Introduction Technische Universität Kaiserslautern) Sommersemester 2010 2 / 24

Overview Introduction Overview Motivation Specifications: Models and properties How do we express/specify facts? What is a proof? What is a formal proof? How do we prove a specified fact? Why formal? What is the role of a theorem prover? Goals recapitulate logic introduce/review basic concepts Arnd Poetzsch-Heffter ( Software Technology Group Fachbereich Informatik Introduction Technische Universität Kaiserslautern) Sommersemester 2010 3 / 24

Outline Language: Syntax and Semantics 1 Introduction Overview 2 Language: Syntax and Semantics Syntax Semantics 3 Proof Systems/Logical Calculi Introduction Hilbert Calculus Natural Deduction 4 Summary Arnd Poetzsch-Heffter ( Software Technology Group Fachbereich Informatik Introduction Technische Universität Kaiserslautern) Sommersemester 2010 4 / 24

Syntax Language: Syntax and Semantics Syntax Aspects of syntax used to designate things and express facts terms and formulas are formed from variables and function symbols function symbols map a tupel of terms to another term constant symbols: no arguments constant can be seen as functions with zero arguments predicate symbols are considered as boolean functions set of variables Example (Natural Numbers) constant symbol: 0 function symbol suc : N N Arnd Poetzsch-Heffter ( Software Technology Group Fachbereich Informatik Introduction Technische Universität Kaiserslautern) Sommersemester 2010 5 / 24

Language: Syntax and Semantics Syntax of propositional logic Syntax Example (Symbols) V = {a,b,c,...} is a set of propositional variables two function symbols: and Example (Language) each P V is a formula if φ is a formula, then φ is a formula if φ and ψ are formulas, then φ ψ is a formula Arnd Poetzsch-Heffter ( Software Technology Group Fachbereich Informatik Introduction Technische Universität Kaiserslautern) Sommersemester 2010 6 / 24

Syntactic Sugar Language: Syntax and Semantics Syntax Purpose additions to the language that do not affect its expressiveness more practical way of description Example Abbreviations in Propositional Logic True denotes φ φ False denotes True φ ψ denotes ( φ) ψ φ ψ denotes (( φ) ( ψ)) φ ψ denotes ((φ ψ) (ψ φ)) Arnd Poetzsch-Heffter ( Software Technology Group Fachbereich Informatik Introduction Technische Universität Kaiserslautern) Sommersemester 2010 7 / 24

Semantics Language: Syntax and Semantics Semantics Purpose syntax only specifies the structure of terms and formulas symbols and terms are assigned a meaning variables are assigned a value in particular, propositional variables are assigned a truth value Bottom-Up Approach assignments give variables a value terms/formulas are evaluated based on the meaning of the function symbols Arnd Poetzsch-Heffter ( Software Technology Group Fachbereich Informatik Introduction Technische Universität Kaiserslautern) Sommersemester 2010 8 / 24

Language: Syntax and Semantics Interpretations/Structures Semantics Example (Assignment in Propositional Logic) A variable assignment in propositionan logic is a mapping I : V {true,false} Example (Denotation of Propositional Logic) The denotation V takes an assignment I and a formula and yiels a true or false: where if φ V : V(φ) = I(φ) V( φ) = f (V(φ)) V(φ ψ) = f (V(φ),V(ψ)) f false true true false f false true false true true true false true Arnd Poetzsch-Heffter ( Software Technology Group Fachbereich Informatik Introduction Technische Universität Kaiserslautern) Sommersemester 2010 9 / 24

Validity Language: Syntax and Semantics Semantics Definition (Validity of formulas in propositional logic) a formula φ is valid w.r.t. an assignment I if VIφ evaluates to true for all assigments I notation: = φ Example (Tautology in Propositional Logic) φ = a a (where a V ) is valid I(a) = false: V(a a) = true I(a) = true: V(a a) = true Arnd Poetzsch-Heffter ( Software Technology Group Fachbereich Informatik Introduction Technische Universität Kaiserslautern) Sommersemester 2010 10 / 24

Outline Proof Systems/Logical Calculi 1 Introduction Overview 2 Language: Syntax and Semantics Syntax Semantics 3 Proof Systems/Logical Calculi Introduction Hilbert Calculus Natural Deduction 4 Summary Arnd Poetzsch-Heffter ( Software Technology Group Fachbereich Informatik Introduction Technische Universität Kaiserslautern) Sommersemester 2010 11 / 24

Introduction Proof Systems/Logical Calculi Introduction General Concept purely syntactical manipulations based on designated transformation rules starting point: set of formulas, often a given set of axioms deriving new formulas by deduction rules from given formulas Γ φ is provable from Γ if φ can be obtained by a finite number of derivation steps assuming the formulas in Γ notation: Γ φ means φ is provable from Γ notation: φ means φ is provable from a given set of axioms Arnd Poetzsch-Heffter ( Software Technology Group Fachbereich Informatik Introduction Technische Universität Kaiserslautern) Sommersemester 2010 12 / 24

Proof System Styles Proof Systems/Logical Calculi Introduction Hilbert Style easy to understand hard to use Natural Deduction easy to use hard to understand... Arnd Poetzsch-Heffter ( Software Technology Group Fachbereich Informatik Introduction Technische Universität Kaiserslautern) Sommersemester 2010 13 / 24

Proof Systems/Logical Calculi Hilbert-Style Deduction Rules Hilbert Calculus Definition (Deduction Rule) deduction rule d is a n + 1-tuple φ 1 φ n ψ formulas φ 1...φ n, called premises of rule formula ψ, called conclusion of rule Arnd Poetzsch-Heffter ( Software Technology Group Fachbereich Informatik Introduction Technische Universität Kaiserslautern) Sommersemester 2010 14 / 24

Hilbert-Style Proofs Proof Systems/Logical Calculi Hilbert Calculus Definition (Proof) let D be a set of deduction rules, including the axioms as rules without premisses proofs in D are (natural) trees such that axioms are proofs if P 1,...,P n are proofs with roots φ 1...φ n and φ 1 φ n is in D, then ψ P 1 P n is a proof in D ψ can also be written in a line-oriented style Arnd Poetzsch-Heffter ( Software Technology Group Fachbereich Informatik Introduction Technische Universität Kaiserslautern) Sommersemester 2010 15 / 24

Proof Systems/Logical Calculi Hilbert-Style Deduction Rules Hilbert Calculus Axioms let Γ be a set of axioms, ψ Γ, then ψ is a proof axioms allow to construct trivial proofs Modus Ponens Rule example: φ ψ φ ψ if φ ψ and φ have already been proven, ψ can be deduced Arnd Poetzsch-Heffter ( Software Technology Group Fachbereich Informatik Introduction Technische Universität Kaiserslautern) Sommersemester 2010 16 / 24

Proof Example Proof Systems/Logical Calculi Hilbert Calculus Example (Hilbert Proof) language formed with the four proposition symbols P, Q, R, S axioms: P, Q, Q R, P (R S) P (R S) R S P S Q R R Q Arnd Poetzsch-Heffter ( Software Technology Group Fachbereich Informatik Introduction Technische Universität Kaiserslautern) Sommersemester 2010 17 / 24

Proof Systems/Logical Calculi Hilbert Calculus Hilbert Calculus for Propositional Logic Definition (Axioms of Propositional Logic) All instantiations of the following schemas: A (B A) (A (B C)) ((A B) (A C)) ( B A) (( B A) B) where A, B, C are arbitrary propositions Arnd Poetzsch-Heffter ( Software Technology Group Fachbereich Informatik Introduction Technische Universität Kaiserslautern) Sommersemester 2010 18 / 24

Natural Deduction Proof Systems/Logical Calculi Natural Deduction Motivation introducing a hypothesis is a natural step in a proof Hilbert proofs do not permit this directly can be only encoded by using proofs are much longer and not very natural Natural Deduction alternative definition where introduction of a hypothesis is a deduction rule deduction step can modify not only the proven propositions but also the assumptions Γ Arnd Poetzsch-Heffter ( Software Technology Group Fachbereich Informatik Introduction Technische Universität Kaiserslautern) Sommersemester 2010 19 / 24

Proof Systems/Logical Calculi Natural Deduction Rules Natural Deduction Definition (Natural Deduction Rule) deduction rule d is a n + 1-tuple Γ 1 φ 1 Γ n φ n Γ ψ pairs of Γ (set of formulas) and φ (formulas): sequents proof: tree of sequents with rule instantiations as nodes Arnd Poetzsch-Heffter ( Software Technology Group Fachbereich Informatik Introduction Technische Universität Kaiserslautern) Sommersemester 2010 20 / 24

Proof Systems/Logical Calculi Natural Deduction Rules Natural Deduction Natural Deduction Rules rich set of rules elimination rules eliminate a logical symbol from a premise introduction rules introduce a logical symbol into the conclusion reasoning from assumptions Arnd Poetzsch-Heffter ( Software Technology Group Fachbereich Informatik Introduction Technische Universität Kaiserslautern) Sommersemester 2010 21 / 24

Proof Systems/Logical Calculi Natural Deduction Rules Natural Deduction Definition (Natural Deduction Rules for Propositional Logic) -introduction -elimination -introduction -elimination Γ φ Γ φ ψ Γ ψ Γ φ ψ Γ φ ψ Γ,φ ξ Γ,ψ ξ Γ ξ Γ,φ ψ Γ φ ψ Γ φ ψ Γ ψ Γ φ Arnd Poetzsch-Heffter ( Software Technology Group Fachbereich Informatik Introduction Technische Universität Kaiserslautern) Sommersemester 2010 22 / 24

Outline Summary 1 Introduction Overview 2 Language: Syntax and Semantics Syntax Semantics 3 Proof Systems/Logical Calculi Introduction Hilbert Calculus Natural Deduction 4 Summary Arnd Poetzsch-Heffter ( Software Technology Group Fachbereich Informatik Introduction Technische Universität Kaiserslautern) Sommersemester 2010 23 / 24

Summary Summary Theorem-Proving Fundamentals syntax: symbols, terms, formulas semantics: (mathimacal structures,) variable assigments, denotations for terms and formulas proof system/(logical) calculus: axioms, deduction rules, proofs, theories Fundamental Principle of Logic: Establish truth by calculation (APH, 2010) Arnd Poetzsch-Heffter ( Software Technology Group Fachbereich Informatik Introduction Technische Universität Kaiserslautern) Sommersemester 2010 24 / 24