< - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

Ordinals[Sub]

left ordinal subtraction

-

left ordinal subtraction

&-

inert left ordinal subtraction

Ordinals[LessThan]

strict ordinal comparison

Ordinals[`<`]

strict ordinal comparison

Ordinals[`<=`]

non-strict ordinal comparison

&<, &>

inert strict ordinal comparison

&<=, &>=

inert non-strict ordinal comparison

 

Calling Sequence

Parameters

Returns

Description

Examples

Compatibility

Calling Sequence

Sub(a, b)

a - b

a &- b

LessThan(a, b)

a < b

a > b

a <= b

a >= b

a &< b

a &> b

a &<= b

a &>= b

Parameters

a, b

-

ordinals, nonnegative integers, or polynomials with positive integer coefficients

Returns

• 

Sub and - return an ordinal data structure, a nonnegative integer, a polynomial with positive integer coefficients, or .

• 

LessThan, <, >, <=, and >= return either true or false.

Description

• 

The Sub(a, b) and a - b calling sequences perform left subtraction of ordinal numbers.

– 

If , where  is the non-strict ordering of ordinal numbers, both return the unique ordinal number  satisfying . In particular, the return value is  if and only if .

– 

Otherwise, if , the return value is .

• 

The LessThan(a, b) and a < b calling sequences compare the two ordinal numbers   and  with respect to the strict ordering  of ordinal numbers, which means, they return  if and only if , and  otherwise.

• 

The a <= b calling sequence compares  and  with respect to the non-strict ordering , that is, it returns  if and only if  or , and  otherwise.

• 

The a > b and a >= b calling sequences are equivalent to b < a and b <= a, respectively.

• 

Mathematically,  if and only if the well-ordering represented by  is isomorphic to an initial segment of the well-ordering represented by , that is, there is an element  and a monotone bijection . The left difference  then corresponds to .

• 

The following are equivalent:

– 

There is no ordinal number  satisfying .

– 

 and  return .

– 

.

– 

,  and  return .

– 

 and  return .

• 

The &- calling sequence is the inert form of left ordinal subtraction. No actual subtraction is performed, but the result will be rendered as an inert difference, with parentheses around the arguments if necessary.

• 

The &<, &>, &<= and &>= calling sequences are inert forms of strict and non-strict ordinal comparison, respectively. No actual comparison is performed, but the result will be rendered as an inert relation, with parentheses around the arguments if necessary.

• 

Applying the value command will turn the inactive &-, &<, &>, &<= and &>= operators into the corresponding active counterparts, causing the ordinal subtraction or comparison, respectively, to be computed as described above.

• 

All above calling sequences support parametric ordinals. If  or  is a parametric ordinal and the left difference  cannot be determined, an error will be raised.

Examples

(1)

(2)

(3)

(4)

(5)

(6)

(7)

NULL

NULL

(8)

The inert operators are useful for display purposes:

(9)

(10)

(11)

Any of the arguments can be a nonnegative integer:

(12)

(13)

The sort command can be used to sort a list of ordinals in increasing order:

(14)

Parametric examples:

(15)

(16)

Error, (in Ordinals:-Sub) cannot determine if x is nonzero

Error, (in Ordinals:-Sub) cannot determine if x is nonzero

(17)

(18)

(19)

(20)

Error, (in Ordinals:-Sub) unable to subtract 2 from x+1

Error, (in Ordinals:-Sub) unable to subtract

(21)

Compatibility

• 

The Ordinals[Sub], -, &-, Ordinals[LessThan], Ordinals[`<`], Ordinals[`<=`], &<, &> and &<=, &>= commands were introduced in Maple 2015.

• 

For more information on Maple 2015 changes, see Updates in Maple 2015.

See Also

Ordinals

Ordinals[Max]

Ordinals[Ordinal]

sort

value

 


Download Help Document