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.
Context-free languages are not closed under intersection
Statement
Context-free languages are not closed under intersection.
Facts & Assumptions
Given: The languages
By The language generated by a CFG, a language is context-free exactly when some context-free grammar generates it.
By The pumping lemma for context-free languages, every context-free language satisfies the CFL pumping property.
Proof
The grammar , , generates , and the grammar , , generates . Therefore both languages are context-free by [L1].
A word belongs to exactly when its number of 's equals its number of 's and its number of 's equals its number of 's. Hence .
Suppose were context-free. Let be the pumping length from [L2], and consider the word . Any factor with lies within one block or crosses only one of the two block boundaries. Pumping and therefore changes at most two of the three symbol counts, so for or the word cannot still have equal numbers of 's, 's, and 's. This contradicts [L2].
Thus is not context-free even though each of and is. So context-free languages are not closed under intersection.
Depends on
Used by
Dependency tree · two levels
8 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
- Alfred V. Aho, COMS W3261 CS Theory, Lecture 11 (standard reference, not scraped)
- H. Conrad Cunningham, CSci 311, Models of Computation, Chapter 8 (standard reference, not scraped)