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.

11 results · all verified · 1 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 10 not AI-judged were verified by owner audit (typically over a confirmed judge false positive), not failures.

Deterministic Finite Automata and Regular Languages

1 · Prerequisites

2 · Summary

This page fixes deterministic finite automata as total machines over a fixed alphabet, proves the basic recursion law for the extended transition function, and then uses explicit constructions for finite-language recognition, Boolean closure, reachable-state trimming, and the sink-state repair needed to turn the published prefix automaton for forbidden factors into a genuine DFA.

3 · Logical flowchart

4 · Definitions, theorems and proofs

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

Deterministic finite automata

Definition

Let Σ be an alphabet. A deterministic finite automaton over Σ is a quintuple D=(Q,Σ,δ,q0,F) such that:

The adjective "deterministic" means that for each pair (q,a)Q×Σ there is exactly one next state δ(q,a), and "finite" means that Q has finite cardinality in the sense of The cardinality A of a finite set.

Remarks

  • A transition diagram that omits a letter from some state does not yet specify a DFA, because totality of δ is part of the definition.

  • The ambient alphabet is part of the data. The same directed graph can define different automata if the chosen alphabet changes.

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

The extended transition function of a DFA

Definition

Let D=(Q,Σ,δ,q0,F) be a DFA. An extended transition function for D is a function δ:Q×ΣQ satisfying the two clauses δ(q,ε)=q for every qQ, and δ(q,ua)=δ(δ(q,u),a) for every state qQ, every word uΣ, and every letter aΣ.

Thus δ(q,w) is intended to be the state reached from q after reading the whole word w. The next theorem proves that such a function exists and is unique.

TheoremStatement: Literature-sourcedProof: AI-generatedprecheck passaudited 2026-08-30Open item page →

The extended transition function exists and is unique

Statement

For every DFA D=(Q,Σ,δ,q0,F) there exists a unique function δ:Q×ΣQ such that, for all qQ, uΣ, and aΣ, δ(q,ε)=q,δ(q,ua)=δ(δ(q,u),a).

Facts & Assumptions

Given: A DFA D=(Q,Σ,δ,q0,F).

[L1]

By The extended transition function of a DFA, an extended transition function for D is exactly a function δ:Q×ΣQ satisfying the two displayed clauses for ε and ua.

Proof

technique · direct
1.1

Fix qQ and a word w=a0a1an1. Define a sequence of states by s0=q and si+1=δ(si,ai) for 0i<n, and then define δ(q,w):=sn. This gives a function Q×ΣQ because the DFA transition function supplies exactly one next state at each letter.

givenconstruct
2.1

If w=ε, then n=0 and step 1.1 gives δ(q,ε)=s0=q. If w=ua with u=a0an2 and a=an1, then the last state in the sequence is sn=δ(sn1,a)=δ(δ(q,u),a). So the function from step 1.1 satisfies the two clauses of [L1].

step 1.1L1
3.1

Let η:Q×ΣQ be any other function satisfying [L1]. We prove by induction on the length of w that η(q,w)=δ(q,w) for every qQ. For w=ε, both values are q by [L1] and step 2.1.

baseL1step 2.1
3.2

Assume η(q,u)=δ(q,u) for all words u of length n, and let w=ua have length n+1. Then [L1] gives η(q,w)=δ(η(q,u),a), and the induction hypothesis turns this into δ(δ(q,u),a)=δ(q,w) by step 2.1.

ihL1step 2.1induction
4.1

Steps 3.1 and 3.2 show that every function satisfying [L1] agrees with the function built in step 1.1, so the extended transition function exists and is unique.

step 1.1step 2.1step 3.1step 3.2discharge-induction
LemmaStatement: Literature-sourcedProof: AI-generatedprecheck passaudited 2026-08-30Open item page →

Extended DFA transition respects concatenation

Statement

Let D=(Q,Σ,δ,q0,F) be a DFA with extended transition function δ. Then for all pQ and all words u,vΣ, δ(p,uv)=δ(δ(p,u),v).

Facts & Assumptions

