Propositional Logic: Structural Induction
Alice Gao
Lecture 3
CS 245 Logic and Computation Fall 2019 Alice Gao 1 / 25
Propositional Logic: Structural Induction Alice Gao Lecture 3 CS - - PowerPoint PPT Presentation
Propositional Logic: Structural Induction Alice Gao Lecture 3 CS 245 Logic and Computation Fall 2019 Alice Gao 1 / 25 Outline Learning goals Propositional language Structure of formulas Inductively defjned sets Revisiting the learning
CS 245 Logic and Computation Fall 2019 Alice Gao 1 / 25
CS 245 Logic and Computation Fall 2019 Alice Gao 2 / 25
βΆ Prove properties of well-formed propositional formulas using
βΆ Prove properties of a recursively defjned concept using
CS 245 Logic and Computation Fall 2019 Alice Gao 3 / 25
βΆ Propositional symbols: π, π, π , β¦ . βΆ Connective symbols: Β¬, β§, β¨, β, β. βΆ Punctuation symbols: ( and ).
CS 245 Logic and Computation Fall 2019 Alice Gao 4 / 25
CS 245 Logic and Computation Fall 2019 Alice Gao 5 / 25
CS 245 Logic and Computation Fall 2019 Alice Gao 6 / 25
CS 245 Logic and Computation Fall 2019 Alice Gao 7 / 25
βΆ Every well-formed formula has at least one propositional
βΆ Every well-formed formula has an equal number of opening
βΆ Every proper prefjx of a well-formed formula has more opening
βΆ There is a unique way to construct every well-formed formula.
CS 245 Logic and Computation Fall 2019 Alice Gao 8 / 25
βΆ Prove properties of well-formed propositional formulas using
βΆ Prove properties of a recursively defjned concept using
βΆ Prove the space and time effjciency of recursive algorithms
CS 245 Logic and Computation Fall 2019 Alice Gao 9 / 25
CS 245 Logic and Computation Fall 2019 Alice Gao 10 / 25
CS 245 Logic and Computation Fall 2019 Alice Gao 11 / 25
CS 245 Logic and Computation Fall 2019 Alice Gao 12 / 25
CS 245 Logic and Computation Fall 2019 Alice Gao 13 / 25
CS 245 Logic and Computation Fall 2019 Alice Gao 14 / 25
CS 245 Logic and Computation Fall 2019 Alice Gao 15 / 25
CS 245 Logic and Computation Fall 2019 Alice Gao 16 / 25
βΆ List all the elements in the set. Example: π΅ = {1, 2, 3, 4}. βΆ Characterize the set by some property of all the elements in
βΆ Defjne a set inductively.
CS 245 Logic and Computation Fall 2019 Alice Gao 17 / 25
βΆ A domain set π βΆ A core set π· βΆ A set of operations π
CS 245 Logic and Computation Fall 2019 Alice Gao 18 / 25
βΆ Y has property R, and βΆ For every set Z that has property R, π β π.
CS 245 Logic and Computation Fall 2019 Alice Gao 19 / 25
βΆ contains π·, and βΆ is closed under π.
CS 245 Logic and Computation Fall 2019 Alice Gao 20 / 25
βΆ The domain set X = β (the set of real numbers) βΆ The core set C = {0}. βΆ The set of operations P = {π(π¦) = π¦ + 1}
CS 245 Logic and Computation Fall 2019 Alice Gao 21 / 25
βΆ The domain set X = β (the set of real numbers) βΆ The core set C = {0, 2}. βΆ The set of operations P =
CS 245 Logic and Computation Fall 2019 Alice Gao 22 / 25
βΆ π = the set of fjnite sequences of symbols in ππ. βΆ π· = the set of propositional variables. βΆ π = {π1(π¦) = (Β¬π¦), π2(π¦, π§) = (π¦ β π§)}
CS 245 Logic and Computation Fall 2019 Alice Gao 23 / 25
βΆ Base case: Prove that π holds for every element in the core
βΆ Inductive case: Prove that for every operation π β π of arity
CS 245 Logic and Computation Fall 2019 Alice Gao 24 / 25
βΆ Prove properties of well-formed propositional formulas using
βΆ Prove properties of a recursively defjned concept using
CS 245 Logic and Computation Fall 2019 Alice Gao 25 / 25