Elamur Groupants⌕
☰

kg-morph

The groupant beside kg/src/morph.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
approximantpartialapproximant
astpartialsyntax.json
compositionpartialcomposition
costpartialcost
descriptantpresentdescriptant
invariantpartialinvariant
testsexecuted bounded checkstests

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
behavior_complementbehavior_complementpartial source derived modelbehavior_complement
reverse_reconstructionreverse_reconstructionpartial source derived modelreverse_reconstruction
government_bitsgovernment_bitspartial source derived modelgovernment_bits
paradigm_selectionparadigm_selectionpartial source derived modelparadigm_selection
line_grammarline_grammarpartial source derived modelline_grammar
normalization_transportnormalization_transportpartial source derived modelnormalization_transport

Parts

Model text

descriptant

kg-morph

Two-pass VESUM loading: vocabulary-limited analyses and full selected-paradigm synthesis.

Modeling epoch — 2026-10-31

Source read before tests and models; retained prospective notes accompany the parent. Current evidence uses bounded invented inputs only. This is partial modeling, not proof or corpus accuracy.

approximant

Forward relation

Pass1 tracks lemma/tags/government from bz2 lines, normalizes forms and retains vocab matches. Keys lemma|POS#xp use merged first xp marker; verb/prep inherit lemma government. Pass2 rescans all forms of selected lemma keys into synthesis.

Executable approximant gap

Exact categorical structure, identifiers, parser decisions and effects have no useful percentage metric established here. No executable surrogate, automatic substitution or 1/2/5/10% guarantee is claimed.

invariant

Invariant and domain

Unchanged file across passes: retained analyses select lemma paradigms; unrequested forms may enter synth but not forms. Vectors retain dictionary order/duplicates. norm is lossy lowercase/invisible/apostrophe projection.

Cost and resources

Two complete decompressions O(2B) plus hashing/strings; O(A+S) retained analysis/synthesis bytes. Empty vocab still reads twice; no byte cap.

cost

Cost and resources

Two complete decompressions O(2B) plus hashing/strings; O(A+S) retained analysis/synthesis bytes. Empty vocab still reads twice; no byte cap.

composition

Composition

Two-pass VESUM loading: vocabulary-limited analyses and full selected-paradigm synthesis.

Pass1 tracks lemma/tags/government from bz2 lines, normalizes forms and retains vocab matches. Keys lemma|POS#xp use merged first xp marker; verb/prep inherit lemma government. Pass2 rescans all forms of selected lemma keys into synthesis.

The parent invokes scoped transformations through the actual functions named in their source ranges. Children partition useful observations, not a complete semantic proof; boundaries can omit helpers, tests and effects.

models

behavior_complement

Non-vocab normalized forms cannot enter forms; unselected keys cannot enter synth. Malformed lines skip, orphan indented entries inherit initially empty lemma, comments outside government disappear.

reverse_reconstruction

norm preimage includes case, invisible/stress, apostrophe variants. Morph admits arbitrary unselected entries, comments/ignored tags; lemma_of discards POS/xp; synth offers multiple compatible surface forms.

government_bits

rv_inf bit0, known rv_case bit case number; only prep/verb analyses inherit lemma government.

paradigm_selection

Form xp2 augments lemma tags unless present; first xp marker keys paradigm. Selected читає xp2 yields unrequested читав xp2 synthesis.

line_grammar

Only ASCII leading space signals form line; literal space splits form/tags; first # splits comment; malformed lines skip.

normalization_transport

Drop seven listed invisible marks, normalize four apostrophe variants then Unicode lowercase; no general NFC normalization.

tests

Evidence

Parent source checks (a fragment inherits only the behavior they actually exercise):

Selected kg tests: 15 named outcomes, twice debug/twice release, equal sorted outcomes. Standalone actual global/build.rs: 3 named outcomes per run, twice debug/twice optimized; build_child is normally no-op, parent fixture invokes it against isolated synthetic seeds. Eight compiled source mutations (one per source) each compiled successfully and exited101 on the focused assertion; exact source restoration followed by positive rerun.

This fragment's untested branches remain source-derived. No live graph, DB, corpus, teacher, GPU or held-out evaluation was used. Command specs and numeric exits are retained in the external wave29 graphlang receipt. Strict kg Clippy reports existing source lints; see receipt.

prospective

Prospective graph-language encoding model — 2026-10-31

Read all eight sources before edits. No optimization proposed. All executable fixtures are tiny invented strings, compressed temp files, or isolated subprocess directories; no repository corpus, live store, teacher, GPU or held-out execution.

Composition hypothesis: Morph::load uses Gram then uk::parse produces Fact; render_check gives only multiset completeness; main encodes each member into registry-backed parallel columns with grammar and flags; textgen consumes Fact/Morph not encoded Edges directly. No read-edges-to-Fact reconstruction adapter exists here. global's lexical concept indices have no established Registry Id translation. Complement and preimage relations must preserve these separate tags. No meaningful percentage surrogate for categorical parse, identifiers, codec or effects is established; record executable approximant as unsupported.

This page in Markdown → https://md.groupants.elamur.ai/free/en/mova/kg/src/morph.rs.groupant/