Alphabeta Math
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.

✓ 13 results · all verified · 2 also independently AI-judged
Every result on this page is machine-checked by a proof checker and read in full and owner-audited; the judge is an additional, independent cross-model AI review of the proofs. The 11 not AI-judged were verified by owner audit (typically over a confirmed judge false positive), not failures.

Context-Free Pumping, Ogden's Lemma, and Parsing

1 · Prerequisites

2 · Summary

This page records the two standard pumping obstructions for context-free languages, uses them to isolate nonclosure phenomena, and then turns to parsing and decision procedures through the CNF-based CYK algorithm and basic CFG graph tests.

3 · Logical flowchart

4 · Definitions, theorems and proofs

LemmaStatement: Literature-sourcedProof: AI-generatedprecheck passaudited 2026-09-12Open item page →

A Chomsky-normal-form parse tree of height h has yield length at most 2h−1

Statement

Let G be a context-free grammar in Chomsky normal form, and let T be a parse tree for G of height h≥1. If y(T) is the yield of T, then ∣y(T)∣≤2h−1.

Facts & Assumptions

Given: A Chomsky-normal-form grammar G and a parse tree T of height h≥1.

[L1]

By Parse trees and their yields, the yield of a parse tree is the left-to-right list of its terminal leaves, and every internal node is labeled by a variable together with one production used at that node.

[L2]

By Chomsky normal form, every production in a CNF grammar is either A→BC, A→a, or the exceptional start rule S→ε.

Proof

technique · direct
1.1L1L2given

We induct on the height h. If h=1, then the root is already a leaf. By [L1], a leaf at the root can only be the variable leaf corresponding to the exceptional CNF rule S→ε from [L2]. Thus y(T)=ε, so ∣y(T)∣=0≤1=20.

2.1L1L2step 1.1induction

Suppose h>1. If the root uses a terminal production A→a, then the yield has length 1, so the bound is immediate. Otherwise the root uses a binary production A→BC by [L2]. The two child subtrees have heights at most h−1, so by the induction hypothesis each contributes at most 2h−2 terminal leaves. Therefore ∣y(T)∣≤2h−2+2h−2=2h−1.

3.1step 1.1step 2.1∎

The bound holds for height 1 and is preserved when the height increases, so every CNF parse tree of height h has yield length at most 2h−1.

TheoremStatement: Literature-sourcedProof: AI-generatedprecheck passaudited 2026-09-12Open item page →

The pumping lemma for context-free languages

Statement

If L is a context-free language, then there exists an integer p≥1 such that every word z∈L with ∣z∣≥p can be written as z=uvwxy with ∣vx∣≥1,∣vwx∣≤p,uviwxiy∈L for every i≥0.

Facts & Assumptions

Given: A context-free language L.

[L1]

By The language generated by a CFG, there exists a context-free grammar G with L=L(G).

[L2]

By Every context-free language has an equivalent grammar in Chomsky normal form, G has an equivalent grammar in Chomsky normal form.

[L3]

By Derivations and parse trees correspond, every word of the language of a CFG is the yield of some parse tree for that grammar.

[L4]

By A Chomsky-normal-form parse tree of height h has yield length at most 2h−1, a CNF parse tree of height h has yield length at most 2h−1.

Proof

technique · direct
1.1L1L2L3L4givenchoose

Choose a CNF grammar G′=(V,Σ,P,S) with L(G′)=L by [L1] and [L2], and let m:=∣V∣. Set p:=2m+1+1. Let z∈L satisfy ∣z∣≥p. By [L3], z is the yield of some parse tree T for G′. If every root-to-leaf path of T had at most m variable nodes, then T would have height at most m+1, so [L4] would give ∣z∣≤2m<p, contradicting ∣z∣≥p. Therefore some root-to-leaf path has at least m+1 variable occurrences.

2.1L4step 1.1choose

Choose two equal variables A on the last m+1 variable occurrences of such a path, with the upper one above the lower one. Let the yield of the upper A-subtree be vwx and the yield of the lower A-subtree be w, so the whole word is uvwxy. Because the lower occurrence lies strictly below the upper one and G′ is in CNF, the path segment from the upper A to the lower one cannot consist only of unit moves, so at least one of the side contexts v and x is nonempty. Hence ∣vx∣≥1. The upper A-subtree contains at most the last m+1 variable occurrences on the path, so its height is at most m+2; therefore [L4] gives ∣vwx∣≤2m+1<p.

