`posets/text/Lattices` := TEXT(
` `,
`FUNCTION:  Lattices - list nonisomorphic lattices`,
` `,
`CALLING SEQUENCE:  Lattices(n);`,
`                   Lattices(n,<property>);`,
` `,
`PARAMETERS:      n      = a positive integer (must be <= 10)`,
`             <property> = a Boolean procedure`,
`   `,
`SYNOPSIS:`,
`  For n <= 10, Lattices(n) returns a complete list of (covering relations`,
`  of) nonisomorphic lattices on n vertices. Each lattice in the list uses`,
`  the vertex set {1,2,...,n}, and is naturally labeled--every relation`,
`  [i,j] that occurs satisfies i<j. The lattices are stored in a partially`,
`  compressed format--there may be a noticeable delay in producing the list.`,
`   `,
`     n  nops(Lattices(n))  length(Lattices(n))`,
`     1          1                   7`,
`     2          1                  15`,
`     3          1                  23`,
`     4          2                  67`,
`     5          5                 223`,
`     6         15                 839`,
`     7         53                3599`,
`     8        222               17803`,
`     9       1078               99995`,
`    10       5994              647783`,
`   `,
`  If <property> is a Boolean (i.e., true/false-valued) procedure, then`,
`  Lattices(n,<property>) will return the sublist of Lattices(n) consisting`,
`  of those lattices L such that <property>(L) is true. Built-in examples`,
`  of such procedures include: atomic, distributive, modular, and ranked.`,
`   `,
`  Any additional arguments beyond the second will be passed on to the`,
`  testing procedure. Thus for example, Lattices(6,f,a,b,...) will produce`,
`  the list of lattices L on 6 vertices such that f(L,a,b,...) is true.`,
` `,
`EXAMPLES:`,
`  Lattices(3);                     yields        [{[1,2],[2,3]}]`,
`  Lattices(7)[26];                 yields`,
`                         {[1,2],[2,3],[6,7],[4,6],[3,5],[4,5],[1,4],[5,7]}`,
`  nops(Lattices(6,ranked));        yields               9`,
`         `,
`SEE ALSO:  Posets, atomic, distributive, modular, ranked`,
NULL):

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