`posets/text/subposet` := TEXT(
`   `,
`FUNCTION:  subposet - extract an induced subposet from a poset`,
` `,
`CALLING SEQUENCE:  subposet(P,Y);`,
`                   subposet(P,X,Y);`,
`                   subposet(P,n,Y);`,
` `,
`PARAMETERS:  P = a poset`,
`             X = a set (the vertex set)`,
`             n = a positive integer (the number of vertices)`,
`             Y = a subset of the vertex set`,
`   `,
`SYNOPSIS:`,
`  Let P be a poset with vertex set X. If Y is a subset of X, then the`,
`  subposet of P induced by Y is the poset with vertex set Y and relations`,
`  x < y for every x,y in Y such that x < y in P.`,
`   `,
`  subposet(P,X,Y) returns (the covering relation of) the subposet of P`,
`  induced by Y. An error is signaled if Y is not a subset of X.`,
`  subposet(P,n,Y) does the same, if {1,...,n} is the vertex set of P.`,
`  subposet(P,Y) does the same, assuming P has no isolated vertices.`,
` `,
`EXAMPLES:`,
`  P:=chain(2) &* chain(3);`,
`  subposet(P,{1,2,4,5});          yields        {[1,2],[2,4],[1,5]}`,
`  subposet(P,8,{1,4,5,7});        yields           {[1,4],[1,5]}`,
` `,
`SEE ALSO:  subinterval`,
NULL):

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