Elamur GroupantsโŒ•
โ˜ฐ

qagen-lemma-tests

The groupant beside qagen/src/lemma.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
approximantpartial source modelforward
astpartial../syntax.json
compositionpartial source modelcomposition
costpartial source modelcost
descriptantpartial source modelepoch-memory
invariantpartial source modelinvariant
testspartial source modelchecks

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
qagen-lemma-tests-behavior-complementbehavior_complementpartial source modelbehavior-complement
qagen-lemma-tests-reverse-reconstructionreverse_reconstructionpartial source modelreverse-reconstruction
qagen-lemma-tests-oracleoraclepartial source modeloracle
qagen-lemma-tests-tie-witnesstie_witnesspartial source modeltie-witness
qagen-lemma-tests-callback-witnesscallback_witnesspartial source modelcallback-witness
qagen-lemma-tests-mutation-evidencemutation_evidencepartial source modelmutation-evidence

Model text

forward

Stub morphology checks threshold and inference cases; 64 answer-content masks times 16 sentence masks compare cover to nested-loop oracle; traced callbacks verify preflight and order.

invariant

1024 finite oracle cases cover repeated forms, empty pool/content and membership combinations. Real-model test is explicitly skipped in every executed library suite.

behavior-complement

Finite masks do not certify model accuracy, lexical semantics, hash implementation or enormous f64 lengths.

reverse-reconstruction

Same finite results permit alternative implementations agreeing on the tested masks; failing tie witness distinguishes first versus last but not every tie bug.

cost

1024 tiny cases with six answer and up to four sentence words; constant trace fixtures.

composition

Independent nested membership oracle checks production cover. Traced Lemmas joins anchor validation to externally observable callback history.

oracle

Expected coverage comes from nested any comparisons, independent of HashSet production representation.

tie-witness

[2,1] with equal sentence coverage must select 2; [2,1,2] alone fails to discriminate first from last.

callback-witness

Invalid [1,0] yields no callback; valid zero-content case records answer,two,one,two exactly.

mutation-evidence

Compiled denominator/hit and tie/validation mutations fail; restored source passes both profiles twice.

checks

Synthetic embedded Rust tests, 1024 independent coverage cases, preflight sentinel artifacts, callback trace and compiled branch/arithmetic controls; debug and release twice, model-loading test explicitly skipped. See parent evidence.md for observed outcomes, not proof.

epoch-memory

Prospective model was saved before repair on 2026-10-30. Old source failed four library witnesses and one CLI witness. The tie control initially survived because [2,1,2] selects 2 for both first and last ties; the corrected [2,1] witness distinguishes them. Preserve this observation: duplicate-endpoint fixtures can hide tie regressions.

references

Original project implementation and rule v2: docs/context.md, qagen/src/gate.rs and qagen/src/run.rs. Model conventions: docs/groupants.md, docs/mathematical-modeling.md and docs/mathematical-modeling.md. No external solution code copied.

limitations

Finite local tests and partial syntax projections, no semantic AST or universal proof. Allocation failure and callback panic are outside successful-return model; filesystem races and write failures can interrupt publication. No live model/teacher/database/corpus used. No useful certified numeric surrogate is attached to these categorical/effectful interfaces; no invented error budget, substitution or speed claim.

This page in Markdown โ†’ https://md.groupants.elamur.ai/free/en/mova/qagen/src/lemma.rs.groupant/tests.groupant/