Venn Diagrams for Boolean Algebra

Size: px
Start display at page:

Download "Venn Diagrams for Boolean Algebra"

Transcription

1 Venn Diagrams for oolean lgebra Renata de Freitas IME UFF Petrucio Viana II Workshop on Logic and Semantics Ilha Grande, ugust 26-30, 2013 This is a post-workshop version. We thank the participants of the II WLS for the fruitful discussions.

2 Outline Euler diagrams Venn diagrams Shin s system Venn II Venn diagrams for oolean algebra

3 Reasoning on categorical propositions The four different standard forms of categorical propositions are: () Every is. (O) Not every is. (I) Some is. (E) No is. where and are classes of objects.

4 ategorical propositions are naturally related to statements written in a fragment of the language of Set Theory: () Every is : (O) Not every is : (I) Some is : (E) No is : = We know some ways to reason about sets.

5 sk a mathematician: this is probably correct, but maybe incomplete. Translate to first order logic: this is provably correct and, depending of the target theory, complete. pply the algebra of sets: this can be made correct, complete, and mechanized but I don t like it! It does have a real road for inferences on categorical propositions?

6 Euler to Princess

7 Euler diagrams () Every is :

8 Euler diagrams (O) Not every is :

9 Euler diagrams (I) Some is :

10 Euler diagrams (E) No is : =

11 Example 1 ll men are mammals. ll mammals are mortal. ll men are mortal. =

12 Diagrammatic proof Unify superposing curves with the same label =

13 Diagrammatic proof Erase curve =

14 Example 2 Some men are wise. ll men are philosophers. Some philosophers are wise. =

15 Diagrammatic proof Unify superposing curves with the same label =?????????????????????????????????????????? Which choice we should make?

16 General diagrams General diagrams are diagrams representing every way an element of an universe can-or-cannot be an element of a certain number of subsets of this universe. In a general diagram, sets are represented by simple, closed and connected curves on the plane. In the simpler cases, these curves are represented by circles or elipses. not connected not simple not closed Let us call minimal region each region on the plane determined by the curves representing the sets that cannot be described as the union of other regions.

17 General diagram to 1 set: U The minimal regions in this diagram are and.

18 General diagram to 2 sets: U The minimal regions in this diagram are ( ), ( ), ( ) and ( ).

19 General diagram to 3 sets: U The minimal regions in this diagram are ( ), ( ), ( ), ( ), ( ), ( ), ( ) and ( ).

20 Proposition (Venn, 1880) Given any n N, there exists a general diagram to n sets. The general diagram to n sets has 2 n minimal regions. These diagrams can be difficult to draw, when n 4.

21 Venn diagrams ll men are mammals. ll mammals are mortal. ll men are mortal. =

22 Diagrammatic proof dd curve = =

23 Diagrammatic proof Unify superposing curves with the same labels =

24 Diagrammatic proof Erase shading =

25 Diagrammatic proof Erase curve =

26 Peirce s diagrams Some men are wise. ll men are philosophers. Some philosophers are wise. =

27 Diagrammatic proof dd curve = =

28 Diagrammatic proof Unify =

29 Diagrammatic proof Delete shaded =

30 Diagrammatic proof Erase shading =

31 Diagrammatic proof Erase curve =

32 Non-valid syllogism ll men are philosophers. Some philosophers are wise. ll men are wise. =

33 dd curve = =

34 Unify =

35 ??? = /

36 Possible conclusion =

37 Split -sequence =

38 ompound diagram Some men are wise, or some wise people are not men, or both.

39 Syntax Let Var be a set of variables for sets. unitary diagram is a triple d = (L, S, X ), where L Var is a finite set of labels, S P(L) is the set of shaded regions of d, and X P(P(L)) \ { } is the set of -sequences of d. d = (L, S, X ) L = {,, } S = {{}, {, }} X = {{{,, }, {, }}}

40 Syntax compound diagram is a finite set D of unitary diagrams. D = {d 1, d 2 } d 1 = (L 1, S 1, X 1 ) L 1 = {, } S 1 = X 1 = {{{, }}} d 2 = (L 2, S 2, X 2 ) L 2 = {, } S 2 = X 2 = {{{}}}

41 Syntax multi-diagram is a finite set of compound diagrams. = { {d}, {d 1, d 2 } }

42 Semantics model is a pair M = (M, I ), where M is a set and I : Var P(M). Let d = (L, S, X ) be a unitary diagram and M = (M, I ) be a model. We say that M satisfies d, denoted by M = d, when for each r S, we have {IY : Y r} {IZ : Z r} =, for each s X, we have { {IY : Y r} {IZ : Z r} : r s }.

43 Semantics Let D be a compound diagram and M = (M, I ) be a model. We say that M satisfies D, denoted by M = D, when M = d, for some d D. Let be a multi-diagram and M = (M, I ) be a model. We say that M satisfies, denoted by M =, when M = D, for every D.

44 Semantics Let Σ be a set of multi-diagrams and be a multi-diagram. We say that is a consequence of Σ, denoted by Σ =, when for every model M, if M = σ, for each σ Σ, then M =. Let be a multi-diagram. We say that is valid, denoted by =, when =.

45 Inference rules Rule 0 xiom {{(,, )}}

46 Inference rules Rule 1 Erase shading {D {(L, S S, X )}} = {D {(L, S, X )}} =

47 Inference rules Rule 1 Erase -sequence {D {(L, S, X X )}} = {D {(L, S, X )}} =

48 Inference rules Rule 1 Erase curve {D {(L, S, X )}} = {D {(L, S, X )}}, with L = L {c} S = {r P(L ) : r S and r = r {c}, for some r P(L) st r S and r r } X = {s P(L ) : s X } =

49 Inference rules Rule 2 Erase a shaded part of an -sequence {D {(L, S, X )}} = {D {(L, S, (X {T }) {T })}}, with T = T {s}, for some T X, s S st s T =