Given: A DFA D=(Q,Σ,δ,q0,F) with its unique extended transition function δ, a state pQ, and words u,vΣ.

[L1]

By The extended transition function exists and is unique, the function δ satisfies δ(q,ε)=q and δ(q,xa)=δ(δ(q,x),a) for all states q, words x, and letters a.

Proof

technique · direct
1.1

We prove the identity by induction on the length of v. If v=ε, then [L1] gives δ(p,uε)=δ(p,u) and also δ(δ(p,u),ε)=δ(p,u).

baseL1
1.2

Assume the identity holds for a word v, and let aΣ. We compare the two sides for va.

ihinduction
2.1

By [L1], δ(p,uva)=δ(δ(p,uv),a). The induction hypothesis turns this into δ(δ(δ(p,u),v),a).

L1step 1.2
3.1

Applying [L1] again, the last expression is exactly δ(δ(p,u),va). Therefore δ(p,uva)=δ(δ(p,u),va).

L1step 2.1
4.1

Steps 1.1, 2.1, and 3.1 complete the induction on v, so δ(p,uv)=δ(δ(p,u),v) for all u,vΣ.

step 1.1step 2.1step 3.1discharge-induction
DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (gpt-5.6-terra)audited 2026-08-30Open item page →

Acceptance of a word by a DFA and the recognized language

Definition

Let D=(Q,Σ,δ,q0,F) be a DFA, and let δ be its extended transition function. This function exists and is unique by The extended transition function exists and is unique.

A word wΣ is accepted by D when δ(q0,w)F.

The language recognized by D is L(D):={wΣ:δ(q0,w)F}. This is a language over Σ in the sense of Languages over an alphabet.

Remarks

  • Acceptance depends on the chosen start state and accepting set, not just on the transition graph.

  • Two different DFAs may recognize the same language.

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

Regular languages

Definition

Let Σ be an alphabet. A language LΣ is regular when there exists a DFA D over Σ such that L=L(D), where L(D) is the recognized language of Acceptance of a word by a DFA and the recognized language.

Thus regularity is a property of a language over a fixed alphabet: the machine is a witness, not part of the language itself.

PropositionStatement: Literature-sourcedProof: AI-generatedprecheck passaudited 2026-08-30Open item page →

Every finite language is regular

Statement

Every finite language over an alphabet Σ is regular.

Facts & Assumptions

Given: A finite language LΣ.

[L1]

A language over Σ is regular exactly when it is recognized by some DFA over Σ, by Regular languages.

[F1]

Let P be the set consisting of ε together with every prefix of every word in L. Because L is finite and each word has only finitely many prefixes, the set P is finite.

Proof

technique · direct
1.1

