Two-way complementation: representation #
Adapted from OpenAI's formalization at revision adc7f1241b42e322a6451854ab7e4b4c146bf78a.
Source: https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/lean/OAI/Combinatorics/TwoWayAutomata/Representation.lean
Imports, namespaces, module visibility, documentation, and formatting are adapted for complexitylib. The source theorem statements and mathematical arguments are retained.
theorem
Complexity.FiniteAutomaton.Complementation.Internal.TwoNFA.diagram_representation
{Sigma : Type u_1}
{s : ℕ}
(A : TwoNFA Sigma (Fin s))
:
Every 2NFA has an exact diagram representation with one additional state label.