OAI/Combinatorics/ParityLifts/Compiler.lean
26 declarations, 0 contain sorry, 0 declared as axioms
- inductive
OAI.ParityWL.Complexity.TreeCodeline 10Source documentation
Finite structured imperative code. Loops are data-dependent, not bounded by an external oracle. The cost counts the serialized registers traversed by the stack compiler.
inductive TreeCode (r : ℕ) where …
- def
OAI.ParityWL.Complexity.TreeCode.compileline 17 - inductive
OAI.ParityWL.Complexity.CodeExecline 25 - lemma
OAI.ParityWL.Complexity.CodeExec.compileline 40 - lemma
OAI.ParityWL.Complexity.CodeExec.stack_runline 61Source documentation
One code derivation yields a multitape computation, after input register initialization. No complexity-class closure theorem is assumed.
lemma CodeExec.stack_run {r : ℕ} {p : TreeCode r} {d e : Fin r → DataTree} {n : ℕ} (h : CodeExec p d n e) : ∃ m, m ≤ 51 * n ∧ Runs p.compile.program.lower.lower (dataWords d) m (dataWords e) true := by …Mentions: OAI.ParityWL.Complexity.TreeCode, OAI.ParityWL.Complexity.DataTree, OAI.ParityWL.Complexity.CodeExec, OAI.ParityWL.Complexity.Runs, OAI.ParityWL.Complexity.dataWords
- lemma
OAI.ParityWL.Complexity.Runs.repeat_trueline 71 - lemma
OAI.ParityWL.Complexity.Runs.repeat_falseline 76 - def
OAI.ParityWL.Complexity.pushWordline 83 - lemma
OAI.ParityWL.Complexity.pushWord_runline 87 - def
OAI.ParityWL.Complexity.bitChunkline 101 - def
OAI.ParityWL.Complexity.DataTree.ofBitsline 103 - lemma
OAI.ParityWL.Complexity.ofBits_codeline 107 - def
OAI.ParityWL.Complexity.expandBitline 113 - def
OAI.ParityWL.Complexity.expandBitsBodyline 116 - def
OAI.ParityWL.Complexity.expandBitsline 121 - lemma
OAI.ParityWL.Complexity.expandBit_runline 123 - lemma
OAI.ParityWL.Complexity.expandBits_runline 133 - def
OAI.ParityWL.Complexity.readBitsline 183 - lemma
OAI.ParityWL.Complexity.bitChunk_lengthline 186 - lemma
OAI.ParityWL.Complexity.flatMap_bitChunk_lengthline 188 - lemma
OAI.ParityWL.Complexity.readBits_runline 195 - def
OAI.ParityWL.Complexity.inputDataline 219 - def
OAI.ParityWL.Complexity.inputStacksline 222 - def
OAI.ParityWL.Complexity.fillDataline 225 - def
OAI.ParityWL.Complexity.initializeDataline 229 - lemma
OAI.ParityWL.Complexity.initializeData_runline 232