LATTICES AND BOOLEAN ALGEBRA

Slides:



Advertisements
Similar presentations
CSE 20 Lecture 9 Boolean Algebra: Theorems and Proofs CK Cheng April 26, 2011 Lecture notes 1.
Advertisements

(CSC 102) Discrete Structures Lecture 14.
8.6 Partial Orderings. Definition Partial ordering– a relation R on a set S that is Reflexive, Antisymmetric, and Transitive Examples? R={(a,b)| a is.
1.  We have studied groups, which is an algebraic structure equipped with one binary operation. Now we shall study rings which is an algebraic structure.
Mathematics. Matrices and Determinants-1 Session.
Boolean Algebra Supplementary material. A Boolean algebra B is a boolean algebra means B is a set with elements in it a,b,…,0,1Є B and operators * (and),
Boolean Algebra cont’ The digital abstraction Graphs and Topological Sort מבנה המחשב + מבוא למחשבים ספרתיים תרגול 2#
Chapter 3 Boolean Algebra and Logic Gate (Part 2).
מבנה המחשב + מבוא למחשבים ספרתיים תרגול 1#
1 CA 208 Logic Ex4 Commutativity (P  Q)  Associativity P  (Q  R)  (P  Q)  R Distributivity P  (Q  R)  Idempotency.
1 CSE 20: Lecture 8 Boolean Postulates and Theorems CK Cheng 4/26/2011.
Orderings and Bounds Parallel FSM Decomposition Prof. K. J. Hintz Department of Electrical and Computer Engineering Lecture 10 Update and modified by Marek.
Boolean Algebra cont’ The digital abstraction מבנה המחשב + מבוא למחשבים ספרתיים תרגול 2#
EE1J2 - Slide 1 EE1J2 – Discrete Maths Lecture 12 Number theory Mathematical induction Proof by induction Examples.
Lattice and Boolean Algebra
Rosen 1.6. Approaches to Proofs Membership tables (similar to truth tables) Convert to a problem in propositional logic, prove, then convert back Use.
3-4 Algebra Properties Used in Geometry The properties of operations of real numbers that you used in arithmetic and algebra can be applied in geometry.
Partially Ordered Sets (POSets)
Chapter 6. Order Relations and Structure
Boolean Algebra and Logic Simplification. Boolean Addition & Multiplication Boolean Addition performed by OR gate Sum Term describes Boolean Addition.
The Integers. The Division Algorithms A high-school question: Compute 58/17. We can write 58 as 58 = 3 (17) + 7 This forms illustrates the answer: “3.
1S Algebra Revision! $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400.
Laws (Theorems) of Boolean algebra Laws of Complementation oThe term complement means, to invert or to change 1's to 0's and 0's to 1's, for which purpose.
Honors Geometry Intro. to Deductive Reasoning. Reasoning based on observing patterns, as we did in the first section of Unit I, is called inductive reasoning.
6.6 Rings and fields Rings  Definition 21: A ring is an Abelian group [R, +] with an additional associative binary operation(denoted · such that.
Sets, Relations, and Lattices
Boolean Algebras Lecture 27 Section 5.3 Wed, Mar 7, 2007.
Introduction to Real Analysis Dr. Weihu Hong Clayton State University 8/19/2008.
CSCI 171 Presentation 9 Matrix Theory. Matrix – Rectangular array –i th row, j th column, i,j element –Square matrix, diagonal –Diagonal matrix –Equality.
Chapter 2 … part1 Matrices Linear Algebra S 1. Ch2_2 2.1 Addition, Scalar Multiplication, and Multiplication of Matrices Definition A matrix is a rectangular.
Dale Roberts Department of Computer and Information Science, School of Science, IUPUI Dale Roberts, Lecturer Computer Science, IUPUI
Snick  snack Supplement: Worked Set Proofs Based on work by Meghan Allen.
Properties of Sets Lecture 26 Section 5.2 Tue, Mar 6, 2007.
UNIT - 2.  A binary operation on a set combines two elements of the set to produce another element of the set. a*b  G,  a, b  G e.g. +, -, ,  are.
Concept. Example 1 State the Assumption for Starting an Indirect Proof Answer: is a perpendicular bisector. State the assumption you would make to start.
Laws (Theorems) of Boolean algebra Laws of Complementation oThe term complement means, to invert or to change 1's to 0's and 0's to 1's, for which purpose.
BOOLEAN ALGEBRA Only involves in calculations of TRUE and FALSE; either be inputs or output. When a logic statement is TRUE it is assigned a Boolean logic.
BOOLEAN ALGEBRA – Digital Circuit 1 Choopan Rattanapoka.
Functions (Mappings). Definitions A function (or mapping)  from a set A to a set B is a rule that assigns to each element a of A exactly one element.
Linear Algebra Chapter 2 Matrices.
Section 3.3 Proving set properties. Element-wise set proofs Claim. For all sets A and B, (A  B)  A. Proof. Let sets A and B be given. Since every element.
Advanced Digital Designs Jung H. Kim. Chapter 1. Sets, Relations, and Lattices.
Iterative Dataflow Problems Taken largely from notes of Alex Aiken (UC Berkeley) and Martin Rinard (MIT) Dataflow information used in optimization Several.
6.6 Rings and fields Rings  Definition 21: A ring is an Abelian group [R, +] with an additional associative binary operation (denoted ·) such that.
Prepared By Meri Dedania (AITS) Discrete Mathematics by Meri Dedania Assistant Professor MCA department Atmiya Institute of Technology & Science Yogidham.
Boolean Algebra How gates get picked. Boolean Arithmetic Boolean ≠ Binary – Boolean – 1/0 only, no places Boolean addition:
Hoda Roodaki Boolean Algebra Hoda Roodaki
Chapter 6 Order Relations and Structures
Set Theory.
Unit-III Algebraic Structures
Partial Orders (POSETs)
Week 7 - Monday CS322.
SLIDES FOR CHAPTER 2 BOOLEAN ALGEBRA
Sets and Logic…. Chapter 3
Boolean Algebra.
Factoring Foundation Ms. Finnegan Algebra 1.
CSE 20 Lecture 9 Boolean Algebra: Theorems and Transformations
Boolean Algebra Introduction CSCI 240
B.Sc. III Year Mr. Shrimangale G.W.
Lecture 20: Dataflow Analysis Frameworks 11 Mar 02
CSE 20: Lecture 8 Boolean Postulates and Theorems CK Cheng
Boolean Algebra How gates get picked.
Background material.
Boolean Algebra: Theorems and Proofs
BOOLEAN ALGEBRA.
Background material.
Basics of Relations.
CSC102 - Discrete Structures (Discrete Mathematics) Set Operations
Boolean Algebra: Theorems and Proofs
Properties of Numbers Review Problems.
Presentation transcript:

LATTICES AND BOOLEAN ALGEBRA Lemma:1 Show that ab a,b a+b for any two elements a&b in a lattice( L, ) Proof: Let a,b L we know that ab is glb of a & b a^b= ab is a lower bound of a and b  a b a, a b b Also a+b=ab is a lub of a&b a+b is an upper bound of a & b  a  a+b; b  a+b Lemma:2 Let (L, ) be a lattice, and a,b L a b =b (ii) a^b=a If a b, then show that Proof: (i) Given that a b we know that b b  b is upper bond of a&b But a b a+b is lub of a& b but always b (a b ) a b b but always b (a b ) a b=b Given that a b we know that a a Therefore a is a lower bound of a&b But ab = a^b is glb of a&b. a  a^b But always a^b a Therefore a^b=a Lemma:3 Let (L, , ^) be a lattice, and a,b,c L prove that if avb=a+b c a^b= a b c By the assumption , a c, b c C is an upperbound of a&b We know that a+b is the least upper bound of a&b a+b c

LATTICES AND BOOLEAN ALGEBRA Theorem : 1 Let (L, , ) be a lattice, and a, b, c, d,  L. (i) a  b  c  d (ii) a  b  c  d Proof: (i) Let x = c  d,  x = is lub of c & d  x is also an upper bound of c & d.  c  x, d  x. Now a  c, c  x  a  x; b  d, d  x  b  x.  x is also an upper bound of a & b.& a  b is lub of a & b Thus a  b  x = c  d. (ii) Let y = a  b  y is glb of a & b. y is lower bound of a & b.  y  a; y  b. Now y  a, a  c  y  c. y  b, b  d  y  d.  y is a lower bound of c & d. c  d is glb of c & d. Thus y  c  d  a  b  c  d

State and prove the following laws in a lattice (L, ). Theorem : 2 State and prove the following laws in a lattice (L, ). (i) absorption laws (ii) idempotent laws (iii) Commutative laws. Proof: Case (i) The absorption laws are a  a ( b) = a; a  (a  b) = a, We know that a  a  (a  b),  a, b  L, Also a  b  a, a  a  a  (a  b)  a  a = a  a = a  (a  b) Similarly, a  (a  b)  a,  a, b  R. Further a  a, a  (a  b) a  a  a  (a  b)  a  a  (a  b)  a  (a  b) = a Case (ii) The idempotent laws are a  a ; a  a = a. We have a  a  a, a  a  a. But a  a is lub of a & a. a  a is glb of a a & a. Here a  a  a  a  a, a  a  a.  a  a = a; a  a = a Case (iii) The commutative laws are a  b = b  a ; a  b = b  a. For this, a  b is lub of a & b. b  a is lub of b & a. We know that the lub of a & b = lub of b & a,  a  b = b  a. Similarly a b = b  a.

Theorem : 3 State and prove Isotonicity property in a lattice Proof: Let (L, ) be a lattice. For a, b, c,  L, the following properties called isotonicity laws. b  c a * b  a * c ; a  b  a  c. (ie) b  c  a  b  a  c ; a  b  a  c. Let us assume that b  c. Claim : a  b  a  c Let x = a  c. Then x is lub of a & c.  x is an upper bound of a & c.  a  x, c  x But b  c, c  x  b  x Also a  x.  x is upper bound of a & b But a  b is lub of a & b.  a  b  x = a  c. Claim : a  b  a  c. Let y = a  b  y is glb of a & b  y is a lower bound of a & b y  a, y  b. Using b c, y  c.  y is a lower bound of a & c. But a  c is glb of a & c.  y  a  c  a  b  a  c.

Theorem: 4 State and prove modular inequality in a lattice. Proof: Let (L, ) be a lattice For any a, b, c  L, the following inequality holds in L. a  c iff a  (b  c)  (a  b)  c. Case (i) Let a  c. We know that b  a  b c  c,   b, c  L.  c is an upper bound of a & b  c. But x = a  (b  c) is lub of a a & b  c.  x = a  (b  c)  c Now we know that a  a, b  c  b By isotonicity property, x=a  (b  c)  a  b By (1) and (2) x x  (a b) c  x=a  (b  c)  (a b) c Case(ii): Conversly, let a  (b  c)  (a b) c we have a  a y , V y L a  (a b) c  (a b) c (by assumption) c a c hence the proof.

Theorem:5 Let (L, ) be a lattice. For any a,b,cL Prove the following inequailities hold in L. (i) a  (bc) (ab) (a  c) (ii) a (b  c) > (a  b)  (a  c) Proof: Let a, b, c  L. (i) a  ab; a  ac.  a = a a(ab)  (a  c) (by a result)………..(1) Also b  a  b ; c a c  bc  (ab)  (a c) (by a result)……………..(2) By (1) & (2), a  (b  c)  (a  b)  (a  c) (ii) We know that a  b a, a  c a = (a  b)  (a  c)  a  a=a (by a result)………..(3) Also a  b  b, a c c = (a  b) ( a c)  c……………………………….(4) By (3) & (4) (a  b)  (a  c) a (b c)

In a lattices if a b c, show that (i) ab = bc Theorem:6 In a lattices if a b c, show that (i) ab = bc (ii) (a b)  (bc) = (ab) ( a c) Proof: a b  a  b=b, a  b =a b c  b  c=c, b  c =b a c  a  c=c, a  c =a a  b = b = b c ……………………….............. (i) follows Now (a  b)  ( b c) = ab =b (a  b)  (a c) = b c =b ……………….. (ii) follows

Theorem: 7 In a lattice (L, ), show that (i) (a  b)  (c  d)  (a  c)  (b  d) (ii) (a  b)  (b  c )  (c  a)  (a  b)  (b  c)  (c  a),  a, b, c  L. Proof: Let a, b, c  L. Then a  b  a (or) b  a  b a  b  a  c  a a  b  b  b  c Using (1), (2) & (3), we get a  b  (a  b)  (b  c)  (c  a) Similarly b  c  (a  b)  (b  c)  (c  a) c  a  (a  b)  (b  c)  (c  a) This proves (ii) We have a  a  c, b  b  d  (a  b)  (a  b)  (b  d) We know that c  a  c d  b  d  c  d  (a  b)  (b  d) By (4) & (5), (a  b)  (c  d)  (a  b)  (b  d). This proves (i).

Theorem: 8 In a lattice (L, ), Prove that for a, b, c  L, (i) (a  b)  (a  c)  a  (b  (a  c)) (ii) (a  b)  (a  c) ≥ a  (b  (a  c)) Proof: We know that a  b  a, a  c  a  (a  b)  (a  c)  a  a = a Also a  b  b, a  c  a  c.  (a  b)  (a  c)  b  (a  c) From (1) & (2), (a  b)  (a  c)  a  (b  (a  c)) This proves (i) We know that a  a  b ; a  a  c  a = a  a  (a  b) (a  c) Further b  a  b ; a  c  a  c  b  (a  c)  (a  b)  (a  c) By (3) & (4), a  (b  (a  c))  (a  b)  (a  c). This proves (ii)

Definition: (Distributive lattice): Let (L,  ) be a lattice under  (ie) (L, ) is a lattice in which both lub and glb of any two elts exist in L). Then (K  ) is called distributive lattice iff a  (b  c) = (a  b)  (a  c) a (b  c) = (a  b)  (a  c) ,  a, b, c  L

Theorem: 9 Show that every chain is a distributive lattice. Proof: Let (l, ) be a chain . Let a, b, cL. Then there are the following possible cases. Case (i): a  b  c Then a  (b  c) = a  c =a (a  b)  (a  c) = a  a = a a  (b  c) = a  b = b ( b  c = c) (a  b)  (a  c) = b  c = b ( a  b = b; a  c = c)  Both distributive laws hold. Case (ii); Let a ≥ b ≥ c. The a  c = b; a  b = a, a  c = c; a  c = a Now a  (b  c) = a  b = b (a  b)  (a  c) = b  c = b Also a  (b  c) = a  b = a; ( b  c  a), (a  b)  (a  c) = a  a = a  Both distributive laws hold.