Alphabeta Math
TheoremStatement: Literature-sourcedProof: AI-generatedprecheck passjudge pass (gpt-5.6-terra)audited 2026-09-12
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 L1={anbncm:n,m0},L2={ambncn:m,n0}.

[L1]

By The language generated by a CFG, a language is context-free exactly when some context-free grammar generates it.

[L2]

By The pumping lemma for context-free languages, every context-free language satisfies the CFL pumping property.

Proof

technique · direct
1.1

The grammar S1AB, AaAbε, BcBε generates L1, and the grammar S2CD, CaCε, DbDcε generates L2. Therefore both languages are context-free by [L1].

L1givenconstruct
2.1

A word belongs to L1L2 exactly when its number of a's equals its number of b's and its number of b's equals its number of c's. Hence L1L2={anbncn:n0}.

step 1.1
3.1

Suppose L1L2 were context-free. Let p be the pumping length from [L2], and consider the word apbpcp. Any factor vwx with vwxp lies within one block or crosses only one of the two block boundaries. Pumping v and x therefore changes at most two of the three symbol counts, so for i=0 or i=2 the word uviwxiy cannot still have equal numbers of a's, b's, and c's. This contradicts [L2].

L2step 2.1
4.1

Thus L1L2 is not context-free even though each of L1 and L2 is. So context-free languages are not closed under intersection.

step 1.1step 3.1

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