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
| 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 |
tier_order | tier_order | partial source derived model | tier_order |
context_fiber | context_fiber | partial source derived model | context_fiber |
fallback_identity | fallback_identity | partial source derived model | fallback_identity |
empty_domain | empty_domain | partial source derived model | empty_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/