OAI/Computability/WLIdentification/ExpressionCompiler.lean
22 declarations, 0 contain sorry, 0 declared as axioms
- theorem
OAI.WLIdentification.WordExpressions.Expr.correct_casesline 10 - theorem
OAI.WLIdentification.WordExpressions.Expr.correct_loopline 77 - theorem
OAI.WLIdentification.WordExpressions.Expr.correctline 218Source documentation
The finite word language executes on literal stacks, with polynomial cost in the lengths of all values in its evaluation.
theorem correct {n} (e : Expr n) : e.Correct := by … - def
OAI.WLIdentification.StackModel.Command.registersline 232 - def
OAI.WLIdentification.StackModel.Command.smallline 238 - def
OAI.WLIdentification.StackModel.Command.finiteIndexline 240 - theorem
OAI.WLIdentification.StackModel.Command.finiteIndex_valline 242 - theorem
OAI.WLIdentification.StackModel.Command.restrict_updateline 245 - theorem
OAI.WLIdentification.StackModel.Command.Exec.restrictline 258Source documentation
A syntactically finite register program has the same counted execution on its finite set of tracks, even though its correctness was proved with convenient natural register names.
theorem Exec.restrict {c : Command ℕ R} {s S t T n} (hex : Exec c s S t T n) (N : ℕ) (hN : 0 < N) (hc : c.small N) : Exec (c.rename (finiteIndex N hN)) s (S ∘ Fin.val) t (T ∘ Fin.val) n := by …Mentions: OAI.WLIdentification.StackModel.Command, OAI.WLIdentification.StackModel.Command.Exec, OAI.WLIdentification.StackModel.Command.finiteIndex
- theorem
OAI.WLIdentification.StackModel.Command.small_existsline 280 - def
OAI.WLIdentification.StackModel.Command.testProgramline 289Source documentation
A three-instruction output test after a structured command, followed by a literal accepting or rejecting stack-machine halt.
def testProgram {K : Type} (c : Command K (Option Bool)) (s : Option Bool) (out : K) : Program K (Option (Control c) ⊕ (Bool ⊕ Unit)) (Option Bool) where …Mentions: OAI.WLIdentification.StackModel.Command, OAI.WLIdentification.StackModel.Program, OAI.WLIdentification.StackModel.Command.Control
- theorem
OAI.WLIdentification.StackModel.Command.testProgram_embedsline 299 - theorem
OAI.WLIdentification.StackModel.Command.Exec.testRunline 307 - def
OAI.WLIdentification.ComputationBounds.Polynomialline 328 - theorem
OAI.WLIdentification.ComputationBounds.constantline 330 - theorem
OAI.WLIdentification.ComputationBounds.identityline 331 - theorem
OAI.WLIdentification.ComputationBounds.addline 333 - theorem
OAI.WLIdentification.ComputationBounds.mulline 342 - theorem
OAI.WLIdentification.ComputationBounds.maximumline 352 - theorem
OAI.WLIdentification.WordExpressions.Expr.cost_polynomialline 361 - def
OAI.WLIdentification.WordExpressions.Expr.outputBoundline 373 - theorem
OAI.WLIdentification.WordExpressions.Expr.outputBound_polynomialline 376