3.1L3step 2.1

The parse-tree segment from the upper occurrence of A down to the lower one shows that A⇒∗vAx, and the lower subtree shows A⇒∗w. Repeating or deleting the first derivation segment any number of times while keeping the rest of the tree fixed yields derivations of uviwxiy in G′ for every i≥0. Hence every such word lies in L(G′)=L.

4.1step 2.1step 3.1∎

Therefore the integer p satisfies the required pumping property.

DefinitionDefinition: Literature-sourcedProof: Not applicableaudited 2026-09-12Open item page →

Marked positions and admissible Ogden decompositions

Definition

Let z=a1⋯an be a word over Σ. A set M⊆{1,…,n} is a set of marked positions of z.

Fix an integer p≥1. A decomposition z=uvwxy is p-admissible with respect to M when:

  • the concatenated substring vx contains at least one marked position;
  • the substring vwx contains at most p marked positions.

Remarks

  • Ogden's lemma strengthens the ordinary pumping lemma by controlling where the pumped material vx must lie relative to the marked positions.

  • The definition does not itself assert that pumping preserves the language; it only records the combinatorial shape of the decomposition.

TheoremStatement: Literature-sourcedProof: AI-generatedprecheck passaudited 2026-09-12Open item page →

Ogden's lemma

Statement

If L is a context-free language, then there exists an integer p≥1 such that for every word z∈L and every choice of at least p marked positions in z, there is a decomposition z=uvwxy that is p-admissible with respect to the marked positions and satisfies uviwxiy∈L for every i≥0.

Facts & Assumptions

Given: A context-free language L.

[L1]

By Marked positions and admissible Ogden decompositions, a p-admissible decomposition is one in which vx contains at least one marked position while vwx contains at most p marked positions.

[L2]

By The language generated by a CFG, there exists a context-free grammar generating L.

[L3]

By Every context-free language has an equivalent grammar in Chomsky normal form, that grammar may be replaced by an equivalent grammar in Chomsky normal form.

[L4]

By Derivations and parse trees correspond, every word in the language of a CFG is the yield of some parse tree for that grammar.

[L5]

By Parse trees and their yields, a parse tree records the production used at each internal node and its yield is read from the terminal leaves from left to right.

Proof

technique · direct
1.1L2L3L4givenchoose

Choose a context-free grammar G0 with L(G0)=L by [L2], then replace it by an equivalent Chomsky-normal-form grammar G=(V,Σ,P,S) by [L3]. Set p:=2∣V∣+1. Let z∈L and mark at least p positions of z. Because p≥1, the word z is nonempty, so by [L4] fix a parse tree T for z in the CNF grammar G.

2.1L5step 1.1

Starting at the root of T, build a path to a marked leaf by always moving to a child whose subtree contains the larger number of marked positions; when both children contain marked positions, choose one of the heavier children. Call such a node a branch point. Each time the path passes through a branch point, the chosen child still contains at least half of the marked positions seen at that node. Therefore, if there were at most ∣V∣ branch points on the path, the terminal leaf at the end would still lie below at least p/2∣V∣=2 marked positions, impossible for one leaf. So the path contains at least ∣V∣+1 branch points.

3.1L1step 2.1choose

Among the last ∣V∣+1 branch points on that path, choose two with the same variable label A, with the upper one above the lower one. Let the lower A-subtree yield w, and let the material in the upper A-subtree to the left and right of the lower subtree yield v and x, so that the whole word is z=uvwxy. The upper branch point has marked material outside the lower subtree, so the concatenation vx contains a marked position. Also, if the upper A-subtree contained more than 2∣V∣ marked positions, then repeating the branch-point-halving argument inside that subtree would produce more than ∣V∣ branch points below it on the chosen path, contradicting that we selected the upper A among the last ∣V∣+1 branch points. Hence vwx contains at most 2∣V∣<p marked positions. By [L1], the decomposition is p-admissible.

4.1L4step 3.1

The upper occurrence of A derives the lower one by a derivation segment A⇒∗vAx, and the lower subtree derives w. Repeating or deleting that segment while keeping the rest of the parse tree fixed produces derivations of uviwxiy for every i≥0. Therefore every such word lies in L(G)=L.

