Elamur: **Mova** · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · [Research](https://md.research.elamur.ai/free/en/) · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Constitution](https://md.constitution.elamur.ai/)

[Mova](https://md.mova.elamur.ai/free/en/) · [this page in HTML](https://mova.elamur.ai/free/en/docs/languages/jbo/23-numbers-and-mekso/)

[Mova](https://md.mova.elamur.ai/free/en/) / [docs](https://md.mova.elamur.ai/free/en/docs/) / [languages](https://md.mova.elamur.ai/free/en/docs/languages/) / [jbo](https://md.mova.elamur.ai/free/en/docs/languages/jbo/) / 23. Numbers and mathematical expressions mekso

# 23. Numbers and mathematical expressions mekso

**On this page**

1. [Digits, numerical strings and number punctuation](#digits-numerical-strings-and-number-punctuation)
2. [Ordinals and numerical predicates](#ordinals-and-numerical-predicates)
3. [Numerical arguments with li and lo'o](#numerical-arguments-with-li-and-loo)
4. [Letterals lerfu and their use as operands](#letterals-lerfu-and-their-use-as-operands)
5. [Operators, operands and expression grouping](#operators-operands-and-expression-grouping)
6. [Infix, forethought and reverse Polish notation](#infix-forethought-and-reverse-polish-notation)
7. [Operator priority and explicit precedence](#operator-priority-and-explicit-precedence)
8. [Conversions between predicates, arguments and mathematical expressions](#conversions-between-predicates-arguments-and-mathematical-expressions)
9. [How Mova handles Lojban numerical and mathematical expressions](#how-mova-handles-lojban-numerical-and-mathematical-expressions)
10. [Sources for this chapter](#sources-for-this-chapter)

A numerical string can count arguments, supply a rank for a predicate, or enter a mathematical expression, a *mekso*. To use the value of a mathematical expression as an argument (*sumti*), put it inside `li … lo'o`. These constructions can share the same digit words while assigning them different grammatical roles. (The Logical Language Group 1997, §§ 95, 97, 152, 300–312)

## Digits, numerical strings and number punctuation

The decimal digits are words of selma'o `PA`. Each position in a numerical string has its own digit, so `pa no re` represents 102. The initial digit does not need a special form. The word list also supplies six digit values for bases that need more than ten digits. The letters in the rightmost column are conventional written digit symbols. Lojban represents the corresponding values with the `PA` words in the middle column. (The Logical Language Group 1994, § cmavo list, `PA`)

| Value | Lojban digit word | Digit symbol |
| --- | --- | --- |
| 0 | `no` | 0 |
| 1 | `pa` | 1 |
| 2 | `re` | 2 |
| 3 | `ci` | 3 |
| 4 | `vo` | 4 |
| 5 | `mu` | 5 |
| 6 | `xa` | 6 |
| 7 | `ze` | 7 |
| 8 | `bi` | 8 |
| 9 | `so` | 9 |
| 10 | `dau` | A |
| 11 | `fei` | B |
| 12 | `gai` | C |
| 13 | `jau` | D |
| 14 | `rei` | E |
| 15 | `vai` | F |

The machine grammar's *number* production begins with one `PA` word. Each following element may be another `PA` word or a letteral word. Thus the syntactic category includes signed numerals, approximations and indefinite quantifiers as well as strings made solely of digits. A string that starts with a letteral enters the separate *lerfu-string* production, which also permits digits and other `PA` words after its first element. In both productions, the grammatical category of the first element determines which production applies. The production determines the shape of the string. Its interpretation still depends on the words in it and, where relevant, on the radix or other numerical convention. (The Logical Language Group 1997, §§ 812, 817, 987)

The words below occur inside numerical strings. `pi` marks the radix point, which is a decimal point in base ten. Within the integer part of a decimal numeral, each `ki'o` separates groups of three digit positions, counted from the right. A short group to the right of a separator is read with leading zeros, and an empty group supplies three zeros. `pi'e` separates fields whose interpretation depends on the notation in use, such as the day and month in a date. Each field can contain several digits. (The Logical Language Group 1994, § cmavo list, `PA`)

| Word | Numerical use | Form, gloss and interpretation |
| --- | --- | --- |
| `ma'u` | Positive sign before a magnitude | `ma'u ci` — positive three — “+3” (constructed) |
| `ni'u` | Negative sign before a magnitude | `ni'u ci` — negative three — “−3” (constructed) |
| `pi` | Radix point | `ci pi pa vo` — three point one four — “3.14” (constructed) |
| `ki'o` | Separator for groups of three decimal positions | `pa ki'o re` — one group-separator two — “1,002” (constructed) |
| `pi'e` | Separator between numerical fields | `23 pi'e 3` — twenty-three field-separator three — “23 March” in the cited date context (`wiki:cteduncitsi`) |
| `fi'u` | Fraction separator between numerator and denominator | `ci fi'u vo` — three fraction four — “three quarters” (constructed) |
| `ra'e` | Beginning of the repeating part of a fractional expansion | `no pi ra'e ci` — zero point repeating three — “0.333…” (constructed) |
| `ce'i` | Percent marker following a value | `re mu ce'i` — two five percent — “25 percent” (constructed) |
| `ji'i` | Approximation marker, placed before the value in these examples | `ji'i ciki'oki'oki'o` — approximately three followed by three groups of zeros — “about three billion” (`wiki:xindo ropno bangu`) |

The corpus also uses figures within Lojban text. In `su'o 27,000 frejutsi` (`wiki:finpe`), the gloss is *at.least 27,000 species* and the translation is “at least 27,000 species.” In `ci plise` (`wiki:kacna'u`), the gloss is *three apple* and the translation is “three apples.” In both phrases, the numerical expression is in the quantifier position before a predicate. The machine grammar expresses the word-based pattern through `PA` and the quantifier production. (The Logical Language Group 1997, §§ 95, 300, 812)

### Counts, bounds and numerical questions

An unqualified digit string can give an exact count. A bound word changes the condition on the count. In the table, (n) is the numerical amount following the bound word. The vague quantifiers select amounts relative to a domain, a comparison or a purpose supplied by the context. `xo` asks for the numerical amount in its current position. (The Logical Language Group 1994, § cmavo list, `PA`)

| Form | Interpretation in a count |
| --- | --- |
| `no` | Zero |
| `ro` | All members of the relevant domain |
| `so'a` | Almost all |
| `so'e` | Most |
| `so'i` | Many |
| `so'o` | Several |
| `so'u` | Few |
| `su'o` followed by (n) | At least (n), including (n) |
| `su'e` followed by (n) | At most (n), including (n) |
| `za'u` followed by (n) | More than (n) |
| `me'i` followed by (n) | Fewer than (n) |
| `da'a` followed by (n) | All except (n) |
| `rau` | Enough |
| `du'e` | Too many |
| `mo'a` | Too few |
| `xo` | How many, or what numerical value |

The corpus phrase `su'o panonoki'oki'o remna` (`wiki:xindo ropno bangu`) is glossed *at.least one zero zero group group human*, “at least one hundred million people.” Here `su'o` applies to the whole grouped number. The corpus phrase `no drata terdi` (`wiki:terdi`) is glossed *zero other planet*, “no other planet.” Here `no` counts the individuals that satisfy `drata terdi`. (The Logical Language Group 1994, § cmavo list, `no`, `su'o`, `ki'o`; The Logical Language Group 1997, §§ 95, 300, 812)

### Where the string ends

`boi` can close a plain number used as a quantifier or close a letteral string used as an operand or a direct sumti. Write it where following material could continue the string or where the intended boundaries otherwise need an explicit marker. In particular, two consecutive digit strings serving as separate operands require a boundary. An operator between the strings already separates them. `boi` is elidable where the intended parse survives its omission. A quantifier formed with `vei` has its own closing word, `ve'o`. (The Logical Language Group 1997, §§ 97, 300, 385, 812, 817)

| Form | Gloss | Interpretation |
| --- | --- | --- |
| `re ci` | two three | One string, “23” (constructed) |
| `re boi ci` | two end.string three | Two strings, “2” and “3,” in a construction that admits successive operands (constructed) |
| `re su'i ci` | two plus three | Two operands separated by addition, “2 + 3” (constructed) |

## Ordinals and numerical predicates

A `MOI` word immediately after a number or a letteral string forms a predicate unit. For instance, `ci moi` is an ordinal predicate and can also be written `cimoi`. The suffix marks the end of the string in this construction. The formal pattern is a number or a letteral string followed by `MOI`. For the value of a full expression, use the `me … me'u` construction described in section 8. (The Logical Language Group 1997, § 152; Hagiwara, Ilmen and lagleki 2014, § `MOI_no_SA_handling`)

The places below are the argument positions of the resulting predicate. The value supplied before the suffix is (n).

| `MOI` word | Predicate formed | Place structure |
| --- | --- | --- |
| `moi` | Ordinal | (x_1) ranks (n)th in set (x_2) by ordering rule (x_3). |
| `mei` | Cardinality | (x_1) is the mass formed from set (x_2) of (n) members, with (x_3) a member of that set. |
| `si'e` | Proportion | (x_1) is the portion of mass (x_2) given by proportion (n). |
| `cu'o` | Probability | Event (x_1) has probability (n) under conditions (x_2). |
| `va'e` | Position on a scale | (x_1) is at position (n) on scale (x_2). |

(The Logical Language Group 1994, § cmavo list, `MOI`)

With `moi`, the relevant set and the rule for ordering it are separate places. The rank can be understood when the ordering rule is left to context. `mei` instead predicates cardinality, with its own places. A count before a predicate uses the quantifier construction and has no `MOI` suffix. (The Logical Language Group 1994, § cmavo list, `moi`, `mei`; The Logical Language Group 1997, §§ 95, 152)

| Form | Gloss | Translation |
| --- | --- | --- |
| `cimoi lo'i plini be la solri` | three.ORD set.of planet LINK NAME Sun | “third among the planets of the Sun” (`wiki:terdi`) |
| `pamoi le'i namcu klesi` | one.ORD the.set.of number class | “first among the classes of numbers” (`wiki:kacna'u`) |
| `ci plise` | three apple | “three apples” (`wiki:kacna'u`) |
| `mu mei` | five.CARD | “is a group of five” (constructed) |
| `pi mu si'e` | point five PROPORTION | “is half of it” (constructed) |
| `pi mu cu'o` | point five PROBABILITY | “has a probability of one half” (constructed) |
| `ci va'e` | three SCALE | “is at position three on the scale” (constructed) |

A numerical question can occupy the suffix's input position. In `ti xo moi` (constructed), the gloss is *this what.number ORD* and the translation is “What place does this come in?” The question is about rank. The predicate formed with `moi` still has its set and ordering places. (The Logical Language Group 1994, § cmavo list, `xo`, `moi`; The Logical Language Group 1997, § 152)

## Numerical arguments with li and lo'o

`li` opens a sumti whose content is a mathematical expression. `lo'o` closes that sumti and is elidable when the following syntax identifies the endpoint. The expression may be a single operand or an expression with operators. Either way, the entire `li … lo'o` construction fills one argument position. Thus `li ci` supplies the number three, and `li re su'i pa` supplies the value of two plus one. (The Logical Language Group 1997, §§ 97, 310–312; Hagiwara, Ilmen and lagleki 2014, §§ `LI_clause`, `LOhO_clause`)

| Form | Gloss | Translation |
| --- | --- | --- |
| `li 0` | NUM zero | “zero” (`wiki:kacna'u`) |
| `de'i li 1987` | dated NUM 1987 | “in 1987” (`wiki:lo jbobau`) |
| `li ji'i 23 pi'e 3 lo'o` | NUM approximately twenty-three field-separator three END.NUM | “approximately 23 March” in context (`wiki:cteduncitsi`) |
| `li re su'i pa lo'o du li ci` | NUM two plus one END.NUM be.identical.to NUM three | “Two plus one equals three.” (constructed) |

The terminators operate at different levels. `boi` ends a string where the string's production permits it. `ve'o` ends an expression grouped by `vei`. `lo'o` ends the numerical sumti. With more than one level open, explicit terminators show where each construction ends. (The Logical Language Group 1997, §§ 97, 300, 385)

### Values, descriptions and quantification

An outer quantifier can precede a sumti or form a quantified argument directly with a following predicate. A description also has a position for an inner quantifier before its predicate. The outer position governs how many referents are taken for the argument at hand. The inner position belongs to the description itself. A quantifier can be a number, optionally closed by `boi`, or a mathematical expression introduced by `vei`, optionally closed by `ve'o`. A quantifier can also appear on its own as a fragment. (The Logical Language Group 1997, §§ 20, 95, 97, 111–112, 300)

| Form | Gloss | Interpretation |
| --- | --- | --- |
| `ci plise` | three apple | “three apples,” with a quantifier directly before the predicate (`wiki:kacna'u`) |
| `re le plise` | two the apple | “two of the apples,” with an outer quantifier (constructed) |
| `le re plise` | the two apple | “the two apples,” with an inner quantifier (constructed) |
| `vei pa su'i re ve'o plise` | GROUP one plus two END.GROUP apple | “three apples,” with a computed count (constructed) |
| `li ci` | NUM three | “the number three,” as the value of an argument (constructed) |
| `lo namcu` | DESC number | “a number,” identified by a description (constructed) |

A numerical sumti can occupy the same clause position as a description, a name, a quotation or a pro-argument. The expression chosen determines the way the referent is supplied. `zo ci` quotes the word `ci`, glossed *QUOTE.WORD three*, “the word *ci*” (constructed). `li ci`, glossed *NUM three*, supplies the numerical value. The `LA` construction introduces names, and the `LE` construction makes descriptions. Forms such as `mi` “I” and `ti` “this” can fill the sumti position directly. (The Logical Language Group 1994, § cmavo list, `zo`, `li`, `mi`, `ti`; The Logical Language Group 1997, § 97)

`ma` asks for an argument. `xo` asks for a number within a numerical construction, so it can ask for a count before a description, a rank before `moi`, or a value inside `li`. Use `li xo` when the form of the question explicitly identifies its answer as a numerical value. (The Logical Language Group 1994, § cmavo list, `ma`, `xo`; The Logical Language Group 1997, §§ 95, 97, 152, 300, 385)

| Form | Gloss | Translation |
| --- | --- | --- |
| `xo plise` | how.many apple | “how many apples” (constructed) |
| `li xo du li ci su'i re` | NUM what.number be.identical.to NUM three plus two | “What number equals three plus two?” (constructed) |
| `ma du ti` | what.ARG be.identical.to this | “What is this identical to?” (constructed) |

### Restriction, binding and negation

A sumti built with `li` can take relative material in the ordinary sumti construction. A `NOI` relative introduces a subordinate clause and closes with elidable `ku'o`. A `GOI` relative introduces a term and closes with elidable `ge'u`. `zi'e` joins successive relatives. A restrictive `poi` clause narrows the set available to a quantifier, and `ke'a` within a relative clause can refer back to the argument it modifies. (The Logical Language Group 1994, § cmavo list, `poi`, `ke'a`, `zi'e`; The Logical Language Group 1997, §§ 95, 121–122)

| Form | Gloss | Translation |
| --- | --- | --- |
| `ro namcu poi na mleca li 0` | every number REL NEG be.less.than NUM zero | “every number that is not less than zero” (`wiki:kacna'u`) |
| `ro namcu poi ke'a zmadu li no ku'o` | every number REL REL.PRO exceed NUM zero END.REL | “every number that exceeds zero” (constructed) |
| `li re goi ko'a ge'u` | NUM two ASSIGN PRO END.PHRASE | “the number two, referred to as *ko'a*” (constructed) |

A prenex consists of terms followed by `zo'u`. A quantified pro-argument such as `ro da` or `su'o da` can bind `da` for the statement or subsentence that follows. `de` and `di` provide further logical variables. A restriction on the prenex term specifies the domain of that binding. In the constructed example below, `li no` is the fixed numerical argument of the comparison, while `da` ranges over numbers. (The Logical Language Group 1994, § cmavo list, `da`, `de`, `di`, `zo'u`; The Logical Language Group 1997, §§ 11, 30, 41, 80–83, 95, 97)

| Form | Gloss | Translation |
| --- | --- | --- |
| `su'o da poi namcu ku'o zo'u da mleca li no` | at.least.one VAR REL number END.REL PRENEX VAR be.less.than NUM zero | “At least one number is less than zero.” (constructed) |
| `ro da poi namcu ku'o zo'u da na mleca li no` | every VAR REL number END.REL PRENEX VAR NEG be.less.than NUM zero | “Every number is such that it is not less than zero.” (constructed) |
| `li ni'u pa mleca li no` | NUM negative one be.less.than NUM zero | “Negative one is less than zero.” (constructed) |

The second example places `na` in the clause governed by the prenex. The universal quantifier thus ranges over the individuals of which the negated comparison is asserted. In the corpus phrase `ro namcu poi na mleca li 0`, the relative clause contains `na`, so the negation belongs to the restriction. In `li ni'u pa`, the sign belongs inside the number string. A zero quantifier such as `no` before a predicate sets the count to zero. These placements identify the scope of each form. (The Logical Language Group 1994, § cmavo list, `na`, `ni'u`, `no`; The Logical Language Group 1997, §§ 30, 95, 122, 130–131, 812)

## Letterals lerfu and their use as operands

A *lerfu* is a letteral. In a mathematical expression, a letteral string can be an operand, as when a letter stands for a value. It can also stand directly as a sumti in clause grammar. In both roles `boi` can close the string. A letteral string begins with a letteral word and may continue with either `PA` words or further letteral words. This permits an identifier containing both letters and digits. A `PA` word in the initial position instead gives the string the formal shape of a number. (The Logical Language Group 1997, §§ 97, 385, 812, 817)

The machine grammar admits four ways of forming a letteral word. A compound with `tei … foi` counts as one letteral word at the outer level, even when the enclosed string contains several elements. A `LAU` prefix takes a letteral word, so its input can itself be a compound or another prefixed letteral. (The Logical Language Group 1997, § 987)

| Formation | Condition |
| --- | --- |
| A `BY` word | Use a letteral word from the lexical class, such as `by` for B. |
| A word followed by `bu` (`BU`) | Turn the preceding word into a letteral. |
| A `LAU` word followed by a letteral word | Apply the letteral modifier to that word. |
| `tei` followed by a letteral string and `foi` | Combine the enclosed string into one letteral word. |

Letteral syntax gives the form of a symbol. Its referent or mathematical value is supplied by the context or a stated assignment. An expression with a letteral operand can represent an equation involving a variable. The use of a letteral in that equation does not itself introduce a prenex quantifier. (The Logical Language Group 1994, § cmavo list, `BY`, `BU`; The Logical Language Group 1997, §§ 30, 97, 385, 817, 987)

| Form | Gloss | Interpretation |
| --- | --- | --- |
| `by pa boi` | B one END.STRING | “B1,” a single letteral string (constructed) |
| `tei by cy foi` | LETTER.GROUP B C END.LETTER.GROUP | One compound letteral made from B and C (constructed) |
| `li by su'i pa lo'o du li ci` | NUM B plus one END.NUM be.identical.to NUM three | “B plus one equals three.” (constructed) |
| `by boi cu namcu` | B END.STRING PRED number | “B is a number,” with the letteral as the clause's argument (constructed) |

## Operators, operands and expression grouping

An operand supplies material to an operation. A basic mathematical operator can be a `VUhU` word, such as `su'i` for addition or `pi'i` for multiplication. The grammar also derives operators from expressions and predicates, permits conversion and qualification of operators, and combines operators through connectives. The `VUhU` class establishes the syntactic role. The particular operation determines the number and interpretation of its inputs. (The Logical Language Group 1994, § cmavo list, `VUhU`; The Logical Language Group 1997, §§ 370–374; Hagiwara, Ilmen and lagleki 2014, § `VUhU_no_SA_handling`)

| Operator example | Operation |
| --- | --- |
| `su'i` | Addition |
| `vu'u` | Subtraction |
| `pi'i` | Multiplication |
| `fe'i` | Division |
| `te'a` | Raising to a power |
| `ju'u` | Interpreting a numeral in a specified base |
| `va'a` | Additive inverse |

(The Logical Language Group 1994, § cmavo list, the corresponding `VUhU` entries)

### Operand forms

At the innermost operand level, the baseline grammar admits the following alternatives. An operand may then take the connective constructions summarized below. (The Logical Language Group 1997, §§ 300, 381–385)

| Operand form | Content and boundary |
| --- | --- |
| Quantifier | A number with elidable `boi`, or `vei` plus a mekso with elidable `ve'o` |
| Letteral string | A string beginning with a letteral word, with elidable `boi` |
| `ni'e … te'u` | A predicate used as an operand |
| `mo'e … te'u` | A sumti used as an operand |
| `jo'i … te'u` | An array with one or more entries, each at the operand or forethought expression level |
| Forethought connective construction | A `gek` opener, an operand, a `gik` separator and an innermost operand as the second branch |
| `LAhE … lu'u` or `NAhE bo … lu'u` | An operand modified by the introductory form, with elidable `lu'u` |

`vei … ve'o` encloses a full mekso and makes it available as one quantifier or one operand. The enclosed expression may itself contain an operator sequence or begin with `fu'a`. A plain `jo'i` entry is at the same syntactic level as an operand or a forethought application. Enclose an infix computation in `vei … ve'o` to use it as one array entry. As with successive forethought operands, `boi` can separate adjacent array entries that would otherwise form a single string. (The Logical Language Group 1997, §§ 300, 310–312, 385)

| Form | Gloss | Interpretation |
| --- | --- | --- |
| `vei re su'i ci ve'o pi'i vo` | GROUP two plus three END.GROUP times four | “(2 + 3) × 4” (constructed) |
| `jo'i pa boi re boi ci te'u` | ARRAY one END.STRING two END.STRING three END.CONVERSION | “the array with entries 1, 2, 3” (constructed) |
| `jo'i pa boi vei re su'i ci ve'o te'u` | ARRAY one END.STRING GROUP two plus three END.GROUP END.CONVERSION | “the array with entries 1 and 2 + 3” (constructed) |

### Grouping connected operators and operands

Connectives can join operands and can also join operators. The grammatical patterns differ at these two levels. For operands, the ordinary afterthought connection uses a sumti-type logical connective or a nonlogical connective. For operators, the pattern uses a predicate-type logical connective or a nonlogical connective. Each level also has a tight `bo` construction, a `ke … ke'e` construction for a grouped connected branch, and a forethought construction with a medial `gik`. The operator syntax additionally admits `ke … ke'e` directly around an operator. The general enclosure for a numerical computation is `vei … ve'o`. (The Logical Language Group 1997, §§ 300, 370–385, 421–422, 802, 805–808, 816, 932)

| Level | Ordinary afterthought connection | Tight or grouped connection | Forethought connection |
| --- | --- | --- | --- |
| Operand | `joik` or `ek` | `ek` or `joik` with optional simple tag and `bo`, or with optional simple tag and `ke … ke'e` | `gek … gik …` |
| Operator | `joik` or `jek` | `jek` or `joik` with optional simple tag and `bo`. The grouped branch after a connective uses `joik`, optional simple tag and `ke … ke'e`. | `guhek … gik …` |

In these construction names, `ek` uses an `A` connective and `jek` uses a `JA` connective. `joik` covers the nonlogical connective and interval patterns. `gek` and `guhek` open forethought connections, with `gik` marking the start of the second branch. Their grammatical position specifies whether the connected material belongs to an operand or an operator. (The Logical Language Group 1997, §§ 370–385, 802, 805–808, 816, 932)

For example, `ge re gi ci` (constructed), glossed *both two and three*, is a connected operand in a position that admits an operand. The words `ge` and `gi` mark the two branches. In `re su'i ci` (constructed), glossed *two plus three*, the operator takes the two values as inputs and the expression has the value five. (The Logical Language Group 1994, § cmavo list, `ge`, `gi`, `su'i`; The Logical Language Group 1997, §§ 310–312, 385, 807, 816)

## Infix, forethought and reverse Polish notation

Lojban has three placements for mathematical operators. The place of the operator and the syntactic level of its inputs determine how each application is built.

| Notation | Construction | Form, gloss and translation |
| --- | --- | --- |
| Infix | Begin with an expression unit. Each continuation places an operator before the next unit. | `re su'i ci` — two plus three — “2 + 3” (constructed) |
| Forethought | Put the operator before one or more operand-level or forethought units. The opening `pe'o` is optional where the construction can be read without it. The ending `ku'e` is elidable. | `pe'o su'i re boi ci ku'e` — FORETHOUGHT plus two END.STRING three END.FORETHOUGHT — “2 + 3” (constructed) |
| Reverse Polish | Begin the expression with `fu'a`. Each application puts two inputs before its operator. An input can itself be a reverse Polish application. | `fu'a re boi ci su'i` — RPN two END.STRING three plus — “2 + 3” (constructed) |

(The Logical Language Group 1997, §§ 310–312, 330, 332; Hagiwara, Ilmen and lagleki 2014, § `KUhE_clause`)

### Infix and forethought

An infix step joins the value on its left to the expression unit on its right. An expression with a single unit also satisfies the infix-level production. Within an ordinary infix chain, each unit may itself be an operand or a forethought application. The ordinary chain associates to the left, subject to explicit grouping and `bi'e`. (The Logical Language Group 1997, §§ 310–312)

In forethought notation the list of operands starts immediately after the operator. `ku'e` marks where that operation's list ends. This boundary matters when a nested application ends before another operand of the surrounding operator. An operand-level unit may be a grouped expression, so `vei … ve'o` can protect a complete infix calculation as one input. The forethought production allows one or more units after the operator. The operation still determines which operand count gives the intended interpretation. (The Logical Language Group 1997, §§ 300, 310–312)

| Form | Gloss | Translation |
| --- | --- | --- |
| `pe'o va'a ci ku'e` | FORETHOUGHT additive.inverse three END.FORETHOUGHT | “the additive inverse of three” (constructed) |
| `pe'o pi'i pe'o su'i re boi ci ku'e vo ku'e` | FORETHOUGHT times FORETHOUGHT plus two END.STRING three END.FORETHOUGHT four END.FORETHOUGHT | “multiply the sum of two and three by four” (constructed) |
| `pe'o pi'i vei re su'i ci ve'o vo ku'e` | FORETHOUGHT times GROUP two plus three END.GROUP four END.FORETHOUGHT | “multiply (2 + 3) by 4” (constructed) |

In the nested example, the first `ku'e` closes the addition before `vo` is supplied as the second input to multiplication. In the grouped example, `ve'o` closes the full infix expression in the first input position. Each example represents ((2+3)\times4). (The Logical Language Group 1997, §§ 300, 312)

### Reverse Polish expressions

`fu'a` introduces the reverse Polish alternative for a full mekso. The baseline rule builds an application from two reverse Polish operands followed by one operator. Each of those operands can be an ordinary operand or another reverse Polish application. A nested reverse Polish application uses that recursive pattern directly. A separately enclosed mekso within an ordinary operand has its own choice of notation. There is no dedicated closing word for `fu'a`. The binary pattern determines the end of the application, and any enclosing construction has its own boundary. (The Logical Language Group 1997, §§ 300, 310, 330, 332, 385)

| Form | Gloss | Translation |
| --- | --- | --- |
| `fu'a re boi ci boi vo pi'i su'i` | RPN two END.STRING three END.STRING four times plus | “2 + (3 × 4)” (constructed) |
| `fu'a re boi ci su'i vo pi'i` | RPN two END.STRING three plus four times | “(2 + 3) × 4” (constructed) |
| `li fu'a re boi ci su'i lo'o` | NUM RPN two END.STRING three plus END.NUM | “the value of two plus three” as a sumti (constructed) |

The first sequence completes multiplication on the two most recent operands, three and four, then uses that result with two in the addition. In the second, addition has already formed the left input to multiplication when four is read. In the last, `lo'o` closes the sumti that contains the reverse Polish expression. (The Logical Language Group 1997, §§ 97, 310, 330, 332)

## Operator priority and explicit precedence

An unmarked infix chain groups from the left. The baseline assigns no special infix rank to multiplication, division or exponentiation as lexical classes. `bi'e` immediately precedes the operator whose application is to bind more tightly at that point. `vei … ve'o` can state the intended grouping by making an enclosed expression one operand. (The Logical Language Group 1994, § cmavo list, `bi'e`; The Logical Language Group 1997, §§ 300, 310–312)

| Form | Gloss | Grouping and value |
| --- | --- | --- |
| `re su'i ci pi'i vo` | two plus three times four | `(2 + 3) × 4` = 20 (constructed) |
| `re su'i ci bi'e pi'i vo` | two plus three PRIORITY times four | `2 + (3 × 4)` = 14 (constructed) |
| `re su'i vei ci pi'i vo ve'o` | two plus GROUP three times four END.GROUP | `2 + (3 × 4)` = 14 (constructed) |
| `vei re su'i ci ve'o pi'i vo` | GROUP two plus three END.GROUP times four | `(2 + 3) × 4` = 20 (constructed) |

The high-priority production takes another unit of the same level on its right. A series of successive `bi'e` applications therefore groups to the right within that series. Ordinary operators between completed units still group from the left. The reach of `bi'e` follows the expression structure of the particular occurrence. (The Logical Language Group 1997, §§ 310–312)

| Form | Gloss | Grouping and value |
| --- | --- | --- |
| `pa no vu'u ci vu'u re` | one zero minus three minus two | `(10 − 3) − 2` = 5 (constructed) |
| `pa no bi'e vu'u ci bi'e vu'u re` | one zero PRIORITY minus three PRIORITY minus two | `10 − (3 − 2)` = 9 (constructed) |

`bi'e` belongs to infix expression structure. Forethought nesting follows the structure opened by an operator and bounded by `ku'e` or by an unambiguous endpoint. Reverse Polish nesting follows the order of the two inputs and their operator. If a forethought or reverse Polish operand encloses a new infix expression with `vei`, the infix rules apply within that enclosure. (The Logical Language Group 1997, §§ 300, 310–312, 330, 332)

## Conversions between predicates, arguments and mathematical expressions

Conversion words let material in one grammatical category fill a role normally occupied by another. Each conversion takes a specific input. For example, `ni'e` takes a predicate and `mo'e` takes an argument, although both yield operands. The terminator `te'u` is shared by several operand and operator constructions. Reserve `lo'o` for closing the numerical sumti introduced by `li`. (The Logical Language Group 1997, §§ 97, 152, 374, 385)

| Form | Input | Result | Closing word in the baseline |
| --- | --- | --- | --- |
| `li … lo'o` | A full mekso | Numerical sumti | Elidable `lo'o` |
| `vei … ve'o` | A full mekso | Quantifier, also usable in an operand position | Elidable `ve'o` |
| `ni'e … te'u` | A selbri | Operand derived from a predicate | Elidable `te'u` |
| `mo'e … te'u` | A sumti | Operand supplied by an argument | Elidable `te'u` |
| `jo'i … te'u` | One or more operand-level or forethought units | Array operand | Elidable `te'u` |
| `ma'o … te'u` | A full mekso | Mathematical operator designated by that expression | Elidable `te'u` |
| `na'u … te'u` | A selbri | Mathematical operator derived from a predicate | Elidable `te'u` |
| `nu'a` followed by a mathematical operator | An operator of the `mex-operator` production | Predicate unit | The operator's own delimiters, where applicable |
| `me … me'u` with optional following `MOI` | A sumti | Predicate unit, with the specified numerical predicate when `MOI` applies to a numerical value | Elidable `me'u` before any `MOI` |
| Number or letteral string followed by `MOI` | A number or letteral string | Numerical predicate unit | The `MOI` word ends the input string |

(The Logical Language Group 1994, § cmavo list, `li`, `vei`, `ni'e`, `mo'e`, `jo'i`, `ma'o`, `na'u`, `nu'a`, `me`, `MOI`; The Logical Language Group 1997, §§ 97, 152, 300, 374, 385)

### From an operand to an operator or predicate

`ma'o` allows an expression, including a letteral operand, to designate an operation. In `ma'o fy te'u`, `fy` supplies the symbol F. Its mathematical interpretation determines which function is meant. With `na'u`, a predicate itself supplies the relation used as the operation. The surrounding mathematical expression then supplies the operands. `SE` and `NAhE` can also prefix a mathematical operator. Both prefixes take another `mex-operator`, so they can qualify a converted operator as well as a `VUhU` word. (The Logical Language Group 1994, § cmavo list, `ma'o`, `na'u`, `SE`, `NAhE`; The Logical Language Group 1997, §§ 370–374)

`nu'a` places the operator in predicate syntax. The predicate can relate a result to the inputs that produce it. Its first place is the result, and the inputs occupy the following places in their operation order. The syntactic input after `nu'a` is a mathematical operator of the `mex-operator` production. The baseline also permits that production inside the wider operator syntax used for connected operators. (The Logical Language Group 1994, § cmavo list, `nu'a`; The Logical Language Group 1997, §§ 152, 370–374)

| Form | Gloss | Translation |
| --- | --- | --- |
| `pe'o ma'o fy te'u re ku'e` | FORETHOUGHT MEX.TO.OP F END.CONVERSION two END.FORETHOUGHT | “F applied to two” (constructed) |
| `pe'o na'u pilji te'u re boi ci ku'e` | FORETHOUGHT PRED.TO.OP product END.CONVERSION two END.STRING three END.FORETHOUGHT | “the product of two and three” (constructed) |
| `li mu cu nu'a su'i li re li ci` | NUM five PRED OP.TO.PRED plus NUM two NUM three | “Five is the sum of two and three.” (constructed) |

### From an argument or predicate to an operand

`mo'e` introduces a sumti into operand syntax. Because the input is a complete sumti, it can contain its own delimiters and relative material. `ni'e` places a selbri in operand syntax. In either case, the mathematical context supplies the interpretation of the converted material. The syntax identifies the category and the boundaries of the input. (The Logical Language Group 1994, § cmavo list, `mo'e`, `ni'e`, `te'u`; The Logical Language Group 1997, §§ 90–97, 130, 385)

| Form | Gloss | Interpretation |
| --- | --- | --- |
| `mo'e li re lo'o te'u` | ARG.TO.OPERAND NUM two END.NUM END.CONVERSION | The argument supplying the value two, used as an operand (constructed) |
| `ni'e klani te'u` | PRED.TO.OPERAND be.a.quantity END.CONVERSION | The quantity predicate used as an operand (constructed) |
| `li mo'e li re lo'o te'u su'i pa lo'o` | NUM ARG.TO.OPERAND NUM two END.NUM END.CONVERSION plus one END.NUM | “the value of two plus one” as a sumti (constructed) |

The last example uses three boundaries. The first `lo'o` ends the sumti that is the input to `mo'e`. `te'u` ends the operand made by `mo'e`. The last `lo'o` ends the outer numerical sumti. Where omission leaves only the intended structure, the corresponding terminator can be elided. (The Logical Language Group 1997, §§ 97, 310–312, 385)

### Using a computed value as a count or rank

`vei … ve'o` supplies a computed quantifier in the positions that take a quantifier. For a computed rank, `li … lo'o` supplies the value as a sumti, `me … me'u` takes that sumti, and the following `moi` supplies the ordinal predicate. Compare `ci moi`, whose input is the simple string `ci`. (The Logical Language Group 1997, §§ 95, 97, 152, 300)

| Form | Gloss | Translation |
| --- | --- | --- |
| `vei re su'i pa ve'o plise` | GROUP two plus one END.GROUP apple | “three apples,” with the number computed (constructed) |
| `ci moi` | three ORD | “is third” (constructed) |
| `me li re su'i pa lo'o me'u moi` | ARG.TO.PRED NUM two plus one END.NUM END.ARG.TO.PRED ORD | “is third,” with the rank computed as two plus one (constructed) |

## How Mova handles Lojban numerical and mathematical expressions

Mova has no level-2 parser model for Lojban (`jbo`). When `tools/mova-parse` receives a span identified as a language without a model, it reports that in the `# parse` comment. For `jbo`, its output leaves LEMMA, UPOS, XPOS, FEATS, HEAD and DEPREL as `_` and assigns `Parse=None` in MISC. `tools/langseg` has neither a Lojban lexicon nor a Lojban language code, so it cannot identify Lojban spans among other Latin-script text.

Mova has no Lojban word breaker, grammar or parser. It does not carry out the tokenization, tagging, lemmatization or parsing needed for the numerical strings, letterals, quantifiers, sumti and expressions in this chapter. It has no Lojban mapping to Universal Dependencies, frames or pragmatics. `prag` and `world` read English trees and have no Lojban trees to read. Mova has no annotated Lojban corpus or measured Lojban treebank baseline.

The research library holds the 1997 YACC and EBNF baseline grammars, the ilmentufa `camxes.peg` grammar, and the official gismu, cmavo, rafsi and lujvo lists. Mova's code does not use these materials. Squid turns the chapter's grammatical points into claims and queues the formalizable claims for a place in the code. None of this chapter's rules is implemented. The initial points for implementation are those needed for a tokenizer, a tagger and a Universal Dependencies treebank baseline.

## Sources for this chapter

- The Logical Language Group 1994. *Lojban baseline word lists: gismu, cmavo, rafsi and lujvo (1994–2002)* — Public domain: LLG declaration (public_domain.txt in the same directory): Lojban language definition materials, placed irrevocably in the public domain (signed Robert LeChevalier, President, LLG)
- The Logical Language Group 1997. *Lojban Machine Grammar, 3rd Baseline (YACC and EBNF versions, 10 January 1997)* — Public domain: explicitly dedicated to the public domain by its author, the Logical Language Group Inc. (headers of bnf.300 and grammar.300; LLG declaration PD.txt)
- Masato Hagiwara; Ilmen; lagleki 2014. *la ilmentufa: camxes.peg, the standard PEG grammar of Lojban* — MIT License (LICENSE of github.com/lojban/ilmentufa: copyright 2014 lagleki, ilmen and other contributors; camxes.js.peg copyright 2013, 2014 Masato Hagiwara, MIT; camxes.peg header: MIT)
- John Woldemar Cowan 1997. *The Complete Lojban Language (Logical Language Group, 1997; Version 1.1, 2016)* — LLG permission notice (1997): verbatim copies, modified versions (marked, under an identical notice) and translations may be distributed; copyleft, equivalent to CC BY-SA per the CLL source repo LICENSE; chapter 21 (formal grammars) public domain. Read in the PDF, section 1.8 Boring Legalities, and github.com/lojban/cll chapters/01.xml
- [← previous 22. Negation, scalar opposition and polarity](https://md.mova.elamur.ai/free/en/docs/languages/jbo/22-negation-and-polarity/)
- [next → 24. Polar, content and embedded questions](https://md.mova.elamur.ai/free/en/docs/languages/jbo/24-questions/)
- [↑ back to Lojban (jbo) — a reference manual for Mova](https://md.mova.elamur.ai/free/en/docs/languages/jbo/)

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://mova.elamur.ai/sitemap.xml) · [llms.txt](https://mova.elamur.ai/llms.txt)