50 Inference rules Rule 3 Spread s {D {(L, S, X )}} = {D {(L, S, (X {T }) {T T })}} =

51 Inference rules Rule 4 dd a curve {D {(L, S, X )}} = {D {(L {c}, S +c,{t +c :T X })}}, with T +c = {s {c} : s T } =

52 Inference rules Rule 5 ontradiction {D {(L, S T, X {T })}} = \ =

53 Inference rules Rule 6 Unify {D {(L,S 1,X 1 ), (L,S 2,X 2 )}} = {D {(L, S 1 S 2, X 1 X 2 )}} =

54 Inference rules Rule 7 Split an -sequence {D {(L, S, X )}} = {D {(L, S, (X {T }) {T 1 }), (L, S, (X {T }) {T 2 })}}, if T X and {T 1, T 2 } is a partition of T. =

55 Inference rules Rule 8 Excluded middle {D {(L, S, X )}} = {D {(L, S T, X ), (L, S, X {T })}} =

56 Inference rules Rule 9 onnect a diagram {D {d}} = {D {d, d }} =

57 Inference rules Rule 10 Proof by ases {{d 1, d 2,..., d n }} = {{d}}, if {{d i }} = {{d}}, for each i = 1,..., n. d 1 = d d 2 = d d 1 d 2... d n = d if. d n = d

58 Let Σ be a set of multi-diagrams and be a multi-diagram. We say that is derivable from Σ, denoted by Σ, when there is a sequence ( 1,..., n ) such that 1 Σ { {{(,, )}} }, i+1 is a consequence of i by one of the inference rules, for all i = 1,..., n, n =.

59 Soundness and completeness Theorem (Shin / Hammer-Danner) Σ and multi-diagram, For all set of multi-diagrams Σ Σ =.

60 Problem How one can use this system to prove that a oolean equality, like is a valid? ( ) =,

61 Not so good solution Introduce new variables D, E, F, G, H, I, J, K and consider ( ) = iff = D, D = E, E = F, = G, G = H, H = I, I F = J, J = K = K = E

62 Example 3 Let s see how it works in a simpler example. = iff =, = = =

63 Example 3 =, = = = =

64 Diagrammatic proof dd curve = =

65 Diagrammatic proof Unify superposing curves with the same labels =

66 Diagrammatic proof Erase shading =

67 Diagrammatic proof Erase curve =

68 better ideia We propose an alternative diagrammatic system in which, to test the validity of an inclusion X Y, we can do the following: build the diagram of X, put the diagram of X in normal form, build the diagram of Y, put the diagram of Y in normal form, compare the normal forms. In our system, diagrams do not represent relations between sets. In our system, diagrams represent sets.

69 The normal form of the diagram of is the diagram of

70 Example 4 Let s go back to the not so simple example and use our system to prove that the following oolean equality is a valid. ( ) =

71 Diagram of X ( )

72 Putting the diagram of X in normal form ( ) = ( )

73 Putting the diagram of X in normal form ( ) = ( )

74 Putting the diagram of X in normal form ( ) = ( )

75 Putting the diagram of X in normal form ( ) =

76 Putting the diagram of X in normal form =

77 Putting the diagram of X in normal form =

78 Putting the diagram of X in normal form =

79 Putting the diagram of X in normal form =

80 Putting the diagram of X in normal form =

81 Putting the diagram of X in normal form =

82 Putting the diagram of X in normal form =

83 Putting the diagram of X in normal form =

84 Putting the diagram of X in normal form =

85 Putting the diagram of X in normal form =

86 Putting the diagram of X in normal form =

87 The normal form of the diagram of X

88 Putting the diagram of Y in normal form =

89 Putting the diagram of Y in normal form =

90 Putting the diagram of Y in normal form =

91 Putting the diagram of Y in normal form =

92 Putting the diagram of Y in normal form =

93 The normal form of the diagram of Y

94 omparing the normal forms =

95 Syntax Let Var be a set of variables for sets and Trm be the set of terms given by X := U O X X X X X unitary diagram is a pair d = (L, ), where L Trm is a finite set of labels and P(L). ompound diagrams are sets of unitary diagrams and multi-diagrams are sets of compound diagrams.

96 Example O d = (L, ) L = {, O, } = {{}, {, O}, {O}, {, O, }, }

97 Semantics model is a pair M = (M, I ), where M is a set and I : Var P(M). Let d = (L, ) be a unitary diagram and M = (M, I ) be a model. The meaning of d in M is [[d]] M = {Ib : b }, where Ib = {It : t b} {It : t b}. Define also [[D]] M = {[[d]] M : d D} [[ ]] M = {[[D]] M : d }

98 Diagram of a oolean term Let t Trm. The diagram of t is t = { {({t}, {{t}})} }. t Proposition For all term t Trm and model M, [[t]] M = [[ t ]] M.

99 Normal form Let be a multi-diagram and L Trm. We say that is in normal form w.r.t. L when = { {(L, )} } and L Var.

100 Rules to put a diagram in normal form U in {D {({U}, {{U}})}} {D {(, { })}} U

101 Rules to put a diagram in normal form U out {D {({U}, { })}} {D {(, )}} U

102 Rules to put a diagram in normal form O in {D {({O}, {{O}})}} {D {(, )}} O

103 Rules to put a diagram in normal form O out {D {({O}, { })}} {D {(, { })}} O

104 Rules to put a diagram in normal form in {D {({ }, {{ }})}} {D {({}, {{}})}, {({}, {{}})}}

105 Rules to put a diagram in normal form out {D {({ }, { })}} {D {({}, {{}}), ({}, {{}})}}

106 Rules to put a diagram in normal form in {D {({ }, { })}} {D {({}, {{}}), ({}, {{}})}}

107 Rules to put a diagram in normal form out {D {({ }, {{ }})}} {D {({}, {{}})}, {({}, {{}})}}