5.1step 3.1step 4.1∎

Hence the integer p satisfies Ogden's lemma for L.

TheoremStatement: Literature-sourcedProof: AI-generatedprecheck passjudge pass (gpt-5.6-terra)audited 2026-09-12Open item page →

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,m≥0},L2={ambncn:m,n≥0}.

[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.1L1givenconstruct

The grammar S1→AB, A→aAb∣ε, B→cB∣ε generates L1, and the grammar S2→CD, C→aC∣ε, D→bDc∣ε generates L2. Therefore both languages are context-free by [L1].

2.1step 1.1

A word belongs to L1∩L2 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 L1∩L2={anbncn:n≥0}.

3.1L2step 2.1

Suppose L1∩L2 were context-free. Let p be the pumping length from [L2], and consider the word apbpcp. Any factor vwx with ∣vwx∣≤p 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].

4.1step 1.1step 3.1∎

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

CorollaryStatement: Literature-sourcedProof: AI-generatedprecheck passaudited 2026-09-12Open item page →

Context-free languages are not closed under complement

Statement

Context-free languages are not closed under complement.

Facts & Assumptions

Given: The class of context-free languages.

[L1]

By Context-free languages are not closed under intersection, context-free languages are not closed under intersection.

[A1]

De Morgan's law gives A∩B=(Ac∪Bc)c for languages over one alphabet.

Proof

technique · direct
1.1given

Assume for contradiction that context-free languages were closed under complement. Then the complements Ac and Bc of context-free languages would again be context-free.

2.1L2A1step 1.1

By [L2], the union Ac∪Bc would then be context-free, and by the contradiction hypothesis its complement would be context-free as well. By [A1], that complement is exactly A∩B. So the contradiction hypothesis would force closure under intersection.

3.1L1step 2.1∎

This contradicts [L1]. Therefore context-free languages are not closed under complement.

TheoremStatement: Literature-sourcedProof: AI-generatedprecheck passaudited 2026-09-12Open item page →

Context-free languages are closed under reversal

Statement

If L⊆Σ∗ is context-free, then its reversal LR:={wR:w∈L} is also context-free.

Facts & Assumptions

Given: A context-free language L.

[L1]

By Context-free grammars, a context-free grammar is a finite set of productions A→α with one variable on the left.

[L2]

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

[L3]

By Word reversal and language reversal, reversing a word reverses the order of its letters, and LR is the set of reversals of words of L.

[L4]

By Derivations and parse trees correspond, parse trees and derivations determine exactly the generated words of a CFG.

Proof

technique · direct
1.1L1L2givenconstruct

Choose a grammar G=(V,Σ,P,S) with L=L(G) by [L2]. Define a new grammar GR=(V,Σ,PR,S) by putting a production A→αR in PR whenever A→α belongs to P. This is again a context-free grammar by [L1].

2.1L3L4step 1.1

Mirror every parse tree of G by reversing the left-to-right order of the children at each internal node. The mirrored tree uses exactly the reversed productions from step 1.1, so by [L4] it is a parse tree of GR. Its yield is the reversal of the original yield, by [L3]. Therefore w∈L implies wR∈L(GR). Mirroring back proves the converse implication.

3.1L2step 2.1∎

Hence L(GR)=LR, so LR is context-free by [L2].

DefinitionDefinition: Literature-sourcedProof: Not applicableaudited 2026-09-12Open item page →

The CYK parsing table and span variables

Definition

Let G=(V,Σ,P,S) be a grammar in Chomsky normal form, and let w=a1⋯an be a nonempty word over Σ.

The CYK table of G on w is the triangular array of sets T[i,ℓ]⊆V defined for 1≤i≤n and 1≤ℓ≤n−i+1 by:

T[i,1]:={A∈V:A→ai is a production of G},

and, for ℓ≥2,

T[i,ℓ]:={A∈V:∃k (1≤k<ℓ) and A→BC∈P with B∈T[i,k], C∈T[i+k,ℓ−k]}.

When A∈T[i,ℓ], we say that A is a span variable for the substring ai⋯ai+ℓ−1.

Remarks

  • The definition uses only the CNF production types A→a and A→BC.

  • The top cell T[1,n] corresponds to the whole input word.

