Math 267a - Propositional Proof Complexity. Lecture #1: 14 January 2002

Similar documents
Scribe Notes. Proof Complexity. Math 267A - UCSD, Winter 2002 Instructor: Sam Buss

Lecture 11: Measuring the Complexity of Proofs

Technische Universität München Department of Computer Science. Joint Advanced Students School 2009 Propositional Proof Complexity.

Logical Closure Properties of Propositional Proof Systems

02 Propositional Logic

Examples: P: it is not the case that P. P Q: P or Q P Q: P implies Q (if P then Q) Typical formula:

Advanced Topics in LP and FP

Logic. Propositional Logic: Syntax

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

Propositional Logic: Models and Proofs

Comp487/587 - Boolean Formulas

Department of Computer Science University at Albany, State University of New York Solutions to Sample Discrete Mathematics Examination II (Fall 2007)

First Order Logic: Syntax and Semantics

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

Propositional Logic: Syntax

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

Propositional and Predicate Logic - V

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

The Modal Logic of Pure Provability

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

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

Tecniche di Verifica. Introduction to Propositional Logic

Introduction to Metalogic

Logic. Definition [1] A logic is a formal language that comes with rules for deducing the truth of one proposition from the truth of another.

Logic for Computer Science - Week 5 Natural Deduction

Section 1.2: Propositional Logic

Automated Reasoning Lecture 2: Propositional Logic and Natural Deduction

Lecture 7. Logic. Section1: Statement Logic.

All psychiatrists are doctors All doctors are college graduates All psychiatrists are college graduates

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

Logic. Propositional Logic: Syntax. Wffs

Logic: The Big Picture

First-Order Logic. 1 Syntax. Domain of Discourse. FO Vocabulary. Terms

Part I: Propositional Calculus

CHAPTER 11. Introduction to Intuitionistic Logic

Packet #1: Logic & Proofs. Applied Discrete Mathematics

n logical not (negation) n logical or (disjunction) n logical and (conjunction) n logical exclusive or n logical implication (conditional)

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

Chapter 4: Classical Propositional Semantics

An Introduction to Proof Complexity, Part II.

CS589 Principles of DB Systems Fall 2008 Lecture 4e: Logic (Model-theoretic view of a DB) Lois Delcambre

INF3170 Logikk Spring Homework #8 For Friday, March 18

15414/614 Optional Lecture 1: Propositional Logic

An Introduction to Modal Logic V

An Introduction to Proof Theory

Propositional Logics and their Algebraic Equivalents

10 Propositional logic

1. Propositional Calculus

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

Logic, Sets, and Proofs

Propositional Logic Language

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

CHAPTER 4 CLASSICAL PROPOSITIONAL SEMANTICS

185.A09 Advanced Mathematical Logic

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

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

Logical Closure Properties of Propositional Proof Systems

Bound and Free Variables. Theorems and Proofs. More valid formulas involving quantifiers:

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

cse 311: foundations of computing Fall 2015 Lecture 6: Predicate Logic, Logical Inference

Todays programme: Propositional Logic. Program Fac. Program Specification

Propositional Logic: Syntax

Herbrand Theorem, Equality, and Compactness

An Introduction to Modal Logic III

Review CHAPTER. 2.1 Definitions in Chapter Sample Exam Questions. 2.1 Set; Element; Member; Universal Set Partition. 2.

Forcing in Lukasiewicz logic

CS 2740 Knowledge Representation. Lecture 4. Propositional logic. CS 2740 Knowledge Representation. Administration

CONTENTS. Appendix C: Gothic Alphabet 109

COMP 182 Algorithmic Thinking. Proofs. Luay Nakhleh Computer Science Rice University

Propositional Logic. Fall () Propositional Logic Fall / 30

Propositional and Predicate Logic - II

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

23.1 Gödel Numberings and Diagonalization

Math 160A: Soundness and Completeness for Sentential Logic

