`posets/text/disj_union` := TEXT(
` `,
`FUNCTION:  &u  - disjoint union of posets`,
` `,
`CALLING SEQUENCE:  S1 &u S2 &u S3 ...;`,
`                   &u(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 union`,
`  (or direct sum) is defined to be the poset with vertex set X union Y,`,
`  with x < y if and only if both are in X and satisfy x < y in P, or both`,
`  are in Y and satisfy x < y in Q.`,
`   `,
`  Whenever the posets package is loaded via the 'with' command, a neutral`,
`  operator  &u  for constructing disjoint unions is defined. Assuming`,
`  that P and Q are posets without isolated vertices, the operation P &u Q`,
`  (and more generally, P &u Q &u R, etc.) will produce the disjoint union`,
`  of P and Q (and R ...). The output of this computation will be a poset`,
`  that is *isomorphic* to the union of P and Q, not necessarily *equal*`,
`  to the union 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 &u 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}. If any of the arguments passed to &u`,
`  are of this form, then the result returned will also be of this form.`,
`   `,
`EXAMPLES:`,
`  chain(2) &u chain(3);            yields         {[1,2],[3,4],[4,5]}`,
`  ({[a,b],[b,c]},{a,b,c,d}) &u chain(2);`,
`                                   yields        {[1,2],[2,4],[5,6]}, 6`,
`  S:=chain(2),3; &u(S,S,S,S);      yields  {[1,2],[4,5],[7,8],[10,11]}, 12`,
` `,
`SEE ALSO:  ord_sum, product`,
NULL):

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