Basic propositional and. The fundamentals of deduction

Similar documents
Conjunctive Normal Form & Horn Clauses

Image Enhancement: Histogram-based methods

ψ - exponential type orbitals, Frictional

V V The circumflex (^) tells us this is a unit vector

Solutions Practice Test PHYS 211 Exam 2

Pledge: Signature:

arxiv: v1 [cs.lo] 11 Aug 2017

Chapter 8 Sampling. Contents. Dr. Norrarat Wattanamongkhol. Lecturer. Department of Electrical Engineering, Engineering Faculty, sampling

Then the number of elements of S of weight n is exactly the number of compositions of n into k parts.

Gravity. David Barwacz 7778 Thornapple Bayou SE, Grand Rapids, MI David Barwacz 12/03/2003

Chapter 19 Webassign Help Problems

556: MATHEMATICAL STATISTICS I

Estimation and Confidence Intervals: Additional Topics

Theorem 2: Proof: Note 1: Proof: Note 2:

Histogram Processing

INFLUENCE OF DESIGN DATA OF INDUCTION MOTOR ON EFFECTS OF CAGE ASYMMETRY

The Normal Stress Dıstribution in an Infinite. Elastic Body with a Locally Curved and Hollow. Fiber under Geometrical Nonlinear Statement

CMSC 425: Lecture 5 More on Geometry and Geometric Programming

On the Efficiency of Markets with Two-sided Proportional Allocation Mechanisms

Rotational Kinetic Energy

Online-routing on the butterfly network: probabilistic analysis

Analysis of Arithmetic. Analysis of Arithmetic. Analysis of Arithmetic Round-Off Errors. Analysis of Arithmetic. Analysis of Arithmetic

Fall 2004/05 Solutions to Assignment 5: The Stationary Phase Method Provided by Mustafa Sabri Kilic. I(x) = e ixt e it5 /5 dt (1) Z J(λ) =

Dorin Andrica Faculty of Mathematics and Computer Science, Babeş-Bolyai University, Cluj-Napoca, Romania

MATHEMATICAL MODEL FOR THE BLOOD FLOW IN CAPILLARY VESSELS

18.06 Problem Set 4 Solution

Goodness-of-fit for composite hypotheses.

Well-Posedness of Feedback Loop:

How can you find the dimensions of a square or a circle when you are given its area? When you multiply a number by itself, you square the number.

In statistical computations it is desirable to have a simplified system of notation to avoid complicated formulas describing mathematical operations.

Section 25 Describing Rotational Motion

Figure 1 Siemens PSSE Web Site

Appendix A. Appendices. A.1 ɛ ijk and cross products. Vector Operations: δ ij and ɛ ijk

Second Order Fuzzy S-Hausdorff Spaces

Problem Set #10 Math 471 Real Analysis Assignment: Chapter 8 #2, 3, 6, 8

Chapter Eight Notes N P U1C8S4-6

The second law of thermodynamics - II.

Computational Geometry. Kirkpatrick-Seidel s Prune-and-Search Convex Hull Algorithm

Precision Spectrophotometry

A Simplifier for Propositional Formulas with Many Binary Clauses

22.615, MHD Theory of Fusion Systems Prof. Freidberg Lecture 18

Syntactical content of nite approximations of partial algebras 1 Wiktor Bartol Inst. Matematyki, Uniw. Warszawski, Warszawa (Poland)

ONE-POINT CODES USING PLACES OF HIGHER DEGREE

F-IF Logistic Growth Model, Abstract Version

Properties of the natural logarithm and exponential functions

Problem Set 8 Solutions

of the contestants play as Falco, and 1 6

New problems in universal algebraic geometry illustrated by boolean equations

Recognizable Infinite Triangular Array Languages

ASTR 3740 Relativity & Cosmology Spring Answers to Problem Set 4.

On the Efficiency of Markets with Two-Sided Proportional Allocation Mechanisms