EECS 1028 M: Discrete Mathematics for Engineers

Chapter 1 Elementary Logic

Motivation. From Propositions To Fuzzy Logic and Rules. Propositional Logic What is a proposition anyway? Outline

Filtrations and Basic Proof Theory Notes for Lecture 5

REDUCTION OF HILBERT-TYPE PROOF SYSTEMS TO THE IF-THEN-ELSE EQUATIONAL LOGIC. 1. Introduction

Natural Deduction for Propositional Logic

Propositional Logic. CS 3234: Logic and Formal Systems. Martin Henz and Aquinas Hobor. August 26, Generated on Tuesday 31 August, 2010, 16:54

Basic Algebraic Logic

PREDICATE LOGIC: UNDECIDABILITY AND INCOMPLETENESS HUTH AND RYAN 2.5, SUPPLEMENTARY NOTES 2

First Order Logic (FOL) 1 znj/dm2017

Propositional Logic. Spring Propositional Logic Spring / 32

Gödel s Completeness Theorem

On the Complexity of the Reflected Logic of Proofs

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

Proseminar on Semantic Theory Fall 2013 Ling 720 Propositional Logic: Syntax and Natural Deduction 1

MATH 1090 Problem Set #3 Solutions March York University

Learning Goals of CS245 Logic and Computation

Part 1: Propositional Logic

Propositional Logic: Deductive Proof & Natural Deduction Part 1

The semantics of propositional logic

Conjunction: p q is true if both p, q are true, and false if at least one of p, q is false. The truth table for conjunction is as follows.

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

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

Computational Logic Lecture 3. Logical Entailment. Michael Genesereth Autumn Logical Reasoning

Lecture 2: Syntax. January 24, 2018

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

Transcription:

Math 267a - Propositional Proof Complexity Lecture #1: 14 January 2002 Lecturer: Sam Buss Scribe Notes by: Robert Ellis 1 Introduction to Propositional Logic 1.1 Symbols and Definitions The language of propositional logic consists of connectives, propositional variables, parentheses and formulas, shown in the table below. The meanings of the symbols are given by their corresponding connectives,,, variables x 1,x 2,... parentheses (, ) formulas (φ ψ), (φ ψ), (φ ψ), ( φ), etc. Table 1: Components of Statements of Propositional Logic truth tables. The ( logical or ), ( logical and ) and ( logical implication ) operators are binary, while the ( logical negation ) operator is unary. The truth tables for these operators are constructed by exhaustively assigning all possible truth values to the variables and listing the result defined by the operator. x 1 x 2 x 1 x 2 T T T T F T F T T F F F x 1 x 2 x 1 x 2 T T T T F F F T F F F F x 1 x 2 x 1 x 2 T T T T F F F T T F F T x 1 x 1 T F F T A truth assignment τ : {x 1,x 2,...} {T,F} assigns logical truth values to the variables. A truth assignment τ extends to a truth assignment τ : {φ} {T,F}on the set of formulas {φ} by assigning truth values to variables in the formula and determining the truth of the formula by invoking the definitions of the connectives. The truth of a compound formula depends on the truth of its constituents. For example, { T if τ(φ)=forτ(ψ)=t τ(φ ψ) = F otherwise. 1

