gparse-test-empty-sentences-bounded-check
The groupant beside gparse/tests/empty_sentences.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 |
| cost | symbolic source derived | invariant |
| descriptant | present | descriptant |
| invariant | partial | invariant |
| tests | partial 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 |
empty_boundary | empty_boundary | partial source derived model | empty_boundary |
effect_boundary | effect_boundary | partial source derived model | effect_boundary |
test_observation | test_observation | partial source derived model | test_observation |
branch_coverage | branch_coverage | partial source derived model | branch_coverage |
Model text
descriptant
Source-bound description
The decoder_accepts_no_words test supplies a one-row root-only matrix and asserts an empty head vector.
Epoch 2026-10-31
Prospective model was recorded before edits. Added tests use bounded synthetic fixtures; production algorithms unchanged. Coverage is partial, not proof. No trained corpus, live teacher or throughput experiment was executed.
approximant
Forward approximant
The decoder_accepts_no_words test supplies a one-row root-only matrix and asserts an empty head vector.
Domain: valid source-specific dimensions and resources stated in invariant; no automatic production substitution. Numerical observations are finite checks, not an end-to-end relative bound. Executable Rust surrogate: unsupported gap; existing exact tests are not surrogates. Future metric-specific caps may be 1/2/5/10%, never above 10%.
invariant
Invariant and cost
Root-only matrix contains no syntactic words; only CPU decoder path runs.
Cost
O(1) fixture and decoder early return.
Allocation, finite arithmetic, platform dimensions and external failures are not universally certified.
models
Typed model catalog
behavior_complement
No nonempty head vector passes this root-only assertion.
reverse_reconstruction
All one-row matrices are compatible with an empty decoder result, because their cells are not inspected.
empty_boundary
decode([vec![0.]]) returns []; this does not test general score validation.
effect_boundary
This scope does not load a model or initialize CUDA.
test_observation
The assertion observes vector emptiness only, not allocations or matrix cell values.
branch_coverage
The len<=1 early-return branch runs; n=1 and DP branches do not.
tests
Checks and limits
Selected parent checks relevant to this fragment (not exhaustive): decoder_accepts_no_words; GPU empty saved-model case excluded
Selected commands run twice debug and twice release; exact receipts and source-to-test mapping retained in wave30 gparse external run directory. Tests do not certify allocation failure, all NaN/overflow inputs, trained-model accuracy or corpus timing. Compiled mutants cover selected boundaries; per-source coverage is recorded in the external map, not presumed.
This page in Markdown β https://md.groupants.elamur.ai/free/en/mova/gparse/tests/empty_sentences.rs.groupant/bounded-check.groupant/