Processing math: 100%
본문 바로가기

Study/이산수학

Logic

반응형

Boolean Algebra


Propositions and Well Formed Formulas

propositoin : declarative sentence that "must be true or false but not both"

 

logical connectives :

 

- ¬(not)

 
- (or)
- (implies)


- (and)


- (if and only if)

Well Formed Formula (wff) : all propositional constants and T/F are wffs

 

tautology : 항등

contradiction : 모순

satisfiable wff : wff that is not a contradiction


Normal Forms and Boolean Algebra

design switching circuits using truth table

- switching function : mapping input to output given by truth table

- procedure

1) Obtain wff corresponds

2) Minimize this wff

3) Obtain the circuit

- notation switching

 - ->

 - -> +

 - propositional constant -> boolean value

 - wff -> boolean expression

 - connective -> operator

 

literal : either boolean variable or its complement

minterm : boolean expression which is conjuction of literals

maxterm : boolean expression which is disjunction of literals

clause : either dijunction or conjunction of literals

 

conjunctive normal form(CNF) : conjunction of clauses

disjunctive normal form(DNF) : disjunction of cluases

 

Procedure to obtain corresponding boolean expression

- using minterm

1) create minterm for each truth table row

2) take disjunction of minterms

- using maxterm

1) create maxterm for each truth table row

2) take conjunction of maxterms

or use karnaugh map

 

Boolean Algebra (K,,+) following laws(Huntington's Postulates)

1. (Closure) ab, a+b are in K

2. (Commutativity) ab=ba and a+b=b+a

3. (Distributivity) a(b+c)=ab+ac and a+(bc)=(a+b)(a+c)

4. (Identity and zero elements) a1=a and a+0=a

5. (Complement) for complement of a, aˉa=0 and a+ˉa=1

6. There are at least two distinct elements a and b, ab in K

 

dual :

1. replace all by + and + by

2. replace all 0 by 1 and 1 by 0

 

Boolean Algebra Theorem

1. identity and zero (1 and 0) are unique

2. aa=a and a+a=a

3. a0=0 and a+1=1

4. a have unique complement ˉa

5. a=¬¬a

6. ˉ1=0 and ˉ0=1

7. ¯ab=ˉa+ˉb and ¯a+b=ˉaˉb (De Morgan's Law)

8. a(bc)=(ab)c and a+(b+c)=(a+b)+c (Associativity)

9. a(a+b)=a and a+(ab)=a (Absorption)

10. a(ˉa+b)=ab and a+(ˉab)=a+b


Proof Methods

Truth table method

- determine whether wff is tautology by using truth table for "premises=>conclusion"

- needs lots of rows(2^{# of constant} rows)

 

logical equivalance : two wffs α and β are equivalent iff αβ is tautology

inference rule

- format : {α1,α2,,αk}|=β where αis and β are wffs

- interpretation : infer that β is true once we have shown each of αis is true

ex)

{α,β}|=αβ

{α,β}|=α

{α,β}|=β

{α}|=αβ

{β}|=αβ

{α,αβ}|=β   modus ponens(MP)

{ˉβ,αβ}|=ˉα   modus tollens(MT)

{ˉα,αβ}|=β   disjunctive syllogism(disj. syll.)

{αβ,βγ}|=αγ hypothetical syllogism(hypo. syll.)

{αβ,γδ}|=αγβδ

{αβ,ˉαβ}|=β

- we see that α1α2αkβ

 

Truth method that may be used to show taht a wff is a tautology

Trivial Proof(tirv. pf.) : to show α1α2, show α2 is tautology

- {α2}|=α1α2

Vacuous Proof(vac. pf.) : to show α1α2, show α1 is contradiction

- {¬α1}|=α1α2

Direct Proof(dir. pf.) : to show α1α2, assume α1 is true and this implies α2 is true

Indirect Proof(ind. pf.) : to show α1α2, assume α2 is false and implies α1 also false

Proof by cases(by cases) : for α1α2αkβ, show α1β,,αkβ

Proof by contradiction(contr.) : to show α is true, first assume α is false and arrive contradiction


Tableau Method

tableau method

- mechanical procedure to determine if wff is tautology, contraadiction or satisfiable

- applied directly only to DNF wffs

c.f.) Davis-Putnam procudure requires CNF

- process into DNF

1. eliminate all occurance of and using αβˉαβ and αβ(αβ)(βα)

2. repeatedly use De Morgan's laus so that resulting wff contains only literals and operator and

3. transform into DNF using α(βγ)(αβ)(αγ)) 

4. simplify wff resulting from 1~3 using ppp and ˉpˉpˉp

- process into CNF

1. same as above

2. same as above

3. transform into CNF using α(βγ)(αβ)(αγ)

4. simplify wff resulting from 1~3 using ppp and ˉpˉpˉp


First Order Logic(FOL) / First Order Predicate Calculus

propositional logic isn't powerful enough to make all inferences that may be possible from given set of premises.

 

first order logic (FOL) ( = first order predicate calculus )

- wffs of first order logic contain predicates and quantifiers

 

predicates

- P(x1,x2,,xn),n>0, mapping from x1,,xn to values T/F

 n: degree of predicate

 P : symbol

 x_i : parameters

 

quantifiers

- Universal : xP(x) : for all x, P(x) is true

- Existential : xP(x) : there exist x that make P(x) true

 

a wff of FOL

- all propositional constants, predicates, T/F are FOL wffs

- if a and b are FOL wffs, all basic representation of a and b are FOL wffs

- x(α) and x(α) are FOL wffs whenever α is FOL wff and x in not bound in α

- nothing else is FOL wff

 

 

proof methods of FOL wffs

By Example : To show that xα(x), sufficient to show α(x) is true for some x

By counter example : To show xα(x) is false, sufficient to show α(x) is false for some x

By generalization : To show xα(x) is true, sufficient to show α(x) is true for arbitrary x (!= some particular x)


학교 강의를 토대로 개인 공부 목적으로 작성되어 오타가 및 오류가 있을 수 있으며, 문제가 될 시 삭제될 수 있습니다.

반응형

'Study > 이산수학' 카테고리의 다른 글