Some important properties Lectures of Prof. Doron Peled, Bar Ilan University.

Slides:



Advertisements
Similar presentations
Completeness and Expressiveness
Advertisements

Introduction to Proofs
PROOF BY CONTRADICTION
Lecture 3 Universal TM. Code of a DTM Consider a one-tape DTM M = (Q, Σ, Γ, δ, s). It can be encoded as follows: First, encode each state, each direction,
10 October 2006 Foundations of Logic and Constraint Programming 1 Unification ­An overview Need for Unification Ranked alfabeths and terms. Substitutions.
Possible World Semantics for Modal Logic
Inference and Reasoning. Basic Idea Given a set of statements, does a new statement logically follow from this. For example If an animal has wings and.
CS344 : Introduction to Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 9,10,11- Logic; Deduction Theorem 23/1/09 to 30/1/09.
Proofs, Recursion and Analysis of Algorithms Mathematical Structures for Computer Science Chapter 2 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesProofs,
CS621 : Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 12- Completeness Proof; Self References and Paradoxes 16 th August,
CSC 685 Logic Review. Logic: Modeling Human Reasoning syllogistic logic Syllogistic Logic (Aristotle). all/some X are/not Y Propositional Logic (Boole).
Formalizing Alpha: Soundness and Completeness Bram van Heuveln Dept. of Cognitive Science RPI.
TR1413: Discrete Mathematics For Computer Science Lecture 3: Formal approach to propositional logic.
Logic in Computer Science Transparency No Chapter 3 Propositional Logic 3.6. Propositional Resolution 3.7. Natural Deduction.
Logic: Connectives AND OR NOT P Q (P ^ Q) T F P Q (P v Q) T F P ~P T F
1 Indirect Argument: Contradiction and Contraposition.
1 More Applications of the Pumping Lemma. 2 The Pumping Lemma: Given a infinite regular language there exists an integer for any string with length we.
EE1J2 – Discrete Maths Lecture 5 Analysis of arguments (continued) More example proofs Formalisation of arguments in natural language Proof by contradiction.
1 Section 3.3 Mathematical Induction. 2 Technique used extensively to prove results about large variety of discrete objects Can only be used to prove.
Ofer Strichman, Technion Deciding Combined Theories.
Rosen 1.6. Approaches to Proofs Membership tables (similar to truth tables) Convert to a problem in propositional logic, prove, then convert back Use.
Mathematical Induction Assume that we are given an infinite supply of stamps of two different denominations, 3 cents and and 5 cents. Prove using mathematical.
Equational Reasoning Math Foundations of Computer Science.
Methods of Proof & Proof Strategies
Deciding a Combination of Theories - Decision Procedure - Changki pswlab Combination of Theories Daniel Kroening, Ofer Strichman Presented by Changki.
Introduction to Proofs
MATH 224 – Discrete Mathematics
CSE 311: Foundations of Computing Fall 2013 Lecture 8: More Proofs.
Marriage Problem Your the sovereign in a small kingdom. One of your jobs is to marry off the people in kingdom. There are three rules that apply.
Methods of Proof Lecture 3: Sep 9. This Lecture Now we have learnt the basics in logic. We are going to apply the logical rules in proving mathematical.
Advanced Topics in Propositional Logic Chapter 17 Language, Proof and Logic.
Great Theoretical Ideas in Computer Science about AWESOME Some Generating Functions Probability Infinity MATH Some Formal Logic (which is really.
Propositional Logic Dr. Rogelio Dávila Pérez Profesor-Investigador División de Posgrado Universidad Autónoma Guadalajara
CS621 : Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 12- Completeness Proof; Self References and Paradoxes 16 th August,
Copyright © Zeph Grunschlag, Induction Zeph Grunschlag.
Great Theoretical Ideas in Computer Science.
Propositional calculus
CS6133 Software Specification and Verification
1 Discrete Structures – CNS2300 Text Discrete Mathematics and Its Applications Kenneth H. Rosen (5 th Edition) Chapter 3 The Foundations: Logic and Proof,
Automated reasoning with propositional and predicate logics Spring 2007, Juris Vīksna.
MODAL LOGIC Mathematical Logic and Theorem Proving Pavithra Prabhakar.
CS 103 Discrete Structures Lecture 13 Induction and Recursion (1)
1/5/2016Hilbertův kalkul1 Lecture 12 Hilbert-like calculus.
1 Finite Model Theory Lecture 1: Overview and Background.
Inductive Proofs and Inductive Definitions Jim Skon.
Daniel Kroening and Ofer Strichman Decision Procedures An Algorithmic Point of View Deciding Combined Theories.
Lecture 21 Reducibility. Many-one reducibility For two sets A c Σ* and B c Γ*, A ≤ m B if there exists a Turing-computable function f: Σ* → Γ* such that.
Copyright © Zeph Grunschlag, Induction Zeph Grunschlag.
CS104:Discrete Structures Chapter 2: Proof Techniques.
Propositional Logic Rather than jumping right into FOL, we begin with propositional logic A logic involves: §Language (with a syntax) §Semantics §Proof.
CompSci 102 Discrete Math for Computer Science March 13, 2012 Prof. Rodger Slides modified from Rosen.
Section 1.7. Definitions A theorem is a statement that can be shown to be true using: definitions other theorems axioms (statements which are given as.
Foundations of Discrete Mathematics Chapter 1 By Dr. Dalia M. Gil, Ph.D.
1 Section 7.1 First-Order Predicate Calculus Predicate calculus studies the internal structure of sentences where subjects are applied to predicates existentially.
Chapter 5 With Question/Answer Animations 1. Chapter Summary Mathematical Induction - Sec 5.1 Strong Induction and Well-Ordering - Sec 5.2 Lecture 18.
Section 1.7. Section Summary Mathematical Proofs Forms of Theorems Direct Proofs Indirect Proofs Proof of the Contrapositive Proof by Contradiction.
CS 344 Artificial Intelligence By Prof: Pushpak Bhattacharya Class on 12/Feb/2007.
 2004 SDU Uniquely Decodable Code 1.Related Notions 2.Determining UDC 3.Kraft Inequality.
Chapter 3 The Real Numbers.
Great Theoretical Ideas in Computer Science
CSE 311: Foundations of Computing
CS 220: Discrete Structures and their Applications
MA/CSSE 474 More Math Review Theory of Computation
Computer Security: Art and Science, 2nd Edition
Elementary Number Theory & Proofs
Mathematical Induction
CS344 : Introduction to Artificial Intelligence
Agenda Proofs (Konsep Pembuktian) Direct Proofs & Counterexamples
CS 621 Artificial Intelligence Lecture /09/05 Prof
Presentation transcript:

Some important properties Lectures of Prof. Doron Peled, Bar Ilan University

We repeat some notation and definitions. An assignment z satisfies a formula if M PL (, z)=1 |== means that logically implies, i.e., each assignment that satisfies all the formulas in also satisfies. |-- means that we can prove from, i.e., there is a proof sequence that uses assumptions from, the axioms A1, A2, A3 and the proof rule MP, and ends with.

Substitution of variables by formulas Let be a WFF. A function s:Var WFF is called a substitution function. We define inductively a function subst(,s) that replaces in all the variables p i by s(p i ). Basis: subst(p i,s)=s(p i ), subst(F,s)=F, subst(T,s)=T. Closure: subst(( 1 /\ 2 ),s)=(subst( 1,s)/\subst( 2,s)) subst(( 1 \/ 2 ),s)=(subst( 1,s) subst( 2,s)) Etc.

For example s={, } subst((p 1 \/p 2 ),s)=(subst(p 1,s)\/subst(p 2,s))= ((p 3 \/p 4 )\/(p 5 \/p 6 )) Finite dependency of substitution: Let be a WFF with all its propositions inside {p 1,p 2,…,p n }. Let s 1 and s 2 be two substitution functions such that for each i, s 1 (p i )=s 2 (p i ). Then subst(,s 1 )=subst(,s 2 ).

Some propositions If is not satisfiable and s is a substitution, then subst(,s) is not satisfiable. If is a tautology and s is a substitution, then subst(,s) is a tautology.

Provability and satisifiability Lemma(*): |== iff { F} is unsatisfiable. One direction: from |==, any assignment that satisfies must also satisfy, thus cannot satisfy { F}. Conversely, if { F} is unsatisfiable, any assignment that satisfies cannot satisfy { F}, hence it must satisfy.

Consistency A set of formulas is consistent if |-/-F. A set is maximally consistent if it is consistent and for every formula, either or ( F) belongs to the set.

Consistency and satisfiability inconsistent unsatisfiable (=soundness!) Can be proved from soundness: if we can prove F from then since our proof system is sound, F logically follows from. Thus there cannot be a satisfying assignment to our assumptions. This implies consistency, as will be shown later. consistent satisfiable (=completeness!) The contraposition is implied by completeness: If is unsatisfiable then |==F. By the completeness theorem, |--F, i.e., is inconsistent. This implies completeness as will be shown later.

Landscape Consistent Satisfiable Soundness Completeness

Proving that consistent satisfiable Same as completeness theorem: start with and extend into * by enumerating the formulas in some order and adding a formula if the set remains consistent. Then * behaves as a truth assignment and thus gives a satisfying assignment to.

consistent satisfiable implies completeness! We showed that every consistent set is satisfiable. Lemma: If |-/- then { F} is consistent Proof: We show the contraposition: If { F} is inconsistent, then |--. If so, then { F}|-- (since from F we can prove anything). But we can also prove from { }. Thus, by proof by cases, we have |--. Now assume |== but |-/-. Then according to the Lemma above { F} is consistent. But according to lemma (*), { F} is not satisfiable. Contradiction.

Compactness theorem Let be an infinite set of propositional formulas. Then is satisfiable iff every finite subset of is satisfiable. Proof: as shown before, is satisfiable iff is consistent. If is consistent, then every finite subset of it is consistent. Conversely, if is inconsistent, there is a finite subset of it that proves F, hence is inconsistent.

inconsistent unsatisfiable implies consistency Lemma: If |-- then { F} is inconsistent. Proof: If |-- it follows that from { F} one can prove both and { F}, hence one can prove F, which makes { F} inconsistent. Now suppose that |--. Then { F} is inconsistent. Thus, { F} is unsatisfiable. Therefore from Lemma (*) |==.