LemmaStatement: Literature-sourcedProof: AI-generatedprecheck passaudited 2026-09-12Open item page →

A variable lies in a CYK table cell exactly when it derives that span

Statement

Let G be a Chomsky-normal-form grammar, let w=a1⋯an be a nonempty word, and let T[i,ℓ] be the CYK table of G on w. Then for every variable A and every valid cell (i,ℓ), A∈T[i,ℓ]if and only ifA⇒G∗ai⋯ai+ℓ−1.

Facts & Assumptions

Given: A CNF grammar G, a nonempty word w=a1⋯an, and its CYK table.

[L1]

By The CYK parsing table and span variables, the cells T[i,ℓ] are defined by terminal productions for ℓ=1 and by binary productions A→BC together with a split point for ℓ≥2.

[L2]

By One-step derivation and finite derivation in a context-free grammar, A⇒G∗u means that the sentential form A derives the word u by finitely many grammar steps.

Proof

technique · direct
1.1L1L2given

We induct on the span length ℓ. For ℓ=1, [L1] says that A∈T[i,1] exactly when A→ai is a production, and by [L2] that is exactly when A⇒G∗ai.

2.1L1L2step 1.1induction

Assume the claim known for all shorter spans and let ℓ≥2. If A∈T[i,ℓ], then [L1] provides a split k and a production A→BC with B∈T[i,k] and C∈T[i+k,ℓ−k]. By the induction hypothesis, B⇒G∗ai⋯ai+k−1 and C⇒G∗ai+k⋯ai+ℓ−1, so one use of A→BC followed by those derivations gives A⇒G∗ai⋯ai+ℓ−1.

2.2L1L2step 1.1induction

Conversely, suppose A⇒G∗ai⋯ai+ℓ−1 with ℓ≥2. Because G is in CNF, the first derivation step from A must be a binary production A→BC, and the derived word must split at some k into a prefix from B and a suffix from C. The induction hypothesis then gives B∈T[i,k] and C∈T[i+k,ℓ−k], so [L1] places A in T[i,ℓ].

3.1step 1.1step 2.1step 2.2∎

Steps 1.1, 2.1, and 2.2 prove the equivalence for every cell.

TheoremStatement: Literature-sourcedProof: AI-generatedprecheck passaudited 2026-09-12Open item page →

The CYK algorithm decides membership for CNF grammars

Statement

Let G=(V,Σ,P,S) be a grammar in Chomsky normal form.

  • On input ε, accept exactly when S→ε is a production of G.
  • On input a nonempty word w=a1⋯an, fill the CYK table of G on w and accept exactly when S∈T[1,n].

This procedure decides whether w∈L(G).

Facts & Assumptions

Given: A CNF grammar G=(V,Σ,P,S) and an input word w.

[L1]

By A variable lies in a CYK table cell exactly when it derives that span, for a nonempty input word, A∈T[i,ℓ] exactly when A derives the corresponding span.

[L2]

By The language generated by a CFG, a word lies in L(G) exactly when it is derivable from the start symbol S.

Proof

technique · direct
1.1L2given

If w=ε, then by the definition of Chomsky normal form the only way to derive ε is the exceptional start production S→ε. So the empty-word branch is correct.

1.2L1L2given

Suppose w=a1⋯an is nonempty. By [L1], the condition S∈T[1,n] is equivalent to S⇒G∗w. By [L2], that is equivalent to w∈L(G). Therefore the table branch accepts exactly the generated nonempty words.

2.1step 1.1step 1.2∎

The two branches together decide membership in L(G).

CorollaryStatement: Literature-sourcedProof: AI-generatedprecheck passaudited 2026-09-12Open item page →

Context-free-language membership is decidable

Statement

Given a context-free grammar G and a word w, one can decide whether w∈L(G).

Facts & Assumptions

Given: A context-free grammar G and a word w.

[L1]

By Every context-free language has an equivalent grammar in Chomsky normal form, G has an equivalent grammar in Chomsky normal form.

[L2]

By The CYK algorithm decides membership for CNF grammars, the CYK procedure decides membership for CNF grammars.

Proof

technique · direct
1.1L1givenconstruct

Convert G to an equivalent CNF grammar G′ using [L1].

2.1L2step 1.1

