Alphabeta Math
TheoremStatement: Literature-sourcedProof: AI-generatedprecheck passjudge pass (gpt-5.6-terra)audited 2026-08-30
How statement and proof provenance work

The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.

  • Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
  • AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
  • AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.

These labels describe origin, not correctness: citations and verification chips remain separate evidence.

Epsilon-productions can be eliminated except possibly at the start symbol

Statement

For every context-free grammar G there exists a context-free grammar Gε such that:

  1. Gε has no ε-productions and L(Gε)=L(G){ε}.
  2. If εL(G), then there exists a context-free grammar G with L(G)=L(G) whose only ε-production is a start-symbol rule S0ε, where S0 does not occur on any right-hand side.

Facts & Assumptions

Given: A context-free grammar G=(V,Σ,P,S).

[L1]

A variable is nullable exactly when it derives ε, by Nullable, generating, and reachable variables.

[L2]

The generated language is defined by derivability from the start symbol, by The language generated by a CFG.

Proof

technique · direct
1.1

Let N be the nullable variables of G. Form a grammar Gε by deleting every production Aε and, for each remaining production Ax1xk, adding every nonempty right-hand side obtained by deleting any chosen subset of nullable occurrences among the xi.

L1construct
1.2

If εL(G), clause 1 already proves the theorem. Assume instead that εL(G). Introduce a fresh start variable S0 and add the two productions S0S and S0ε, leaving all productions of Gε unchanged.

givenconstruct
2.1

Any derivation of a nonempty terminal word in G can be shortened to one in Gε by collapsing each maximal family of nullable subderivations into a single use of one of the added productions. Conversely, every added production in Gε can be expanded back in G by re-inserting derivations of the deleted nullable variables to ε. Therefore [L2] gives L(Gε)=L(G){ε}.

L1L2step 1.1
3.1

The rule S0ε restores the missing empty word, while step 2.1 already preserved every nonempty terminal word. Because S0 is fresh, it appears on no right-hand side, so this is the only ε-production of the new grammar G. Hence L(G)=L(G).

step 2.1step 1.2

Depends on

Used by

Dependency tree · two levels

4 results within two dependency steps of this one, each drawn at its shortest distance from it. An arrow runs from a result to what uses it, so the chart reads left to right and ends at this result, which carries a heavier outline. Every node is a link to that result. Click elsewhere on the chart to enlarge it.

Sources