`posets/text/ord_sum` := TEXT(
` `,
`FUNCTION:  &+  - ordinal sum of posets`,
` `,
`CALLING SEQUENCE:  S1 &+ S2 &+ S3 ...;`,
`                   &+(S1,S2,S3,...);`,
` `,
`PARAMETERS:  S1, S2, ... = a sequence of two or more poset "structures"`,
`   `,
`  A poset structure S is any one of the following:`,
`     P     where P is a poset--i.e., a set of covering relations`,
`    (P,X)  where P is a poset with vertex set X`,
`    (P,n)  where P is a poset with vertex set {1,2,...,n} `,
`   `,
`SYNOPSIS:`,
`  If P and Q are posets with disjoint vertex sets X and Y, their ordinal`,
`  sum is defined to be the poset with vertex set X union Y, with x < y if`,
`  and only if x < y in P, or x < y in Q, or x is in X and y is in Y.`,
`   `,
`  Whenever the posets package is loaded via the 'with' command, a neutral`,
`  operator  &+  for constructing ordinal sums is defined. Assuming that P`,
`  and Q are posets without isolated vertices, the operation  P &+ Q (and`,
`  more generally, P &+ Q &+ R, etc) will compute the ordinal sum of P and`,
`  Q (and R ...). The output of this computation will be a poset that is`,
`  *isomorphic* to the ordinal sum of P and Q, but not necessarily *equal*`,
`  to the ordinal sum of P and Q. In particular, the vertex set of the`,
`  result will be {1,2,...,p+q} if P has p vertices and Q has q vertices.`,
`   `,
`  Whether or not the vertex sets of P and Q are actually disjoint, they`,
`  are treated as if they were.`,
`   `,
`  To allow for posets with isolated vertices, the operator &+ also`,
`  accepts poset structures of the form (P,X) or (P,n). The former is used`,
`  to indicate that the vertex set of P is X, and the latter to indicate`,
`  that the vertex set is {1,...,n}.`,
`   `,
`EXAMPLES:`,
`  one:=({},1); two:=({},2);`,
`  P:=two &+ two;                   yields     {[1,3],[1,4],[2,3],[2,4]}`,
`  &+(one,P,one,one);               yields`,
`                   {[1,2],[1,3],[2,4],[2,5],[3,4],[3,5],[4,6],[5,6],[6,7]}`,
` `,
`SEE ALSO:  disj_union, product`,
NULL):

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