onto-hs-thresholds
The groupant beside onto/src/hs.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 |
unit_relation | unit_relation | partial source derived model | unit_relation |
topology | topology | partial source derived model | topology |
scaling_failure | scaling_failure | partial source derived model | scaling_failure |
dimension_domain | dimension_domain | partial source derived model | dimension_domain |
Model text
descriptant
onto-hs-thresholds
endpoint=x*factor; complete last interval on opposite missing side with same attr/base
Epoch 2026-10-31
Specialized source fragment bytes [13087,24748); shared parent AST. Excludes unrelated parent operations and added test module.
approximant
Scoped forward
endpoint=x*factor; complete last interval on opposite missing side with same attr/base
Domain
This byte-scoped operator uses the parent valid-state domain plus the following local restrictions:
cc→m³ factor1/1000000; kg/g rescale
below(h,l)=h<l OR(h=l AND NOT both inclusive)
Rat::mul error drops hit, not float approximation
overlaps requires caller equal attr/base/basis
No executable percentage surrogate established.
invariant
Local observations
No comparator excludes hit; touching open endpoint excludes overlap
cc→m³ factor1/1000000; kg/g rescale
below(h,l)=h<l OR(h=l AND NOT both inclusive)
Rat::mul error drops hit, not float approximation
overlaps requires caller equal attr/base/basis
cost
Scoped cost
O(T²) nearest-attribute/unit scans; rational arithmetic cost depends on integer width.
Restriction to this operator's traversed inputs; parent total is not charged to every fragment. No standalone measurement.
composition
Parent join
thresholds supplies the parent relation: endpoint=x*factor; complete last interval on opposite missing side with same attr/base
Output compatibility is conditional on the local domain and earlier-branch exclusions. Other parent branches are outside this fragment.
models
behavior_complement
No comparator excludes hit; touching open endpoint excludes overlap
reverse_reconstruction
Any token/comparator/unit sequence normalizing to same endpoint pair is compatible
unit_relation
cc→m³ factor1/1000000; kg/g rescale
topology
below(h,l)=h<l OR(h=l AND NOT both inclusive)
scaling_failure
Rat::mul error drops hit, not float approximation
dimension_domain
overlaps requires caller equal attr/base/basis
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/hs.rs.groupant/thresholds.groupant/