Papers
Topics
Authors
Recent
Search
2000 character limit reached

Greibach Normal Form in Lambek Grammar

Updated 11 November 2025
  • Greibach Normal Form in Lambek Grammar is a canonical representation that mirrors the leftmost derivation structure of context-free grammars.
  • It employs a three-step algorithm that extracts a CFG, converts it into Greibach Normal Form, and reconstructs an L(/→)-grammar with types in Greibach-shape.
  • Cut-elimination in the sequent calculus enforces the derivational normal form, preserving complexity, closure properties, and efficient polynomial-time parsing.

Greibach Normal Form (GNF) in the context of Lambek grammar refers to a precise and constructive proof-theoretic analogue of the familiar GNF for context-free grammars (CFGs), realized within the purely right-implicative fragment of the Lambek calculus, denoted L(/→). This correspondence establishes that every language recognized by an L(/→)-grammar (excluding the empty string) can be generated by an L(/→)-grammar whose assigned types are in a canonical "Greibach-shape." The result demonstrates that essential properties of CFGs—including complexity and closure properties—have direct counterparts in this logical calculus, and that cut-elimination in sequent calculus realizes, internally, the leftmost derivation scheme associated with GNF in standard grammar theory (Nishimiya et al., 4 Nov 2025).

1. Formal Definition and Sequent Calculus Fragment

The fragment L(/→) is defined by:

  • Primitive Types: A fixed finite set PrPr corresponding to nonterminals.
  • Types: Tp(/)={AAPr}{β/γβ,γTp(/)}Tp(/) = \{ A \mid A \in Pr \} \cup \{ \beta/\gamma \mid \beta, \gamma \in Tp(/) \}, allowing only the right-implicative connective //.
  • Sequents: Expressions of the form Γα\Gamma \to \alpha with n1n \ge 1, Γ=α1,,αn\Gamma = \alpha_1, \dots, \alpha_n, αi,αTp(/)\alpha_i, \alpha \in Tp(/).
  • Inference Rules:
    • (AX): AAA \to A
    • (Cut): Γ,α,Θγ   ΔαΓ,Δ,Θγ\dfrac{\,\Gamma, \alpha, \Theta \to \gamma~~~\Delta \to \alpha\,}{\Gamma, \Delta, \Theta \to \gamma}
    • (/\to/): Tp(/)={AAPr}{β/γβ,γTp(/)}Tp(/) = \{ A \mid A \in Pr \} \cup \{ \beta/\gamma \mid \beta, \gamma \in Tp(/) \}0 (with Tp(/)={AAPr}{β/γβ,γTp(/)}Tp(/) = \{ A \mid A \in Pr \} \cup \{ \beta/\gamma \mid \beta, \gamma \in Tp(/) \}1)
    • (/Tp(/)={AAPr}{β/γβ,γTp(/)}Tp(/) = \{ A \mid A \in Pr \} \cup \{ \beta/\gamma \mid \beta, \gamma \in Tp(/) \}2): Tp(/)={AAPr}{β/γβ,γTp(/)}Tp(/) = \{ A \mid A \in Pr \} \cup \{ \beta/\gamma \mid \beta, \gamma \in Tp(/) \}3

Structural rules such as weakening, contraction, and exchange are absent.

2. The Greibach Analogue Theorem

A type Tp(/)={AAPr}{β/γβ,γTp(/)}Tp(/) = \{ A \mid A \in Pr \} \cup \{ \beta/\gamma \mid \beta, \gamma \in Tp(/) \}4 is in Greibach-shape (with respect to start type Tp(/)={AAPr}{β/γβ,γTp(/)}Tp(/) = \{ A \mid A \in Pr \} \cup \{ \beta/\gamma \mid \beta, \gamma \in Tp(/) \}5) if:

  • Tp(/)={AAPr}{β/γβ,γTp(/)}Tp(/) = \{ A \mid A \in Pr \} \cup \{ \beta/\gamma \mid \beta, \gamma \in Tp(/) \}6,
  • or Tp(/)={AAPr}{β/γβ,γTp(/)}Tp(/) = \{ A \mid A \in Pr \} \cup \{ \beta/\gamma \mid \beta, \gamma \in Tp(/) \}7 for Tp(/)={AAPr}{β/γβ,γTp(/)}Tp(/) = \{ A \mid A \in Pr \} \cup \{ \beta/\gamma \mid \beta, \gamma \in Tp(/) \}8, Tp(/)={AAPr}{β/γβ,γTp(/)}Tp(/) = \{ A \mid A \in Pr \} \cup \{ \beta/\gamma \mid \beta, \gamma \in Tp(/) \}9.

Theorem (Greibach Analogue):

For every L(/→)-grammar //0, where //1 and //2 is the set of strings //3 such that some type-sequence //4 yields a provable sequent //5, there exists an effectively constructible grammar //6 such that

  • every type in every //7 is in Greibach-shape,
  • //8.

