Learning Goals of CS245 Logic and Computation

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

02 Propositional Logic

Knowledge based Agents

Knowledge representation DATA INFORMATION KNOWLEDGE WISDOM. Figure Relation ship between data, information knowledge and wisdom.

Natural Deduction for Propositional Logic

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

Advanced Topics in LP and FP

Mat 243 Exam 1 Review

CSC Discrete Math I, Spring Propositional Logic

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

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

Logic. Propositional Logic: Syntax

Logic: Propositional Logic Truth Tables

Logic: Propositional Logic (Part I)

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

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

Propositional Logic: Syntax

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

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

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

Language of Propositional Logic

Announcements. CS311H: Discrete Mathematics. Propositional Logic II. Inverse of an Implication. Converse of a Implication

Propositional Logic: Models and Proofs

Propositional Logic: Deductive Proof & Natural Deduction Part 1

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

Predicate Calculus. Formal Methods in Verification of Computer Systems Jeremy Johnson

Propositional Logic. Spring Propositional Logic Spring / 32

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

03 Propositional Logic II

CS1021. Why logic? Logic about inference or argument. Start from assumptions or axioms. Make deductions according to rules of reasoning.

Propositional logic. Programming and Modal Logic

Propositional and Predicate Logic. jean/gbooks/logic.html

Propositional Logic Not Enough

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

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

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

Logic. Propositional Logic: Syntax. Wffs

Propositional Logic: Review

Compound Propositions

CS156: The Calculus of Computation

Classical Propositional Logic

Packet #1: Logic & Proofs. Applied Discrete Mathematics

Propositional Logic Part 1

Propositional Logic: Equivalence

2.2: Logical Equivalence: The Laws of Logic

COMP9414: Artificial Intelligence Propositional Logic: Automated Reasoning

UNIT-I: Propositional Logic

Proof Methods for Propositional Logic

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

Logic as a Tool Chapter 1: Understanding Propositional Logic 1.1 Propositions and logical connectives. Truth tables and tautologies

Propositional Logic Language

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

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

First-Order Logic (FOL)

HW1 graded review form? HW2 released CSE 20 DISCRETE MATH. Fall

A statement is a sentence that is definitely either true or false but not both.

Title: Logical Agents AIMA: Chapter 7 (Sections 7.4 and 7.5)

Automated Reasoning Lecture 2: Propositional Logic and Natural Deduction

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

Tecniche di Verifica. Introduction to Propositional Logic

7. Propositional Logic. Wolfram Burgard and Bernhard Nebel

Logical Operators. Conjunction Disjunction Negation Exclusive Or Implication Biconditional

Propositional Logic. Jason Filippou UMCP. ason Filippou UMCP) Propositional Logic / 38

CS 380: ARTIFICIAL INTELLIGENCE

Knowledge Representation. Propositional logic

Inference in Propositional Logic

Comp487/587 - Boolean Formulas

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

Chapter 4: Classical Propositional Semantics

CS156: The Calculus of Computation Zohar Manna Autumn 2008

Propositional Logic. Yimei Xiang 11 February format strictly follow the laws and never skip any step.

PL: Truth Trees. Handout Truth Trees: The Setup

First Order Logic: Syntax and Semantics

Logic for Computer Science - Week 4 Natural Deduction

What is Logic? Introduction to Logic. Simple Statements. Which one is statement?

Normal Forms of Propositional Logic

Logic - recap. So far, we have seen that: Logic is a language which can be used to describe:

Propositional Logic: Logical Agents (Part I)

Introduction to Decision Sciences Lecture 2

