Cslib.URM.Computable
defimported Lean
A partial function f : (Fin n → ℕ) → Part ℕ is URM-computable if there exists a URM program that computes it.
Statement
set_option autoImplicit true in set_option relaxedAutoImplicit true in def Cslib.URM.Computable (n : ℕ) (f : (Fin n → ℕ) → Part ℕ) : Prop
- Defined in
- CSLib, `Cslib.URM.Computable`
- Lean proof
- By Jesse Alama, from github.com/leanprover/cslib at
3951377e5a3f(Copyright (c) 2026 Jesse Alama. All rights reserved, Apache-2.0). Compiled here against leanprover/lean4:v4.33.1, Mathlib v4.33.1; written for leanprover/lean4:v4.33.0.Cslib.URM.Computable← Cslib.URM.Computable (Cslib/Computability/URM/Computable.lean:40): verbatim
- Verified
- 08 Oct 2026
- Axioms
- none listed
- Built on 6
- Cslib.URM.State.instDecidableIsHaltedCslib.URM.State.instDecidableIsHalted
- Cslib.URM.ComputesA program
pcomputes a partial functionf : (Fin n → ℕ) → Part ℕif for any input,eval p inputs = f inputsas partial values. This… - Cslib.URM.State.instInhabitedCslib.URM.State.instInhabited
- Cslib.URM.instSetoidProgramSetoid instance for programs, enabling the ≈ notation.
- Cslib.URM.State.instReprCslib.URM.State.instRepr
- Cslib.URM.ProgramA URM program is a list of instructions.
Lean source view module on GitHub
set_option autoImplicit true in set_option relaxedAutoImplicit true in /-- A partial function `f : (Fin n → ℕ) → Part ℕ` is URM-computable if there exists a URM program that computes it. -/ def Cslib.URM.Computable (n : ℕ) (f : (Fin n → ℕ) → Part ℕ) : Prop := ∃ p : Program, Computes n p f