`posets/text/zeta` := TEXT(
` `,
`FUNCTION:  zeta - zeta polynomial of a poset`,
` `,
`CALLING SEQUENCE:  zeta(P,t);`,
`                   zeta(P,X,t);`,
`                   zeta(P,n,t);`,
` `,
`PARAMETERS:  P = a poset`,
`             X = a set (the vertex set)`,
`             n = a positive integer (the number of vertices)`,
`             t = a variable name or expression`,
`   `,
`SYNOPSIS:`,
`  The zeta polynomial of a poset P with vertex set X is the unique`,
`  polynomial Z(t) such that for every integer m>1, Z(m) is the number of`,
`  weakly increasing sequences  x[1] <= x[2] <= ... <= x[m-1] in P.`,
`  In particular, Z(2) is the number of vertices, and Z(3) is the number`,
`  of (weakly) related pairs.`,
`   `,
`  zeta(P,X,t) returns the zeta polynomial of the poset P, evaluated at t.`,
`  zeta(P,n,t) does the same, if the vertex set of P is {1,...,n}.`,
`  zeta(P,t) does the same, assuming that P has no isolated vertices.`,
`   `,
`  The zeta polynomial is related to the chain polynomial (see 'chains')`,
`  as follows: Z(m) is the sum of c_k * binomial(m-2,k-1) for k >= 1,`,
`  where c_k denotes the number of k-element chains in P.`,
`   `,
`  The order polynomial of P (see 'omega') is the zeta polynomial of J(P).`,
`   `,
`  If P has a minimum element 0 and a maximum element 1, then the zeta`,
`  polynomial Z(t) has several significant features:`,
`   `,
`  (1) Z(m) is the number of weakly increasing chains of length m`,
`  from 0 to 1; i.e., 0 <= x[1] <= ... <= x[m-1] <= 1.`,
`   `,
`  (2) Z(m) is the sum of f_k * binomial(m,k), where f_k denotes the`,
`  number of chains of length k from 0 to 1 (see also 'f_poly').`,
`   `,
`  (3) Z(-1) is the value of the mobius function on the interval`,
`  from 0 to 1; i.e., zeta(P,-1)=mobius(P,[0,1]).`,
`   `,
`EXAMPLES:`,
`  zeta({[a,b],[b,c]},{a,b,c,d},q);        yields        1+1/2*q+1/2*q^2`,
`  zeta(J({},3),t);                        yields              t^3`,
`  P:=({},1) &+ ({},3) &+ ({},1);`,
`  zeta(P,-1);                             yields               2`,
` `,
`SEE ALSO:  chains, f_poly, mobius, omega`,
NULL):

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