`posets/text/chain` := TEXT(
` `,
`FUNCTION:  chain - total order of specified length`,
` `,
`CALLING SEQUENCE :  chain(n);`,
` `,
`PARAMETERS:  n = a positive integer`,
`   `,
`SYNOPSIS:`,
`  chain(n) returns the covering relation of the chain 1 < 2 < ... < n.`,
`   `,
`  In the exceptional case n=1, it returns the poset structure {},1`,
`  (representing a poset with no relations and vertex set {1}).`,
`   `,
`EXAMPLES:`,
`  chain(4);            yields        {[1,2],[2,3],[3,4]}`,
`  chain(1);            yields               {},1`,
` `,
`SEE ALSO:  chains`,
NULL):

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