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) a⋅b, a+b are in K
2. (Commutativity) a⋅b=b⋅a and a+b=b+a
3. (Distributivity) a⋅(b+c)=a⋅b+a⋅c and a+(b⋅c)=(a+b)⋅(a+c)
4. (Identity and zero elements) a⋅1=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, a≠b 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. a⋅a=a and a+a=a
3. a⋅0=0 and a+1=1
4. a have unique complement ˉa
5. a=¬¬a
6. ˉ1=0 and ˉ0=1
7. ¯a⋅b=ˉa+ˉb and ¯a+b=ˉa⋅ˉb (De Morgan's Law)
8. a⋅(b⋅c)=(a⋅b)⋅c and a+(b+c)=(a+b)+c (Associativity)
9. a⋅(a+b)=a and a+(a⋅b)=a (Absorption)
10. a⋅(ˉa+b)=a⋅b and a+(ˉa⋅b)=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 p∧p≡p 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 p∨p≡p 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 > 이산수학' 카테고리의 다른 글
Recurrence Relations and Recursive Algorithms (0) | 2021.12.13 |
---|---|
Discrete Numeric Functions and Generating Functions (0) | 2021.12.13 |
Analysis of Algorithms (2) | 2021.12.13 |
Graphs (2) | 2021.12.13 |
Relations and Functions (0) | 2021.12.12 |