`posets/text/J` := TEXT(
` `,
`FUNCTION:  J - lattice of order ideals of a poset`,
` `,
`CALLING SEQUENCE:  J(P);  J(P,X);  J(P,n);`,
` `,
`PARAMETERS:  P = a poset`,
`             X = a set (the vertex set); or, a linear extension of P`,
`             n = a positive integer (the number of vertices)`,
`   `,
`SYNOPSIS:`,
`  Let P be a poset with vertex set X. An order ideal of P is a subset I`,
`  of X such that if x is in I and y < x in P, then y is in I. The set of`,
`  all order ideals of P forms a partial order (in fact, a distributive`,
`  lattice) with respect to inclusion.`,
`   `,
`  J(P,X) returns (the covering relation of) an abstract poset that is`,
`  isomorphic to the lattice of order ideals of P. The vertex set of the`,
`  output is {1,2,...,m} for some m, and corresponds to the listing order`,
`  used by 'ideals'. That is, ideals(P,X)[i] is vertex i of J(P,X).`,
`   `,
`  J(P,n) does the same, if the vertex set of P is {1,...,n}.`,
`  J(P) does the same, assuming that there are no isolated vertices.`,
`   `,
`  The listing order used by 'ideals' is controlled by the choice of a`,
`  linear extension of P; i.e., a linear ordering of the vertices such that`,
`  if x < y in P, then x precedes y in the linear ordering. In order to`,
`  force a specific choice for the linear extension, the vertex set X may`,
`  be specified as a list in the desired order, rather than as a set.`,
`   `,
`  The order ideals of P are in bijection with the antichains of P.`,
`   `,
`EXAMPLES:`,
`  J({},3);               yields     {[1,2],[1,3],[1,5],[2,4],[2,6],[3,4],`,
`                                     [3,7],[4,8],[5,6],[5,7],[6,8],[7,8]}`,
`  L:=J(J({},2));         yields     {[1,2],[2,3],[2,4],[3,5],[4,5],[5,6]}`,
`  distributive(L);       yields                      true`,
`  J({[a,b],[b,c]},{a,b,c});`,
`                         yields              {[1,2],[2,3],[3,4]}`,
`  J({[a,b]},[a,b,c]);    yields`,
`                              {[1,2],[1,4],[2,3],[2,5],[3,6],[4,5],[5,6]}`,
`  J({[a,b]},[c,a,b]);    yields`,
`                              {[1,2],[1,3],[2,4],[3,4],[3,5],[4,6],[5,6]}`,
` `,
`SEE ALSO:  antichains, ideals, distributive, extensions, lattice`,
NULL):

if `+`(0)=0 then # Maple V.4 or later
  print(INTERFACE_HELP(insert, topic=`posets/J`,
  helpfile=HomeLib, text=`posets/text/J`))
elif ceil(0)=0 then # Maple V.2 or V.3
  `help/posets/text/J`:=`posets/text/J`:
  save `help/posets/text/J`, cat(HomeLib,`/help/posets/text/J.m`)
fi:
