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.
Regular Expressions and Kleene's Theorem: Examples and Counterexamples
1 · Prerequisites
- Construction of the Natural Numbers
- Countability and Uncountability
- Deterministic Finite Automata and Regular Languages
- Finite Counting, Factorials and Binomial Coefficients
- Formal Languages, Encodings, and Decision Problems
- Linear Recurrences and Rational Generating Functions
- Nondeterministic Finite Automata and Subset Construction
- Regular Expressions and Kleene's Theorem
- Relations, Functions, and Quotients
- The ZFC Axioms and the Basic Set Constructions
2 · Summary
These examples build an automaton for a concrete regular expression, run the standard DFA decision procedures on tiny machines, and separate formal syntax from the language that syntax denotes.
3 · Logical flowchart
4 · Definitions, theorems and proofs
None yet.
5 · Examples, counterexamples and false statements
Constructing an epsilon-NFA for
Example
After the standard Thompson construction and the obvious epsilon-edge simplifications, one convenient epsilon-NFA for has states , start state , accepting state , and transitions
It is an epsilon-NFA because ordinary NFA's are the special case with no -moves.
Facts & Assumptions
Given: The displayed machine with start state and accepting state .
By Every regular expression has an equivalent epsilon-NFA, a regular expression has an equivalent epsilon-NFA.
Verification
Any word of the form with is accepted: stay in while reading the prefix , then use the branch on the final three letters.
Conversely, every accepting run must finish with the forced chain , because is reached only from by a -edge and is reached only from by a -edge. Therefore any accepted word ends in , and the earlier letters are exactly the ones read by the two loops at .
Hence this machine recognizes the words ending in , which is the language of . This is the concrete instance promised by [L1].
Running the basic regular-language decision procedures on small DFA's
Example
Let be the two-state DFA over that accepts exactly the words with an even number of 's, and let be the two-state DFA that accepts exactly the words ending in .
Facts & Assumptions
Given: The DFA's and just described.
By DFA membership, emptiness, finiteness, equivalence, and containment are decidable, DFA membership, emptiness, finiteness, equivalence, and containment each have a decision procedure.
Verification
Membership on the concrete input returns "yes" for , because the run sees two 's and finishes in the even-parity state.
The emptiness test returns "nonempty" for both machines, and the finiteness test returns "infinite" for both: accepts , while accepts .
The equivalence test returns "not equivalent" because but . The containment tests also return "no" in both directions, because and .
These outcomes match the decision procedures promised by [L1] on an explicit pair of DFA's.
The expression is not literally the set
Statement refuted
The false statement claims that a regular expression is literally the same object as the language it denotes.
Facts & Assumptions
Given: The regular expression .
By FALSE: a regular expression is the same object as its denoted language, the refuted claim is that a regular expression is literally the same object as its denoted language.
Counterexample
The object is a formal expression, while its denotation is the language .
A formal expression and a two-element set of words are not literally the same object, so the example contradicts the claim in [L1].