CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual use to large groups and classes! Also, H100 GPUs starting at $2/hour.
CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual use to large groups and classes! Also, H100 GPUs starting at $2/hour.
| Download
Project: Combinatorics classes 2024
Views: 8Visibility: Unlisted (only visible to those who know the link)
Image: ubuntu2204Mobius Functions, Order Polynomials, and Linear Extensions
Math 737 - Lab 3
Sage can compute the Mobius function of a poset. Create a poset and then use the commands moebius_function and moebius_function_matrix to determine how they work and how they relate to Mobius function computations done by hand.
Exercise 1: Use the above commands to compute the Mobius function of some of our example posets P, Q, R, etc. Now compute the Mobius function of the product of these posets. What fact about Mobius functions does this show you?
Exercise 2: Compute the Mobius function of the Boolean lattice for n=3,4. What do you notice? Do the same for the strong Bruhat order.
Exercise 3: Compute the order polynomial and the number of linear extensions of the following posets:
- An antichain of 5 elements
- A chain of 5 elements
- A poset that is the product of two chains of 3 and 5 elements
To find the number of linear extensions, you may find it helpful to first find the command to generate all linear extensions and then put the whole statement inside the command len() which finds the length of this list.
5