Menu

Chapter 18. lojbau mekso: Mathematical Expressions in Lojban

The picture for chapter 18

18.1. Introductory

lojbau mekso (“Lojbanic mathematical-expression”) is the part of the Lojban language that is tailored for expressing statements of a mathematical character, or for adding numerical information to non-mathematical statements. Its formal design goals include:

  1. representing all the different forms of expression used by mathematicians in their normal modes of writing, so that a reader can unambiguously read off mathematical text as written with minimal effort and expect a listener to understand it;
  2. providing a vocabulary of commonly used mathematical terms which can readily be expanded to include newly coined words using the full resources of Lojban;
  3. permitting the formulation, both in writing and in speech, of unambiguous mathematical text;
  4. encompassing all forms of quantified expression found in natural languages, as well as encouraging greater precision in ordinary language situations than natural languages allow.

Goal 1 requires that mekso not be constrained to a single notation such as Polish notation or reverse Polish notation, but make provision for all forms, with the most commonly used forms the most easily used.

Goal 2 requires the provision of several conversion mechanisms, so that the boundary between mekso and full Lojban can be crossed from either side at many points.

Goal 3 is the most subtle. Written mathematical expression is culturally unambiguous, in the sense that mathematicians in all parts of the world understand the same written texts to have the same meanings. However, international mathematical notation does not prescribe unique forms. For example, the expression

Example 18.1.

3x+2y3 x + 2 y contains omitted multiplication operators, but there are other possible interpretations for the strings 3x3x and 2y2y than as mathematical multiplication. Therefore, the Lojban verbal (spoken and written) form of Example 18.1 must not omit the multiplication operators.

The remainder of this chapter explains (in as much detail as is currently possible) the mekso system. This chapter is by intention complete as regards mekso components, but only suggestive about uses of those components – as of now, there has been no really comprehensive use made of mekso facilities, and many matters must await the test of usage to be fully clarified.

18.2. Lojban numbers

The following cmavo are discussed in this section:

paPA1xaPA6
rePA2zePA7
ciPA3biPA8
voPA4soPA9
muPA5noPA0

The simplest kind of mekso are numbers, which are cmavo or compound cmavo. There are cmavo for each of the 10 decimal digits, and numbers greater than 9 are made by stringing together the cmavo. Some examples:

Example 18.2.

pa

one

re

two

ci

three

pa re ci

one two three

123123

one hundred and twenty three

Example 18.3.

pa

one

no

zero

pa no

one zero

1010

ten

Example 18.4.

pa

one

re

two

ci

three

vo

four

mu

five

xa

six

ze

seven

bi

eight

so

nine

no

zero

pa re ci vo mu xa ze bi so no

one two three four five six seven eight nine zero

12345678901234567890

one billion, two hundred and thirty-four million, five hundred and sixty-seven thousand, eight hundred and ninety.

Therefore, there are no separate cmavo for “ten”, “hundred”, etc.

There is a pattern to the digit cmavo (except for no, 0) which is worth explaining. The cmavo from 1 to 5 end in the vowels a, e, i, o, u respectively; and the cmavo from 6 to 9 likewise end in the vowels a, e, i, and o respectively. None of the digit cmavo begin with the same consonant, to make them easy to tell apart in noisy environments.

18.3. Signs and numerical punctuation

The following cmavo are discussed in this section:

ma'uPApositive sign
ni'uPAnegative sign
piPAdecimal point
fi'uPAfraction slash
ra'ePArepeating decimal
ce'iPApercent sign
ki'oPAcomma between digits

A number can be given an explicit sign by the use of ma'u and ni'u, which are the positive and negative signs as distinct from the addition, subtraction, and negation operators. For example:

Example 18.5.

ni'u

negative-sign

pa

1

ni'u pa

negative-sign 1

1-1

Grammatically, the signs are part of the number to which they are attached. It is also possible to use ma'u and ni'u by themselves as numbers; the meaning of these numbers is explained in Section 18.8.

Various numerical punctuation marks are likewise expressed by cmavo, as illustrated in the following examples:

Example 18.6.

ci

three

pi

point

pa

one

vo

four

pa

one

mu

five

ci pi pa vo pa mu

three point one four one five

3.14153.1415

(In some cultures, a comma is used instead of a period in the symbolic version of Example 18.6; pi is still the Lojban representation for the decimal point.)

Example 18.7.

re

two

fi'u

fraction

ze

seven

re fi'u ze

two fraction seven

27\dfrac{2}{7}

Example 18.7 is the name of the number two-sevenths; it is not the same as “the result of 2 divided by 7” in Lojban, although numerically these two are equal. If the denominator of the fraction is present but the numerator is not, the numerator is taken to be 1, thus expressing the reciprocal of the following number:

Example 18.8.

fi'u

fraction

ze

seven

fi'u ze

fraction seven

17\dfrac{1}{7}

Example 18.9.

pi

point

ci

three

mu

five

ra'e

repeating

pa

one

vo

four

re

two

bi

eight

mu

five

ze

seven

pi ci mu ra'e pa vo re bi mu ze

point three five repeating one four two eight five seven

.35142857142857....35142857142857...

Note that the ra'e marks unambiguously where the repeating portion “142857” begins.

Example 18.10.

ci

three

mu

five

ce'i

percent

ci mu ce'i

three five percent

35%35\%

Example 18.11.

pa

one

ki'o

comma

re

two

ci

three

vo

four

ki'o

comma

mu

five

xa

six

ze

seven

pa ki'o re ci vo ki'o mu xa ze

one comma two three four comma five six seven

1,234,5671,234,567

(In some cultures, spaces are used in the symbolic representation of Example 18.11; ki'o is still the Lojban representation.)

It is also possible to have less than three digits between successive ki'o s, in which case zeros are assumed to have been elided:

Example 18.12.

pa

one

ki'o

comma

re

two

ci

three

ki'o

comma

vo

four

pa ki'o re ci ki'o vo

one comma two three comma four

1,023,0041,023,004

In the same way, ki'o can be used after pi to divide fractions into groups of three:

Example 18.13.

pi

point

ki'o

comma

re

two

re

two

pi ki'o re re

point comma two two

.022.022

Example 18.14.

pi

point

pa

one

ki'o

comma

pa

one

re

two

ki'o

comma

pa

one

pi pa ki'o pa re ki'o pa

point one comma one two comma one

.001012001.001012001

18.4. Special numbers

The following cmavo are discussed in this section:

ci'iPAinfinity, \infty
ka'oPAimaginary ii, 1\sqrt{-1}
paiPApi, π\pi (approx 3.14159...)
te'oPAexponential ee (approx 2.71828...)
fi'uPAgolden ratio, phi, ϕ\phi, 1+52\frac{1+\sqrt{5}}{2} (approx. 1.61803...)

The last cmavo is the same as the fraction sign cmavo: a fraction sign with neither numerator nor denominator represents the golden ratio.

Numbers can have any of these digit, punctuation, and special-number cmavo of Sections 2, 3, and 4 in any combination:

Example 18.15.

ma'u

ci'i

ma'u ci'i

++\infty

Example 18.16.

ci

ka'o

re

ci ka'o re

3i2 (a complex number equivalent to 3+2i3 + 2i)

Note that ka'o is both a special number (meaning ii) and a number punctuation mark (separating the real and the imaginary parts of a complex number).

Example 18.17.

ci'i

no

ci'i no

infinity zero
0\aleph_0 (a transfinite cardinal)

The special numbers pai and te'o are mathematically important, which is why they are given their own cmavo:

Example 18.18.

pai

pi, π\pi

Example 18.19.

te'o

ee

However, many combinations are as yet undefined:

Example 18.20.

pa

pi

re

pi

ci

pa pi re pi ci

1.2.31.2.3

Example 18.21.

pa

1

ni'u

negative-sign

re

2

pa ni'u re

1 negative-sign 2

Example 18.21 is not “1 minus 2”, which is represented by a different cmavo sequence altogether. It is a single number which has not been assigned a meaning. There are many such numbers which have no well-defined meaning; they may be used for experimental purposes or for future expansion of the Lojban number system.

It is possible, of course, that some of these “oddities” do have a meaningful use in some restricted area of mathematics. A mathematician appropriating these structures for specialized use needs to consider whether some other branch of mathematics would use the structure differently.

More information on numbers may be found in Section 18.8 to Section 18.12.

18.5. Simple infix expressions and equations

The following cmavo are discussed in this section:

duGOhAequals
su'iVUhUplus
vu'uVUhUminus
pi'iVUhUtimes
te'aVUhUraised to the power
ny.BYletter nn
veiVEIleft parenthesis
ve'oVEhOright parenthesis

Let us begin at the beginning: one plus one equals two. In Lojban, that sentence translates to:

Example 18.22.

li

The-number

pa

one

su'i

plus

pa

one

du

equals

li

the-number

re

two.

li pa su'i pa du li re

The-number one plus one equals the-number two.

1+1=21 + 1 = 2

Example 18.22, a mekso sentence, is a regular Lojban bridi that exploits mekso features. du is the predicate meaning “x1 is mathematically equal to x2”. It is a cmavo for conciseness, but it has the same grammatical uses as any brivla. Outside mathematical contexts, du means “x1 is identical with x2” or “x1 is the same object as x2”.

The cmavo li is the number article. It is required whenever a sentence talks about numbers as numbers, as opposed to using numbers to quantify things. For example:

Example 18.23.

le

ci

prenu

le ci prenu

the three persons

requires no li article, because the ci is being used to specify the number of prenu. However, the sentence

Example 18.24.

levi

This

sfani

fly

cu

grake

masses-in-grams

li

the-number

ci

three.

levi sfani cu grake li ci

This fly masses-in-grams the-number three.

This fly has a mass of 3 grams.

requires li because ci is being used as a sumti. Note that this is the way in which measurements are stated in Lojban: all the predicates for units of length, mass, temperature, and so on have the measured object as the first place and a number as the second place. Using li for le in Example 18.23 would produce

Example 18.25.

li

The-number

ci

3

prenu

is-a-person.

li ci prenu

The-number 3 is-a-person.

which is grammatical but nonsensical: numbers are not persons.

The cmavo su'i belongs to selma'o VUhU, which is composed of mathematical operators, and means “addition”. As mentioned before, it is distinct from ma'u which means the positive sign as an indication of a positive number:

Example 18.26.

li

The-number

ma'u

positive-sign

pa

one

su'i

plus

ni'u

negative-sign

pa

one

du

equals

li

the-number

no

zero.

li ma'u pa su'i ni'u pa du li no

The-number positive-sign one plus negative-sign one equals the-number zero.

+1+1=0{+1} + {-1} = 0

Of course, it is legal to have complex mekso on both sides of du:

Example 18.27.

li

The-number

mu

five

su'i

plus

pa

one

du

equals

li

the-number

ci

three

su'i

plus

ci

three.

li mu su'i pa du li ci su'i ci

The-number five plus one equals the-number three plus three.

Why don't we say li mu su'i li pa rather than just li mu su'i pa? The answer is that VUhU operators connect mekso operands (numbers, in Example 18.27), not general sumti. li is used to make the entire mekso into a sumti, which then plays the roles applicable to other sumti: in Example 18.27, filling the places of a bridi

By default, Lojban mathematics is like simple calculator mathematics: there is no notion of “operator precedence”. Consider the following example, where pi'i means “times”, the multiplication operator:

Example 18.28.

li

The-number

ci

three

su'i

plus

vo

four

pi'i

times

mu

five

du

equals

li

the-number

reci

two-three.

li ci su'i vo pi'i mu du li reci

The-number three plus four times five equals the-number two-three.

Is the Lojban version of Example 18.28 true? No! “3+4×53 + 4 \times 5” is indeed 23, because the usual conventions of mathematics state that multiplication takes precedence over addition; that is, the multiplication “4×54 \times 5” is done first, giving 20, and only then the addition “3+203 + 20”. But VUhU operators by default are done left to right, like other Lojban grouping, and so a truthful bridi would be:

Example 18.29.

li

The-number

ci

three

su'i

plus

vo

four

pi'i

times

mu

five

du

equals

li

the-number

cimu

three-five.

li ci su'i vo pi'i mu du li cimu

The-number three plus four times five equals the-number three-five.

Here we calculate 3+43 + 4 first, giving 77, and then calculate 7×57 \times 5 second, leading to the result 3535. While possessing the advantage of simplicity, this result violates the design goal of matching the standards of mathematics. What can be done?

There are three solutions, all of which will probably be used to some degree. The first solution is to ignore the problem. People will say li ci su'i vo pi'i mu and mean 23 by it, because the notion that multiplication takes precedence over addition is too deeply ingrained to be eradicated by Lojban parsing, which totally ignores semantics. This convention essentially allows semantics to dominate syntax in this one area.

(Why not hard-wire the precedences into the grammar, as is done in computer programming languages? Essentially because there are too many operators, known and unknown, with levels of precedence that vary according to usage. The programming language 'C' has 13 levels of precedence, and its list of operators is not even extensible. For Lojban this approach is just not practical. In addition, hard-wired precedence could not be overridden in mathematical systems such as spreadsheets where the conventions are different.)

The second solution is to use explicit means to specify the precedence of operators. This approach is fully general, but clumsy, and will be explained in Section 18.20.

The third solution is simple but not very general. When an operator is prefixed with the cmavo bi'e (of selma'o BIhE), it becomes automatically of higher precedence than other operators not so prefixed. Thus,