108 Rules to put a diagram in normal form in {D {({}, {{}})}} {D {({}, { })}}

109 Rules to put a diagram in normal form out {D {({}, { })}} {D {({}, {{}})}}

110 Rules to put a diagram in normal form dd curve {D {(L, )}} {D {(L {c}, {r {c} : r })}}

111 Rules to put a diagram in normal form Unify {D {(L, 2 ), (L, 2 )}} {D {(L, 1 2 })}} {D {(L, 2 )}, {(L, 2 )}} {D {(L, 1 2 })}}

112 Equivalence between diagrams Let 1 and 2 be multi-diagrams. We say that 1 and 2 are equivalent when, for every model M, [[ 1 ]] M = [[ 2 ]] M. Lemma For all diagram = (L, ) and L Var(L), there is a diagram st and are equivalent, is in normal form w.r.t. L.

113 Theorems We say that an inclusion 1 2 is a theorem, denoted by 1 2, when NF L 1 can be derived from NF L 2 by rule dd bullet (next slide). NF L 1 (respect. NF L 2 ) is a diagram in normal form w.r.t. L that is equivalent to 1 (respect. 2 ) and L = {Var(t) : t is a label in 1 or 2 }.

114 Rule to compare diagrams in normal form dd bullet {D {(L, )}} = {D {(L, })}} =

115 (Weak) Soundness and completeness Theorem For every inclusion 1 2, 1 2 [[ 1 ]] M [[ 2 ]] M, for every model M. Proof outline (weak completeness): Suppose 1 2. Hence, given NF L 1 = (L, 1 ) and NF L 2 = (L, 2 ), we have that there is some a L st a 1 and a 2. Take a model M = (M, I ) st M = {a} and { {a}, if X L and a X IX =, otherwise We have that [[ 1 ]] M = {a} [[ 2 ]] M.

116 Perpectives onsequence from hypotheses. Extension to non-inclusions X Y.

Corresponding Regions in Euler Diagrams

Corresponding Regions in Euler Diagrams orresponding Regions in Euler Diagrams John Howse, Gemma Stapleton, Jean Flower, and John Taylor School of omputing & Mathematical Sciences niversity of righton, righton, K {John.Howse,G.E.Stapleton,J..Flower,John.Taylor}@bton.ac.uk

More information

Completeness Proof Strategies for Euler Diagram Logics

Completeness Proof Strategies for Euler Diagram Logics Completeness Proof Strategies for Euler Diagram Logics Jim Burton, Gem Stapleton, and John Howse Visual Modelling Group, University of Brighton, UK {j.burton,g.e.stapleton,john.howse}@brighton.ac.uk Abstract.

More information

Proof-Theoretical Studies on Diagrammatic Proofs and Focusing Proofs

Proof-Theoretical Studies on Diagrammatic Proofs and Focusing Proofs Proof-Theoretical Studies on Diagrammatic Proofs and Focusing Proofs Thesis Submitted to Faculty of Letters Keio University In Partial Fulfillment of the Requirements for the Degree of Doctor of Philosophy

More information

Reasoning with Constraint Diagrams

Reasoning with Constraint Diagrams Reasoning with Constraint Diagrams Gem Stapleton The Visual Modelling Group University of righton, righton, UK www.cmis.brighton.ac.uk/research/vmg g.e.stapletonbrighton.ac.uk Technical Report VMG.04.01

More information

Syllogistic Logic and its Extensions

Syllogistic Logic and its Extensions 1/31 Syllogistic Logic and its Extensions Larry Moss, Indiana University NASSLLI 2014 2/31 Logic and Language: Traditional Syllogisms All men are mortal. Socrates is a man. Socrates is mortal. Some men

More information

cse371/mat371 LOGIC Professor Anita Wasilewska Fall 2018

cse371/mat371 LOGIC Professor Anita Wasilewska Fall 2018 cse371/mat371 LOGIC Professor Anita Wasilewska Fall 2018 Chapter 7 Introduction to Intuitionistic and Modal Logics CHAPTER 7 SLIDES Slides Set 1 Chapter 7 Introduction to Intuitionistic and Modal Logics

More information

A Dichotomy. in in Probabilistic Databases. Joint work with Robert Fink. for Non-Repeating Queries with Negation Queries with Negation

A Dichotomy. in in Probabilistic Databases. Joint work with Robert Fink. for Non-Repeating Queries with Negation Queries with Negation Dichotomy for Non-Repeating Queries with Negation Queries with Negation in in Probabilistic Databases Robert Dan Olteanu Fink and Dan Olteanu Joint work with Robert Fink Uncertainty in Computation Simons

More information

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

Propositional Logic. Jason Filippou UMCP. ason Filippou UMCP) Propositional Logic / 38 Propositional Logic Jason Filippou CMSC250 @ UMCP 05-31-2016 ason Filippou (CMSC250 @ UMCP) Propositional Logic 05-31-2016 1 / 38 Outline 1 Syntax 2 Semantics Truth Tables Simplifying expressions 3 Inference

More information

First Order Logic (FOL) 1 znj/dm2017

First Order Logic (FOL) 1   znj/dm2017 First Order Logic (FOL) 1 http://lcs.ios.ac.cn/ znj/dm2017 Naijun Zhan March 19, 2017 1 Special thanks to Profs Hanpin Wang (PKU) and Lijun Zhang (ISCAS) for their courtesy of the slides on this course.

More information

1. Propositional Calculus

1. Propositional Calculus 1. Propositional Calculus Some notes for Math 601, Fall 2010 based on Elliott Mendelson, Introduction to Mathematical Logic, Fifth edition, 2010, Chapman & Hall. 2. Syntax ( grammar ). 1.1, p. 1. Given:

More information

Conservativity for a hierarchy of Euler and Venn reasoning systems

