Close
Close window
PartiallyOrderedSets/Rank - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.
Maplesoft logo
Maplesoft logo

Online Help

All Products Maple MapleSim


Home : Support : Online Help : PartiallyOrderedSets/Rank
[フレーム] [フレーム]

PartiallyOrderedSets

Rank

returns the rank of a poset, or the rank of an element of a poset

Calling Sequence

Rank(P)

Rank(P,E)

Parameters

E

-

element of the PartiallyOrderedSet P

Description

The command Rank(P) returns the rank of the partially ordered set P.

The command Rank(P,E) returns the rank of the element E in partially ordered set P.

Remarks

Rank will generate and store the transitive reduction of P.

The rank function will be generated and stored if P is graded.

Terminology

A partially ordered set, or poset for short, is a pair (P, <=) where P is a set and <= is a partial order on P.

From now on, we fix a poset (P, <=). Two elements a and b of P are said comparable if either a <= b or b <= a holds, otherwise a and b are said incomparable.

A subset C of P is called a chain if any two elements of C are comparable. A chain C of P is said maximal if P does not admit another chain D of which C would be a proper subset.

A subset C of P is called an antichain if any two distinct elements of C are incomparable. An antichain C of P is said maximal if P does not admit another antichain D of which C would be a proper subset. We note that any singleton of P is both a chain and an antichain.

The element a of P is strictly less than the element b of P if a <= b and a 342円211円240円 b both hold.

The element b of Pcovers the element a of P if a is strictly less than b and for no element c of P, distinct from both a and b, both a <= c and c <= b hold.

Let S be a subset of P and a be an element of S. We say that a is a greatest element (resp. least element) of S if for every element b of S we have b <= a (resp. a <= b). Observe that if S has a greatest element (resp. least element) then it is unique.

We say that a is an upper bound (resp. lower bound) of S if if for every element b of S we have b <= a (resp. a <= b). Observe that a need not be in S in order to be an upper bound (resp. lower bound) of S.

We say that a is the infimum of S, or the greatest lower bound of S, if a is the greatest element among all lower bounds of S.

We say that a is the supremum of S, or the lest upper bound of S, if a is the least element among all upper bounds of S.

From now on, we assume that P is finite.

We call rank function on the poset (P, <=) any function r defined on P, taking integer values and so that for any two elements a and b of P, if b covers a then r(b) = r(a) + 1 holds.

The poset (P, <=) is said graded if it admits a rank function.

The poset (P, <=) is said ranked if all its maximal chains have the same cardinality.

We note that the terms graded poset and ranked poset have slightly different definitions in some textbooks, like the ones of Richard Stanley. We refer to the wikipedia pages of ranked poset and graded poset for a discussion on these terminology issues.

Examples

>

withPartiallyOrderedSets&colon;

Create a poset from a set and a non-strict partial order

>

divisibilityx&comma;yiremy&comma;x=0&colon;T3&comma;4&comma;5&comma;6&comma;7&comma;8&comma;9&colon;

>

poset2PartiallyOrderedSetT&comma;divisibility

poset2< a poset with 7 elements >

(1)

Display this poset

>

DrawGraphposet2

Compute the rank of an element in this poset

>

Rankposet2&comma;4

0

(2)

Compute the rank of an element in this poset

>

Rankposet2&comma;8

1

(3)

Define a polyhedral set and get its dimension

>

tPolyhedralSets:-ExampleSets:-Octahedron

t&lcub;Coordinates&colon;x1&comma;x2&comma;x3Relations&colon;x1x2x31&comma;x1x2+x31&comma;x1+x2x31&comma;x1+x2+x31&comma;x1x2x31&comma;x1x2+x31&comma;x1+x2x31&comma;x1+x2+x31

(4)
>

dPolyhedralSets:-Dimensiont

d3

(5)

Collect the faces of this polyhedral set

>

t_facesseqopPolyhedralSets:-Facest&comma;dimension=i&comma;i=0..d&colon;

>

t_facest_facesunionPolyhedralSets:-ExampleSets:-EmptySetd&colon;

>

FLconvertt_faces&comma;list&colon;

Construct the face lattice of that polyhedral set

>

inclusion := proc(x,y) PolyhedralSets:-`subset`(FL[x],FL[y]) end proc:

>

polyhedral_posetPartiallyOrderedSetseqi&comma;i=1..nopsFL&comma;inclusion

polyhedral_poset< a poset with 28 elements >

(6)

Display this poset

>

DrawGraphpolyhedral_poset

Compute its rank

>

Rankpolyhedral_poset

4

(7)

Create a poset from a set and a non-strict partial order

>

Z1&comma;2&comma;3&comma;4&comma;5&comma;6&comma;10&comma;12&comma;15&comma;20&comma;30&comma;60

Z1&comma;2&comma;3&comma;4&comma;5&comma;6&comma;10&comma;12&comma;15&comma;20&comma;30&comma;60

(8)
>

poset10PartiallyOrderedSetZ&comma;divisibility

poset10< a poset with 12 elements >

(9)

Display this poset

>

DrawGraphposet10

Compute its rank

>

Rankposet10

4

(10)

References

Richard P. Stanley: Enumerative Combinatorics 1. 1997, Cambridge Studies in Advanced Mathematics. Vol. 49. Cambridge University Press.

Compatibility

The PartiallyOrderedSets[Rank] command was introduced in Maple 2025.

For more information on Maple 2025 changes, see Updates in Maple 2025 .


Download Help Document

AltStyle によって変換されたページ (->オリジナル) /