onto-main-options
The groupant beside onto/src/main.rs in the Mova repository: what the code computes, what it never does, how to go back from its outputs, its invariants, cost and checks.
Facts
Implementation material. A Mova code model describes this code at one source revision: partial models, finite checks and their stated scope. It is not a reviewed general exposition, and its labels are shown as written, never raised.
Components
| component | label | where |
|---|---|---|
| approximant | partial | approximant |
| ast | partial | ../syntax.json |
| composition | partial | composition |
| cost | partial | cost |
| descriptant | present | descriptant |
| invariant | partial | invariant |
| tests | executed bounded checks | tests |
Obernants
The typed relations around the forward model: the behaviour complement (what the code never does), the reverse reconstruction (every input compatible with an output) and specialised views.
| id | type | label | where |
|---|---|---|---|
behavior_complement | behavior_complement | partial source derived model | behavior_complement |
reverse_reconstruction | reverse_reconstruction | partial source derived model | reverse_reconstruction |
first_key | first_key | partial source derived model | first_key |
flag_value | flag_value | partial source derived model | flag_value |
language_filter | language_filter | partial source derived model | language_filter |
config_effect | config_effect | partial source derived model | config_effect |
Model text
descriptant
onto-main-options
opt(args,k)=args[first_position(k)+1] if present; wd_cfg optionally reads langs
Epoch 2026-10-31
Specialized source fragment bytes [20407,20931); shared parent AST. Excludes unrelated parent operations and added test module.
approximant
Scoped forward
opt(args,k)=args[first_position(k)+1] if present; wd_cfg optionally reads langs
Domain
This byte-scoped operator uses the parent valid-state domain plus the following local restrictions:
No override by later duplicate
A following --flag is still accepted value
Trim then drop blank/comment lines
langs read error yields Err; skip_wm independently presence-based
No executable percentage surrogate established.
invariant
Local observations
Missing/dangling key excludes Some; no --langs excludes file read
No override by later duplicate
A following --flag is still accepted value
Trim then drop blank/comment lines
langs read error yields Err; skip_wm independently presence-based
cost
Scoped cost
O(argument count), plus optional language-file bytes.
Restriction to this operator's traversed inputs; parent total is not charged to every fragment. No standalone measurement.
composition
Parent join
options supplies the parent relation: opt(args,k)=args[first_position(k)+1] if present; wd_cfg optionally reads langs
Output compatibility is conditional on the local domain and earlier-branch exclusions. Other parent branches are outside this fragment.
models
behavior_complement
Missing/dangling key excludes Some; no --langs excludes file read
reverse_reconstruction
Same option value admits arbitrary nonmatching prefix and arbitrary suffix/duplicate keys
first_key
No override by later duplicate
flag_value
A following --flag is still accepted value
language_filter
Trim then drop blank/comment lines
config_effect
langs read error yields Err; skip_wm independently presence-based
tests
Evidence
Parent tests.md identifies selected actual-code checks. Fragment is a source-scoped partial model; parent finite fixtures do not establish exhaustive branch coverage or every local equation.
This page in Markdown โ https://md.groupants.elamur.ai/free/en/mova/onto/src/main.rs.groupant/options.groupant/