OAI/Computability/WLIdentification/TapeCompiler.lean
19 declarations, 0 contain sorry, 0 declared as axioms
- theorem
OAI.WLIdentification.StackModel.push_at_endline 11 - theorem
OAI.WLIdentification.StackModel.push_executionline 24 - theorem
OAI.WLIdentification.StackModel.ready_pushline 32 - theorem
OAI.WLIdentification.StackModel.ready_push_executionline 40 - theorem
OAI.WLIdentification.StackModel.pop_at_endline 49 - theorem
OAI.WLIdentification.StackModel.read_emptyline 58 - theorem
OAI.WLIdentification.StackModel.tape_popline 65 - theorem
OAI.WLIdentification.StackModel.read_lastline 84 - theorem
OAI.WLIdentification.StackModel.pop_executionline 96 - theorem
OAI.WLIdentification.StackModel.ready_popline 123 - theorem
OAI.WLIdentification.StackModel.ready_pop_executionline 130 - def
OAI.WLIdentification.StackModel.encodeConfigline 146 - theorem
OAI.WLIdentification.StackModel.initial_tapeline 153 - theorem
OAI.WLIdentification.StackModel.initial_executionline 179 - theorem
OAI.WLIdentification.StackModel.instruction_executionline 215Source documentation
Uniform interpreter cost for one instruction, including all scans.
theorem instruction_execution (c : Config K Λ R) (n : ℕ) (hn : ∀ k, (c.stk k).length ≤ n) : ∃ t ≤ 2 * n + 3, (WLIdentification.step (compile P input))^[t] (encodeConfig P input c) = encodeConfig P input (step P c) := by …Mentions: OAI.WLIdentification.StackModel.Config, OAI.WLIdentification.step, OAI.WLIdentification.StackModel.compile, OAI.WLIdentification.StackModel.encodeConfig, OAI.WLIdentification.StackModel.step
- theorem
OAI.WLIdentification.StackModel.step_lengthline 252 - theorem
OAI.WLIdentification.StackModel.run_lengthline 272 - theorem
OAI.WLIdentification.StackModel.run_executionline 284Source documentation
The compilation preserves a real execution with a quadratic simulation bound.
theorem run_execution (w : Word) (t : ℕ) : ∃ T ≤ 2 + t * (2 * (w.length + t) + 3), WLIdentification.run (compile P input) w T = encodeConfig P input (run P input w t) := by …Mentions: OAI.WLIdentification.Word, OAI.WLIdentification.run, OAI.WLIdentification.StackModel.compile, OAI.WLIdentification.StackModel.encodeConfig, OAI.WLIdentification.StackModel.run
- theorem
OAI.WLIdentification.StackModel.output_correctline 299Source documentation
Only the input track is present at output; the fixed marker is at negative position.
theorem output_correct (c : Config K Λ R) (w : Word) (h : c.stk = Function.update (fun _ => []) input w) : Output (encodeConfig P input c) w := by …Mentions: OAI.WLIdentification.StackModel.Config, OAI.WLIdentification.Word, OAI.WLIdentification.Output, OAI.WLIdentification.StackModel.encodeConfig