Run the CYK membership procedure from [L2] on G′ and w. Because G′ is equivalent to G, the answer is "yes" exactly when w∈L(G).

3.1step 2.1∎

Therefore context-free-language membership is decidable.

TheoremStatement: Literature-sourcedProof: AI-generatedprecheck passaudited 2026-09-12Open item page →

CFG emptiness and finiteness are decidable

Statement

Given a context-free grammar G, one can decide whether L(G) is empty and whether L(G) is finite.

Facts & Assumptions

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

[L1]

By The language generated by a CFG, the language of G is the set of words derivable from the start symbol S.

[L2]

By Eliminating useless symbols preserves the generated language, useless symbols can be removed without changing the generated language.

[L3]

By Epsilon-productions can be eliminated except possibly at the start symbol, epsilon-productions can be removed except for the standard start-symbol exception.

[L4]

By Unit productions can be eliminated, unit productions can be removed without changing the generated language.

Proof

technique · direct
1.1L1givenconstruct

To decide emptiness, compute the least set of generating variables: start with variables that have a production to a terminal word, and repeatedly add a variable A once some production A→α has every variable occurring in α already marked generating. Because V is finite, this fixed-point computation halts. By [L1], the language is empty exactly when the start variable S never becomes generating.

1.2L2L3L4construct

For finiteness, first replace G by an equivalent grammar G′ using [L2], [L3], and [L4], so that every remaining variable is useful, there are no unit productions, and there are no epsilon-productions except possibly the start-symbol exception. Build the directed dependency graph on the variables of G′ with an edge A→B whenever some production for A contains B on its right-hand side.

2.1L1step 1.2

If some reachable variable A lies on a directed cycle of this graph, then usefulness gives a terminal derivation from each variable on the cycle, while the removal of unit and nonstart epsilon-productions forces at least one terminal symbol to be added when the cycle is traversed once. Hence there is a derivation A⇒G′∗xAy with ∣xy∣≥1. Repeating that cycle any number of times and then finishing to terminals yields words of arbitrarily large length in L(G′)=L(G), so the language is infinite.

2.2step 1.2

Conversely, if the reachable part of the dependency graph is acyclic, then no root-to-leaf path in a parse tree can repeat a reachable variable. So parse trees have uniformly bounded depth. Because G′ has only finitely many productions and bounded branching, only finitely many parse trees can occur, and therefore only finitely many terminal yields occur. Thus L(G) is finite.

3.1step 1.1step 2.1step 2.2∎

Step 1.1 decides emptiness, and steps 2.1-2.2 decide finiteness by a finite graph-cycle test.

DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (gpt-5.6-terra)audited 2026-09-12Open item page →

The CFG equivalence and ambiguity problems

Definition

The CFG equivalence problem asks, given two context-free grammars G and H over the same alphabet, whether L(G)=L(H).

The CFG ambiguity problem asks, given a context-free grammar G, whether G is ambiguous in the sense of Ambiguous grammars, unambiguous grammars, and inherently ambiguous languages.

Remarks

  • Equivalence is a problem about pairs of grammars; ambiguity is a problem about one grammar.

  • Normal-form conversions preserve the languages of grammars, but they do not by themselves answer either decision problem.

False statementConstruction: Literature-sourcedVerification: AI-generatedprecheck passaudited 2026-09-12Open item page →

FALSE: the context-free pumping lemma characterizes the context-free languages

Statement

False claim: a language is context-free exactly when it satisfies the ordinary Bar-Hillel pumping condition.

Facts & Assumptions

Given: Put K:={anbncn:n≥0}, let s be a new symbol, and set L:=sK∪{srq:r≠1, q∈{a,b,c}∗}.

[A1]

The statement refuted is: a language is context-free exactly when it satisfies the ordinary Bar-Hillel pumping condition.

[L2]

The proof of Context-free languages are not closed under intersection establishes that K={anbncn:n≥0} is not context free.

[L3]

PDA's recognize exactly the context-free languages (PDAs recognize exactly the context-free languages), and context-free languages are closed under homomorphic image (Context-free languages are closed under union, concatenation, Kleene star, and homomorphism).

Refutation

technique · direct
1.1givencases