Markscheme May 2017 Calculus Higher level Paper 3

REPRESENTATION OF ALGEBRAIC STRUCTURES BY BOOLEAN FUNCTIONS. Logic and Applications 2015 (LAP 2015) September 21-25, 2015, Dubrovnik, Croatia

Vector d is a linear vector function of vector d when the following relationships hold:

Inference for A One Way Factorial Experiment. By Ed Stanek and Elaine Puleo

Impulse and Momentum

Pushdown Automata (PDAs)

MATH 415, WEEK 3: Parameter-Dependence and Bifurcations

Probabilistic number theory : A report on work done. What is the probability that a randomly chosen integer has no square factors?

Physics 121 Hour Exam #5 Solution

Q. Obtain the Hamiltonian for a one electron atom in the presence of an external magnetic field.

Numerical solution of the first order linear fuzzy differential equations using He0s variational iteration method

Lot-sizing for inventory systems with product recovery

arxiv:math/ v2 [math.ag] 21 Sep 2005

On the integration of the equations of hydrodynamics

Solutions to Problem Set 8

Force & Motion: Newton s Laws

When two numbers are written as the product of their prime factors, they are in factored form.

one primary direction in which heat transfers (generally the smallest dimension) simple model good representation for solving engineering problems

Noether Theorem, Noether Charge and All That

Multivariable Control Systems

Approximating the minimum independent dominating set in perturbed graphs

arxiv: v3 [math.co] 14 Oct 2010

Using Laplace Transform to Evaluate Improper Integrals Chii-Huei Yu

Cross section dependence on ski pole sti ness

The 2-Sylow subgroups of the tame kernel of imaginary quadratic fields

AP Physics Centripetal Acceleration

Chapter 2: Introduction to Implicit Equations

A Fundamental Tradeoff between Computation and Communication in Distributed Computing

Simulation of Spatially Correlated Large-Scale Parameters and Obtaining Model Parameters from Measurements

Multiple Experts with Binary Features

arxiv: v1 [math.cv] 7 Nov 2018

Polar Coordinates. a) (2; 30 ) b) (5; 120 ) c) (6; 270 ) d) (9; 330 ) e) (4; 45 )

FI 2201 Electromagnetism

Political Science 552

On the undulatory theory of positive and negative electrons

The Substring Search Problem

16 Modeling a Language by a Markov Process

Symmetry of Lagrangians of holonomic systems in terms of quasi-coordinates

PHYSICS 151 Notes for Online Lecture 2.6

AE 423 Space Technology I Chapter 2 Satellite Dynamics

Math 124B February 02, 2012

Chem 453/544 Fall /08/03. Exam #1 Solutions

Determining the Best Linear Unbiased Predictor of PSU Means with the Data. included with the Random Variables. Ed Stanek

1.6. Trigonometric Functions. 48 Chapter 1: Preliminaries. Radian Measure

RE 11.e Mon. Review for Final (1-11) HW11: Pr s 39, 57, 64, 74, 78 Sat. 9 a.m. Final Exam (Ch. 1-11)

Edge Cover Time for Regular Graphs

Related Rates - the Basics

LECTURE 14. m 1 m 2 b) Based on the second law of Newton Figure 1 similarly F21 m2 c) Based on the third law of Newton F 12

Chapter 5 Linear Equations: Basic Theory and Practice

Transcription:

Baic ooitional and edicate logic The fundamental of deduction 1

Logic and it alication Logic i the tudy of the atten of deduction Logic lay two main ole in comutation: Modeling : logical entence ae the building block of comutation model Analyzing: logic oof ae fundamental fo eaoning about, and infeing oetie of comutational ytem model 2

Baic element in logic Declaative entence alo called ooition I any tatement which can be unambiguouly detemined to be eithe Tue o Fale Logical connective Connect logical tatement. Thee ae fou logical connective NAME Semantic Symbol Negation NO Conjunction Dijunction Imlication AND OR IF THEN 3

