Two-way complementation: diagram #
Adapted from OpenAI's formalization at revision adc7f1241b42e322a6451854ab7e4b4c146bf78a.
Source: https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/lean/OAI/Combinatorics/TwoWayAutomata/Diagram.lean
Imports, namespaces, module visibility, documentation, and formatting are adapted for complexitylib. The source theorem statements and mathematical arguments are retained.
Four boundary relations; the direction distinguishes the two copies of Fin m.
Enter on the left and exit on the right.
Enter on the right and exit on the left.
Enter and exit on the left.
Enter and exit on the right.
Instances For
Composition of boundary diagrams in path order.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Closure of alternating returns at a boundary.
Equations
Instances For
The recurrent relation obtained by closing through traversals.
Equations
- e.recurrence positive = ((e.loopClosure positive).comp (e.through positive)).comp (e.loopClosure positive)
Instances For
Signed recurrent equivalence classes of an idempotent diagram.
Equations
Instances For
The surviving through relation U relative to e.
Equations
- e.surviving z positive = ((e.loopClosure positive).comp (z.through positive)).comp (e.loopClosure positive)
Instances For
Classes whose recurrent loops are absent after replacement by z.
Equations
Instances For
Rectangle associated with a recurrent representative.
Equations
Instances For
Returns from an exit port through the surrounding left or right context.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Initial traversal of the outer context, including recurrence closure.
Equations
Instances For
Final traversal of the outer context, including recurrence closure.
Equations
Instances For
Traversals with one designated occurrence of a recurrent rectangle in the middle factor.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.