`posets/text/Posets` := TEXT(
` `,
`FUNCTION:  Posets - list nonisomorphic posets`,
` `,
`CALLING SEQUENCE:  Posets(n);`,
`                   Posets(n,<property>);`,
` `,
`PARAMETERS:      n      = a positive integer (must be <= 8)`,
`             <property> = a Boolean procedure`,
`   `,
`SYNOPSIS:`,
`  For n <= 8, Posets(n) returns a complete list of (covering relations of)`,
`  nonisomorphic posets on n vertices. Each poset in the list uses the`,
`  vertex set {1,2,...,n}, and is naturally labeled--every relation [i,j]`,
`  that occurs satisfies i<j.`,
`   `,
`    n   nops(Posets(n))     length(Posets(n))`,
`    1           1                   7`,
`    2           2                  19`,
`    3           5                  79`,
`    4          16                 395`,
`    5          63                2239`,
`    6         318               15131`,
`    7        2045              124367`,
`    8       16999             1277063`,
`   `,
`  If <property> is a Boolean (i.e., true/false-valued) procedure, then`,
`  Posets(n,<property>) will return the sublist of Posets(n) consisting of`,
`  those posets P such that <property>(P) is true. Built-in examples of`,
`  such procedures include: connected, lattice, and ranked.`,
`   `,
`  Any additional arguments beyond the second will be passed on to the`,
`  testing procedure. Thus for example, Posets(6,f,a,b,...) will produce`,
`  the list of posets P on 6 vertices such that f(P,a,b,...) is true.`,
`   `,
`EXAMPLES:`,
`  Posets(2);                     yields              [{}, {[1,2]}]`,
`  Posets(5)[15];                 yields        {[1,3],[2,3],[3,5],[1,4]}`,
`  nops(Posets(4,connected,4));   yields                   10`,
`  nops(Posets(4,connected));     yields                   14`,
`   `,
`SEE ALSO:  Lattices, connected, lattice, ranked`,
NULL):

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