Atomic and comound entence An atomic entence i a ooition that doe not contain any logical connective Examle: A: 3 > 4 Thi i clealy a fale atomic entence A comound entence i a ooition comoed by two o moe entence linked with logical connective Examle: A: 3 > 4 2 > 3 Thi i a comound ooition ince it ha an imlication, but I thi ooition tue o fale? 4

oof ytem The eviou quetion cannot be oely anwe without a well-etablihed oof Sytem A oof ytem i a et of ule and oeation fo detemining the tuth value of a comound entence out of the tuth value of it atomic contituent Examle of oof ytem ae: Boolean algeba to be eviewed oon Natual deduction modu onen, modu tollen, etc. Not in the coe of thi coue 5

Vaiable In cience, vaiable ae lace holde of value. A uch, vaiable have: Meaning what the ymbol eeent Value any value in the domain of the vaiable Examle: Let eeent the hyical concet of time with a vaiable. Let t be the ymbol denoting the time The natual domain of t i the et of all nonnegative eal numbe. We wite: t : time when defining the meaning of ymbol t t = 1.25 econd when evaluating i.e. chooing a value in the domain of t 6

Boolean Vaiable A Boolean vaiable i any vaiable whoe domain i the et {0, 1} i.e. can take only the value 0 o 1 ooition ae nomally eeented by Boolean vaiable. The value that uch vaiable take ae conventionally inteeted a 0 if the ooition i fale and 1 if the ooition i tue Examle of a Boolean vaiable A : 3 i le than 3.2 meaning of ymbol A A = 1 value of A 7

ooitional v. edicate logic ooitional logic deal olely with ooition and logical connective Examle: A: 3 < 4 Clealy A=1 edicate logic add edicate and quantifie A edicate i a logical tatement that deend on one o moe vaiable not neceaily Boolean vaiable Examle: B y : x i le than y The definition and value of B y deend on x and y If x = 3 and y = 4, then B y = B3, 4 = 1 If x = 4 and y = 3, then B y = B4, 3 = 0 If x = + and y = /, the B y i in incile undefined 8

uantifie uantifie ae ued to declae ange of a edicate vaiable in which the edicate aume eithe 0 o 1, but no both. A edicate with no quantifie i aid to be a fee edicate Thee ae two quantifie NAME SEMANTIC SYMBOL Univeal Exitential FOR ALL THERE EXISTS 9

Illutation: ue of quantifie Conide the fee edicate A y:" x < y x < 2 y whee x and y ae eal numbe. Some value fo thi edicate ae: A.5,.9 = 1 A.5,.6 = 0 A.6,.5 = 1 A.9,.93 = 0 A.9,.96 = 1 " By imoing quantifie we may oduce the following tue edicate: B y :" x x 1 A y" C y :" y0 x y D y :" x x < E y :" y0 0 A y" 2 x < 1 A y" 2 x x < y < 1 A y" Remak: A edicate that i alway tue o alway fale can be teated a a ooition that i tue o fale, eectively. Thi i, it can be evaluated and analyzed with the tool of ooitional logic 10

ooitional logic A logical theoy that involve only ooition i.e. it ha no edicate i called ooitional Logic Thee ae two main veion of ooitional Logic: Semantic ooitional logic ooitional calculu Thee two veion diffe only in thei oof ule oof in emantic ooitional logic ae baed on Boolean algeba oof in ooitional calculu ae baed on the ocalled ule of natual deduction 11

Tuth table and valuation A valuation of a entence i an aignment any aignment of tuth value to the tatement that comoe the entence If we combine two tatement with a logical connective, the value of the eulting comound tatement i detemined by two thing: The choen valuation The emantic meaning of the logical connective The meaning of each connective unde all oible valuation i declaed in a tuth table 12

The tuth table of negation The imlet cae of tuth value i negation. In thi cae, thee i only one entence, and theefoe, only two oible valuation. The emantic i alo vey natual: if the entence i tue, it negation i fale, and vice vea. Thu, the tuth table of negation i imly A A 0 1 1 0

Dijunction and conjunction tuth table A B A B 0 0 0 0 1 0 1 0 0 1 1 1 A B A B 0 0 0 0 1 1 1 0 1 1 1 1 Thee ae fou oible valuation in each of thee cae 14

Imlication tuth table: Hyothei->Thei In imlication, the vaiable A eeent a hyothei tatement while the vaiable B, a thei tatement A B A B 0 0 1 0 1 1 1 0 0 1 1 1 The fit two ow in thi table indicate that when the hyothei i fale, the imlication will not diciminate between a tue o a fale thei. It will alway etun tue. Thee ae called vacuouly tue imlication The econd two ow tell a diffeent toy. In thi cae a we alway hoe in actice the hyothei i tue. Then, the tuth value of the thei i faithfully eflected in the value of the imlication. If the thei i fale, o i the imlication, and vice vea. 15

Comuting with tuth table We ae now in oition to anwe the quetion I A : 3 < 4 2 < 3 tue o fale? Anwe: Identify the atomic entence that comoe A. Let B : 3 < 4, and C : 2 < 3 Now, we ee that A ha the fom B C Since B = 0 and C = 0, fom the vey fit ow of the table of imlication we conclude that A i Tue although vacuouly! I thee a valuation making the tatement tue? 0 0 1 0 0 1 1 1 1 0 0 0 1 1 0 0 Ye: =0, =1 16

Equivalence between ooition Two ooition A and B ae aid to be equivalent if thei tuth value ae the ame in all oible valuation. Equivalence i denoted A B Equivalence i not the ame a equality: two ooition may be equivalent even if they diffe in thei meaning Equivalence i a hothand fo A B B A 17

Imotant equivalence Conjunctive fom of imlication Contaoitive fom of De Mogan ule Ditibutive ule R R imlication Idemotency ule Aociative ule Commutative ule 18 R R R R R R

Some alication Demontate that i equivalent to Demontate that i equivalent to q q oof: 19 oof: q q q q q q q

The negation of a edicate Negating a edicate that contain quantifie demand, in addition, the ue of the emantic table Thee negation ule mut be alied togethe with the eviouly dicued equivalence, when teating edicate a ooition UANTIFIER Univeal Exitential NEGATION Exitential Univeal 20

Yet anothe imotant equivalence The next equivalence decibe the actual negation oeation fo elemental edicate with quantifie Let x, y,..., z be a edicate. Then, y,..., z y,..., z x y,..., z y,..., z x y... z y,..., z y... z y,..., z 21

Illutation Let conide the negation of B :" x1 x A y" whee 2 2 A y :" x < y x < y " Anwe: B x1 x A y Remak: thi i, a exected, a fale tatement The infomal exeion y i a hot hand fo x y In geneal, the ymbol, i a to be taken a a hot hand fo and Thu, y x y and y0 x y 1 A y x y0 x y 1 A y 22

Comoed quantifie Alo common ae edicate whoe quantifie i a comoition of the univeal and the exitential quantifie Fo each x thee i a y uch that y i tue x y x, y Thee i an x uch that fo all y y i tue Thei negation ae Reectively x y x, y x x y y x x,, y y, and 23

Boolean fomula A Boolean fomula i a well-fomed combination of Boolean vaiable and logical connective q The combination I a Boolean fomula The combination q I not a Boolean fomula Any eeentation of a ooition in tem of Boolean vaiable and logical connective yield a Boolean fomula. 24

Two imotant oblem Given a combination of ymbol and logical connective: I it a Boolean fomula? Domain: A et of ymbol and logical connective Intance: A ting of ymbol and logical connective uetion: I the ting a Boolean fomula? Given a Boolean fomula: can we find a valuation that make it tue? Domain: All Boolean fomula Intance: A Boolean fomula uetion: I thee a valuation that make the fomula tue? 25