Define a machine D with state set P{}, start state ε, accepting set F=L, and transition rule δ(p,a)={pa,if paP,,if paP,δ(,a)=. By [F1] the state set is finite, and the transition rule is total on (P{})×Σ.

givenF1construct
1.2

We claim that, for every word w, the run from ε ends at the state w when wP, and ends at when wP. This follows by induction on the length of w: appending a letter keeps the machine at the longer prefix exactly when that longer word still lies in P, and otherwise sends the run to , where it remains.

constructinduction
2.1

A word w is accepted by D exactly when the final state lies in F=L. By step 1.2 this happens exactly when wL, because every word in L is one of its own prefixes and therefore belongs to P.

step 1.2given
3.1

Thus L=L(D) for the DFA from step 1.1, so [L1] shows that L is regular.

L1step 1.1step 2.1
TheoremStatement: Literature-sourcedProof: AI-generatedprecheck passaudited 2026-08-30Open item page →

The product construction gives DFA's for union and intersection

Statement

Let D1=(Q1,Σ,δ1,q1,F1) and D2=(Q2,Σ,δ2,q2,F2) be DFA's over the same alphabet, and let Li=L(Di).

Then there is a DFA over Σ recognizing L1L2, and there is a DFA over Σ recognizing L1L2.

Facts & Assumptions

Given: Two DFA's D1 and D2 over the same alphabet Σ.

[L1]

A word is accepted by a DFA exactly when the extended transition from the start state lands in an accepting state, by Acceptance of a word by a DFA and the recognized language.

[L2]

For languages over a fixed alphabet, union and intersection are the set-theoretic operations LK and LK, by Boolean operations on languages over a fixed alphabet.

Proof

technique · direct
1.1

Define the product machine D× to have state set Q1×Q2, start state (q1,q2), and transition rule δ×((p,r),a):=(δ1(p,a),δ2(r,a)). Intuitively, D× runs the two machines in parallel on the same input.

givenconstruct
1.2

We claim that for every pair of states (p,r) and every word w, δ×((p,r),w)=(δ1(p,w),δ2(r,w)). The claim is proved by induction on the length of w: it is immediate for ε, and appending one letter updates both coordinates exactly as the component machines do.

constructinduction
2.1

If the accepting set is F:=F1×F2, then step 1.2 and [L1] show that a word w is accepted exactly when δ1(q1,w)F1 and δ2(q2,w)F2, that is, exactly when wL1L2. By [L2], this machine recognizes the intersection.

L1L2step 1.2
2.2

If the accepting set is F:=(F1×Q2)(Q1×F2), then step 1.2 and [L1] show that a word w is accepted exactly when at least one component machine accepts w, that is, exactly when wL1L2. By [L2], this machine recognizes the union.

L1L2step 1.2
3.1

Therefore the product construction yields DFA's for both intersection and union over the fixed alphabet Σ.

step 1.1step 2.1step 2.2
TheoremStatement: Literature-sourcedProof: AI-generatedprecheck passaudited 2026-08-30Open item page →

Complementing the accepting states complements the recognized language

Statement

Let D=(Q,Σ,δ,q0,F) be a DFA and let Dc:=(Q,Σ,δ,q0,QF). Then L(Dc)=ΣL(D).

Facts & Assumptions

Given: A DFA D=(Q,Σ,δ,q0,F) over Σ.

[L1]

For languages over a fixed alphabet, the complement of L is Lc=ΣL, by Boolean operations on languages over a fixed alphabet.

[L2]

A word w is accepted by a DFA exactly when the final state δ(q0,w) lies in its accepting set, by Acceptance of a word by a DFA and the recognized language.

Proof

technique · direct
1.1

The machines D and Dc have the same state set, the same start state, and the same transition function. Therefore, for every word wΣ, they follow exactly the same run and end in the same state δ(q0,w).

given
2.1

By [L2], the word w is accepted by Dc exactly when this common final state lies in QF, which is equivalent to saying that it does not lie in F. So w is accepted by Dc exactly when w is not accepted by D.

L2step 1.1
3.1

Since this equivalence holds for every wΣ, the language of Dc is precisely ΣL(D), which is L(D)c by [L1].

L1step 2.1
CorollaryStatement: Literature-sourcedProof: AI-generatedprecheck passaudited 2026-08-30Open item page →

Regular languages are closed under the Boolean operations over a fixed alphabet

Statement

Fix an alphabet Σ. If L,KΣ are regular, then every Boolean combination of L and K inside the same ambient Σ is also regular.

Facts & Assumptions

Given: Regular languages L,KΣ.

[L1]

Regular languages are exactly the languages recognized by DFA's, by Regular languages.

[L2]

The product construction gives DFA's for union and intersection, by The product construction gives DFA's for union and intersection.

[L3]

Complementing the accepting states complements the recognized language, by Complementing the accepting states complements the recognized language.

Proof

technique · direct
1.1

By [L1], choose DFA's recognizing L and K. Then [L2] gives DFA's recognizing LK and LK, and [L3] gives a DFA recognizing ΣL.

givenL1L2L3
2.1

The remaining Boolean operations are obtained from union, intersection, and complement by ordinary set identities inside the fixed ambient set Σ. For instance, LK=L(ΣK) and the symmetric difference is (LK)(KL).

algebrastep 1.1
3.1

Therefore every Boolean combination of L and K over the fixed alphabet Σ is regular.

step 1.1step 2.1
TheoremStatement: Literature-sourcedProof: AI-generatedprecheck passaudited 2026-08-30Open item page →

The product construction gives a DFA for language difference

Statement

Let D1 and D2 be DFA's over the same alphabet Σ, with recognized languages L1 and L2. Then there is a DFA over Σ recognizing L1L2.

Facts & Assumptions

Given: Two DFA's D1=(Q1,Σ,δ1,q1,F1) and D2=(Q2,Σ,δ2,q2,F2) over the same alphabet.

[L1]

For languages over a fixed alphabet, the difference is LK, by Boolean operations on languages over a fixed alphabet.

[L2]

The product construction tracks the two component runs in parallel, by The product construction gives DFA's for union and intersection.

[L3]

A word is accepted exactly when its final state lies in the accepting set, by Acceptance of a word by a DFA and the recognized language.

Proof

technique · direct
1.1

Use the same product machine as in [L2], with state set Q1×Q2, start state (q1,q2), and product transition function. This machine reaches the pair of component states reached by D1 and D2 on the same input word.

L2construct
1.2

Declare a pair (p,r) accepting exactly when pF1 and rF2, that is, take accepting set F:=F1×(Q2F2).

construct
2.1

By step 1.1 and [L3], a word w is accepted by this product machine exactly when D1 accepts w and D2 does not accept w.

L3step 1.1step 1.2
3.1

By [L1], that condition is exactly wL1L2. So the constructed machine recognizes the language difference.

L1step 2.1
DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (gpt-5.6-terra)audited 2026-08-30Open item page →

Reachable states of a DFA

Definition

Let D=(Q,Σ,δ,q0,F) be a DFA with extended transition function δ. A state qQ is reachable when there exists a word wΣ such that q=δ(q0,w).

The set of all reachable states is the reachable part of the DFA.

LemmaStatement: Literature-sourcedProof: AI-generatedprecheck passaudited 2026-08-30Open item page →

Removing unreachable states preserves the recognized language

Statement

Let D=(Q,Σ,δ,q0,F) be a DFA, let QrQ be its reachable states, and let Dr be the DFA obtained by restricting D to the states Qr. Then L(Dr)=L(D).

Facts & Assumptions

Given: A DFA D=(Q,Σ,δ,q0,F) and its reachable-state subset Qr.

[L1]

A state is reachable exactly when it has the form δ(q0,w) for some input word w, by Reachable states of a DFA.

[L2]

A word is accepted exactly when the extended transition from the start state lands in an accepting state, by Acceptance of a word by a DFA and the recognized language.

Proof

technique · direct
1.1

Let w=a0a1an1 be any input word, and consider the run of D from q0 on w. After reading the prefix a0ai1, the machine is in the state δ(q0,a0ai1), so [L1] says every state visited during the run is reachable.

givenL1
2.1

Therefore the entire run of D on w stays inside Qr, and the restricted machine Dr has exactly the same transitions on those states. So Dr ends in the same final state as D on the word w.

step 1.1
3.1

By [L2], the word w is accepted by Dr if and only if that common final state lies in FQr, which is equivalent to the same final state lying in F. Hence w is accepted by Dr exactly when it is accepted by D.

L2step 2.1
4.1

Since this holds for every word wΣ, the two machines recognize the same language.

step 3.1
PropositionStatement: AI-adaptedProof: AI-generatedprecheck passaudited 2026-08-30Open item page →

The published prefix automata extend canonically to DFAs for factor-avoidance languages

Statement

Let Σ be a finite alphabet and let B be a finite nonempty set of nonempty words over Σ. Starting from the published prefix automaton on SB, adjoin a new sink state , send every previously rejected letter to , let loop on every letter, and declare every state in SB accepting while is rejecting.

The resulting machine is a DFA over Σ, and it recognizes exactly the language of words over Σ that avoid every factor in B.

Facts & Assumptions

Given: A finite alphabet Σ and a finite nonempty set B of nonempty words over Σ.

[L1]

The set SB consists of the words that avoid B and are proper prefixes of words in B; it is finite, and εSB, by Finite words, contiguous factors, avoidance and proper-prefix states.

[L2]

In the published prefix automaton, if sa still avoids B then the edge labelled a from s goes to the longest suffix of sa that lies in SB; if sa contains a forbidden factor, the letter a is rejected, by The longest-suffix prefix automaton for a finite set of forbidden factors.

[L3]

A word is accepted by a DFA exactly when the final state lies in the accepting set, by Acceptance of a word by a DFA and the recognized language.

Proof

technique · direct
1.1

Define DB to have state set SB{}, start state ε, accepting set SB, and transition rule δ(s,a)={the published longest-suffix state for sa,if sa avoids B,,if sa contains a factor in B,δ(,a)=. By [L1] and [L2], this is a total transition function on a finite state set, so DB is a DFA.

L1L2construct
2.1

We prove by induction on the length of a word w that the run of DB from ε behaves as follows: if w avoids B, the final state is the longest suffix of w belonging to SB; if w contains a forbidden factor, the final state is . The induction step is exactly the two cases built into the definition of δ in step 1.1.

step 1.1induction
3.1

If w avoids B, then step 2.1 places the run in a state of SB, hence [L3] says that DB accepts w. If w contains a factor in B, then step 2.1 places the run in , so [L3] says that DB rejects w.

L3step 2.1
4.1

Therefore L(DB) is exactly the language of words over Σ that avoid every forbidden factor in B.

step 3.1
False statementConstruction: Literature-sourcedVerification: AI-generatedprecheck passjudge pass (gpt-5.6-terra)audited 2026-08-30Open item page →

FALSE: a DFA transition diagram may omit a sink without changing totality

Statement

False claim: once a transition diagram has all of its "interesting" edges, one may omit a sink transition and still regard the picture as specifying a DFA.

Facts & Assumptions

Given: The alphabet Σ={0,1} and a one-state picture with state q, start state q, and only one drawn edge, a loop q0q.

[A1]

The statement refuted is: omitting a sink transition from a DFA diagram does not affect whether the diagram defines a total DFA.

[L1]

A DFA requires a total transition function δ:Q×ΣQ, by Deterministic finite automata.

Refutation

technique · direct
1.1

In the displayed picture, the input pair (q,0) has a specified next state, namely q. But the input pair (q,1) has no specified next state at all.

given
2.1

Therefore the picture does not determine a total function on Q×Σ, so by [L1] it does not yet define a DFA.

L1step 1.1
3.1

This contradicts the conclusion of [A1]. The omitted transition really matters: one must add a sink or some other specified 1-transition to obtain a DFA.

A1step 2.1
False statementConstruction: Literature-sourcedVerification: AI-generatedprecheck passaudited 2026-08-30Open item page →

FALSE: complementing a DFA complements its transition graph

Statement

False claim: to complement the language of a DFA, one complements its transition graph.

Facts & Assumptions

Given: The one-state DFA D=({q},{0,1},δ,q,{q}) with δ(q,0)=q and δ(q,1)=q.

[A1]

The statement refuted is: complementing a DFA means complementing the transition graph.

[L1]

The correct complement construction keeps the same transition function and replaces the accepting set F by QF, by Complementing the accepting states complements the recognized language.

[L2]

A DFA must have exactly one outgoing transition for each input letter from each state, by Deterministic finite automata.

Refutation

technique · direct
1.1

By [L1], the complement of L(D)={0,1} is the empty language, obtained by keeping the same looping transitions and changing only the accepting set from {q} to .

L1given
1.2

If one literally complements the transition graph instead, both loop edges are removed because they were the only edges present. The resulting picture has no outgoing transition on either input letter, so by [L2] it is not even a DFA.

givenL2
2.1

Thus graph complementation does not produce the complement DFA from step 1.1 and does not in general preserve the DFA conditions. The claim [A1] is false.

A1step 1.1step 1.2

5 · Examples, counterexamples and false statements

None yet.

Sources