Every CFG in standard GNF (//9 or Γα\Gamma \to \alpha0) can likewise be translated into an L(/→)-grammar with Γα\Gamma \to \alpha1 consisting of the corresponding Greibach-shape types.

3. The Three-Step Construction Algorithm

The transformation from an arbitrary L(/→)-grammar to Greibach-shape proceeds in three steps:

Step Description Output Grammar
1. Extract a CFG Build a CFG Γα\Gamma \to \alpha2 from Γα\Gamma \to \alpha3 by mapping every type Γα\Gamma \to \alpha4 to a production Γα\Gamma \to \alpha5, and every primitive Γα\Gamma \to \alpha6 to Γα\Gamma \to \alpha7. Γα\Gamma \to \alpha8
2. Put into GNF Apply standard CFG-to-GNF algorithms: eliminate left recursion, factor, and introduce nonterminals. Γα\Gamma \to \alpha9
3. Reconstruct L(/→) For each n1n \ge 10 in n1n \ge 11, assign n1n \ge 12 the type n1n \ge 13. For n1n \ge 14, assign n1n \ge 15 to n1n \ge 16. n1n \ge 17

This algorithm preserves language recognition at every step and ensures all types in n1n \ge 18 are in Greibach-shape.

4. Cut-Elimination and Normal Form Proof Structure

A central technical component is the Reducibility Lemma:

Let n1n \ge 19 be a nonempty sequence of types in Γ=α1,,αn\Gamma = \alpha_1, \dots, \alpha_n0. Then

Γ=α1,,αn\Gamma = \alpha_1, \dots, \alpha_n1

where Γ=α1,,αn\Gamma = \alpha_1, \dots, \alpha_n2 and each Γ=α1,,αn\Gamma = \alpha_1, \dots, \alpha_n3 is provable in L(/→). Moreover, the proof may be assumed cut-free.

Proof Sketch:

Cut-elimination in L(/→) ensures that all provable sequents can be derived without cut. Given the restriction to the two right-implicative rules, the only structural decomposition of the antecedent entails recursively peeling off one slash per application, matching the leftmost derivation of GNF forms in CFGs. This recursive normalization, via induction on the number of slashes, reconstructs exactly the typing and proof decomposition required.

This correspondence enables:

  • Extraction of CFG productions directly from cut-free L(/→) proofs.
  • Synthesis of L(/→) derivations for languages generated by CFGs in GNF via direct encoding with Greibach-shape types.

5. Explicit Examples

Example 1:

Let Γ=α1,,αn\Gamma = \alpha_1, \dots, \alpha_n4, Γ=α1,,αn\Gamma = \alpha_1, \dots, \alpha_n5, Γ=α1,,αn\Gamma = \alpha_1, \dots, \alpha_n6, Γ=α1,,αn\Gamma = \alpha_1, \dots, \alpha_n7. Language recognized: Γ=α1,,αn\Gamma = \alpha_1, \dots, \alpha_n8.

Construction Step Grammar or Type Assignment
1. CFG Extraction Γ=α1,,αn\Gamma = \alpha_1, \dots, \alpha_n9
2. GNF Conversion Already in GNF
3. L(/→) Reconstruction αi,αTp(/)\alpha_i, \alpha \in Tp(/)0

A derivation proceeds by applying (/αi,αTp(/)\alpha_i, \alpha \in Tp(/)1) αi,αTp(/)\alpha_i, \alpha \in Tp(/)2 times to peel off αi,αTp(/)\alpha_i, \alpha \in Tp(/)3 αi,αTp(/)\alpha_i, \alpha \in Tp(/)4 types from the antecedent.

Example 2:

αi,αTp(/)\alpha_i, \alpha \in Tp(/)5, αi,αTp(/)\alpha_i, \alpha \in Tp(/)6, with GNF productions αi,αTp(/)\alpha_i, \alpha \in Tp(/)7, αi,αTp(/)\alpha_i, \alpha \in Tp(/)8, αi,αTp(/)\alpha_i, \alpha \in Tp(/)9. The corresponding Greibach-shape assignments are AAA \to A0, AAA \to A1, AAA \to A2. Derivation for AAA \to A3 is constructed with antecedent AAA \to A4, following the same peeling mechanism.

6. Complexity and Closure Properties

  • Language-theoretic equivalence: L(/→)-grammars characterize precisely the context-free languages over AAA \to A5, excluding the empty word.
  • Parsing complexity: Parsing can be performed in AAA \to A6 time (as in Cocke–Younger–Kasami) via reduction to CFG and back.
  • Closure properties: Union, concatenation, Kleene star, homomorphism, intersection with regular languages, and reversal are preserved under the translation by the three-step transformation.
  • Decidability: L(/→) proof search is polynomial-time decidable, in contrast to the NP-/PSPACE-completeness of full Lambek calculus fragments.
  • Conceptual significance: The cut-elimination theorem, within this minimal two-rule fragment, enforces a sequent structure matching the leftmost derivation order of GNF grammars, offering a direct logical interpretation of an external grammar-theoretic constraint.

7. Context and Broader Impact

This identification of a Greibach Normal Form analogue within L(/→) provides a transparent, proof-theoretic account of context-free syntax within a system of intuitionistic, non-commutative linear logic. The constructive method clarifies the direct interplay between cut-elimination, derivational normal forms, and grammatical leftmost derivation. The approach is notably simpler and more transparent than previous correspondences between Lambek calculus and formal languages, relying only on two inference rules and induction on sequents. A plausible implication is that richer fragments of Lambek calculus may admit finer complexity stratifications and additional normal forms as further explored in recent literature (Nishimiya et al., 4 Nov 2025). The construction provides a pathway for the transfer of classical parsing and closure results to type-logical grammars and formal proof systems.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Greibach Normal Form in Lambek Grammar.