We verify the ordinary pumping condition with pumping length p:=3. Let z=srq∈L have length at least 3, with q∈{a,b,c}∗. If r=0, pump the first letter of q. If r=1, then q∈K, and pump the unique initial s. If r≥2 and q is nonempty, pump its first letter. In all three cases take the pumped letter as v and take w=x=ε; pumping preserves membership because it either keeps r≠1 or changes the single initial s to si, which belongs to the second part of L for every i≠1.

1.2L3assume-contraconstruct

Suppose for contradiction that L were context free. Let R:={saibjck:i,j,k≥0}, which is regular. Choose a PDA for L using [L3] and a DFA for R. The product control consisting of the PDA state and DFA state, with the same stack operation as the PDA and with epsilon moves leaving the DFA state fixed, is a PDA for L∩R. Hence L∩R is context free.

2.1step 1.1cases

It remains to treat z=sr with r≥3. For r=3, take v=s3; for r≥4, take v=s2. Put u=w=x=ε and let y be the remaining suffix. Pumping produces respectively s3i or sr+2(i−1), whose exponent is never 1. Thus ∣vx∣≥1, ∣vwx∣≤3, and every pumped word lies in L.

2.2L2L3step 1.2discharge-contradiction

By definition, L∩R=sK. Apply the homomorphism that deletes the initial symbol s and fixes a,b,c. Closure under homomorphism from [L3] would make K context free, contradicting [L2]. Therefore L is not context free.

3.1A1step 1.1step 2.1step 2.2∎

Steps 1.1 and 2.1 show that L satisfies the ordinary pumping condition, while step 2.2 shows that it is not context free. Thus [A1] is false.

False statementConstruction: Literature-sourcedVerification: AI-generatedprecheck passjudge pass (gpt-5.6-terra)audited 2026-09-12Open item page →

FALSE: CYK needs no normal-form preprocessing

Statement

False claim: the CYK algorithm can be applied directly to any context-free grammar without first converting it to a suitable normal form.

Facts & Assumptions

Given: The grammar S→aSb∣ab.

[A1]

The statement refuted is: the CYK algorithm can be applied directly to any context-free grammar without first converting it to a suitable normal form.

[L1]

By The CYK parsing table and span variables, the CYK table recurrence uses only productions of the forms A→a and A→BC.

[L2]

By The CYK algorithm decides membership for CNF grammars, the CYK algorithm is proved correct exactly for grammars in the required CNF shape.

[L3]

By Every context-free language has an equivalent grammar in Chomsky normal form, an arbitrary context-free grammar can first be converted to an equivalent CNF grammar.

Refutation

technique · direct
1.1L1given

In the displayed grammar, the production S→aSb has length three and mixes terminals with a variable, while S→ab has two terminals on the right-hand side. Neither production has one of the two forms listed in [L1].

2.1L2L3step 1.1

Therefore the literal CYK recurrence does not know how to place S into any table cell directly from those productions, so the proof of correctness in [L2] does not apply. One must first normalize the grammar as in [L3], or else modify the algorithm itself.

3.1A1step 2.1∎

This contradicts [A1]. So CYK does require the normal-form preprocessing built into its proof.

False statementConstruction: Literature-sourcedVerification: AI-generatedprecheck passaudited 2026-09-12Open item page →

FALSE: CFG equivalence is decidable by normalization

Statement

False claim: converting context-free grammars to normal form gives a decision procedure for the CFG equivalence problem.

Facts & Assumptions

Given: The CFG equivalence problem.

[A1]

The statement refuted is: converting context-free grammars to normal form gives a decision procedure for the CFG equivalence problem.

[L1]

By The CFG equivalence and ambiguity problems, CFG equivalence asks whether two grammars over the same alphabet generate exactly the same language.

[F1]

Aho's cited Lecture 11 lists the problem “do two given CFG's generate the same language?” among the undecidable problems for context-free grammars.

Refutation

technique · direct
1.1L1given

Normalization preserves the language generated by a grammar, so it may be used as preprocessing for [L1], but it does not produce a canonical normal form whose literal equality settles language equality.

2.1F1step 1.1

More decisively, [F1] states that the general CFG equivalence problem is undecidable. So no normalization-only method can decide it in full generality.

3.1A1step 2.1∎

This contradicts [A1]. Therefore CFG equivalence is not decidable merely by normalization.

5 · Examples, counterexamples and false statements

None yet.

Sources