Logical Structures in Natural Language: Propositional Logic II (Truth Tables and Reasoning

Introduction to Artificial Intelligence Propositional Logic & SAT Solving. UIUC CS 440 / ECE 448 Professor: Eyal Amir Spring Semester 2010

Discrete Mathematics. Instructor: Sourav Chakraborty. Lecture 4: Propositional Logic and Predicate Lo

CS 380: ARTIFICIAL INTELLIGENCE PREDICATE LOGICS. Santiago Ontañón

15414/614 Optional Lecture 1: Propositional Logic

Proofs. Joe Patten August 10, 2018

Propositional logic. Programming and Modal Logic

Announcements. CS243: Discrete Structures. Propositional Logic II. Review. Operator Precedence. Operator Precedence, cont. Operator Precedence Example

Introduction to Metalogic

Example. Logic. Logical Statements. Outline of logic topics. Logical Connectives. Logical Connectives

Review. Propositional Logic. Propositions atomic and compound. Operators: negation, and, or, xor, implies, biconditional.

Knowledge Representation. Propositional logic.

Logical Agents. Knowledge based agents. Knowledge based agents. Knowledge based agents. The Wumpus World. Knowledge Bases 10/20/14

Propositional natural deduction

Propositional Logic: Methods of Proof (Part II)

Syntax of propositional logic. Syntax tree of a formula. Semantics of propositional logic (I) Subformulas

Logical Agents. September 14, 2004

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

MAI0203 Lecture 7: Inference and Predicate Calculus

Introduction to Sets and Logic (MATH 1190)

Transcription:

Learning Goals of CS245 Logic and Computation Alice Gao April 27, 2018 Contents 1 Propositional Logic 2 2 Predicate Logic 4 3 Program Verification 6 4 Undecidability 7 1

1 Propositional Logic Introduction to logic Give a one-sentence high-level definition of logic. Give examples of applications of logic in computer science. Propositions Define a proposition. Define an atomic proposition and a compound proposition. Translations Determine if an English sentence is a proposition. Determine if an English sentence is an atomic proposition. For an English sentence with no logical ambiguity, translate the sentence into a propositional formula. For an English sentence with logical ambiguity, translate the sentence into multiple propositional formulas and show that the propositional formulas are not logically equivalent using a truth table. Well-formed formulas Describe the three types of symbols in propositional logic. Give the inductive definition of well-formed formulas. Determine and justify whether a given formula is well formed. Write the parse tree for a well-formed formula. Structural induction Prove properties of well-formed propositional formulas using structural induction. Prove properties of a recursively defined concept using structural induction. Truth valuation, truth table, and valuation tree Define a truth valuation. Determine the truth value of a formula given a truth valuation. Give a truth valuation under which a formula is true or false. Draw a truth table given a formula. Draw the valuation tree given a formula. The meanings of connectives Define the meaning of the connectives: negation, conjunction, disjunction, conditional, and bi-conditional, using truth tables. Understand the subtleties of the implication: Explain the relationship between the truth values of the premise, the conclusion, and the implication. Properties of formulas 2

Define tautology, contradiction, and satisfiable formula. Determine if a given formula is a tautology, a contradiction, and/or a satisfiable formula. Logical equivalence Prove that two formulas are logically equivalent using truth tables. Prove that two formulas are logically equivalent using logical identities. Translate a condition in a block of code into a propositional formula. Simplify an if statement. Determine whether a piece of code is live or dead. Adequate set of connectives Describe what it means for one connective to be definable in terms of a set of connectives. Describe what it means for a set of connectives to be adequate for propositional logic. Prove that a set of connectives is adequate. Prove that a set of connectives is not adequate. Semantic entailment Determine if a set of formulas is satisfiable. Define semantic entailment. Explain subtleties of semantic entailment. Prove that a semantic entailment holds/does not hold by using the definition of semantic entailment, and/or truth tables. Natural deduction Describe rules of inference for natural deduction. Prove that a conclusion follows from a set of premises using natural deduction inference rules. Soundness and completeness of natural deduction Define soundness and completeness. Prove that a semantic entailment holds using natural deduction and the soundness of natural deduction. Show that no natural deduction proof exists using the contrapositive of the soundness of natural deduction. 3

2 Predicate Logic Introduction to Predicate Logic Give examples of English sentences that can be modeled using predicate logic but cannot be modeled using propositional logic. Translations Translate an English sentence into a predicate formula. Syntax of predicate logic Define term. Define formula. Define free and bound variables. Determine whether a variable in a formula is free or bound. Determine the scope of a quantifier in a formula. Describe the problem when a variable is captured in a substitution. Perform substitution in a formula to avoid capture. Semantics of predicate logic Define interpretation. Define environment. Determine the truth value of a formula given an interpretation and an environment. Give an interpretation and an environment that make a formula true. Given an interpretation and an environment that make a formula false. Determine and justify whether a formula is valid, satisfiable, and/or unsatisfiable. Semantic entailment for predicate logic Define semantic entailment for predicate logic. Prove that a semantic entailment holds. Prove that a semantic entailment does not hold. Natural deduction for predicate logic Describe the rules of inference for natural deduction. Prove that a conclusion follows from a set of premises using natural deduction inference rules. Soundness and completeness of natural deduction Define soundness and completeness. Prove that a semantic entailment holds using natural deduction and the soundness of natural deduction. 4

Show that no natural deduction proof exists using semantic entailment and the soundness natural deduction. Axioms of equality Describe the two axioms of equality. Prove the symmetry of equality. Prove the transitivity of equality. Describe the derived inference rules EQsubs and EQtrans. 5

3 Program Verification Introduction Give reasons for performing formal verification rather than testing. Define a Hoare triple. Define partial correctness. Define total correctness. Total correctness for assignment and conditional statements Prove that a Hoare triple is satisfied under total correctness for a program containing assignment and conditional statements. Partial correctness for while loops Determine whether a given formula is an invariant for a while loop. Find an invariant for a given while loop. Prove that a Hoare triple is satisfied under partial correctness for a program containing while loops. Total correctness for while loops Determine whether a given formula is a variant for a while loop. Find a variant for a given while loop. Prove that a Hoare triple is satisfied under total correctness for a program containing while loops. Partial correctness for array assignments Prove that a Hoare triple is satisfied under partial correctness for a program containing array assignment statements. 6

4 Undecidability Introduction to undecidability Define decision problem. Define decidable problem. Define undecidable problem. Prove that a decision problem is decidable by giving an algorithm to solve it. The halting problem Describe the halting problem. Prove that the halting problem is undecidable. Proving that a problem is undecidable by a reduction from the halting problem Define reduction. Describe at a high level how we can use reduction to prove that a decision problem is undecidable. Prove that a decision problem is undecidable by using a reduction from the halting problem. 7