answer-span-clauses
The groupant beside world/src/span.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 source model | forward |
| ast | partial | ../../syntax.json |
| cost | partial source model | cost |
| descriptant | partial source model | epoch-memory |
| invariant | partial source model | invariant |
| tests | partial source model | checks |
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 |
|---|---|---|---|
answer-span-clauses-behavior-complement | behavior_complement | partial source model | behavior-complement |
answer-span-clauses-reverse-reconstruction | reverse_reconstruction | partial source model | reverse-reconstruction |
answer-span-clauses-delegation-failure | composition_relation | partial source model | delegation-failure |
answer-span-clauses-after-order | priority_relation | partial source model | after-order |
Model text
Subject: world/src/span.rs, whole-file SHA-256 in manifest, baseline 4279da541. Domain: finite acyclic valid trees with consistent child lists, valid indices and terminating dependencies. Observation: a single call return, not semantic truth or reachability. Hold Tree, ans::lemmas and types::FEELING dependencies fixed; parser/model loading and external caller wiring are gaps. All entries are source-derived partial models. Exact-target definitions are not executable inverses; finite tests cannot establish universal correspondence.
forward
After continuation selection composes with Do/Clause subject/cut rules and fallback.
invariant
Recursion depth bounded: Do/Clause invokes After which never recurses.
cost
At most one recursive extraction; repeated predicate scans charged.
epoch-memory
2026-10-29: initial source-bound epoch. Preserve Num bypass, global Feel selection, early-return cleanup suppression, and verb_kids comment mismatch: code expands Xcomp only and checks no shared subject. No source changes or task-accuracy claim. Partial syntax has no semantic analysis or macro expansion.
checks
Structural inventory checks hashes, references, types and node bounds only. Proposed oracle: enumerate small annotated acyclic trees and compare literal expected returns, including None and labels; mutate priority or echo inequality to obtain a red control. Any executed bounded evidence is recorded separately in root evidence.md; catalog examples remain proposed until recorded there.
composition
Leaf scope shares immutable tree/question/helper contracts. Overlap with parent is not extra runtime work. Dependencies outside range remain opaque.
behavior-complement
U=valid Do/Clause/After calls x optional output; R=scoped branch. Inner U minus R excludes After success without sub_preds anchor. Do ordinary path removes direct subject subtree; identical words elsewhere can still appear.
Assumptions/evidence/status: common domain above; source-derived partial relation at bound revision. Approximation and held-fixed inputs are stated in the relation. Oracle: finite literal fixtures exercising both membership and nonmembership against the actual function, preserving ambiguous preimages. No linguistic correctness or universal proof inferred.
reverse-reconstruction
clause-subj retains every p/root and generated cut-set producing cleaned output. conj-after retains both later anchor children and later siblings under a Conj anchor; output does not distinguish those antecedents.
Assumptions/evidence/status: common domain above; source-derived partial relation at bound revision. Approximation and held-fixed inputs are stated in the relation. Oracle: finite literal fixtures exercising both membership and nonmembership against the actual function, preserving ambiguous preimages. No linguistic correctness or universal proof inferred.
delegation-failure
Do/Clause delegates to After when sub_preds anchor exists. After None falls through. Successful After may be replaced in Do by main-minus-anchor/subject; if replacement clean fails, None is returned instead of restoring successful After.
Assumptions/evidence/status: common domain above; source-derived partial relation at bound revision. Approximation and held-fixed inputs are stated in the relation. Oracle: finite literal fixtures exercising both membership and nonmembership against the actual function, preserving ambiguous preimages. No linguistic correctness or universal proof inferred.
after-order
After chooses Advcl main-minus-anchor/parataxis, then first later that-marked Ccomp/Advcl, then later Conj VERB/ADJ children, then later Conj siblings for Conj anchor. These are selected continuations, not verified temporal consequences.
Assumptions/evidence/status: common domain above; source-derived partial relation at bound revision. Approximation and held-fixed inputs are stated in the relation. Oracle: finite literal fixtures exercising both membership and nonmembership against the actual function, preserving ambiguous preimages. No linguistic correctness or universal proof inferred.
This page in Markdown โ https://md.groupants.elamur.ai/free/en/mova/world/src/span.rs.groupant/extraction.groupant/clauses.groupant/