Elamur Groupants⌕
☰

onto-bridge-class-mapping

The groupant beside onto/src/bridge.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

componentlabelwhere
approximantpartialapproximant
astpartial../syntax.json
compositionpartialcomposition
costpartialcost
descriptantpresentdescriptant
invariantpartialinvariant
testsexecuted bounded checkstests

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.

idtypelabelwhere
behavior_complementbehavior_complementpartial source derived modelbehavior_complement
reverse_reconstructionreverse_reconstructionpartial source derived modelreverse_reconstruction
tier_ordertier_orderpartial source derived modeltier_order
context_fibercontext_fiberpartial source derived modelcontext_fiber
fallback_identityfallback_identitypartial source derived modelfallback_identity
empty_domainempty_domainpartial source derived modelempty_domain

Model text

descriptant

onto-bridge-class-mapping

class→first successful(exact,variants,head); sense=first context match else senses[0]

Epoch 2026-10-31

Specialized source fragment bytes [3995,5336); shared parent AST. Excludes unrelated parent operations and added test module.

approximant

Scoped forward

class→first successful(exact,variants,head); sense=first context match else senses[0]

Domain

This byte-scoped operator uses the parent valid-state domain plus the following local restrictions:

Exact<Variant<Head<Missing

All contexts mapping to lexfile(c) can return matched=true

Different hyphen/underscore forms can share head result

Missing returns(None,false); Found must have at least one sense

No executable percentage surrogate established.

invariant

Local observations

Head excludes any earlier-tier success; Missing excludes all candidates

Exact<Variant<Head<Missing

All contexts mapping to lexfile(c) can return matched=true

Different hyphen/underscore forms can share head result

Missing returns(None,false); Found must have at least one sense

cost

Scoped cost

At most four lookup attempts plus one final-head lookup; each delegates binary word lookup and sense collection. Context selection O(S) per successful tier; allocates spelling variants O(class bytes). No file I/O.

Symbolic accounting; no timing claim or whole-system speed bound.

composition

Parent join

class-mapping supplies the parent relation: class→first successful(exact,variants,head); sense=first context match else senses[0]

Output compatibility is conditional on the local domain and earlier-branch exclusions. Other parent branches are outside this fragment.

models

behavior_complement

Head excludes any earlier-tier success; Missing excludes all candidates

reverse_reconstruction

(tier,c,matched)⁻¹ includes all class spellings satisfying earlier-tier emptiness and selected sense order

tier_order

Exact<Variant<Head<Missing

context_fiber

All contexts mapping to lexfile(c) can return matched=true

fallback_identity

Different hyphen/underscore forms can share head result

empty_domain

Missing returns(None,false); Found must have at least one sense

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/bridge.rs.groupant/class-mapping.groupant/