Alphabeta Math
TheoremStatement: Literature-sourcedProof: AI-generatedprecheck passaudited 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.

Every PDA has an equivalent context-free grammar

Statement

For every PDA M there exists a context-free grammar GM built from fragment variables [p,Z,q] such that L(GM)=N(M)=T(M), where M is the empty-stack PDA obtained from M by the acceptance-mode conversion.

Facts & Assumptions

Given: A PDA M.

[L1]

By Acceptance by final state and by empty stack are equivalent for PDAs, there is an empty-stack PDA M with the same accepted language as M.

[L2]

By The PDA fragment variable [p,Z,q], the variable [p,Z,q] denotes the words that remove Z while taking the machine from state p to state q and leaving the lower stack unchanged.

[L3]

By PDA fragment variables compose, fragment computations concatenate to remove a stacked pair, and conversely a computation removing a stacked pair splits at the first moment when the lower symbol is exposed.

[L4]

By The language generated by a CFG, a grammar generates exactly the terminal words derivable from its start symbol.

Proof

technique · direct
1.1

By [L1], replace M by an equivalent empty-stack PDA M. Refining its transitions if necessary, we may assume that every move of M pops one symbol, reads either one input symbol or ε, and pushes either nothing, one symbol, or two symbols; a longer push is replaced by a short chain of fresh intermediate states.

L1givenconstruct
2.1

Build a grammar GM whose variables are the fragment symbols [p,Z,q] for states p,q and stack symbols Z, and whose start symbol branches over all variables [q0,Z0,q]. For each normalized transition (r,β)δ(p,a,Z) of M with aΣ{ε}, add the matching productions: if β=ε, add [p,Z,r]a; if β=Y, add [p,Z,q]a[r,Y,q] for every state q; if β=YW, add [p,Z,t]a[r,Y,s][s,W,t] for every pair of states s,t. When a=ε, omit that leading terminal.

L2step 1.1construct
3.1

Every derivation in GM yields an accepting computation of M by induction on the derivation tree of a fragment variable [p,Z,q]. The production chosen at the root records the first normalized move from state p with top symbol Z. If the production is terminal or ε, that move already removes Z. If it has one fragment variable, the induction hypothesis supplies the computation removing the pushed symbol. If it has two fragment variables, the induction hypotheses supply computations removing the two pushed symbols, and [L3] composes them into one computation removing the original pushed pair. Therefore every word derived from [p,Z,q] lies in that fragment language, and the start productions give L(GM)N(M).

L2L3L4step 2.1induction
3.2

Conversely, consider a fragment computation (p,w,Zα)M(q,ε,α) and induct on its number of steps. Let its first normalized move be determined by a transition (r,β)δ(p,a,Z) with aΣ{ε} and β{ε,Y,YW}. If β=ε, that one move already removes Z, so step 2.1 contributes the corresponding terminal or ε production. If β=Y, the remaining computation removes Y above α, so the induction hypothesis derives the remaining input from [r,Y,q], and step 2.1 prepends the production [p,Z,q]a[r,Y,q] with the leading terminal omitted when a=ε. If β=YW, then [L3] splits the remaining computation at the first moment when W is exposed on top of α, yielding a state s and a decomposition of the remaining input into words u and v with (r,u,YWα)M(s,v,Wα) and (s,v,Wα)M(q,ε,α). The induction hypothesis derives u from [r,Y,s] and v from [s,W,q], so step 2.1 gives a derivation of w from [p,Z,q]. Applying this to start configurations shows N(M)L(GM).

L2L3L4step 2.1induction
4.1

Steps 3.1 and 3.2 give L(GM)=N(M), and [L1] then yields L(GM)=T(M).

L1step 3.1step 3.2

Depends on

Used by

Dependency tree · two levels

9 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