Two other common symbols, and, are the exclusive or and nand binary operators expressible in terms of the first four symbols. Specifically, x 1 x 2 := (x 1 x 2 ) and x 1 x 2 := ((x 1 x 2 ) (x 1 x 2 )). 1.2 SAT, TAUT, P and NP Statements in propositional logic, or predicates, which are of special interest are those for which there exists a truth assignment for which the predicate is true, and those for which the predicate is true for all truth assignments. Definition The predicate φ is a tautology if for all truth assignments τ, τ(φ) =T. Definition The predicate φ is satisfiable if there exists a truth assignment τ such that τ(φ) =T. Based on their definitions, tautologies and satisfiable predicates are related as follows. Fact If φ is a tautology then ( φ) is not satisfiable. Definition TAUT is the set of all tautologies. Definition SAT is the set of all satisfiable formulas. The problem of recognizing a member of SAT is fundamental in computational complexity. P is defined to be the set of all predicates that are polynomial time recognizable. In this context, a predicate is a decision procedure yielding either T or F. Polynomial time recognizable means there exists an algorithm implementing the decision procedure which is bounded in the number of steps by a polynomial in the size of the input. Example Let WFF, the set of well-formed formulas, be defined as the set of strings which are validly formed formulas build on connectives, parentheses and variables. Then the predicate WFF is a member of P. Definition NP is the set of predicates Q which can be expressed as Q(x) =( y, y <p( x ))R(x, y), where p is a polynomial, x is the length of x viewed as a string, y is the witness to x, and R is a polynomial time algorithm which verifies that y is a witness to x. ThusQ(x) = T if and only if a witness y exists such that the time property R(x, y) holds. To show that SAT is in NP, simply express it in the above form; e.g., SAT(X) ( y, ( y x ))TRU(x, y), where TRU(x, y) is the algorithm which verifies that y encodes a truth assignment which satisfies x. We may take y to be weakly less than x in length, because it can simply encode truth values of the variables in the formula x as binary digits. Homework 1 Turn in a proof of P = NP or P NP for $1,000,000 (from the Clay Mathematics Institute) and an A+. 2

2 Propositional Proof Systems One purpose of propositional proof systems is to provide evidence of the membership of a formula φ in the set of tautologies TAUT. Of particular interest is the size of the proof of a tautology. 2.1 Truth Tables Truth tables provide straightforward but lengthy verifications of tautologies. The proof of a tautology proceeds by exhaustively writing down all 2 n truth assignments for a predicate in n variables, and resolving the truth in each case by the logical rules. The written-out truth table is the actual proof. A proof of the tautology A (B A) is given by the following table. A B B A A (B A) T T T T T F T T F T F T F F T T We can easily obtain an estimate for the size of a truth table proof for a tautology φ. Let p be the number of distinct variables, and let m be the total number of unary or binary logical operators. The the truth table has approximately m2 p =2 O(p) entries. The size of such a table for p = 100 would be at least 1000 times the age of the universe in nanoseconds. The exponential growth rate of the size of the truth table makes this kind of proof infeasible for even relatively small numbers of variables. Growth rates like 2 n,2 ɛn and 2 nɛ are all too big in this sense. We prefer growth rates like n, n log n, n 2 and n 3, which are feasible for large values of n. 2.2 Frege Proof Systems A Frege Proof System consists of axioms, substitution rules and a rule of inference from which all tautologies can be proved in a much more tractable form that that of truth tables. Informally, a proof of a formula φ consists of a sequence of formulas in which each step is either an axiom, a substitution of a previous step, or derived by inference, and the last step is φ. 2.2.1 Proof System Components We formalize these notions in the following definitions. Definition The schematic axiom of a Frege proof system are a list of tautologies called schematic tautologies which may be used as the starting point of a Frege proof. The list of schematic tautologies in a common Frege proof system, which allows any tautology to be proved, appears in Table 2. Here, A, B and C are variables, and for well-definedness of associativity we adopt the shorthand φ ψ χ := φ (ψ χ). 3

