---
title: "world-schooltools-lint-space-normalization — Mova code model"
description: "Mova code model of world/src/schooltools.rs: components with their labels, obernants and the model text."
url: "https://groupants.elamur.ai/free/en/mova/world/src/schooltools.rs.groupant/lint.groupant/space-normalization.groupant/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Research](https://md.research.elamur.ai/free/en/) · **Groupants**

This page as HTML: <https://groupants.elamur.ai/free/en/mova/world/src/schooltools.rs.groupant/lint.groupant/space-normalization.groupant/>

# world-schooltools-lint-space-normalization

The groupant beside world/src/schooltools.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

- **kind:** groupant_fragment
- **status:** partial source bound model
- **source:** [`world/src/schooltools.rs`](https://github.com/ElamurAI/mova-free/blob/main/world/src/schooltools.rs)
- **source SHA-256:** `22ec16d5488a88c1…`
- **covers:** Split on literal newline including trailing empty segment. Each recognized option line rebuilds original leading indentation, trimmed key, colon-space, trimmed fields joined by space-bar-space, and original terminal CR if present. Nonoption lines are copied. Rejoin with newline. (bytes 16816–17206)
- **part of:** [world-schooltools-lint](https://md.groupants.elamur.ai/free/en/mova/world/src/schooltools.rs.groupant/lint.groupant/)
- **repository folder:** [`world/src/schooltools.rs.groupant/lint.groupant/space-normalization.groupant`](https://github.com/ElamurAI/mova-free/tree/main/world/src/schooltools.rs.groupant/lint.groupant/space-normalization.groupant)
- **repository commit:** `855da7bd4a7b`

> **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](#forward) |
| **ast** | partial | `../../syntax.json` |
| **composition** | partial source model | [composition](#composition) |
| **cost** | partial source model | [cost](#cost) |
| **descriptant** | partial source model | [epoch-memory](#epoch-memory) |
| **invariant** | partial source model | [invariant](#invariant) |
| **tests** | partial source model | [checks](#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 |
|---|---|---|---|
| `world-schooltools-lint-space-normalization-behavior-complement` | behavior_complement | partial source model | [behavior-complement](#behavior-complement) |
| `world-schooltools-lint-space-normalization-reverse-reconstruction` | reverse_reconstruction | partial source model | [reverse-reconstruction](#reverse-reconstruction) |
| `world-schooltools-lint-space-normalization-line_endings` | representation_relation | partial source model | [line_endings](#line-endings) |
| `world-schooltools-lint-space-normalization-normalization_fixedpoint` | identity_relation | partial source model | [normalization_fixedpoint](#normalization-fixedpoint) |
| `world-schooltools-lint-space-normalization-tally_preservation` | observation_relation | partial source model | [tally_preservation](#tally-preservation) |
| `world-schooltools-lint-space-normalization-report_order` | effect_boundary | partial source model | [report_order](#report-order) |

## Model text


Wave34, 2026-10-31. Source-bound helper model; no universal proof or approximation-error certificate. Historical parent epoch remains intact.

### forward

Split on literal newline including trailing empty segment. Each recognized option line rebuilds original leading indentation, trimmed key, colon-space, trimmed fields joined by space-bar-space, and original terminal CR if present. Nonoption lines are copied. Rejoin with newline.

### invariant

Newline segmentation and final newline presence persist; nonoption bytes persist. Option punctuation/words and field order persist after trim normalization, but whitespace around colon/fields is intentionally changed.

### cost

O(B+F) plus rebuilt output allocation; vectors of lines and fields use O(B+F) total storage.

### composition

lint with fix=true writes normalized bytes before computing findings; this pure helper has no I/O. Normalization does not remove internal tabs or fix semantic/duplicate errors. Parser and rebuild must share original line indentation.

### behavior-complement

Exclude modification of nonoption lines or disappearance of a final newline. Exclude a semantic option reorder or removal of a star by spacing repair. Whole-file CRLF is not forced on mixed-line input.

### reverse-reconstruction

For normalized y retain all original texts with identical newline segmentation, nonoption bytes and same trimmed option fields/key/indent/CR. Space counts around separators and field ends cannot be reconstructed from y.

### line_endings

Terminal CR is preserved per recognized original line; splitting on newline retains the empty final segment, distinguishing newline-terminated and unterminated texts.

### normalization_fixedpoint

On parsed option syntax with stable indentation and terminal CR, applying the same rebuild twice yields identical bytes. This does not imply lint-clean.

### tally_preservation

Canonical option scalar strings are unchanged by outer spacing normalization, so tally agrees before/after on the supported fixture domain.

### report_order

In lint orchestration, a successful fs::write can survive a later file failure. Pure fix_spaces proves nothing about durability or multi-file rollback.

### checks

Exact world library selections: schooltools::tests::fix_spaces_changes_spaces_only, schooltools::wave9_models::parser_canonical_fibers_and_tally. Current repeated debug/release outcomes and compiled controls are in the root sidecar wave34-evidence.md. Only these supplied-input tests are current evidence; older parent module-wide receipts are historical. Macro bodies remain opaque.

### epoch-memory

Prospective model saved before edits. This epoch deepens one existing node rather than renaming it. Production implementation unchanged; tests add helper-boundary observations where stated. No live lessons, frozen suites, model loading, teacher or network. Read-only symbolic relations are broader than the finite native domain.