Example 18.30.

li

The-number

ci

three

su'i

plus

vo

four

bi'e

times

pi'i

five

mu

equals

du

the-number

li

two-three.

reci

li ci su'i vo bi'e pi'i mu du li reci

The-number three plus four times five equals the-number two-three.

is a truthful Lojban bridi. If more than one operator has a bi'e prefix, grouping is from the right; multiple bi'e prefixes on a single operator are not allowed.

In addition, of course, Lojban has the mathematical parentheses vei and ve'o, which can be used just like their written equivalents “(” and “)” to group expressions in any way desired:

Example 18.31.

li

The-number

vei

(

ny.

nn

su'i

plus

pa

one

ve'o

)

pi'i

times

vei

(

ny.

nn

su'i

plus

pa

one

[ve'o]

)

du

equals

li

the-number

ny.

n

[bi'e]

te'a

to-the-power

re

two

su'i

plus

re

two

bi'e

pi'i

times

ny.

nn

su'i

plus

pa

1.

li vei ny. su'i pa ve'o pi'i vei ny. su'i pa [ve'o] du li ny. [bi'e] te'a re su'i re bi'e pi'i ny. su'i pa

The-number ( nn plus one ) times ( nn plus one ) equals the-number n to-the-power two plus two times nn plus 1.

(n+1)(n+1)=n2+2n+1(n+1)(n+1) = n^{2} + 2n + 1

There are several new usages in Example 18.31: te'a means “raised to the power”, and we also see the use of the lerfu word ny, representing the letter nn. In mekso, letters stand for just what they do in ordinary mathematics: variables. The parser will accept a string of lerfu words (called a “lerfu string”) as the equivalent of a single lerfu word, in agreement with computer-science conventions; “abc” is a single variable, not the equivalent of a×b×ca \times b \times c. (Of course, a local convention could state that the value of a variable like “abc”, with a multi-lerfu name, was equal to the values of the variables aa, bb, and cc multiplied together.)

The explicit operator pi'i is required in the Lojban verbal form whereas multiplication is implicit in the symbolic form. Note that ve'o (the right parenthesis) is an elidable terminator: the first use of it in Example 18.31 is required, but the second use (marked by square brackets) could be elided. Additionally, the first bi'e (also marked by square brackets) is not necessary to get the proper grouping, but it is included here for symmetry with the other one.

18.6. Forethought operators (Polish notation, functions)

The following cmavo are discussed in this section:

boiBOInumeral/lerfu string terminator
va'aVUhUnegation/additive inverse
pe'oPEhOforethought flag
ku'eKUhEforethought terminator
ma'oMAhOconvert operand to operator
py.BYletter pp
xy.BYletter xx
zy.BYletter zz
fy.BYletter ff

The infix form explained so far is reasonable for many purposes, but it is limited and rigid. It works smoothly only where all operators have exactly two operands, and where precedences can either be assumed from context or are limited to just two levels, with some help from parentheses.

But there are many operators which do not have two operands, or which have a variable number of operands. The preferred form of expression in such cases is the use of “forethought operators”, also known as Polish notation. In this style of writing mathematics, the operator comes first and the operands afterwards:

Example 18.32.

li

The-number

su'i

the-sum-of

paboi

one

reboi

two

ci[boi]

three

du

equals

li

the-number

xa

six.

li su'i paboi reboi ci[boi] du li xa

The-number the-sum-of one two three equals the-number six.

sum(1,2,3)=6\operatorname{sum}{(1,2,3)} = 6

Note that the normally elidable number terminator boi is required after pa and re because otherwise the reading would be pareci= 123. It is not required after ci but is inserted here in brackets for the sake of symmetry. The only time boi is required is, as in Example 18.32, when there are two consecutive numbers or lerfu strings.

Forethought mekso can use any number of operands, in Example 18.32, three. How do we know how many operands there are in ambiguous circumstances? The usual Lojban solution is employed: an elidable terminator, namely ku'e. Here is an example:

Example 18.33.

li

The-number

py.

pp

su'i

plus

va'a

negative-of(

ny.

nn

ku'e

)

su'i

plus

zy

zz

du

equals

li

the-number

xy.

xx

.

li py. su'i va'a ny. ku'e su'i zy du li xy.

The-number pp plus negative-of( nn ) plus zz equals the-number xx .

p+n+z=xp + {-n} + z = x

where we know that va'a is a forethought operator because there is no operand preceding it.

va'a is the numerical negation operator, of selma'o VUhU. In contrast, vu'u is not used for numerical negation, but only for subtraction, as it always has two or more operands. Do not confuse va'a and vu'u, which are operators, with ni'u, which is part of a number.

In Example 18.33, the operator va'a and the terminator ku'e serve in effect as parentheses. (The regular parentheses vei and ve'o are NOT used for this purpose.) If the ku'e were omitted, the su'i zy would be swallowed up by the va'a forethought operator, which would then appear to have two operands, ny and su'i zy., where the latter is also a forethought expression.

Forethought mekso is also useful for matching standard functional notation. How do we represent “z = f(x)”? The answer is:

Example 18.34.

li

The-number

zy

z

du

equals

li

the-number

ma'o

the-operator

fy.boi

f

xy.

x.

li zy du li ma'o fy.boi xy.

The-number z equals the-number the-operator f x.

z=f(x)z = f(x)

Again, no parentheses are used. The construct ma'o fy.boi is the equivalent of an operator, and appears in forethought here (although it could also be used as a regular infix operator). In mathematics, letters sometimes mean functions and sometimes mean variables, with only the context to tell which. Lojban chooses to accept the variable interpretation as the default, and uses the special flag ma'o to mark a lerfu string as an operator. The cmavo xy. and zy. are variables, but fy. is an operator (a function) because ma'o marks it as such. The boi is required because otherwise the xy. would look like part of the operator name. (The use of ma'o can be generalized from lerfu strings to any mekso operand: see Section 18.21.)

When using forethought mekso, the optional marker pe'o may be placed in front of the operator. This usage can help avoid confusion by providing clearly marked pe'o and ku'e pairs to delimit the operand list. Example 18.32 to Example 18.34, respectively, with explicit pe'o and ku'e:

Example 18.35.

li pe'o su'i paboi reboi ciboi ku'e du li xa

Example 18.36.

li py. su'i pe'o va'a ny. ku'e su'i zy du li xy.

Example 18.37.

li zy du li pe'o ma'o fy.boi xy. ku'e

Note: When using forethought mekso, be sure that the operands really are operands: they cannot contain regular infix expressions unless parenthesized with vei and ve'o. An earlier version of the complex Example 18.119 came to grief because I forgot this rule.

18.7. Other useful selbri for mekso bridi

So far our examples have been isolated mekso (it is legal to have a bare mekso as a sentence in Lojban) and equation bridi involving du. What about inequalities such as “x < 5”? The answer is to use a bridi with an appropriate selbri, thus:

Example 18.38.

li

The-number

xy.

x

mleca

is-less-than

li

the-number

mu

5.

li xy. mleca li mu

The-number x is-less-than the-number 5.

Here is a partial list of selbri useful in mathematical bridi:

dux1 is identical to x2, x3, x4, ...
dunlix1 is equal/congruent to x2 in/on property/quality/dimension/quantity x3
mlecax1 is less than x2
zmadux1 is greater than x2
dubjavme'ax1 is less than or equal to x2 [[mleca](/glossary/?mode=exact&word=%2A%5Bmleca%5C), equal or less]
dubjavmaux1 is greater than or equal to x2 [[zmadu](/glossary/?mode=exact&word=%2A%5Bzmadu%5C), equal or greater]
tamdu'ix1 is similar to x2 [[dunli](/glossary/?mode=exact&word=%2A%5Bdunli%5C), shape-equal]
turdu'ix1 is isomorphic to x2 [[dunli](/glossary/?mode=exact&word=%2A%5Bdunli%5C), structure-equal]
cmimax1 is a member of set x2
gripaux1 is a subset of set x2 [[pagbu](/glossary/?mode=exact&word=%2A%5Bpagbu%5C), set-part]
na'ujbix1 is approximately equal to x2 [[jibni](/glossary/?mode=exact&word=%2A%5Bjibni%5C), number-near]
terci'ex1 is a component with function x2 of system x3

Note the difference between dunli and du; dunli has a third place that specifies the kind of equality that is meant. du refers to actual identity, and can have any number of places:

Example 18.39.

py.

pp

du

is-identical-to

xy.boi

xx

zy.

zz

py. du xy.boi zy.

pp is-identical-to xx zz

p=x=zp = x = z

Lojban bridi can have only one predicate, so the du is not repeated.

Any of these selbri may usefully be prefixed with na, the contradictory negation cmavo, to indicate that the relation is false:

Example 18.40.

li

the-number

re

2

su'i

+

re

2

na

is-not

du

equal-to

li

the-number

mu

5.

li re su'i re na du li mu

the-number 2 + 2 is-not equal-to the-number 5.

2+252 + 2 \ne 5

As usual in Lojban, negated bridi say what is false, and do not say anything about what might be true.

18.8. Indefinite numbers

The following cmavo are discussed in this section:

roPAall
so'aPAalmost all
so'ePAmost
so'iPAmany
so'oPAseveral
so'uPAa few
no'oPAthe typical number of
da'aPAall but (one) of
piroPA+PAthe whole of/all of
piso'aPA+PAalmost the whole of
piso'ePA+PAmost of
piso'iPA+PAmuch of
piso'oPA+PAa small part of
piso'uPA+PAa tiny part of
pino'oPA+PAthe typical portion of
rauPAenough
du'ePAtoo many
mo'aPAtoo few
pirauPA+PAenough of
pidu'ePA+PAtoo much of
pimo'aPA+PAtoo little of

Not all the cmavo of PA represent numbers in the usual mathematical sense. For example, the cmavo ro means “all” or “each”. This number does not have a definite value in the abstract: li ro is undefined. But when used to count or quantify something, the parallel between ro and pa is clearer:

Example 18.41.

mi

I

catlu

look-at

pa

one

prenu

person

mi catlu pa prenu

I look-at one person

Example 18.42.

mi

I

catlu

look-at

ro

all

prenu

persons

mi catlu ro prenu

I look-at all persons

Example 18.41 might be true, whereas Example 18.42 is almost certainly false.

The cmavo so'a, so'e, so'i, so'o, and so'u represent a set of indefinite numbers less than ro. As you go down an alphabetical list, the magnitude decreases:

Example 18.43.

mi

I

catlu

look-at

so'a

almost-all

prenu

persons

mi catlu so'a prenu

I look-at almost-all persons

Example 18.44.

mi

I

catlu

look-at

so'e

most

prenu

persons

mi catlu so'e prenu

I look-at most persons

Example 18.45.

mi

I

catlu

look-at

so'i

many

prenu

persons

mi catlu so'i prenu

I look-at many persons

Example 18.46.

mi

I

catlu

look-at

so'o

several

prenu

persons

mi catlu so'o prenu

I look-at several persons

Example 18.47.

mi

I

catlu

look-at

so'u

a-few

prenu

persons

mi catlu so'u prenu

I look-at a-few persons

The English equivalents are only rough: the cmavo provide space for up to five indefinite numbers between ro and no, with a built-in ordering. In particular, so'e does not mean “most” in the sense of “a majority” or “more than half”.

Each of these numbers, plus ro, may be prefixed with pi (the decimal point) in order to make a fractional form which represents part of a whole rather than some elements of a totality. piro therefore means “the whole of”:

Example 18.48.

mi

I

citka

eat

piro

the-whole-of

lei

the-mass-of

nanba

bread

mi citka piro lei nanba

I eat the-whole-of the-mass-of bread

Similarly, piso'a means “almost the whole of”; and so on down to piso'u, “a tiny part of”. These numbers are particularly appropriate with masses, which are usually measured rather than counted, as Example 18.48 shows.

In addition to these cmavo, there is no'o, meaning “the typical value”, and pino'o, meaning “the typical portion”: Sometimes no'o can be translated “the average value”, but the average in question is not, in general, a mathematical mean, median, or mode; these would be more appropriately represented by operators.

Example 18.49.

mi

I

catlu

look-at

no'o

a-typical-number-of

prenu

persons

mi catlu no'o prenu

I look-at a-typical-number-of persons

Example 18.50.

mi

I

citka

eat

pino'o

a-typical-amount-of

lei

the-mass-of

nanba

bread.

mi citka pino'o lei nanba

I eat a-typical-amount-of the-mass-of bread.

da'a is a related cmavo meaning “all but”:

Example 18.51.

mi

I

catlu

look-at

da'a

all-but

re

two

prenu

persons

mi catlu da'a re prenu

I look-at all-but two persons

Example 18.52.

mi

I

catlu

look-at

da'a

all-but

so'u

a-few

prenu

persons

mi catlu da'a so'u prenu

I look-at all-but a-few persons

Example 18.52 is similar in meaning to Example 18.43.

If no number follows da'a, then pa is assumed; da'a by itself means “all but one”, or in ordinal contexts “all but the last”:

Example 18.53.

ro

All

ratcu

rats

ka'e

can

citka

eat

da'a

all-but-one

ratcu

rats.

ro ratcu ka'e citka da'a ratcu

All rats can eat all-but-one rats.

All rats can eat all other rats.

(The use of da'a means that Example 18.53 does not require that all rats can eat themselves, but does allow it. Each rat has one rat it cannot eat, but that one might be some rat other than itself. Context often dictates that “itself” is, indeed, the “other” rat.)

As mentioned in Section 18.3, ma'u and ni'u are also legal numbers, and they mean “some positive number” and “some negative number” respectively.

Example 18.54.

li

the-number

ci

33

vu'u

-

re

22

du

==

li

ma'u

some-positive-number

li ci vu'u re du li ma'u

the-number 33 - 22 == some-positive-number

Example 18.55.

li

the-number

ci

33

vu'u

-

vo

44

du

==

li

ni'u

some-negative-number

li ci vu'u vo du li ni'u

the-number 33 - 44 == some-negative-number

Example 18.56.

mi

I

ponse

possess

ma'u

a-positive-number-of

rupnu

currency-units.

mi ponse ma'u rupnu

I possess a-positive-number-of currency-units.

All of the numbers discussed so far are objective, even if indefinite. If there are exactly six superpowers (rairgugde, “superlative-states”) in the world, then ro rairgugde means the same as xa rairgugde. It is often useful, however, to express subjective indefinite values. The cmavo rau (enough), du'e (too many), and mo'a (too few) are then appropriate:

Example 18.57.

mi

I

ponse

possess

rau

enough

rupnu

currency-units.

mi ponse rau rupnu

I possess enough currency-units.

Like the so'a-series, rau, du'e, and mo'a can be preceded by pi; for example, pirau means “a sufficient part of.”

Another possibility is that of combining definite and indefinite numbers into a single number. This usage implies that the two kinds of numbers have the same value in the given context:

Example 18.58.

mi

I

viska

saw

le

the

rore

all-of/two

gerku

dogs.

mi viska le rore gerku

I saw the all-of/two dogs.

I saw both dogs.

Example 18.59.

mi

I

speni

am-married-to

so'ici

many/three

prenu

persons.

mi speni so'ici prenu

I am-married-to many/three persons.

I am married to three persons (which is “many” in the circumstances).

Example 18.59 assumes a mostly monogamous culture by stating that three is “many”.

18.9. Approximation and inexact numbers

The following cmavo are discussed in this section:

ji'iPAapproximately
su'ePAat most
su'oPAat least
me'iPAless than
za'uPAmore than

The cmavo ji'i (of selma'o PA) is used in several ways to indicate approximate or rounded numbers. If it appears at the beginning of a number, the whole number is approximate:

Example 18.60.

ji'i

approximation

vo

four

no

zero

ji'i vo no

approximation four zero

approximately 4040

If ji'i appears in the middle of a number, all the digits following it are approximate:

Example 18.61.

vo

four

no

zero

ji'i

approximation

mu

five

no

zero

vo no ji'i mu no

four zero approximation five zero

roughly 40504050 (where the “four thousand” is exact, but the “fifty” is approximate)

If ma'u or ni'u), which indicate truncation towards positive or negative infinity respectively.

Example 18.62.

re

two

pi

point

ze

seven

re

two

ji'i

approximation

re pi ze re ji'i

two point seven two approximation

2.722.72 (rounded)

Example 18.63.

re

two

pi

point

ze

seven

re

two

ji'i

approximation

ma'u

positive-sign

re pi ze re ji'i ma'u

two point seven two approximation positive-sign

2.722.72 (rounded up)

Example 18.64.

re

two

pi

point

ze

seven

pa

one

ji'i

approximation

ni'u

negative-sign

re pi ze pa ji'i ni'u

two point seven one approximation negative-sign

2.712.71 (rounded down)

Example 18.62 through Example 18.64 are all approximations to te'o (exponential e). ji'i can also appear by itself, in which case it means “approximately the typical value in this context”.

The four cmavo su'e, su'o, me'i, and za'u, also of selma'o PA, express inexact numbers with upper or lower bounds:

Example 18.65.

mi

I

catlu

look-at

su'e

at-most

re

two

prenu

persons

mi catlu su'e re prenu

I look-at at-most two persons

Example 18.66.

mi

I

catlu

look-at

su'o

at-least

re

two

prenu

persons

mi catlu su'o re prenu

I look-at at-least two persons

Example 18.67.

mi

I

catlu

look-at

me'i

less-than

re

two

prenu

persons

mi catlu me'i re prenu

I look-at less-than two persons

Example 18.68.

mi

I

catlu

look-at

za'u

more-than

re

two

prenu

persons

mi catlu za'u re prenu

I look-at more-than two persons

Each of these is a subtly different claim: Example 18.66 is true of two or any greater number, whereas Example 18.68 requires three persons or more. Likewise, Example 18.65 refers to zero, one, or two; Example 18.67 to zero or one. (Of course, when the context allows numbers other than non-negative integers, me'i re can be any number less than 2, and likewise with the other cases.) The exact quantifier, “exactly 2, neither more nor less” is just re. Note that su'ore is the exact Lojban equivalent of English plurals.

If no number follows one of these cmavo, pa is understood: therefore,

Example 18.69.

mi

I

catlu

look-at

su'o

at-least-[one]

prenu

person

mi catlu su'o prenu

I look-at at-least-[one] person

is a meaningful claim.

Like the numbers in Section 18.8, all of these cmavo may be preceded by pi to make the corresponding quantifiers for part of a whole. For example, pisu'o means “at least some part of”. The quantifiers ro, su'o, piro, and pisu'o are particularly important in Lojban, as they are implicitly used in the descriptions introduced by the cmavo of selma'o LA and LE, as explained in Section 6.7. Descriptions in general are outside the scope of this chapter.

18.10. Non-decimal and compound bases

The following cmavo are discussed in this section:

ju'uVUhUto the base
dauPAhex digit A = 10
feiPAhex digit B = 11
gaiPAhex digit C = 12
jauPAhex digit D = 13
reiPAhex digit E = 14
vaiPAhex digit F = 15
pi'ePAcompound base point

In normal contexts, Lojban assumes that all numbers are expressed in the decimal (base 10) system. However, other bases are possible, and may be appropriate in particular circumstances.

To specify a number in a particular base, the VUhU operator ju'u is suitable:

Example 18.70.

li

The-number

panopano

1010

ju'u

base

re

2

du

equals

li

the-number

pano

1

0.

li panopano ju'u re du li pano

The-number 1010 base 2 equals the-number 1 0.

Here, the final pa no is assumed to be base 10, as usual; so is the base specification. (The base may also be changed permanently by a metalinguistic specification; no standard way of doing so has as yet been worked out.)

Lojban has digits for representing bases up to 16, because 16 is a base often used in computer applications. In English, it is customary to use the letters A-F as the base 16 digits equivalent to the numbers ten through fifteen. In Lojban, this ambiguity is avoided:

Example 18.71.

li

The-number

daufeigai

ABC

ju'u

base

paxa

16

du

equals

li

the-number

rezevobi

2748.

li daufeigai ju'u paxa du li rezevobi

The-number ABC base 16 equals the-number 2748.

Example 18.72.

li

The-number

jaureivai

DEF

ju'u

base

paxa

16

du

equals

li

the-number

cimuxaze

3567.

li jaureivai ju'u paxa du li cimuxaze

The-number DEF base 16 equals the-number 3567.

Note the pattern in the cmavo: the diphthongs au, ei, ai are used twice in the same order. The digits for A to D use consonants different from those used in the decimal digit cmavo; E and F unfortunately overlap 2 and 4 – there was simply not enough available cmavo space to make a full differentiation possible. The cmavo are also in alphabetical order.

The base point pi is used in non-decimal bases just as in base 10:

Example 18.73.

li

The-number

vai

F

pi

.

bi

8

ju'u

base

paxa

16

du

equals

li

the-number

pamu

15

pi

.

mu

5.

li vai pi bi ju'u paxa du li pamu pi mu

The-number F . 8 base 16 equals the-number 15 . 5.

Since ju'u is an operator of selma'o VUhU, it is grammatical to use any operand as the left argument. Semantically, however, it is undefined to use anything but a numeral string on the left. The reason for making ju'u an operator is to allow reference to a base which is not a constant.

There are some numerical values that require a “base” that varies from digit to digit. For example, times represented in hours, minutes, and seconds have, in effect, three “digits”: the first is base 24, the second and third are base 60. To express such numbers, the compound base separator pi'e is used:

Example 18.74.

ci

3

pi'e

:

rere

22

pi'e

:

vono

40

ci pi'e rere pi'e vono

3 : 22 : 40

Each digit sequence separated by instances of pi'e is expressed in decimal notation, but the number as a whole is not decimal and can only be added and subtracted by special rules:

Example 18.75.

li

The-number

ci

3

pi'e

:

rere

22

pi'e

:

vono

40

su'i

plus

pi'e

:

ci

3

pi'e

:

cici

33

du

equals

li

the-number

ci

3

pi'e

:

rexa

26

pi'e

:

paci

13.

li ci pi'e rere pi'e vono su'i pi'e ci pi'e cici du li ci pi'e rexa pi'e paci

The-number 3 : 22 : 40 plus : 3 : 33 equals the-number 3 : 26 : 13.

3:22:40+0:3:33=3:26:133:22:40 + 0:3:33 = 3:26:13

Of course, only context tells you that the first part of the numbers in Example 18.74 and Example 18.75 is hours, the second minutes, and the third seconds.

The same mechanism using pi'e can be used to express numbers which have a base larger than 16. For example, base-20 Mayan mathematics might use digits from no to paso, each separated by pi'e:

Example 18.76.

li

the-number

pa

1

pi'e

;

re

2

pi'e

;

ci

3

ju'u

base

reno

20

du

equals

li

the-number

vovoci

443

li pa pi'e re pi'e ci ju'u reno du li vovoci

the-number 1 ; 2 ; 3 base 20 equals the-number 443

Carefully note the difference between:

Example 18.77.

pano

the-digit-10

ju'u

base

reno

20

pano ju'u reno

the-digit-10 base 20

which is equal to ten, and:

Example 18.78.

pa

1;0

pi'e

base

no

20

ju'u

reno

pa pi'e no ju'u reno

1;0 base 20

which is equal to twenty.

Both pi and pi'e can be used to express large-base fractions:

Example 18.79.

li

The-number

pa

1

pi'e

;

vo

4

pi

.

ze

7

ju'u

base

reno

20

du

equals

li

the-number

revo

24

pi

.

cimu

35

li pa pi'e vo pi ze ju'u reno du li revo pi cimu

The-number 1 ; 4 . 7 base 20 equals the-number 24 . 35

pi'e is also used where the base of each digit is vague, as in the numbering of the examples in this chapter:

Example 18.80.

dei

This-utterance

jufra

is-a-sentence-type-of

panopi'epapamoi

10;11th-thing.

dei jufra panopi'epapamoi

This-utterance is-a-sentence-type-of 10;11th-thing.

This is Sentence 10.11.

18.11. Special mekso selbri

The following cmavo are discussed in this section:

meiMOIcardinal selbri
moiMOIordinal selbri
si'eMOIportion selbri
cu'oMOIprobability selbri
va'eMOIscale selbri
meMEmake sumti into selbri
me'uMEhUterminator for ME

Lojban possesses a special category of selbri which are based on mekso. The simplest kind of such selbri are made by suffixing a member of selma'o MOI to a number. There are five members of MOI, each of which serves to create number-based selbri with specific place structures.

The cmavo mei creates cardinal selbri. The basic place structure is:

x1 is a mass formed from the set x2 of n members, one or more of which is/are x3

A cardinal selbri interrelates a set with a given number of members, the mass formed from that set, and the individuals which make the set up. The mass argument is placed first as a matter of convenience, not logical necessity.

Some examples:

Example 18.81.

lei

Those-I-describe-as-the-mass-of

mi

my

ratcu

rats

cu

cimei

are-a-threesome.

lei mi ratcu cu cimei

Those-I-describe-as-the-mass-of my rats are-a-threesome.

My rats are three.
I have three rats.

Here, the mass of my rats is said to have three components; that is, I have three rats.

Another example, with one element this time:

Example 18.82.

mi

I

poi

who

pamei

am-an-individual

cu

cusku

express

dei

this-sentence.

mi poi pamei cu cusku dei

I who am-an-individual express this-sentence.

In Example 18.82, mi refers to a mass, “the mass consisting of me”. Personal pronouns are vague between masses, sets, and individuals.

However, when the number expressed before -mei is an objective indefinite number of the kind explained in Section 18.8, a slightly different place structure is required:

x1 is a mass formed from a set x2 of n members, one or more of which is/are x3, measured relative to the set x4.

An example:

Example 18.83.

lei

The-mass-of

ratcu

rats

poi

which

zvati

are-in

le

the

panka

park

cu

so'umei

are-a-fewsome-with-respect-to

lo'i

the-set-of

ratcu

rats.

lei ratcu poi zvati le panka cu so'umei lo'i ratcu

The-mass-of rats which are-in the park are-a-fewsome-with-respect-to the-set-of rats.

The rats in the park are a small number of all the rats there are.

In Example 18.83, the x2 and x3 places are vacant, and the x4 place is filled by lo'i ratcu, which (because no quantifiers are explicitly given) means “the whole of the set of all those things which are rats”, or simply “the set of all rats.”

Example 18.84.

le'i

The-set-of

ratcu

rats

poi

which-are

zvati

in

le

the

panka

park

cu

se

is-a

so'imei

manysome.

le'i ratcu poi zvati le panka cu se so'imei

The-set-of rats which-are in the park is-a manysome.

There are many rats in the park.

In Example 18.84, the conversion cmavo se swaps the x1 and the x2 places, so that the new x1 is the set. The x4 set is unspecified, so the implication is that the rats are “many” with respect to some unspecified comparison set.

More explanations about the interrelationship of sets, masses, and individuals can be found in Section 6.3.

The cmavo moi creates ordinal selbri. The place structure is:

x1 is the (n)th member of set x2 when ordered by rule x3

Some examples:

Example 18.85.

ti

This-one

pamoi

is-the-first-of

le'i

the

mi

associated-with-me

ratcu

rats.

ti pamoi le'i mi ratcu

This-one is-the-first-of the associated-with-me rats.

This is my first rat.

Example 18.86.

ta

That

romoi

is-the-allth-of

le'i

the

mi

associated-with-me

ratcu

rats.

ta romoi le'i mi ratcu

That is-the-allth-of the associated-with-me rats.

That is my last rat.

Example 18.87.

mi

I

raumoi

am-enough-th-in

le

the

velskina

movie-audience

porsi

sequence

mi raumoi le velskina porsi

I am-enough-th-in the movie-audience sequence

I am enough-th in the movie line.

Example 18.87 means, in the appropriate context, that my position in line is sufficiently far to the front that I will get a seat for the movie.

The cmavo si'e creates portion selbri. The place structure is:

x1 is an (n)th portion of mass x2

Some examples:

Example 18.88.

levi

This-here

sanmi

meal

cu

fi'ucisi'e

is-a-slash-three-portion-of

lei

mi

my

djedi

day

cidja

food.

levi sanmi cu fi'ucisi'e lei mi djedi cidja

This-here meal is-a-slash-three-portion-of my day food.

This meal is one-third of my daily food.

The cmavo cu'o creates probability selbri. The place structure is:

event x1 has probability (n) of occurring under conditions x2

The number must be between 0 and 1 inclusive. For example:

Example 18.89.

le

The

nu

event

lo

of-a

sicni

coin

cu

sedja'o

being-a-head-displayer

cu

pimucu'o

has-probability-.5.

le nu lo sicni cu sedja'o cu pimucu'o

The event of-a coin being-a-head-displayer has-probability-.5.

The cmavo va'e creates a scale selbri. The place structure is:

x1 is at scale position (n) on the scale x2

If the scale is granular rather than continuous, a form like cifi'uxa (3/6) may be used; in this case, 3/6 is not the same as 1/2, because the third position on a scale of six positions is not the same as the first position on a scale of two positions. Here is an example:

Example 18.90.

levi

This-here

rozgu

rose

cu

sofi'upanova'e

is-8/10-scale

xunre

red.

levi rozgu cu sofi'upanova'e xunre

This-here rose is-8/10-scale red.

This rose is 8 out of 10 on the scale of redness.
This rose is very red.

When the quantifier preceding any MOI cmavo includes the subjective numbers rau, du'e, or mo'a (enough, too many, too few) then an additional place is added for “by standard”. For example:

Example 18.91.

lei

The-mass-of

ratcu

rats

poi

which-are

zvati

in

le

the

panka

park

cu

du'emei

are-too-many

fo

by-standard

mi

me.

lei ratcu poi zvati le panka cu du'emei fo mi

The-mass-of rats which-are in the park are-too-many by-standard me.

There are too many rats in the park for me.

The extra place (which for -mei is the x4 place labeled by fo) is provided rather than using a BAI tag such as ma'i because a specification of the standard for judgment is essential to the meaning of subjective words like “enough”.

This place is not normally explicit when using one of the subjective numbers directly as a number. Therefore, du'e ratcu means “too many rats” without specifying any standard.

It is also grammatical to substitute a lerfu string for a number:

Example 18.92.

ta

That

ny.moi

is-nth-of

le'i

the-set-of

mi

associated-with-me

ratcu

rats.

ta ny.moi le'i mi ratcu

That is-nth-of the-set-of associated-with-me rats.

That is my n-th rat.

More complex mekso cannot be placed directly in front of MOI, due to the resulting grammatical ambiguities. Instead, a somewhat artificial form of expression is required.

The cmavo me (of selma'o ME) has the function of making a sumti into a selbri. A whole me construction can have a member of MOI added to the end to create a complex mekso selbri:

Example 18.93.

ta

That

me

is

li

the-number

ny.

nn

su'i

plus

pa

one

me'u

moi

-th-of

le'i

the-set-of

mi

associated-with-me

ratcu

rats.

ta me li ny. su'i pa me'u moi le'i mi ratcu

That is the-number nn plus one -th-of the-set-of associated-with-me rats.

That is my (n+1)-th rat.

Here the mekso ny. su'i pa is made into a sumti (with li) and then changed into a mekso selbri with me and me'u moi. The elidable terminator me'u is required here in order to keep the pa and the moi separate; otherwise, the parser will combine them into the compound pamoi and reject the sentence as ungrammatical.

It is perfectly possible to use non-numerical sumti after me and before a member of MOI, producing strange results indeed:

Example 18.94.

le

The

nu

event-of

mi

me

nolraitru

being-a-nobly-superlative-ruler

cu

me

le'e

has-the-stereotypical

snime

snow

bolci

type-of-ball

be

vi

at

la

xel.

Hell

cu'o

probability.

le nu mi nolraitru cu me le'e snime bolci be vi la xel. cu'o

The event-of me being-a-nobly-superlative-ruler has-the-stereotypical snow type-of-ball at Hell probability.

I have a snowball's chance in Hell of being king.

Note: the elidable terminator boi is not used between a number and a member of MOI. As a result, the me'u in Example 18.93 could also be replaced by a boi, which would serve the same function of preventing the pa and moi from joining into a compound.

18.12. Number questions

The following cmavo is discussed in this section:

xoPAnumber question

The cmavo xo, a member of selma'o PA, is used to ask questions whose answers are numbers. Like most Lojban question words, it fills the blank where the answer should go. (See Section 19.5 for more on Lojban questions.)

Example 18.95.

li

The-number

re

2

su'i

plus

re

2

du

equals

li

the-number

xo

what?

li re su'i re du li xo

The-number 2 plus 2 equals the-number what?

What is 2+22 + 2?

Example 18.96.

le

The

xomoi

what-number-th

prenu

person

cu

darxi

hit

do

you?

le xomoi prenu cu darxi do

The what-number-th person hit you?

Which person [as in a police lineup] hit you?

xo can also be combined with other digits to ask questions whose answers are already partly specified. This ability could be very useful in writing tests of elementary arithmetical knowledge:

Example 18.97.

li

The-number

remu

25

pi'i

times

xa

6

du

equals

li

the-number

paxono

1?0

li remu pi'i xa du li paxono

The-number 25 times 6 equals the-number 1?0

to which the correct reply would be mu, or 5. The ability to utter bare numbers as grammatical Lojban sentences is primarily intended for giving answers to xo questions. (Another use, obviously, is for counting off physical objects one by one.)

18.13. Subscripts

The following cmavo is discussed in this section:

xix_iXIsubscript

Subscripting is a general Lojban feature, not used only in mekso; there are many things that can logically be subscripted, and grammatically a subscript is a free modifier, usable almost anywhere. In particular, of course, mekso variables (lerfu strings) can be subscripted:

Example 18.98.

li

The-number

xy.boixici

x-sub-3

du

equals

li

the-number

xy.boixipa

x-sub-1

su'i

plus

xy.boixire

x-sub-2.

li xy.boixici du li xy.boixipa su'i xy.boixire

The-number x-sub-3 equals the-number x-sub-1 plus x-sub-2.

x3=x1+x2x_3 = x_1 + x_2

Subscripts always begin with the flag xi (of selma'o XI). xi may be followed by a number, a lerfu string, or a general mekso expression in parentheses:

Example 18.99.
xy.boixino

x0x_0

Example 18.100.
xy.boixiny.

xnx_n

Example 18.101.

xy.boixi

vei

ny.

su'i

pa

[ve'o]

xy.boixi vei ny. su'i pa [ve'o]

x(n+1)x_{(n+1)}

Note that subscripts attached directly to lerfu words (variables) generally need a boi terminating the variable. Free modifiers, of which subscripts are one variety, generally require the explicit presence of an otherwise elidable terminator.

There is no standard way of handling superscripts (other than those used as exponents) or for subscripts or superscripts that come before the main expression. If necessary, further cmavo could be assigned to selma'o XI for these purposes.

The elidable terminator for a subscript is that for a general number or lerfu string, namely boi. By convention, a subscript following another subscript is taken to be a sub-subscript:

Example 18.102.

xy.boi

xi

by.boi

xi

vo

xy.boi xi by.boi xi vo

xb4x_{b_4}

See Example 18.123 for the standard method of specifying multiple subscripts on a single object.

More information on the uses of subscripts may be found in Section 19.6.

18.14. Infix operators revisited

The following cmavo are discussed in this section:

tu'oPAnull operand
ge'aVUhUnull operator
geiVUhUexponential notation

The infix operators presented so far have always had exactly two operands, and for more or fewer operands forethought notation has been required. However, it is possible to use an operator in infix style even though it has more or fewer than two operands, through the use of a pair of tricks: the null operand tu'o and the null operator ge'a. The first is suitable when there are too few operands, the second when there are too many. For example, suppose we wanted to express the numerical negation operator va'a in infix form. We would use:

Example 18.103.

li

The-number

tu'o

(null)

va'a

additive-inverse

ny.

nn

du

equals

li

the-number

no

zero

vu'u

minus

ny.

nn.

li tu'o va'a ny. du li no vu'u ny.

The-number (null) additive-inverse nn equals the-number zero minus nn.

n=0n{-n} = 0 - n

The tu'o fulfills the grammatical requirement for a left operand for the infix use of va'a, even though semantically none is needed or wanted.

Finding a suitable example of ge'a requires exhibiting a ternary operator, and ternary operators are not common. The operator gei, however, has both a binary and a ternary use. As a binary operator, it provides a terse representation of scientific (also called “exponential”) notation. The first operand of gei is the exponent, and the second operand is the mantissa or fraction:

Example 18.104.

li

The-number

cinonoki'oki'o

three-zero-zero-comma-comma

du

equals

li

the-number

bi

eight

gei

scientific

ci

three.

li cinonoki'oki'o du li bi gei ci

The-number three-zero-zero-comma-comma equals the-number eight scientific three.

300,000,000=3×108300,000,000 = 3 \times 108

Why are the arguments to gei in reverse order from the conventional symbolic notation? So that gei can be used in forethought to allow easy specification of a large (or small) imprecise number:

Example 18.105.

gei

(scientific)

reno

two-zero

gei reno

(scientific) two-zero

102010^{20}

Note, however, that although 10 is far and away the most common exponent base, it is not the only possible one. The third operand of gei, therefore, is the base, with 10 as the default value. Most computers internally store so-called “floating-point” numbers using 2 as the exponent base. (This has nothing to do with the fact that computers also represent all integers in base 2; the IBM 360 series used an exponent base of 16 for floating point, although each component of the number was expressed in base 2.) Here is a computer floating-point number with a value of 40:

Example 18.106.

papano

(one-one-zero

bi'eju'u

base

re

2)

gei

scientific

pipanopano

(point-one-zero-one-zero

bi'eju'u

base

re

2)

ge'a

with-base

re

2

papano bi'eju'u re gei pipanopano bi'eju'u re ge'a re

(one-one-zero base 2) scientific (point-one-zero-one-zero base 2) with-base 2

.10102×21102.10102 \times 21102

18.15. Vectors and matrices

The following cmavo are discussed in this section:

jo'iJOhIstart vector
te'uTEhUend vector
pi'aVUhUmatrix row combiner
sa'iVUhUmatrix column combiner

A mathematical vector is a list of numbers, and a mathematical matrix is a table of numbers. Lojban considers matrices to be built up out of vectors, which are in turn built up out of operands.

jo'i, the only cmavo of selma'o JOhI, is the vector indicator: it has a syntax reminiscent of a forethought operator, but has very high precedence. The components must be simple operands rather than full expressions (unless parenthesized). A vector can have any number of components; te'u is the elidable terminator. An example:

Example 18.107.

li

The-number

jo'i

array

paboi

(one,

reboi

two

te'u

)

su'i

plus

jo'i

array

ciboi

(three,

voboi

four)

du

equals

li

the-number

jo'i

array

voboi

(four,

xaboi

six).

li jo'i paboi reboi te'u su'i jo'i ciboi voboi du li jo'i voboi xaboi

The-number array (one, two ) plus array (three, four) equals the-number array (four, six).

(1,2)+(3,4)=(4,6)(1,2) + (3,4) = (4,6)

Vectors can be combined into matrices using either pi'a, the matrix row operator, or sa'i, the matrix column operator. The first combines vectors representing rows of the matrix, and the second combines vectors representing columns of the matrix. Both of them allow any number of arguments: additional arguments are tacked on with the null operator ge'a.

Therefore, the “magic square” matrix

(816357492)\begin{pmatrix} 8 & 1 & 6 \\ 3 & 5 & 7 \\ 4 & 9 & 2 \end{pmatrix}

can be represented either as:

Example 18.108.

jo'i

the-vector

biboi

(8

paboi

1

xa

6)

pi'a

matrix-row

jo'i

the-vector

ciboi

(3

muboi

5

ze

7),

ge'a

jo'i

the-vector

voboi

(4

soboi

9

re

2)

jo'i biboi paboi xa pi'a jo'i ciboi muboi ze ge'a jo'i voboi soboi re

the-vector (8 1 6) matrix-row the-vector (3 5 7), the-vector (4 9 2)

or as

Example 18.109.

jo'i

the-vector

biboi

(8

ciboi

3

vo

4)

sa'i

matrix-column

jo'i

the-vector

paboi

(1

muboi

5

so

9),

ge'a

jo'i

the-vector

xaboi

(6

zeboi

7

re

2)

jo'i biboi ciboi vo sa'i jo'i paboi muboi so ge'a jo'i xaboi zeboi re

the-vector (8 3 4) matrix-column the-vector (1 5 9), the-vector (6 7 2)

The regular mekso operators can be applied to vectors and to matrices, since grammatically both of these are expressions. It is usually necessary to parenthesize matrices when used with operators in order to avoid incorrect groupings. There are no VUhU operators for the matrix operators of inner or outer products, but appropriate operators can be created using a suitable symbolic lerfu word or string prefixed by ma'o.

Matrices of more than two dimensions can be built up using either pi'a or sa'i with an appropriate subscript numbering the dimension. When subscripted, there is no difference between pi'a and sa'i.

18.16. Reverse Polish notation

The following cmavo is discussed in this section:

fu'aFUhAreverse Polish flag

So far, the Lojban notational conventions have mapped fairly familiar kinds of mathematical discourse. The use of forethought operators may have seemed odd when applied to “+”, but when applied to ff they appear as the usual functional notation. Now comes a sharp break. Reverse Polish (RP) notation represents something completely different; even mathematicians don't use it much. (The only common uses of RP, in fact, are in some kinds of calculators and in the implementation of some programming languages.)

In RP notation, the operator follows the operands. (Polish notation, where the operator precedes its operands, is another name for forethought mekso of the kind explained in Section 18.6.) The number of operands per operator is always fixed. No parentheses are required or permitted. In Lojban, RP notation is always explicitly marked by a fu'a at the beginning of the expression; there is no terminator. Here is a simple example:

Example 18.110.

li

the-number

fu'a

(RP!)

reboi

two,

ci

three,

su'i

plus

du

equals

li

the-number

mu

five.

li fu'a reboi ci su'i du li mu

the-number (RP!) two, three, plus equals the-number five.

The operands are re and ci; the operator is su'i.

Here is a more complex example:

Example 18.111.

li

the-number

fu'a

(RP!)

reboi

(two,

ci

three,

pi'i

times),

voboi

(four,

mu

five,

pi'i

times),

su'i

plus

du

equals

li

the-number

rexa

two-six

li fu'a reboi ci pi'i voboi mu pi'i su'i du li rexa

the-number (RP!) (two, three, times), (four, five, times), plus equals the-number two-six

Here the operands of the first pi'i are re and ci; the operands of the second pi'i are vo and mu (with boi inserted where needed), and the operands of the su'i are reboi ci pi'i, or 6, and voboi mu pi'i, or 20. As you can see, it is easy to get lost in the world of reverse Polish notation; on the other hand, it is especially easy for a mechanical listener (who has a deep mental stack and doesn't get lost) to comprehend.

The operands of an RP operator can be any legal mekso operand, including parenthesized mekso that can contain any valid syntax, whether more RP or something more conventional.

In Lojban, RP operators are always parsed with exactly two operands. What about operators which require only one operand, or more than two operands? The null operand tu'o and the null operator ge'a provide a simple solution. A one-operand operator like va'a always appears in a reverse Polish context as tu'o va'a. The tu'o provides the second operand, which is semantically ignored but grammatically necessary. Likewise, the three-operand version of gei appears in reverse Polish as ge'a gei, where the ge'a effectively merges the 2nd and 3rd operands into a single operand. Here are some examples:

Example 18.112.

li

The-number

fu'a

(RP!)

ciboi

(three,

muboi

five,

vu'u

minus)

du

equals

li

the-number

fu'a

(RP!)

reboi

two,

tu'o

null,

va'a

negative-of.

li fu'a ciboi muboi vu'u du li fu'a reboi tu'o va'a

The-number (RP!) (three, five, minus) equals the-number (RP!) two, null, negative-of.

35=23 - 5 = {-2}

Example 18.113.

li

The-number

cinoki'oki'o

30-comma-comma

du

equals

li

the-number

fu'a

(RP!)

biboi

8,

ciboi

(3,

panoboi

10,

ge'a

null-op),

gei

exponential-notation.

li cinoki'oki'o du li fu'a biboi ciboi panoboi ge'a gei

The-number 30-comma-comma equals the-number (RP!) 8, (3, 10, null-op), exponential-notation.

30,000,000=3×10830,000,000 = 3 \times 10^8

18.17. Logical and non-logical connectives within mekso

The following cmavo are discussed in this section:

.abuBYletter aa
byBYletter bb
cyBYletter cc
fe'aVUhUnth root of (default square root)
lo'oLOhOterminator for LI

As befits a logical language, Lojban has extensive provision for logical connectives within both operators and operands. Full details on logical and non-logical connectives are provided in Chapter 14. Operands are connected in afterthought with selma'o A and in forethought with selma'o GA, just like sumti. Operators are connected in afterthought with selma'o JA and in forethought with selma'o GUhA, just like tanru components. This parallelism is no accident.

In addition, A+BO and A+KE constructs are allowed for grouping logically connected operands, and ke'e is allowed for grouping logically connected operators, although there are no analogues of tanru among the operators.

Despite the large number of rules required to support this feature, it is of relatively minor importance in the mekso scheme of things. Example 18.114 exhibits afterthought logical connection between operands:

Example 18.114.

vei

(

ci

Three

.a

or

vo

four

ve'o

)

prenu

people

cu

klama

go

le

to-the

zarci

market.

vei ci .a vo ve'o prenu cu klama le zarci

( Three or four ) people go to-the market.

Example 18.115 is equivalent in meaning, but uses forethought connection:

Example 18.115.

vei

(

ga

Either

ci

3

gi

or

vo

4

ve'o

)

prenu

people

cu

klama

go

le

to-the

zarci

market.

vei ga ci gi vo ve'o prenu cu klama le zarci

( Either 3 or 4 ) people go to-the market.

Note that the mekso here are being used as quantifiers. Lojban requires that any mekso other than a simple number be enclosed in parentheses when used as a quantifier. This rule prevents ambiguities that do not exist when using li.

By the way, li has an elidable terminator, lo'o, which is needed when a li sumti is followed by a logical connective that could seem to be within the mekso. For example:

Example 18.116.

li

The-number

re

two

su'i

plus

re

two

du

equals

li

the-number

vo

four

lo'o

.onai

or-else

lo

a

nalseldjuno

non-known

namcu

number.

li re su'i re du li vo lo'o .onai lo nalseldjuno namcu

The-number two plus two equals the-number four or-else a non-known number.

Omitting the lo'o would cause the parser to assume that another operand followed the .onai and reject lo as an invalid operand.

Simple examples of logical connection between operators are hard to come by. A contrived example is:

Example 18.117.

li

The-number

re

two

su'i

plus

je

and

pi'i

times

re

two

du

equals

li

the-number

vo

four.

li re su'i je pi'i re du li vo

The-number two plus and times two equals the-number four.

2+2=42 + 2 = 4 and 2×2=42 \times 2 = 4.

The forethought-connection form of Example 18.117 is:

Example 18.118.

li

the-number

re

two

ge

both

su'i

plus

gi

and

pi'i

times

re

two

du

equals

li

the-number

vo

four.

li re ge su'i gi pi'i re du li vo

the-number two both plus and times two equals the-number four.

Both 2+2=42 + 2 = 4 and 2×2=42 \times 2 = 4.

Here is a classic example of operand logical connection:

Example 18.119.

go

If-and-only-if

li

the-number

.abu

aa

bi'epi'i

times

vei

(

xy.

xx

te'a

power

re

two

ve'o

)

su'i

plus

by.

bb

bi'epi'i

times

xy.

xx

su'i

plus

cy.

cc

du

equals

li

the-number

no

zero

gi

then

li

the-number

xy.

xx

du

equals

li

the-number

vei

[

va'a

the-negation-of(

by.

bb

ku'e

)

su'i

plus

ja

or

vu'u

minus

fe'a

the-root-of

vei

(

by.

bb

bi'ete'a

power

re

22

vu'u

minus

vo

four

bi'epi'i

times

.abu

aa

bi'epi'i

times

cy.

cc

ve'o

)

[ku'e]

ve'o

]

fe'i

divided-by

re

two

bi'epi'i

times

.abu

aa

go li .abu bi'epi'i vei xy. te'a re ve'o su'i by. bi'epi'i xy. su'i cy. du li no gi li xy. du li vei va'a by. ku'e su'i ja vu'u fe'a vei by. bi'ete'a re vu'u vo bi'epi'i .abu bi'epi'i cy. ve'o [ku'e] ve'o fe'i re bi'epi'i .abu

If-and-only-if the-number aa times ( xx power two ) plus bb times xx plus cc equals the-number zero then the-number xx equals the-number [ the-negation-of( bb ) plus or minus the-root-of ( bb power 22 minus four times aa times cc ) ] divided-by two times aa

Iff ax2+bx+c=0ax^{2} + bx + c = 0, then x=b±b24ac2ax = \dfrac{-b\plusmn \sqrt{b^{2} - 4ac}}{2a}

Note the mixture of styles in Example 18.119: the negation of b and the square root are represented by forethought and most of the operator precedence by prefixed bi'e, but explicit parentheses had to be added to group the numerator properly. In addition, the square root parentheses cannot be removed here in favor of simple fe'a and ku'e bracketing, because infix operators are present in the operand. Getting Example 18.119 to parse perfectly using the current parser took several tries: a more relaxed style would dispense with most of the bi'e cmavo and just let the standard precedence rules be understood.

Non-logical connection with JOI and BIhI is also permitted between operands and between operators. One use for this construct is to connect operands with bi'o to create intervals:

Example 18.120.

li

the-number

no

zero

ga'o

(inclusive)

bi'o

from-to

ke'i

(exclusive)

pa

one

li no ga'o bi'o ke'i pa

the-number zero (inclusive) from-to (exclusive) one

[0,1)[0, 1)

the numbers from zero to one, including zero but not including one

Intervals defined by a midpoint and range rather than beginning and end points can be expressed by mi'i

Example 18.121.

li

the-number

pimu

0.5

ga'o

(inclusive)

mi'i

centered-with-range

ke'i

(exclusive)

pimu

0.5

li pimu ga'o mi'i ke'i pimu

the-number 0.5 (inclusive) centered-with-range (exclusive) 0.5

which expresses the same interval as Example 18.120. Note that the ga'o and ke'i still refer to the endpoints, although these are now implied rather than expressed. Another way of expressing the same thing:

Example 18.122.

li

the-number

pimu

0.5

su'i

plus

ni'upimu

[-0.5

bi'o

from-to

ke'i

(exclusive)

ma'upimu

+0.5]

li pimu su'i ni'upimu bi'o ke'i ma'upimu

the-number 0.5 plus [-0.5 from-to (exclusive) +0.5]

Here we have the sum of a number and an interval, which produces another interval centered on the number. As Example 18.122 shows, non-logical (or logical) connection of operands has higher precedence than any mekso operator.

You can also combine two operands with ce'o, the sequence connective of selma'o JOI, to make a compound subscript:

Example 18.123.

xy.

xx

xi

sub

vei

(

by.

bb

ce'o

sequence

dy.

dd

[ve'o]

)

xy. xi vei by. ce'o dy. [ve'o]

xx sub ( bb sequence dd )

xb,dx_{b,d}

18.18. Using Lojban resources within mekso

The following cmavo are discussed in this section:

na'uNAhUselbri to operator
ni'eNIhEselbri to operand
mo'eMOhEsumti to operand
te'uTEhUterminator for all three

One of the mekso design goals requires the ability to make use of Lojban's vocabulary resources within mekso to extend the built-in cmavo for operands and operators. There are three relevant constructs: all three share the elidable terminator te'u (which is also used to terminate vectors marked with jo'i)

The cmavo na'u makes a selbri into an operator. In general, the first place of the selbri specifies the result of the operator, and the other unfilled places specify the operands:

Example 18.124.

li

The-number

na'u

the-operator

tanjo

tangent

te'u

[end-operator]

vei

(

pai

π\pi

fe'i

/

re

2

[ve'o]

)

du

=

li

the-number

ci'i

infinity.

li na'u tanjo te'u vei pai fe'i re [ve'o] du li ci'i

The-number the-operator tangent [end-operator] ( π\pi / 2 ) = the-number infinity.

tanπ2=\tan{\dfrac{\pi}{2}} = \infty

tanjo is the gismu for “x1 is the tangent of x2”, and the na'u here makes it into an operator which is then used in forethought

The cmavo ni'e makes a selbri into an operand. The x1 place of the selbri generally represents a number, and therefore is often a ni abstraction, since ni abstractions represent numbers. The ni'e makes that number available as a mekso operand. A common application is to make equations relating pure dimensions:

Example 18.125.

li

The-number

ni'e

ni

quantity-of

clani

length

[te'u]

pi'i

times

ni'e

ni

quantity-of

ganra

width

[te'u]

pi'i

times

ni'e

ni

quantity-of

condi

depth

te'u

du

equals

li

the-number

ni'e

ni

quantity-of

canlu

volume.

li ni'e ni clani [te'u] pi'i ni'e ni ganra [te'u] pi'i ni'e ni condi te'u du li ni'e ni canlu

The-number quantity-of length times quantity-of width times quantity-of depth equals the-number quantity-of volume.

Length×Width×Depth=Volume\text{Length} \times \text{Width} \times \text{Depth} = \text{Volume}

The cmavo mo'e operates similarly to ni'e, but makes a sumti (rather than a selbri) into an operand. This construction is useful in stating equations involving dimensioned numbers:

Example 18.126.

li

The-number

mo'e

re

two

ratcu

rats

su'i

plus

mo'e

re

two

ractu

rabbits

du

equals

li

the-number

mo'e

vo

four

danlu

animals.

li mo'e re ratcu su'i mo'e re ractu du li mo'e vo danlu

The-number two rats plus two rabbits equals the-number four animals.

2rats+2rabbits=4animals2 \text{rats} + 2 \text{rabbits} = 4 \text{animals}

Another use is in constructing Lojbanic versions of so-called “folk quantifiers”, such as “a pride of lions”:

Example 18.127.

mi

I

viska

see

vei

(

mo'e

lo'e

the-typical

lanzu

family

ve'o

)-number-of

cinfo

lions.

mi viska vei mo'e lo'e lanzu ve'o cinfo

I see ( the-typical family )-number-of lions.

I see a pride of lions.

18.19. Other uses of mekso

The following cmavo are discussed in this section:

me'oLIthe mekso
nu'aNUhAoperator to selbri
maiMAIutterance ordinal
mo'oMAIhigher order utterance ordinal
roiROIquantified tense

So far we have seen mekso used as sumti (with li), as quantifiers (often parenthesized), and in MOI and ME-MOI selbri. There are a few other minor uses of mekso within Lojban.

The cmavo me'o has the same grammatical use as li but slightly different semantics. li means “the number which is the value of the mekso ...”, whereas me'o just means “the mekso ...” So it is true that:

Example 18.128.

li

The-number

re

two

su'i

plus

re

two

du

equals

li

the-number

vo

four.

li re su'i re du li vo

The-number two plus two equals the-number four.

2+2=42 + 2 = 4

but false that:

Example 18.129.

me'o

The-mekso

re

two

su'i

plus

re

two

du

equals

me'o

the-mekso

vo

four.

me'o re su'i re du me'o vo

The-mekso two plus two equals the-mekso four.

“2 + 2” = “4”

since the expressions “2 + 2” and “4” are not the same. The relationship between li and me'o is related to that between la djan., the person named John, and zo .djan., the name “John”

The cmavo nu'a is the inverse of na'u, and allows a mekso operator to be used as a normal selbri, with the place structure:

x1 is the result of applying (operator) to x2, x3, ...

for as many places as may be required. For example:

Example 18.130.

li

The-number

ni'umu

5-5

cu

nu'a

is-the-operator

va'a

negation-of

li

the-number

ma'umu

+5+5.

li ni'umu cu nu'a va'a li ma'umu

The-number 5-5 is-the-operator negation-of the-number +5+5.

uses nu'a to make the operator va'a into a two-place bridi

Used together, nu'a and na'u make it possible to ask questions about mekso operators, even though there is no specific cmavo for an operator question, nor is it grammatical to utter an operator in isolation. Consider Example 18.131, to which Example 18.132 is one correct answer:

Example 18.131.

li

The-number

re

two

na'u

applied-to-selbri

mo

which-selbri?

re

two

du

equals

li

the-number

vo

four.

li re na'u mo re du li vo

The-number two applied-to-selbri which-selbri? two equals the-number four.

2?2=42 \operatorname{?} 2 = 4

Example 18.132.

nu'a

su'i

nu'a su'i

plus

In Example 18.131, na'u mo is an operator question, because mo is the selbri question cmavo and na'u makes the selbri into an operator. Example 18.132 makes the true answer su'i into a selbri (which is a legal utterance) with the inverse cmavo nu'a. Mechanically speaking, inserting Example 18.132 into Example 18.131 produces:

Example 18.133.

li

The-number

re

two

na'u

(the-operator

nu'a

the-selbri

su'i

plus)

re

two

du

equals

li

the-number

vo

four.

li re na'u nu'a su'i re du li vo

The-number two (the-operator the-selbri plus) two equals the-number four.

where the na'u nu'a cancels out, leaving a truthful bridi

Numerical free modifiers, corresponding to English “firstly”, “secondly”, and so on, can be created by suffixing a member of selma'o MAI to a digit string or a lerfu string. (Digit strings are compound cmavo beginning with a cmavo of selma'o PA, and containing only cmavo of PA or BY; lerfu strings begin with a cmavo of selma'o BY, and likewise contain only PA or BY cmavo.) Here are some examples:

Example 18.134.

pamai

firstly

pamai

firstly

Example 18.135.

remai

secondly

remai

secondly

Example 18.136.

romai

all-ly

lastly

romai

all-ly

lastly

Example 18.137.

ny.mai

nth-ly

ny.mai

nth-ly

Example 18.138.

pasomo'o

nineteenthly (higher order)

Section 19

pasomo'o

nineteenthly (higher order)

Section 19

The difference between mai and mo'o is that mo'o enumerates larger subdivisions of a text. Each mo'o subdivision can then be divided into pieces and internally numbered with mai. If this chapter were translated into Lojban, each section would be numbered with mo'o. (See Section 19.7 for more on these words.)

A numerical tense can be created by suffixing a digit string with roi. This usage generates tenses corresponding to English “once”, “twice”, and so on. This topic belongs to a detailed discussion of Lojban tenses, and is explained further in Section 10.9.

Note: the elidable terminator boi is not used between a number and a member of MAI or ROI.

18.20. Explicit operator precedence

As mentioned earlier, Lojban does provide a way for the precedences of operators to be explicitly declared, although current parsers do not understand these declarations.

The declaration is made in the form of a metalinguistic comment using ti'o, a member of selma'o SEI. sei, the other member of SEI, is used to insert metalinguistic comments on a bridi which give information about the discourse which the bridi comprises. The format of a ti'o declaration has not been formally established, but presumably would take the form of mentioning a mekso operator and then giving it either an absolute numerical precedence on some pre-established scale, or else specifying relative precedences between new operators and existing operators.

In future, we hope to create an improved machine parser that can understand declarations of the precedences of simple operators belonging to selma'o VUhU. Originally, all operators would have the same precedence. Declarations would have the effect of raising the specified cmavo of VUhU to higher precedence levels. Complex operators formed with na'u, ni'e, or ma'o would remain at the standard low precedence; declarations with respect to them are for future implementation efforts. It is probable that such a parser would have a set of “commonly assumed precedences” built into it (selectable by a special ti'o declaration) that would match mathematical intuition: times higher than plus, and so on.

18.21. Miscellany

A few other points:

se can be used to convert an operator as if it were a selbri, so that its arguments are exchanged. For example:

Example 18.139.

li

The-number

ci

three

se

(inverse)

vu'u

minus

vo

four

du

equals

li

the-number

pa

one.

li ci se vu'u vo du li pa

The-number three (inverse) minus four equals the-number one.

3 subtracted from 4 equals 1.

The other converters of selma'o SE can also be used on operators with more than two operands, and they can be compounded to create (probably unintelligible) operators as needed.

Members of selma'o NAhE are also legal on an operator to produce a scalar negation of it. The implication is that some other operator would apply to make the bridi true:

Example 18.140.

li

The-number

ci

3

na'e

non-

su'i

plus

vo

4

du

equals

li

the-number

pare

12.

li ci na'e su'i vo du li pare

The-number 3 non- plus 4 equals the-number 12.

Example 18.141.

li

The-number

ci

3

to'e

opposite-of-

vu'u

minus

re

2

du

equals

li

the-number

mu

5.

li ci to'e vu'u re du li mu

The-number 3 opposite-of- minus 2 equals the-number 5.

The sense in which “plus” is the opposite of “minus” is not a mathematical but rather a linguistic one; negated operators are defined only loosely.

la'e and lu'e can be used on operands with the usual semantics to get the referent of or a symbol for an operand. Likewise, a member of selma'o NAhE followed by bo serves to scalar-negate an operand, implying that some other operand would make the bridi true:

Example 18.142.

li

The-number

re

22

su'i

plus

re

22

du

equals

li

the-number

na'ebo

non-

mu

55.

li re su'i re du li na'ebo mu

The-number 22 plus 22 equals the-number non- 55.

2+2=2 + 2 = something other than 55.

The digits 0-9 have rafsi, and therefore can be used in making lujvo. Additionally, all the rafsi have CVC form and can stand alone or together as names:

Example 18.143.

la

Those-named

zel.

“Seven”

poi

who

gunta

attack

la

that-named

tebes.

“Thebes”

pu

[past]

nanmu

are-men.

la zel. poi gunta la tebes. pu nanmu

Those-named “Seven” who attack that-named “Thebes” [past] are-men.

The Seven Against Thebes were men.

Of course, there is no guarantee that the name zel. is connected with the number rafsi: an alternative which cannot be misconstrued is:

Example 18.144.

la

Those-named-the

zemei

Sevensome

poi

who

gunta

attack

la

that-named

tebes.

Thebes

pu

[past]

nanmu

are-men.

la zemei poi gunta la tebes. pu nanmu

Those-named-the Sevensome who attack that-named Thebes [past] are-men.

Certain other members of PA also have assigned rafsi: so'a, so'e, so'i, so'o, so'u, da'a, ro, su'e, su'o, pi, and ce'i. Furthermore, although the cmavo fi'u does not have a rafsi as such, it is closely related to the gismu frinu, meaning “fraction”; therefore, in a context of numeric rafsi, you can use any of the rafsi for frinu to indicate a fraction slash.

A similar convention is used for the cmavo cu'o of selma'o MOI, which is closely related to cunso (probability); use a rafsi for cunso in order to create lujvo based on cu'o. The cmavo mei and moi of MOI have their own rafsi, two each in fact: mem / mei and mom / moi respectively.

The grammar of mekso as described so far imposes a rigid distinction between operators and operands. Some flavors of mathematics (lambda calculus, algebra of functions) blur this distinction, and Lojban must have a method of doing the same. An operator can be changed into an operand with ni'enu'a, which transforms the operator into a matching selbri and then the selbri into an operand.

To change an operand into an operator, we use the cmavo ma'o, already introduced as a means of changing a lerfu string such as fy. into an operator. In fact, ma'o can be followed by any mekso operand, using the elidable terminator te'u if necessary.

There is a potential semantic ambiguity in ma'o fy. [te'u] if fy. is already in use as a variable: it comes to mean “the function whose value is always ff”. However, mathematicians do not normally use the same lerfu words or strings as both functions and variables, so this case should not arise in practice.

18.22. Four score and seven: a mekso problem

Abraham Lincoln's Gettysburg Address begins with the words “Four score and seven years ago”. This section exhibits several different ways of saying the number “four score and seven”. (A “score”, for those not familiar with the term, is 20; it is analogous to a “dozen” for 12.) The trivial way:

Example 18.145.

li

eight

bize

seven

li bize

eight seven

8787

Example 18.145 is mathematically correct, but sacrifices the spirit of the English words, which are intended to be complex and formal.

Example 18.146.

li

the-number

vo

four

pi'i

times

reno

twenty

su'i

plus

ze

seven

li vo pi'i reno su'i ze

the-number four times twenty plus seven

4×20+74\times 20+7

Example 18.146 is also mathematically correct, but still misses something. “Score” is not a word for 20 in the same way that “ten” is a word for 10: it contains the implication of 20 objects. The original may be taken as short for “Four score years and seven years ago”. Thinking of a score as a twentysome rather than as 20 leads to:

Example 18.147.

li

the-number

mo'e

[sumti-to-mex]

voboi

four

renomei

twentysomes

te'u

[end-sumti-to-mex]

su'i

plus

ze

seven

li mo'e voboi renomei te'u su'i ze

the-number [sumti-to-mex] four twentysomes [end-sumti-to-mex] plus seven

In Example 18.147, voboi renomei is a sumti signifying four things each of which are groups of twenty; the mo'e and te'u then make this sumti into a number in order to allow it to be the operand of su'i.

Another approach is to think of “score” as setting a representation base. There are remnants of base-20 arithmetic in some languages, notably French, in which 87 is “quatre-vingt-sept”, literally “four-twenties-seven”. (This fact makes the Gettysburg Address hard to translate into French!) If “score” is the representation base, then we have:

Example 18.148.

li

the-number

vo

four

pi'e

;

ze

seven

ju'u

base

reno

20

li vo pi'e ze ju'u reno

the-number four ; seven base 20

47204720

Overall, Example 18.147 probably captures the flavor of the English best. Example 18.145 and Example 18.146 are too simple, and Example 18.148 is too tricky. Nevertheless, all four examples are good Lojban. Pedagogically, these examples illustrate the richness of lojbau mekso: anything that can be said at all, can probably be said in more than one way.

18.23. mekso selma'o summary

Except as noted, each selma'o has only one cmavo.

BOIelidable terminator for numerals and lerfu strings
BYlerfu for variables and functions (see Section 17.11)
FUhAreverse-Polish flag
GOhAincludes du (mathematical equality) and other non-mekso cmavo
JOhIarray flag
KUhEelidable terminator for forethought mekso
LImekso articles (me'o)
MAhOmake operand into operator
MOIcreates mekso selbri (cu'o, see Section 18.11)
MOhEmake sumti into operand
NAhUmake selbri into operator
NIhEmake selbri into operand
NUhAmake operator into selbri
PAnumbers (see Section 18.25)
PEhOoptional forethought mekso marker
TEhUelidable terminator for NAhU, NIhE, MOhE, MAhO, and JOhI
VEIleft parenthesis
VEhOright parenthesis
VUhUoperators (see Section 18.24)
XIsubscript flag

18.24. Complete table of VUhU cmavo, with operand structures

The operand structures specify what various operands (labeled a, b, c, ...) mean. The implied context is forethought, since only forethought operators can have a variable number of operands; however, the same rules apply to infix and RP uses of VUhU.

su'iplus(((a+b)+c)+)(((a + b) + c) + \dotsb)
pi'itimes(((a×b)×c)×)(((a \times b) \times c) \times \dotsb)
vu'uminus(((ab)c))(((a - b) - c) - \dotsb)
fe'idivided by(((a/b)/c)/)(((a / b) / c) / \dotsb)
ju'unumber basenumeral string aa interpreted in the base bb
pa'iratiothe ratio of aa to bb a:ba : b
fa'ireciprocal of/multiplicative inverse1/a1 / a
geiscientific notationb×b \times (cc [default 1010 ] to the aa power)
ge'anull operator(no operands)
de'ologarithmloga\log{a} to base bb (default 1010 or ee as appropriate)
te'ato the power/exponentialaa to the bb power
fe'anth root of/inverse powerbth root of aa (default square root: b=2b = 2)
cu'aabsolute value/norma\lvert a \rvert
ne'ofactoriala!a!
pi'amatrix row vector combiner(all operands are row vectors)
sa'imatrix column vector combiner(all operands are column vectors)
ri'ointegralintegral of a with respect to b over range c
sa'oderivativederivative of a with respect to b of degree c (default 1)
fu'unon-specific operator(variable)
si'isigma (Σ\Sigma) summationsummation of a using variable b over range c
va'anegation of/additive inversea-a
re'amatrix transpose/dualaa^{*}

18.25. Complete table of PA cmavo: digits, punctuation, and other numbers.

Table 18.1. Decimal digits
nonon0
papav1
rerel2
cicib3
vovon4
mumum5
xaxav6
zezel7
bibiv8
sosoz9
Table 18.2. Hexadecimal digits
dauA/10
feiB/11
gaiC/12
jauD/13
reiE/14
vaiF/15
Table 18.3. Special numbers
paiπ\pi
ka'oimaginary ii
te'oexponential ee
ci'iinfinity (\infty)
Table 18.4. Number punctuation
pipizdecimal point
ce'icezpercentage
fi'ufi'u (from frinu; see Section 18.20)fraction (not division)
pi'emixed-base point
ma'uplus sign (not addition)
ni'uminus sign (not subtraction)
ki'othousands comma
ra'erepeating-decimal indicator
ji'iapproximation sign
ka'ocomplex number separator
Table 18.5. Indefinite numbers
roallrol
so'asojalmost all
so'esopmost
so'imanysorso'i
so'ososseveral
so'usotfew
da'adazall but
Table 18.6. Subjective numbers
rauenough
du'etoo few
mo'atoo many
Table 18.7. Miscellaneous
xonumber question
tu'onull operand

18.26. Table of MOI cmavo, with associated rafsi and place structures

meimemmei

x1 is a mass formed from a set x2 of n members, one or more of which is/are x3, [measured relative to the set x4/by standard x4]

moimommoi

x1 is the (n)th member of set x2 when ordered by rule x3 [by standard x4]

si'e

x1 is an (n)th portion of mass x2 [by standard x3]

cu'ocu'o (borrowed from cunso; see Section 18.20)

event x1 has probability (n) of occurring under conditions x2 [by standard x3]

va'e

x1 is at scale position (n) on the scale x2 [by standard x3]