Conservativity for a hierarchy of Euler and Venn reasoning systems onservativity for a hierarchy of uler and Venn reasoning systems Koji Mineshima, Mitsuhiro Okada, and Ryo Takemura Department of Philosophy, Keio University, 2-15-45 Mita, Minato-ku, Tokyo 108-8345, Japan.

More information

Reasoning with Sentences and Diagrams

Reasoning with Sentences and Diagrams 73 Notre Dame Journal of Formal Logic Volume 35, Number 1, Winter 1994 Reasoning with Sentences and Diagrams ERIC HAMMER Abstract A formal system is studied having both sentences and diagrams as well-formed

More information

Models. Models of Computation, Turing Machines, and the Limits of Turing Computation. Effective Calculability. Motivation for Models of Computation

Models. Models of Computation, Turing Machines, and the Limits of Turing Computation. Effective Calculability. Motivation for Models of Computation Turing Computation /0/ Models of Computation, Turing Machines, and the Limits of Turing Computation Bruce MacLennan Models A model is a tool intended to address a class of questions about some domain of

More information

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

What is logic, the topic of this course? There are at least two answers to that question. Applied Logic Lecture 1 CS 486 Spring 2005 Tuesday, January 25, 2005 What is Logic? What is logic, the topic of this course? There are at least two answers to that question. General logic: critical examination

More information

arxiv: v1 [cs.lo] 28 Feb 2013

arxiv: v1 [cs.lo] 28 Feb 2013 Syllogisms in Rudimentary Linear Logic, Diagrammatically arxiv:1302.7111v1 [cs.lo] 28 Feb 2013 Ruggero Pagnan DISI, University of Genova, Italy ruggero.pagnan@disi.unige.it Abstract We present a reading

More information

Propositional Logic Not Enough

Propositional Logic Not Enough Section 1.4 Propositional Logic Not Enough If we have: All men are mortal. Socrates is a man. Does it follow that Socrates is mortal? Can t be represented in propositional logic. Need a language that talks

More information

Model Checking with CTL. Presented by Jason Simas

Model Checking with CTL. Presented by Jason Simas Model Checking with CTL Presented by Jason Simas Model Checking with CTL Based Upon: Logic in Computer Science. Huth and Ryan. 2000. (148-215) Model Checking. Clarke, Grumberg and Peled. 1999. (1-26) Content

More information

Prove that if not fat and not triangle necessarily means not green then green must be fat or triangle (or both).

Prove that if not fat and not triangle necessarily means not green then green must be fat or triangle (or both). hapter : oolean lgebra.) Definition of oolean lgebra The oolean algebra is named after George ool who developed this algebra (854) in order to analyze logical problems. n example to such problem is: Prove

More information

Natural Deduction for Propositional Logic

Natural Deduction for Propositional Logic Natural Deduction for Propositional Logic Bow-Yaw Wang Institute of Information Science Academia Sinica, Taiwan September 10, 2018 Bow-Yaw Wang (Academia Sinica) Natural Deduction for Propositional Logic

More information

Logic: The Big Picture

Logic: The Big Picture Logic: The Big Picture A typical logic is described in terms of syntax: what are the legitimate formulas semantics: under what circumstances is a formula true proof theory/ axiomatization: rules for proving

