Skip to content

Noncontracting Grammar

In formal language theory, a noncontracting grammar (also called monotonic grammar) is a type of formal grammar whose production rules never decrease the total length of a string during derivation.

Core Idea

Noncontracting Grammar is treated here as the recurring computer science and information systems identity summarized by this source-grounded definition: In formal language theory, a noncontracting grammar (also called monotonic grammar) is a type of formal grammar whose production rules never decrease the total length of a string during derivation. In formal language theory, a noncontracting grammar (also called monotonic grammar) is a type of formal grammar whose production rules never decrease the total length of a string during derivation.

How would you explain it like I'm…

Never-Shrinking Word Game

Imagine a word-building game where each move swaps some letters for new ones. The one big rule: a move can make your word the same length or longer, but never shorter. A grammar that follows that rule is a noncontracting grammar.

Rules That Never Shorten

A grammar, in computer science, is a set of swap rules for building strings of symbols, starting from a beginning symbol. A Noncontracting Grammar has a rule about its rules: each swap must turn a piece of the string into something at least as long. So as you keep applying rules, the string never shrinks. Even with this limit, these grammars can describe the same languages as a well-known, powerful kind called context-sensitive grammars.

Length-Nondecreasing Grammars

In formal language theory, a grammar uses production rules that rewrite parts of a string, starting from a start symbol, to generate a language. A Noncontracting Grammar, also called a monotonic grammar, requires every rule to produce a right side at least as long as its left side, so derivations never shorten the string. These grammars are equivalent in power to context-sensitive grammars: they generate exactly the context-sensitive languages in the Chomsky hierarchy. Some authors even use 'context-sensitive grammar' for noncontracting grammars generally, though usage varies. A close relative, the essentially noncontracting grammar, allows one exception: the start symbol may produce the empty string, provided the start symbol never appears on the right side of any rule.

 

A noncontracting (monotonic) grammar is a formal grammar in which every production α → β satisfies |α| ≤ |β|, so sentential forms never shrink during derivation. Noncontracting grammars have exactly the expressive power of context-sensitive grammars: both generate the context-sensitive languages, Type-1 in the Chomsky hierarchy. Because of this equivalence, some authors use 'context-sensitive grammar' for noncontracting grammars in general, though usage varies. The essentially noncontracting variant allows a single exception, S → ε, provided the start symbol S does not appear on the right-hand side of any production, so the empty string can belong to the language. The defining condition is the length monotonicity of productions, not merely membership in the context-sensitive class.

Scope of Application

  • Documented setting. A closely related concept is the essentially noncontracting grammar, which allows one special exception: a rule that produces the empty string from the start symbol, provided that the start symbol never.

  • Formal definitions. α → β (where α and β are strings of nonterminal and terminal symbols), it holds that.

  • Formal definitions. |α| ≤ |β|, that is β has at least as many symbols as α.

  • Formal definitions. A grammar is essentially noncontracting if there may be one exception, namely, a rule.

  • Formal definitions. where S is the start symbol and ε the empty string, and furthermore, S never occurs in the right-hand side of any rule.

Clarity

A clear use of Noncontracting Grammar names the carrier, the operative relation, and the conditions under which the source treats the identity as present. The minimal definition is In formal language theory, a noncontracting grammar (also called monotonic grammar) is a type of formal grammar whose production rules never decrease the total length of a string during derivation.

Manages Complexity

Noncontracting Grammar compresses multiple computer science and information systems details into a stable diagnostic relation. The source shows both the central mechanism—this equivalence makes them important for understanding the computational limits of natural language processing and compiler design, as they can model complex linguistic phenomena while maintaining certain desirable mathematical properties.—and the practical consequence—a grammar is essentially noncontracting if there may be one exception, namely, a rule.

Abstract Reasoning

  1. Type the carrier. Identify the computer science and information systems entities to which the claim applies.
  2. State the relation. Use the source-grounded identity: In formal language theory, a noncontracting grammar (also called monotonic grammar) is a type of formal grammar whose production rules never decrease the total length of a string during derivation.
  3. Check operation and conditions.

Knowledge Transfer

Within the home domain. Knowledge about Noncontracting Grammar transfers literally when a new case preserves the same carrier type, relation, and recognition test. A closely related concept is the essentially noncontracting grammar, which allows one special exception: a rule that produces the empty string from the start symbol, provided that the start symbol never appears elsewhere in the grammar. α → β (where α and β are strings of nonterminal and terminal symbols), it holds that. Beyond the home domain. No canonical parent is asserted for Noncontracting Grammar.

Relationships to Other Abstractions

Local relationship map for Noncontracting GrammarParents appear above the current abstraction, mutual partners to the right, and children below. Node labels state whether each abstraction is prime or domain-specific; colors identify relation types.NoncontractingGrammarDOMAINDomain-specific abstraction: Formal Grammar — is a kind ofFormal GrammarDOMAIN

Current abstraction Noncontracting Grammar Domain-specific

Parents (1) — outgoing typed relations

  • Noncontracting Grammar is a kind of Formal Grammar Domain-specific

    A noncontracting grammar is a formal grammar constrained so productions do not shorten sentential forms, apart from permitted conventions.

Hierarchy path (1) — routes to 1 parentless root

Neighborhood in Abstraction Space

Noncontracting Grammar sits in a crowded region of the domain-specific corpus (22nd percentile for distinctiveness): several abstractions share nearly its structure, so a description that fits it tends to fit its neighbors too.

Family — Formal Grammars & Parsing Complexity (7 abstractions)

Nearest neighbors

Computed from structural-signature embeddings · 2026-11-14