UPI Study › Courses › Discrete Mathematics › Free lessons › Lesson 2.5 Free with a free account
Partially Ordered Sets and Lattices
Discrete Mathematics · Chapter 2: Set Theory and FunctionsSection 2.5 · lesson 13 of 878 min · free with a free account
Free preview
Create a free account to keep watching
It takes a minute and costs nothing. Your free account unlocks all of Chapter 1 and 3 more lessons of Discrete Mathematics.
Lesson complete
Earn the 4 college credits for Discrete Mathematics
Enrolling adds a quiz after each lesson, the graded work and the official transcript. Recommended for credit by NCCRS.
Next lesson: Functions: Definitions and Terminology →← Cardinality and Types of SubsetsNext lesson: Functions: Definitions and Terminology →
In this lesson
When some pairs compare - and some simply don't.
- Test a relation for reflexivity, antisymmetry, and transitivity
- Define a partial order and draw its Hasse diagram
- Identify chains, antichains, and total orders
- Compute joins and meets, and recognize a lattice
Transcript
Everything said in the video, section by section (1,237 words). Read along, or search it.
Set Theory and Functions
Partially Ordered Sets and Lattices
This section studies how elements of a set can be ordered, when not every pair can be compared. We'll test relations for three key properties, and define a partial order. We'll draw orders as Hasse diagrams. And we'll meet chains, antichains, and lattices, where every pair has a least upper bound and a greatest lower bound.
The Opening Problem
Does One Role Sit Inside Another?
A cloud platform defines every access-control role by exactly the set of permissions it grants, drawn from a fixed universe such as read, write, and delete. When an auditor asks whether one role's access sits inside another's, the question is a familiar one. Is one permission set a subset of the other? Comparing roles this way produces a rich structure. Some pairs compare cleanly, with one strictly containing the other. Other pairs are incomparable. Neither contains the other. And any two roles can be combined into the smallest role covering both, or restricted to the largest role inside both. This structure is called a partially ordered set, and, with a little more machinery, a lattice. Both appear constantly in permission systems, package version resolution, and database query planning.
Definition
Relations and 3 Key Properties
A relation R on a set A is a subset of A cross A, the set of ordered pairs of elements of A. We write a R b to mean the pair a, b is in R. A relation is reflexive if a R a holds for every a. It's antisymmetric if a R b and b R a together force a to equal b. And it's transitive if a R b and b R c together force a R c.
Proof
Subset Inclusion Has All 3
Take P, the power set of read, write, and delete, with the subset relation. It satisfies all three properties, and each can be proved outright. Reflexive. Every element of a set A is trivially an element of A, so A is a subset of itself. Antisymmetric. If A is a subset of B and B is a subset of A, then by the definition of set equality, A equals B. Transitive. If A is inside B and B is inside C, take any x in A. It's in B, and so it's in C. So A is a subset of C. Not every relation has all three. On a social network, let a R b mean a is a friend of b. That's typically symmetric, not antisymmetric. a R b and b R a hold constantly for different people. And it isn't transitive, since a friend of a friend isn't guaranteed to be a friend.
Definition
Partial Orders and Posets
A relation on a set is a partial order if it's reflexive, antisymmetric, and transitive. The set together with the relation is called a partially ordered set, or poset. The less-than-or-equal symbol is used generically for any partial order, not only the numeric one. And a less than b means a is at most b, and a isn't equal to b. An element b covers a if a is less than b, and nothing sits strictly between them. A Hasse diagram draws a finite poset. It places b above a whenever a is less than b, and joins them with a line precisely when b covers a. Reflexive loops are left out, since every element relates to itself. And any relation already implied by transitivity is left out too.
Figure 2.5.1
The Hasse Diagram of the Power Set
Here's the Hasse diagram for the power set of r, w, d, ordered by inclusion. Each edge is a covering relation. The empty set is covered by each singleton. Each singleton is covered by the two pairs that contain it. And each pair is covered by r, w, d. No edge joins the empty set directly to r, w, d. That relation already follows from the edges in between. The gold path is a chain, which we'll define next. The singletons form an antichain.
Comparability
Chains, Antichains, and Total Orders
In a poset, elements a and b are comparable if a is at most b, or b is at most a. Otherwise they're incomparable. A chain is a subset in which every two elements are comparable. The empty set, r, the pair r w, and r, w, d form a chain. Each is a subset of the next. An antichain is a subset in which no two distinct elements are comparable. The three singletons are one. None is a subset of another. The three pairs form a second antichain. A poset in which every pair is comparable, so the whole poset is one chain, is called a total order. The usual ordering of the real numbers is total. Any two reals can be compared. But subset inclusion has incomparable pairs, and that's exactly what makes it partial.
Table 2.5.1
4 Relations Compared
This table checks four relations. Subset inclusion, divisibility on the positive integers, and at-most on the reals are all reflexive, antisymmetric, and transitive. So all three are partial orders. Here, a divides b means b is a whole-number multiple of a. Is a friend of fails every property, so it isn't a partial order at all. Among the three genuine partial orders, only at-most on the reals is total. Subset inclusion and divisibility each have incomparable pairs. For example, r and w. Or three and five, since neither divides the other.
Definition
Bounds, Join, Meet, and Lattices
In a poset, u is an upper bound of a and b if both a and b are at most u. And l is a lower bound if l is at most both. The join of a and b is their least upper bound. It's an upper bound that's at most every other upper bound. The meet of a and b is their greatest lower bound, defined the same way in the other direction. A poset in which every pair of elements has both a join and a meet, is called a lattice. Notice that join and meet are defined abstractly here, with no mention of union or intersection at all.
Worked Example
Join Is Union, Meet Is Intersection
For the power set, the join of two sets turns out to be exactly their union, and the meet exactly their intersection. That's worth proving, not assuming. Take A equal to r, d, and B equal to w, d. Their union, r, w, d, is an upper bound, since both are subsets of it. And it's the least one. Any set containing both A and B must contain r, w, and d, so nothing smaller works. Their intersection, d, is a lower bound, since it's inside both. And it's the greatest. Any set inside both A and B can only contain common elements, and d is the only one. That argument didn't depend on the particular sets chosen. So every pair has a join and a meet, and the power set, ordered by inclusion, is a lattice.
Takeaways
Order Without Total Comparison
To summarize. Reflexive, antisymmetric, and transitive are three independent properties, and a partial order needs all three. A partial order need not compare every pair. Incomparable pairs are exactly what make it partial, rather than total. A Hasse diagram shows only covering relations, yet it still fully determines the order. And a chain is a totally ordered subset, while an antichain has no two elements comparable. In a lattice, every pair has a join and a meet. For subset inclusion, those are exactly union and intersection. Here's something to think about. Can a relation be both symmetric and antisymmetric at the same time? Using the definitions, work out what such a relation would have to look like, and give a small example. Or explain why none can exist.
About Discrete Mathematics at UPI Study
Discrete Mathematics (Math 230) is a self-paced online course of 87 video lessons in 13 chapters, from logic and proof to counting, probability, graph theory and trees. It carries a NCCRS credit recommendation for 4 semester credits.
Every lesson transcript is free on pages like this one, and the videos are free with a free UPI Study account. Enrolling adds a practice quiz after each lesson, the graded work and final exam that earn the credit, lifetime access, and an official transcript on completion. UPI Study has helped over 130,000 students with college credits. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.
Enroll now → Course details Download the syllabus Every course with PRO →
Why take it here
Why students take Discrete Mathematics with UPI Study
Where the credit goes
Universities that work with NCCRS
Discrete Mathematics carries a NCCRS credit recommendation. These universities work with NCCRS; some are UPI Study's signed partners. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.
Thomas Edison State UniversitySigned partner
University of the PeopleSigned partner
Charter Oak State CollegeSigned partner
Strayer UniversitySigned partner
Columbia Southern UniversitySigned partner
Indiana TechSigned partner
Penn StateWorks with NCCRS
Southern New Hampshire UniversityWorks with NCCRS
SUNYWorks with NCCRS
+many more cooperating universitiesFind my college →Find my college → Not listed? Ask Athena in the corner of this page, or book a 15-minute call.
FAQ
Questions students ask us
About Partially Ordered Sets and Lattices
How do you check whether a relation is a partial order?
How do you draw a Hasse diagram of a poset?
What is the difference between a chain, an antichain, and a total order?
How do you find the join and meet of two elements, and what makes a poset a lattice?
About the Discrete Mathematics course
How many college credits is Discrete Mathematics?
How much does Discrete Mathematics cost and what is included?
Which universities accept UPI Study credits?
How long does Discrete Mathematics take?
How are the exams done?
How do my credits reach my college?
Ready for the full course? Earn 4 credits in Discrete Mathematics.
87 video lessons, a quiz after each one, and the graded work that earns the credit. Recommended for credit by NCCRS.
4 credits · NCCRSEnroll →