Elamur GroupantsโŒ•
โ˜ฐ

kg-cols

The groupant beside kg/src/cols.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
column_alignmentcolumn_alignmentpartial source derived modelcolumn_alignment
modular_transportmodular_transportpartial source derived modelmodular_transport
mask_latticemask_latticepartial source derived modelmask_lattice
persistence_boundarypersistence_boundarypartial source derived modelpersistence_boundary

Parts

Model text

descriptant

kg-cols

Parallel edge columns, tuple sorting, all-bit subgraphs, outgoing ranges, and delta/zigzag/byte-plane zstd persistence.

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

push appends aligned six-tuples. sort applies an unstable permutation by(src,rel,dst); filter retains i iff flags[i]&mask=mask; out(s)=partition_point(<s)..partition_point(<=s). write encodes wrapping src deltas, signed zigzag wrapping dst deltas, u32 byte planes, compresses six files then writes count.

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

Aligned vectors,n<2^32: tuple sorting/filter preserve columns; out requires sorted src. Decode(encode(v),len(v)) preserves all bits. Actual raw width32 bytes/edge, not package comment28.

Cost and resources

sort O(n log n)/O(n) extra; filter O(n), out O(log n); codecs O(n), <=10 bytes/u64; zstd19 data-dependent. Whole-column decompression/count allocation have no cap.

cost

Cost and resources

sort O(n log n)/O(n) extra; filter O(n), out O(log n); codecs O(n), <=10 bytes/u64; zstd19 data-dependent. Whole-column decompression/count allocation have no cap.

composition

Composition

Parallel edge columns, tuple sorting, all-bit subgraphs, outgoing ranges, and delta/zigzag/byte-plane zstd persistence.

push appends aligned six-tuples. sort applies an unstable permutation by(src,rel,dst); filter retains i iff flags[i]&mask=mask; out(s)=partition_point(<s)..partition_point(<=s). write encodes wrapping src deltas, signed zigzag wrapping dst deltas, u32 byte planes, compresses six files then writes count.

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

Mask excludes any row missing required bits; zero excludes none. Exact roundtrip only for encoder-produced streams; decoder admits trailing/noncanonical/high terminal payload LEB, demands exact4*n plane bytes, does not check sorting.

reverse_reconstruction

Sorted result admits original permutations and equal-key rearrangements. Filter admits arbitrary rejected-row interleavings. Encoder stream plus count determines vectors, decoder preimages include trailing LEB bytes. Empty result may mean empty input or all filtered.

column_alignment

Public vectors can disagree in length; indexing can panic. sort index n as u32 truncates at2^32.

modular_transport

delta x-prev and reconstruction prev+d wrap modulo2^64; zigzag operates on signed interpretation of wrapping difference.

mask_lattice

filter(a).filter(b)=filter(a|b) on aligned columns. Exact comma names; empty/unknown names reject, duplicate names idempotent.

persistence_boundary

Six overwritten files followed by count are not atomic. read failures ordered count,src,dst,rel,gs,gd,flags.

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/cols.rs.groupant/