More information

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:

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: Logic: The Big Picture Logic is a tool for formalizing reasoning. There are lots of different logics: probabilistic logic: for reasoning about probability temporal logic: for reasoning about time (and

More information

PROPOSITIONAL MIXED LOGIC: ITS SYNTAX AND SEMANTICS

PROPOSITIONAL MIXED LOGIC: ITS SYNTAX AND SEMANTICS PROPOSITIONAL MIXED LOGIC: ITS SYNTAX AND SEMANTICS Karim NOUR 1 and Abir NOUR 2 Abstract In this paper, we present a propositional logic (called mixed logic) containing disjoint copies of minimal, intuitionistic

More information

Extensions to the Logic of All x are y: Verbs, Relative Clauses, and Only

Extensions to the Logic of All x are y: Verbs, Relative Clauses, and Only 1/53 Extensions to the Logic of All x are y: Verbs, Relative Clauses, and Only Larry Moss Indiana University Nordic Logic School August 7-11, 2017 2/53 An example that we ll see a few times Consider the

More information

1. Propositional Calculus

1. Propositional Calculus 1. Propositional Calculus Some notes for Math 601, Fall 2010 based on Elliott Mendelson, Introduction to Mathematical Logic, Fifth edition, 2010, Chapman & Hall. 2. Syntax ( grammar ). 1.1, p. 1. Given:

More information

The Lifting Lemma. Ralf Hinze

The Lifting Lemma. Ralf Hinze The Lifting Lemma Ralf Hinze Computing Laboratory, University of Oxford Wolfson Building, Parks Road, Oxford, OX1 3QD, England ralf.hinze@comlab.ox.ac.uk http://www.comlab.ox.ac.uk/ralf.hinze/ June 2009

More information

Propositional Logic: Models and Proofs

Propositional Logic: Models and Proofs Propositional Logic: Models and Proofs C. R. Ramakrishnan CSE 505 1 Syntax 2 Model Theory 3 Proof Theory and Resolution Compiled at 11:51 on 2016/11/02 Computing with Logic Propositional Logic CSE 505

More information

Section 2.2 Set Operations. Propositional calculus and set theory are both instances of an algebraic system called a. Boolean Algebra.

Section 2.2 Set Operations. Propositional calculus and set theory are both instances of an algebraic system called a. Boolean Algebra. Section 2.2 Set Operations Propositional calculus and set theory are both instances of an algebraic system called a Boolean Algebra. The operators in set theory are defined in terms of the corresponding

More information

15414/614 Optional Lecture 1: Propositional Logic

15414/614 Optional Lecture 1: Propositional Logic 15414/614 Optional Lecture 1: Propositional Logic Qinsi Wang Logic is the study of information encoded in the form of logical sentences. We use the language of Logic to state observations, to define concepts,

More information

Logical Inference. Artificial Intelligence. Topic 12. Reading: Russell and Norvig, Chapter 7, Section 5

Logical Inference. Artificial Intelligence. Topic 12. Reading: Russell and Norvig, Chapter 7, Section 5 rtificial Intelligence Topic 12 Logical Inference Reading: Russell and Norvig, Chapter 7, Section 5 c Cara MacNish. Includes material c S. Russell & P. Norvig 1995,2003 with permission. CITS4211 Logical

More information

Language of Propositional Logic

Language of Propositional Logic Logic A logic has: 1. An alphabet that contains all the symbols of the language of the logic. 2. A syntax giving the rules that define the well formed expressions of the language of the logic (often called

More information

Hoare Logic: Reasoning About Imperative Programs

Hoare Logic: Reasoning About Imperative Programs Hoare Logic: Reasoning About Imperative Programs COMP1600 / COMP6260 Dirk Pattinson Australian National University Semester 2, 2018 Programming Paradigms Functional. (Haskell, SML, OCaml,... ) main paradigm:

More information

CHAPTER 11. Introduction to Intuitionistic Logic

CHAPTER 11. Introduction to Intuitionistic Logic CHAPTER 11 Introduction to Intuitionistic Logic Intuitionistic logic has developed as a result of certain philosophical views on the foundation of mathematics, known as intuitionism. Intuitionism was originated

More information

Logic for Computer Science - Week 2 The Syntax of Propositional Logic

Logic for Computer Science - Week 2 The Syntax of Propositional Logic Logic for Computer Science - Week 2 The Syntax of Propositional Logic Ștefan Ciobâcă November 30, 2017 1 An Introduction to Logical Formulae In the previous lecture, we have seen what makes an argument

More information

Propositional Logic. Logic. Propositional Logic Syntax. Propositional Logic

Propositional Logic. Logic. Propositional Logic Syntax. Propositional Logic Propositional Logic Reading: Chapter 7.1, 7.3 7.5 [ased on slides from Jerry Zhu, Louis Oliphant and ndrew Moore] Logic If the rules of the world are presented formally, then a decision maker can use logical

More information

COMP Logic for Computer Scientists. Lecture 16

COMP Logic for Computer Scientists. Lecture 16 COMP 1002 Logic for Computer Scientists Lecture 16 5 2 J dmin stuff 2 due Feb 17 th. Midterm March 2 nd. Semester break next week! Puzzle: the barber In a certain village, there is a (male) barber who

More information

ACLT: Algebra, Categories, Logic in Topology - Grothendieck's generalized topological spaces (toposes)

ACLT: Algebra, Categories, Logic in Topology - Grothendieck's generalized topological spaces (toposes) ACLT: Algebra, Categories, Logic in Topology - Grothendieck's generalized topological spaces (toposes) Steve Vickers CS Theory Group Birmingham 2. Theories and models Categorical approach to many-sorted

More information

Temporal Logic of Actions

Temporal Logic of Actions Advanced Topics in Distributed Computing Dominik Grewe Saarland University March 20, 2008 Outline Basic Concepts Transition Systems Temporal Operators Fairness Introduction Definitions Example TLC - A

More information

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

Applied Logic. Lecture 1 - Propositional logic. Marcin Szczuka. Institute of Informatics, The University of Warsaw Applied Logic Lecture 1 - Propositional logic Marcin Szczuka Institute of Informatics, The University of Warsaw Monographic lecture, Spring semester 2017/2018 Marcin Szczuka (MIMUW) Applied Logic 2018

More information

Definability in Boolean bunched logic

Definability in Boolean bunched logic Definability in Boolean bunched logic James Brotherston Programming Principles, Logic and Verification Group Dept. of Computer Science University College London, UK J.Brotherston@ucl.ac.uk Logic Summer

More information

Modal Logics. Most applications of modal logic require a refined version of basic modal logic.

Modal Logics. Most applications of modal logic require a refined version of basic modal logic. Modal Logics Most applications of modal logic require a refined version of basic modal logic. Definition. A set L of formulas of basic modal logic is called a (normal) modal logic if the following closure

More information

Propositional Logic: Methods of Proof (Part II)

Propositional Logic: Methods of Proof (Part II) Propositional Logic: Methods of Proof (Part II) You will be expected to know Basic definitions Inference, derive, sound, complete Conjunctive Normal Form (CNF) Convert a Boolean formula to CNF Do a short

More information

Logic As Algebra COMP1600 / COMP6260. Dirk Pattinson Australian National University. Semester 2, 2017

Logic As Algebra COMP1600 / COMP6260. Dirk Pattinson Australian National University. Semester 2, 2017 Logic As Algebra COMP1600 / COMP6260 Dirk Pattinson Australian National University Semester 2, 2017 Recap: And, Or, and Not x AND y x y x y 0 0 0 0 1 0 1 0 0 1 1 1 x OR y x y x y 0 0 0 0 1 1 1 0 1 1 1

More information

Why digital? Overview. Number Systems. Binary to Decimal conversion

Why digital? Overview. Number Systems. Binary to Decimal conversion Why digital? Overview It has the following advantages over analog. It can be processed and transmitted efficiently and reliably. It can be stored and retrieved with greater accuracy. Noise level does not

More information

Deductive Systems. Lecture - 3

Deductive Systems. Lecture - 3 Deductive Systems Lecture - 3 Axiomatic System Axiomatic System (AS) for PL AS is based on the set of only three axioms and one rule of deduction. It is minimal in structure but as powerful as the truth

More information

Semantics and Pragmatics of NLP

Semantics and Pragmatics of NLP Semantics and Pragmatics of NLP Alex Ewan School of Informatics University of Edinburgh 28 January 2008 1 2 3 Taking Stock We have: Introduced syntax and semantics for FOL plus lambdas. Represented FOL

More information

Computation and Logic Definitions

Computation and Logic Definitions Computation and Logic Definitions True and False Also called Boolean truth values, True and False represent the two values or states an atom can assume. We can use any two distinct objects to represent

More information

Connecting the categorical and the modal logic approaches to Quantum Mech

Connecting the categorical and the modal logic approaches to Quantum Mech Connecting the categorical and the modal logic approaches to Quantum Mechanics based on MSc thesis supervised by A. Baltag Institute for Logic, Language and Computation University of Amsterdam 30.11.2013

More information

Speedith: A Reasoner for Spider Diagrams

Speedith: A Reasoner for Spider Diagrams J Log Lang Inf (205) 24:487 540 DOI 0.007/s0849-05-9229-0 Speedith: A Reasoner for Spider Diagrams Matej Urbas Mateja Jamnik 2 Gem Stapleton 3 Published online: 28 October 205 Springer Science+Business

More information

THE LOGIC OF COMPOUND STATEMENTS

THE LOGIC OF COMPOUND STATEMENTS THE LOGIC OF COMPOUND STATEMENTS All dogs have four legs. All tables have four legs. Therefore, all dogs are tables LOGIC Logic is a science of the necessary laws of thought, without which no employment

More information

Logical agents. Chapter 7. Chapter 7 1

Logical agents. Chapter 7. Chapter 7 1 Logical agents Chapter 7 Chapter 7 1 Outline Knowledge-based agents Logic in general models and entailment Propositional (oolean) logic Equivalence, validity, satisfiability Inference rules and theorem

More information

First Order Logic: Syntax and Semantics

First Order Logic: Syntax and Semantics CS1081 First Order Logic: Syntax and Semantics COMP30412 Sean Bechhofer sean.bechhofer@manchester.ac.uk Problems Propositional logic isn t very expressive As an example, consider p = Scotland won on Saturday

More information

Introduction to Metalogic

Introduction to Metalogic Introduction to Metalogic Hans Halvorson September 21, 2016 Logical grammar Definition. A propositional signature Σ is a collection of items, which we call propositional constants. Sometimes these propositional

More information

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

cis32-ai lecture # 18 mon-3-apr-2006 cis32-ai lecture # 18 mon-3-apr-2006 today s topics: propositional logic cis32-spring2006-sklar-lec18 1 Introduction Weak (search-based) problem-solving does not scale to real problems. To succeed, problem

More information

Heterogeneous Reasoning with Euler/Venn Diagrams Containing Named Constants and FOL

Heterogeneous Reasoning with Euler/Venn Diagrams Containing Named Constants and FOL Euler Diagrams 2004 Preliminary Version Heterogeneous Reasoning with Euler/Venn Diagrams Containing Named Constants and FOL Nik Swoboda 1,3 Departamento de Inteligencia Artificial Universidad Politécnica

More information

The Logic of Geometric Proof

The Logic of Geometric Proof The Logic of Geometric Proof Ron Rood Department of Philosophy, Vrije Universiteit Amsterdam ron.rood@planet.nl Logical studies of diagrammatic reasoning indeed, mathematical reasoning in general are typically

More information

On the Complexity of the Reflected Logic of Proofs

On the Complexity of the Reflected Logic of Proofs On the Complexity of the Reflected Logic of Proofs Nikolai V. Krupski Department of Math. Logic and the Theory of Algorithms, Faculty of Mechanics and Mathematics, Moscow State University, Moscow 119899,

More information

Logic. Propositional Logic: Syntax. Wffs

Logic. Propositional Logic: Syntax. Wffs Logic Propositional Logic: Syntax Logic is a tool for formalizing reasoning. There are lots of different logics: probabilistic logic: for reasoning about probability temporal logic: for reasoning about

More information

Propositional Logic. Testing, Quality Assurance, and Maintenance Winter Prof. Arie Gurfinkel

Propositional Logic. Testing, Quality Assurance, and Maintenance Winter Prof. Arie Gurfinkel Propositional Logic Testing, Quality Assurance, and Maintenance Winter 2018 Prof. Arie Gurfinkel References Chpater 1 of Logic for Computer Scientists http://www.springerlink.com/content/978-0-8176-4762-9/

More information

First-Degree Entailment

First-Degree Entailment March 5, 2013 Relevance Logics Relevance logics are non-classical logics that try to avoid the paradoxes of material and strict implication: p (q p) p (p q) (p q) (q r) (p p) q p (q q) p (q q) Counterintuitive?

More information

Lecture 2. Notes. Notes. Notes. Boolean algebra and optimizing logic functions. BTF Electronics Fundamentals August 2014

Lecture 2. Notes. Notes. Notes. Boolean algebra and optimizing logic functions. BTF Electronics Fundamentals August 2014 Lecture 2 Electronics ndreas Electronics oolean algebra and optimizing logic functions TF322 - Electronics Fundamentals ugust 24 Exercise ndreas ern University of pplied Sciences Rev. 946f32 2. of oolean

More information

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

Natural Deduction. Formal Methods in Verification of Computer Systems Jeremy Johnson Natural Deduction Formal Methods in Verification of Computer Systems Jeremy Johnson Outline 1. An example 1. Validity by truth table 2. Validity by proof 2. What s a proof 1. Proof checker 3. Rules of

More information

Proseminar on Semantic Theory Fall 2013 Ling 720 Proving the Soundness and Completeness of Propositional Logic: Some Highlights 1

Proseminar on Semantic Theory Fall 2013 Ling 720 Proving the Soundness and Completeness of Propositional Logic: Some Highlights 1 Proving the Soundness and Completeness of Propositional Logic: Some Highlights 1 (1) A Summary of What We ve Done So Far for PL a. We ve given a purely syntactic characterization of valid inference in

More information

Glossary of Logical Terms

Glossary of Logical Terms Math 304 Spring 2007 Glossary of Logical Terms The following glossary briefly describes some of the major technical logical terms used in this course. The glossary should be read through at the beginning

More information

On the satisfiability problem for a 4-level quantified syllogistic and some applications to modal logic

On the satisfiability problem for a 4-level quantified syllogistic and some applications to modal logic On the satisfiability problem for a 4-level quantified syllogistic and some applications to modal logic Domenico Cantone and Marianna Nicolosi Asmundo Dipartimento di Matematica e Informatica Università

More information

173 Logic and Prolog 2013 With Answers and FFQ

173 Logic and Prolog 2013 With Answers and FFQ 173 Logic and Prolog 2013 With Answers and FFQ Please write your name on the bluebook. You may have two sides of handwritten notes. There are 75 points (minutes) total. Stay cool and please write neatly.

More information

Partial model checking via abstract interpretation

Partial model checking via abstract interpretation Partial model checking via abstract interpretation N. De Francesco, G. Lettieri, L. Martini, G. Vaglini Università di Pisa, Dipartimento di Ingegneria dell Informazione, sez. Informatica, Via Diotisalvi

More information

Basic Algebraic Logic

Basic Algebraic Logic ELTE 2013. September Today Past 1 Universal Algebra 1 Algebra 2 Transforming Algebras... Past 1 Homomorphism 2 Subalgebras 3 Direct products 3 Varieties 1 Algebraic Model Theory 1 Term Algebras 2 Meanings

More information

Propositional Dynamic Logic

Propositional Dynamic Logic Propositional Dynamic Logic Contents 1 Introduction 1 2 Syntax and Semantics 2 2.1 Syntax................................. 2 2.2 Semantics............................... 2 3 Hilbert-style axiom system

More information

Spider Diagrams with Absence: Inference Rules for Clutter Reduction

Spider Diagrams with Absence: Inference Rules for Clutter Reduction Spider Diagrams with Absence: Inference Rules for Clutter Reduction Gem Stapleton 1 and Lopamudra Choudhury 2 and Mihir Chakraborty 2 1 Centre for Secure, Intelligent and Usable Systems, University of

More information

The semantics of propositional logic

The semantics of propositional logic The semantics of propositional logic Readings: Sections 1.3 and 1.4 of Huth and Ryan. In this module, we will nail down the formal definition of a logical formula, and describe the semantics of propositional

More information

Inf2D 06: Logical Agents: Knowledge Bases and the Wumpus World

Inf2D 06: Logical Agents: Knowledge Bases and the Wumpus World Inf2D 06: Logical Agents: Knowledge Bases and the Wumpus World School of Informatics, University of Edinburgh 26/01/18 Slide Credits: Jacques Fleuriot, Michael Rovatsos, Michael Herrmann Outline Knowledge-based

More information

3 Propositional Logic

3 Propositional Logic 3 Propositional Logic 3.1 Syntax 3.2 Semantics 3.3 Equivalence and Normal Forms 3.4 Proof Procedures 3.5 Properties Propositional Logic (25th October 2007) 1 3.1 Syntax Definition 3.0 An alphabet Σ consists

More information

02 Propositional Logic

02 Propositional Logic SE 2F03 Fall 2005 02 Propositional Logic Instructor: W. M. Farmer Revised: 25 September 2005 1 What is Propositional Logic? Propositional logic is the study of the truth or falsehood of propositions or

More information

Propositional Logic: Syntax

Propositional Logic: Syntax Logic Logic is a tool for formalizing reasoning. There are lots of different logics: probabilistic logic: for reasoning about probability temporal logic: for reasoning about time (and programs) epistemic

More information

Finite Universes. L is a fixed-length language if it has length n for some

Finite Universes. L is a fixed-length language if it has length n for some Finite Universes Finite Universes When the universe is finite (e.g., the interval 0, 2 1 ), all objects can be encoded by words of the same length. A language L has length n 0 if L =, or every word of

More information

Proofs Propositions and Calculuses

Proofs Propositions and Calculuses Lecture 2 CS 1813 Discrete Mathematics Proofs Propositions and Calculuses 1 City of Königsberg (Kaliningrad) 2 Bridges of Königsberg Problem Find a route that crosses each bridge exactly once Must the

More information

Learning Goals of CS245 Logic and Computation

Learning Goals of CS245 Logic and Computation 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

More information

Introduction to Sets and Logic (MATH 1190)

Introduction to Sets and Logic (MATH 1190) Introduction to Sets Logic () Instructor: Email: shenlili@yorku.ca Department of Mathematics Statistics York University Sept 18, 2014 Outline 1 2 Tautologies Definition A tautology is a compound proposition

More information

07 Equational Logic and Algebraic Reasoning

07 Equational Logic and Algebraic Reasoning CAS 701 Fall 2004 07 Equational Logic and Algebraic Reasoning Instructor: W. M. Farmer Revised: 17 November 2004 1 What is Equational Logic? Equational logic is first-order logic restricted to languages

More information

Structural Induction

Structural Induction Structural Induction In this lecture we ll extend the applicability of induction to many universes, ones where we can define certain kinds of objects by induction, in addition to proving their properties

More information

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

Propositional and Predicate Logic.   jean/gbooks/logic.html CMSC 630 February 10, 2009 1 Propositional and Predicate Logic Sources J. Gallier. Logic for Computer Science, John Wiley and Sons, Hoboken NJ, 1986. 2003 revised edition available on line at http://www.cis.upenn.edu/

More information

Three Profound Theorems about Mathematical Logic

Three Profound Theorems about Mathematical Logic Power & Limits of Logic Three Profound Theorems about Mathematical Logic Gödel's Completeness Theorem Thm 1, good news: only need to know* a few axioms & rules, to prove all validities. *Theoretically

More information

ILP = Logic, CS, ML Stop counting, start reasoning

ILP = Logic, CS, ML Stop counting, start reasoning ILP = Logic, CS, ML Stop counting, start reasoning Gilles Richard AOC team The story so far Several actors K. Brouwer K. Godel J. Herbrand A. Colmerauer R. Kowalski S. Muggleton L. Brouwer (1881-1966)

More information

Errata and Remarks for The Semantics and Proof Theory of the Logic of Bunched Implications BI-monograph-errata.

Errata and Remarks for The Semantics and Proof Theory of the Logic of Bunched Implications  BI-monograph-errata. Errata and Remarks for The Semantics and Proof Theory of the Logic of Bunched Implications http://www.cs.bath.ac.uk/~pym/ BI-monograph-errata.pdf David J. Pym University of Bath 30 March, 2008 Abstract

More information

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

Proseminar on Semantic Theory Fall 2013 Ling 720 Propositional Logic: Syntax and Natural Deduction 1 Propositional Logic: Syntax and Natural Deduction 1 The Plot That Will Unfold I want to provide some key historical and intellectual context to the model theoretic approach to natural language semantics,

More information

Artificial Intelligence

Artificial Intelligence Artificial Intelligence CS482, CS682, MW 1 2:15, SEM 201, MS 227 Prerequisites: 302, 365 Instructor: Sushil Louis, sushil@cse.unr.edu, http://www.cse.unr.edu/~sushil Logic Logical Agents Truth tables you

More information

Class 15: Hilbert and Gödel

Class 15: Hilbert and Gödel Philosophy 405: Knowledge, Truth and Mathematics Spring 2008 M, W: 1-2:15pm Hamilton College Russell Marcus rmarcus1@hamilton.edu I. Hilbert s programme Class 15: Hilbert and Gödel We have seen four different

More information

Revised by Hankui Zhuo, March 21, Logical agents. Chapter 7. Chapter 7 1

Revised by Hankui Zhuo, March 21, Logical agents. Chapter 7. Chapter 7 1 Revised by Hankui Zhuo, March, 08 Logical agents Chapter 7 Chapter 7 Outline Wumpus world Logic in general models and entailment Propositional (oolean) logic Equivalence, validity, satisfiability Inference

More information

Logics for Compact Hausdorff Spaces via de Vries Duality

Logics for Compact Hausdorff Spaces via de Vries Duality Logics for Compact Hausdorff Spaces via de Vries Duality Thomas Santoli ILLC, Universiteit van Amsterdam June 16, 2016 Outline Main goal: developing a propositional calculus for compact Hausdorff spaces

More information

TR : Binding Modalities

TR : Binding Modalities City University of New York (CUNY) CUNY Academic Works Computer Science Technical Reports Graduate Center 2012 TR-2012011: Binding Modalities Sergei N. Artemov Tatiana Yavorskaya (Sidon) Follow this and

More information

Schema Refinement: Other Dependencies and Higher Normal Forms

Schema Refinement: Other Dependencies and Higher Normal Forms Schema Refinement: Other Dependencies and Higher Normal Forms Spring 2018 School of Computer Science University of Waterloo Databases CS348 (University of Waterloo) Higher Normal Forms 1 / 14 Outline 1

More information

CS:4420 Artificial Intelligence

CS:4420 Artificial Intelligence CS:4420 rtificial Intelligence Spring 2018 Logical gents Cesare Tinelli The University of Iowa Copyright 2004 18, Cesare Tinelli and Stuart Russell a a These notes were originally developed by Stuart Russell

More information

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

COMP219: Artificial Intelligence. Lecture 19: Logic for KR COMP219: Artificial Intelligence Lecture 19: Logic for KR 1 Overview Last time Expert Systems and Ontologies Today Logic as a knowledge representation scheme Propositional Logic Syntax Semantics Proof

More information

Natural deduction for propositional logic via truth tables

Natural deduction for propositional logic via truth tables Natural deduction for propositional logic via truth tables Herman Geuvers Nijmegen, NL (Joint work with Tonny Hurkens) Bengt Nordström honorary workshop Marstrand, Sweden April 2016 H. Geuvers - April

More information

Proof Theoretical Studies on Semilattice Relevant Logics

Proof Theoretical Studies on Semilattice Relevant Logics Proof Theoretical Studies on Semilattice Relevant Logics Ryo Kashima Department of Mathematical and Computing Sciences Tokyo Institute of Technology Ookayama, Meguro, Tokyo 152-8552, Japan. e-mail: kashima@is.titech.ac.jp

More information

Relational Database Design

Relational Database Design Relational Database Design Jan Chomicki University at Buffalo Jan Chomicki () Relational database design 1 / 16 Outline 1 Functional dependencies 2 Normal forms 3 Multivalued dependencies Jan Chomicki

More information

CS 380: ARTIFICIAL INTELLIGENCE

CS 380: ARTIFICIAL INTELLIGENCE CS 380: RTIFICIL INTELLIGENCE PREDICTE LOGICS 11/8/2013 Santiago Ontañón santi@cs.drexel.edu https://www.cs.drexel.edu/~santi/teaching/2013/cs380/intro.html Summary of last day: Logical gents: The can

More information

IST 4 Information and Logic

IST 4 Information and Logic IST 4 Information and Logic HW2 will be returned today Average is 53/6~=88% T = today x= hw#x out x= hw#x due mon tue wed thr fri 3 M 6 oh M oh 3 oh oh 2M2M 2 oh oh 2 Mx= MQx out 27 oh M2 oh oh = office

More information

Automated and Human Proofs in General Mathematics: An Initial Comparison

Automated and Human Proofs in General Mathematics: An Initial Comparison Automated and Human Proofs in General Mathematics: An Initial Comparison Jesse Alama 1, Daniel Kühlwein 2, and Josef Urban 2 24 January 2012, Cambridge Semantics and Syntax: A Legacy of Alan Turing (1)

More information

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

COMP219: Artificial Intelligence. Lecture 19: Logic for KR COMP219: Artificial Intelligence Lecture 19: Logic for KR 1 Overview Last time Expert Systems and Ontologies Today Logic as a knowledge representation scheme Propositional Logic Syntax Semantics Proof

More information