Formal Logic and Deduction Systems

Similar documents
The Curry-Howard Isomorphism

Classical First-Order Logic

Classical First-Order Logic

Beyond First-Order Logic

The Calculus of Computation: Decision Procedures with Applications to Verification. Part I: FOUNDATIONS. by Aaron Bradley Zohar Manna

Overview, cont. Overview, cont. Logistics. Optional Reference #1. Optional Reference #2. Workload and Grading

CHAPTER 4 CLASSICAL PROPOSITIONAL SEMANTICS

15414/614 Optional Lecture 1: Propositional Logic

CS156: The Calculus of Computation

Natural Deduction for Propositional Logic

CSE507. Course Introduction. Computer-Aided Reasoning for Software. Emina Torlak

02 Propositional Logic

a. ~p : if p is T, then ~p is F, and vice versa

Type Systems. Lecture 9: Classical Logic. Neel Krishnaswami University of Cambridge

CHAPTER 11. Introduction to Intuitionistic Logic

Propositions and Proofs

Learning Goals of CS245 Logic and Computation

A Structuralist Account of Logic

AN ALTERNATIVE NATURAL DEDUCTION FOR THE INTUITIONISTIC PROPOSITIONAL LOGIC

HoTT seminar organization

Advanced Topics in LP and FP

Computer-Checked Meta-Logic

Automated Program Verification and Testing 15414/15614 Fall 2016 Lecture 2: Propositional Logic

SEMANTICS OF INTUITIONISTIC PROPOSITIONAL LOGIC: HEYTING ALGEBRAS AND KRIPKE MODELS

Propositions as Types

CS156: The Calculus of Computation Zohar Manna Autumn 2008

Forcing-based cut-elimination for Gentzen-style intuitionistic sequent calculus

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

Logic: Propositional Logic (Part I)

MAI0203 Lecture 7: Inference and Predicate Calculus

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

CSE507. Introduction. Computer-Aided Reasoning for Software. Emina Torlak courses.cs.washington.edu/courses/cse507/17wi/

Mathematical Logic. Introduction to Reasoning and Automated Reasoning. Hilbert-style Propositional Reasoning. Chiara Ghidini. FBK-IRST, Trento, Italy

Artificial Intelligence Knowledge Representation I

Propositional Logics and their Algebraic Equivalents

PL: Truth Trees. Handout Truth Trees: The Setup

Deduction by Daniel Bonevac. Chapter 3 Truth Trees

CS Lecture 19: Logic To Truth through Proof. Prof. Clarkson Fall Today s music: Theme from Sherlock

Logic for Computer Science - Week 4 Natural Deduction

Chapter 4: Classical Propositional Semantics

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

cse371/mat371 LOGIC Professor Anita Wasilewska Fall 2018

Teaching Natural Deduction as a Subversive Activity

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

Warm-Up Problem. Write a Resolution Proof for. Res 1/32

Implementing Proof Systems for the Intuitionistic Propositional Logic

Chapter 11: Automated Proof Systems

First-Order Logic First-Order Theories. Roopsha Samanta. Partly based on slides by Aaron Bradley and Isil Dillig

On Modal Logics of Partial Recursive Functions

Lecture Notes on Combinatory Modal Logic

A Strong Relevant Logic Model of Epistemic Processes in Scientific Discovery

Lecture 2. Logic Compound Statements Conditional Statements Valid & Invalid Arguments Digital Logic Circuits. Reading (Epp s textbook)

The semantics of propositional logic

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

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

Lecture Notes on The Curry-Howard Isomorphism

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

What is logic, the topic of this course? There are at least two answers to that question.

Introduction to Logic in Computer Science: Autumn 2006

Logical Preliminaries

Description Logics. Deduction in Propositional Logic. franconi. Enrico Franconi

COMP9414: Artificial Intelligence Propositional Logic: Automated Reasoning

Warm-Up Problem. Is the following true or false? 1/35

INF3170 Logikk Spring Homework #8 For Friday, March 18

BETWEEN THE LOGIC OF PARMENIDES AND THE LOGIC OF LIAR

Propositional natural deduction

An Introduction to Proof Theory

The faithfulness of atomic polymorphism

Chapter 11: Automated Proof Systems (1)

Structuring Logic with Sequent Calculus

Classical Propositional Logic

Philosophy of Mathematics Intuitionism

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

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

On the Complexity of the Reflected Logic of Proofs

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

CSE 20: Discrete Mathematics

COMP2411 Lecture 6: Soundness and Completeness. Reading: Huth and Ryan, Sections 1.4

Description Logics. Foundations of Propositional Logic. franconi. Enrico Franconi

cse541 LOGIC FOR COMPUTER SCIENCE

Extended Abstract: Reconsidering Intuitionistic Duality

Part Two: The Basic Components of the SOFL Specification Language

Example. Lemma. Proof Sketch. 1 let A be a formula that expresses that node t is reachable from s

Introduction to Metalogic

Chapter 2: Introduction to Propositional Logic

Motivation. CS389L: Automated Logical Reasoning. Lecture 10: Overview of First-Order Theories. Signature and Axioms of First-Order Theory

