Two-way complementation: source #
Adapted from OpenAI's formalization at revision adc7f1241b42e322a6451854ab7e4b4c146bf78a.
Source: https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/lean/OAI/Combinatorics/TwoWayAutomata/Source.lean
Imports, namespaces, module visibility, documentation, and formatting are adapted for complexitylib. The source theorem statements and mathematical arguments are retained.
Relation product for an input word; the empty product is the identity.
Equations
Instances For
The source language consists of the words with nonempty relation product.
Equations
Instances For
The explicit source machine: none starts, some none accepts, and
some (some h) is the state labelled by h.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Configurations from which the explicit source machine has a suffix witness.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The explicit machine recognizes nonempty relation products.
The source language on h labels is recognized using exactly h + 2 states.
Singleton letters on the two sides test one edge of a word's relation product.