`posets/text/atomic` := TEXT(
` `,
`FUNCTION:  atomic - test whether a lattice is atomic`,
` `,
`CALLING SEQUENCE:  atomic(L);`,
`                   atomic(L,X);`,
`                   atomic(L,n);`,
` `,
`PARAMETERS:  L = a lattice`,
`             X = a set (the vertex set)`,
`             n = a positive integer (the number of vertices)`,
`   `,
`SYNOPSIS:`,
`  The atoms of a lattice are the elements that cover the minimum element.`,
`  A lattice is atomic if every element is expressible as a join of atoms,`,
`  or equivalently, every element that covers only one element is an atom.`,
`   `,
`  A lattice is geometric if and only if it is atomic and upper semimodular.`,
`   `,
`  atomic(L) returns true or false according to whether the lattice L is`,
`  atomic. The procedure *does not* test whether L is a lattice.`,
`  atomic(L,X) does the same, if the vertex set of L is X.`,
`  atomic(L,n) does the same, if the vertex set of L is {1,...,n}.`,
` `,
`EXAMPLES:`,
`  L:=({},1) &+ ({},3) &+ ({},1);`,
`  atomic(L);                           yields         true`,
`  L:=J(chain(2),3);`,
`  atomic(L);                           yields        false`,
`   `,
`SEE ALSO:  lattice, meet, modular`,
NULL):

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