OAI/Combinatorics/ParityLifts/TreeWords.lean
24 declarations, 0 contain sorry, 0 declared as axioms
- lemma
OAI.ParityWL.Complexity.StackConfiguration.extline 7 - inductive
OAI.ParityWL.Complexity.StackTraceline 12 - lemma
OAI.ParityWL.Complexity.StackTrace.execline 18 - lemma
OAI.ParityWL.Complexity.StackTrace.transline 29 - lemma
OAI.ParityWL.Complexity.StackTrace.oneline 40 - def
OAI.ParityWL.Complexity.copyWordline 45Source documentation
Prepending a copy preserves the source and clears the temporary stack.
def copyWord {t a : ℕ} (src dst tmp : Fin (t + 1)) := … - lemma
OAI.ParityWL.Complexity.copyWord_runline 48 - def
OAI.ParityWL.Complexity.pushSymbolline 77Source documentation
A fixed one-cell insertion.
def pushSymbol {t a : ℕ} (dst : Fin (t + 1)) (c : StackSymbol a) := …Mentions: OAI.ParityWL.Complexity.StackSymbol
- lemma
OAI.ParityWL.Complexity.pushSymbol_runline 80 - inductive
OAI.ParityWL.Complexity.DataTreeline 93Source documentation
A prefix-encoded finite binary tree; every code is nonempty and uniquely self-delimiting. Working trees need no infinite-alphabet cells.
inductive DataTree where …
- def
OAI.ParityWL.Complexity.DataTree.codeline 98 - def
OAI.ParityWL.Complexity.DataTree.sizeline 102 - lemma
OAI.ParityWL.Complexity.DataTree.length_codeline 106 - lemma
OAI.ParityWL.Complexity.DataTree.size_posline 111 - def
OAI.ParityWL.Complexity.treeScanline 116Source documentation
Sweep one prefix tree into
dstin reverse order, tracking unvisited child slots on a unary stack. A null pending stack terminates; all transitions are constant-size finite-table operations.def treeScan {t : ℕ} (src dst pending : Fin (t + 1)) : StackMachine Bool t 0 where …Mentions: OAI.ParityWL.Complexity.StackMachine
- def
OAI.ParityWL.Complexity.scanUpdateline 125 - def
OAI.ParityWL.Complexity.scanResultline 130 - lemma
OAI.ParityWL.Complexity.treeScan_nil_stepline 134 - lemma
OAI.ParityWL.Complexity.scanUpdate_compline 162 - lemma
OAI.ParityWL.Complexity.treeScan_node_stepline 177 - lemma
OAI.ParityWL.Complexity.treeScan_traceline 200 - lemma
OAI.ParityWL.Complexity.treeScan_runline 236 - def
OAI.ParityWL.Complexity.moveTreeline 253 - lemma
OAI.ParityWL.Complexity.moveTree_runline 256