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 there exists a context-free grammar such that:
- has no -productions and
- If , then there exists a context-free grammar with whose only -production is a start-symbol rule , where does not occur on any right-hand side.
Facts & Assumptions
Given: A context-free grammar .
A variable is nullable exactly when it derives , by Nullable, generating, and reachable variables.
The generated language is defined by derivability from the start symbol, by The language generated by a CFG.
Proof
Let be the nullable variables of . Form a grammar by deleting every production and, for each remaining production , adding every nonempty right-hand side obtained by deleting any chosen subset of nullable occurrences among the .
If , clause 1 already proves the theorem. Assume instead that . Introduce a fresh start variable and add the two productions and , leaving all productions of unchanged.
Any derivation of a nonempty terminal word in can be shortened to one in by collapsing each maximal family of nullable subderivations into a single use of one of the added productions. Conversely, every added production in can be expanded back in by re-inserting derivations of the deleted nullable variables to . Therefore [L2] gives .
The rule restores the missing empty word, while step 2.1 already preserved every nonempty terminal word. Because is fresh, it appears on no right-hand side, so this is the only -production of the new grammar . Hence .
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
- Jean Gallier and Jocelyn Quaintance, Introduction to the Theory of Computation: Some Notes for CIS511 (standard reference, not scraped)