A (B A) A B B (A B) (A B C) (A C) A B A A A B A B A B B A B (A B) (A B) A (A C) (B C) (A B C) A A Table 2: Schematic Tautologies for a Frege proof system Definition A schematic substitution σ is a mapping σ : V WFF from a set V {x 1,x 2,...} of variables to the set of well-formed formulas, written by where φ i = σ(x i )=x i σ. σ =(x 1 /φ 1,...,x k /φ k ), Informally, a schematic substitution σ replaces a variable x i with some formula φ i. Definition Aσ is defined to be the result of replacing (simultaneously) each occurrence of x i in the formula A by x i σ = σ(x i ). Example Let A = x 1 x 2 and let σ =(x 1 /(x 1 x 2 ),x 2 /x 1 ). Then Fact If φ TAUT, then for all σ, φσ TAUT. Aσ =(x 1 x 2 ) x 1. Definition The schematic rule of inference called modus ponens, or MP, is represented by x 1 x 1 x 2 x 2, and is invoked by confirming that x 2 is true whenever x 1 is true and x 1 implies x 2. Definition A schematic inference, denoted A 1,..., A k B, means that for all σ, ifa 1 σ,...,a k σ have been proved, then Bσ can be inferred. Taking k =0 yields a schematic axiom. The above definitions are used to develop a schematic proof that some formula φ is a tautology. We formalize this type of Frege proof as follows. Definition An F 0 -proof is a sequence of formulas φ 1,φ 2,...,φ k such that each φ i is either an axiom or is inferred by modus ponens from some φ j and φ l, for j, l < i. It is called a proof of φ k. 4

2.2.2 Proof System Characteristics In the Frege proof system just described, the properties of soundness and completeness are highly desirable. Soundness means that no proof exists for a formula that is not a tautology. Completeness means that every tautology has a corresponding proof. We introduce the symbolism F0 φ to denote that F 0 is a proof of φ, and use = φ to denote φ TAUT. Theorem 1 (Soundness) If F 0 φ then φ TAUT. Proof The proof is by induction on the number of steps in the F 0 proof. The proof starts with a schematic axiom which is a tautology, every step in the proof by substitution is a tautology, and MP preserves tautologies, and so φ is a tautology. Theorem 2 (Completeness) If φ TAUT, then F0 φ for some proof F 0. Proof The proof of completeness for this Frege proof system is deferred until Lecture #2. Generally, we require an expanded notion of soundness and completeness than what is outlined above. In particular, we may wish to prove a tautology in a proof system starting from an extra set of axiomatically tautological formulas. Definition Let Γ be a set of formulas. Then Γ = φ provided that for all truth assignments τ, if for all γ Γ we have τ (γ) = T, then τ(φ) = T. We call Γ = φ a tautological implication. The corresponding version of a F 0 -proof is as follows. Definition Let Γ be a set of formulas. Then Γ F0 φ provided there exists a sequence φ 1,...,φ k =φ such that each φ i is in Γ or is an (instance of an) axiom or is inferred by MP. We call the sequence an F 0 -proof with hypotheses. We would certainly like to know how to deal with implicational tautologies when Γ is an infinite set. Fortunately, a compactness result simplifies things. Theorem 3 (Compactness of tautological implication) If Γ = φ, then there exists a finite subset Γ 0 Γ such that Γ 0 = φ. Proof The proof is left as an exercise. Proposition 4 (Derived substitution rule) 1. If F 0 A and σ is a substitution, then F0 Aσ. 2. If Γ F0 φ, then Γσ F0 φσ. Proof Part 1 proceeds by applying σ to the whole F 0 -proof. Start with the sequence φ 1,φ 2,...,φ k = A and replace φ i with φ i σ to obtain φ 1 σ, φ 2 σ,...,φ k σ =Aσ. Part 2 proceeds similarly. 5

Note that a double substitution into a schematic axiom, such as φ i replaced with φ i σ can be simplified to a single substitution. Define σ : x i x i σ = φ i, and τ : x i x i τ = ψ i. Then the double substitution (Aσ)τ) can be written as A(στ) since (στ) :x i φ i τ = x i στ. The implicational soundness and completeness theorems are as follows. Theorem 5 (Implicational soundness of F 0 ) If Γ F0 φ, then Γ = φ. Proof The proof proceeds by induction on the number of steps in the F 0 -proof. Theorem 6 (Implicational completeness of F 0 ) If Γ = φ, then Γ F0 φ. Proof The proof is deferred until Lecture #2. 6