COMP 2600: Formal Methods for Software Engineeing

Harvard School of Engineering and Applied Sciences CS 152: Programming Languages

1.3 Propositional Equivalences

AI Principles, Semester 2, Week 2, Lecture 5 Propositional Logic and Predicate Logic

Propositional and Predicate Logic - V

Lecture Notes on Constructive Logic: Overview

Model Theory MARIA MANZANO. University of Salamanca, Spain. Translated by RUY J. G. B. DE QUEIROZ

Mathematical Logic Propositional Logic - Tableaux*

Propositional logic. Programming and Modal Logic

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

Propositional Logic Arguments (5A) Young W. Lim 2/23/17

Deductive Systems. Lecture - 3

Lecture Notes on Cut Elimination

Rasiowa-Sikorski proof system for the non-fregean sentential logic SCI

Transcription:

Formal Logic and Deduction Systems Software Formal Verification Maria João Frade Departmento de Informática Universidade do Minho 2008/2009 Maria João Frade (DI-UM) Formal Logic and Deduction Systems MFES 2008/09 1 / 9

What is a (formal) logic? Logic is defined as the study of the principles of reasoning. One of its branches is symbolic logic, that studies formal logic. A formal logic is a language equipped with rules for deducing the truth of one sentence from that of another. A logic consists of A logical language in which (well-formed) sentences are expressed. A semantics that distinguishes the valid sentences from the refutable ones. A proof system for constructing arguments justifying valid sentences. Examples: propositional logic, first-order logic, higher-order logic, and modal logic. Maria João Frade (DI-UM) Formal Logic and Deduction Systems MFES 2008/09 2 / 9

What is a logical language? A logical language consists of logical symbols whose interpretations are fixed non-logical symbols whose interpretations vary These symbols are combined together to form well-formed formulas. Maria João Frade (DI-UM) Formal Logic and Deduction Systems MFES 2008/09 3 / 9

Logic and computer science Logic and computer science share a symbiotic relationship Logic provides language and methods for the study of theoretical computer science. Computers provide a concrete setting for the implementation of logic. Formal logic makes it possible to calculate consequences at the symbolic level, so computers can be used to automate such symbolic calculations. Moreover, logic can be used to model the situations we encounter as computer science professionals, in such a way that we can reason about them formally. Maria João Frade (DI-UM) Formal Logic and Deduction Systems MFES 2008/09 4 / 9

Classical logic versus intuitionistic logic The classical understanding of logic is based on the notion of truth. The truth of a statement is absolute and independent of any reasoning, understanding, or action. Statements are either true or false. ( false not true ) tertium non datur principle A A must hold no matter what the meaning of A is. Intuitionistic logic is a branch of formal logic that rejects this guiding principle. A statement A is true if we can prove it, or is false if we can show that if we have a proof of A we get a contradiction. One judgements about a statement are based on the existence of a proof or construction of that statement. To show A A one have to show A or A. If neither of these can be shown, then the putative truth of the disjunction has no justification. Maria João Frade (DI-UM) Formal Logic and Deduction Systems MFES 2008/09 5 / 9

Classical logic versus intuitionistic logic Much of standard mathematics can be done within the framework of intuitionistic logic, but the task is very difficult, so mathematicians use methods of classical logic (as proofs by contradiction). However the philosophy behind intuitionistic logic is appealing for a computer scientist. For an intuitionist, a mathematical object (such as the solution of an equation) does not exist unless a finite construction (algorithm) can be given for that object. Maria João Frade (DI-UM) Formal Logic and Deduction Systems MFES 2008/09 6 / 9

Course overview Classical Propositional Logic Classical First-Order Logic Higher-Order Logic Induction Intuitionism and the Curry-Howard Isomorphism First-Order Theories Decision Procedures for Satisfiability... The Coq proof-assistant Maria João Frade (DI-UM) Formal Logic and Deduction Systems MFES 2008/09 7 / 9

Bibliography A First Course in Logic: An Introduction to Model Theory, Proof Theory, Computability, and Complexity Shawn Hedman Oxford (2004) Michael Huth & Mark Ryan Logic in Computer Science: Modelling and Reasoning About Systems Cambridge University Press; 2nd edition (2004). Aaron R. Bradley & Zohar Manna The Calculus of Computation: Decision Procedures with Applications to Verification Springer (2007) Maria João Frade (DI-UM) Formal Logic and Deduction Systems MFES 2008/09 8 / 9

Bibliography Morten Heine Sørensen & Pawel Urzyczyn Lectures on the Curry-Howard Isomorphism Studies in Logic and the Foundations of Mathematics, 149. Elsevier (2004) http://2020ok.com/books/35/lectures-on-the-curry-howard-isomorphism-37235.htm Yves Bertot & Pierre Castéran Interactive Theorem Proving and Program Development Coq Art: The Calculus of Inductive Constructions Springer (2004) The Coq proof assistant The latest version: Coq 8.2 http://coq.inria.fr/ Maria João Frade (DI-UM) Formal Logic and Deduction Systems MFES 2008/09 9 / 9