Elamur Groupants⌕
☰

algorithm-functional-graph-decomposition-tests

The groupant beside algorithms/src/functional_graph_decomposition/tests.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
approximantsource derivedForward
astpartialsyntax.json
costsymbolic unmeasuredCost
descriptantpresentdescriptant
invariantsource derivedInvariant
testsbounded executedevidence

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
nonbehaviorbehavior_complementpartial source derivednonbehavior
preimagesreverse_reconstructionpartial source derivedpreimages
oracleoracle_relationpartial source derivedoracle
mutantcounterfactual_relationpartial source derivedmutant
coveragecoverage_relationpartial source derivedcoverage

Model text

descriptant

algorithm-functional-graph-decomposition-tests

Original std-only implementation or original independent fixtures. See source citations. Prospective model was saved before implementation in $MOVA_DATA/runs/octopus-wave26-combinatorial-2026-10-30/prospective.md.

Preserve original coordinates, deterministic ties and distinct validation/resource/infeasibility outcomes. Repeated observations constrain this epoch only.

model

algorithm-functional-graph-decomposition-tests

Domain

Finite fixture/assertion observations; trusted compiler and test runner; passing is not unrestricted equivalence.

Forward

All successor functions up to six vertices (50070 cases including empty); independent per-start walk until repetition validates entry, distance and cycle edges.

Invariant

Oracle is independently formulated; compare objective/feasibility plus witness invariants, not exact tie witness except named fixtures.

Cost

O(V) time and memory.

nonbehavior

Type: behavior_complement.

Accepted fixture/output pairs exclude mismatched oracle objectives, invalid witnesses and wrong tested errors. Outside-fixture behavior remains unconstrained.

preimages

Type: reverse_reconstruction.

A pass reconstructs all implementations agreeing on the finite observations, including faulty unseen extensions. A failed assertion reconstructs unequal compared values at that fixture; it does not uniquely identify a source bug.

oracle

Type: oracle_relation.

All successor functions up to six vertices (50070 cases including empty); independent per-start walk until repetition validates entry, distance and cycle edges.

mutant

Type: counterfactual_relation.

Compiled production mutant must fail the named coordinates_and_errors assertion; exact restoration followed by positive rerun.

coverage

Type: coverage_relation.

Adding fixtures intersects the passing implementation set; profile repeats constrain profile-dependent bugs without proving universal correctness.

Limits

Partial syntax, no macro expansion/type resolution or full formal proof. No justified generic numerical surrogate for categorical witnesses/errors; supported 1/2/5/10% profiles remain absent, not fabricated. No timing claims. Allocation failure untested.

evidence

Evidence

2026-10-30: All successor functions up to six vertices (50070 cases including empty); independent per-start walk until repetition validates entry, distance and cycle edges.

Two debug and two release runs, compiled mutation detected by coordinates_and_errors, restored positive rerun, strict all-target Clippy and twice-identical partial syntax. Logs: $MOVA_DATA/runs/octopus-wave26-combinatorial-2026-10-30. No timing measurement. Allocation failures and defensive i128 overflow unexercised.

This page in Markdown → https://md.groupants.elamur.ai/free/en/mova/algorithms/src/functional_graph_decomposition/tests.rs.groupant/