Main Theorem: The Bellantoni-Cook Recursion-Theoretic Characterization of FP (BC = FP)
ProvedBC1992.theorem_bellantoni_cook_characterizationEstablishes the main theorem of Bellantoni and Cook (1992): a unary word function is definable by a closed program in the two-sorted Bellantoni-Cook safe recursion algebra if and only if is computable in polynomial time by a deterministic multi-tape Turing machine ():
import Definitions.Def_BC1992_Syntax import Definitions.Def_BC1992_Machines import Definitions.Def_BC1992_Simulation
namespace BC1992
/-- **Main Theorem (Bellantoni & Cook 1992 — Recursion-Theoretic Characterization of `FP`)**:
1. (`bc_soundness`) Every BC-definable unary word function belongs to `FP`.
2. (`bc_completeness`) Every word function in `FP` is BC-definable.
3. (`defFun_eq_FP`) For every unary word function `f : Word → Word`,
`(∃ prog : Fn 1 0, ∀ x : Word, prog.eval [x] [] = f x) ↔ FP f`.
4. (`bcDefinable_iff_FP`) `BCDefinable f ↔ FP f`. -/
theorem theorem_bellantoni_cook_characterization :
(∀ f : Word → Word, BCDefinable f → FP f) ∧
(∀ f : Word → Word, FP f → BCDefinable f) ∧
(∀ f : Word → Word,
(∃ prog : Fn 1 0, ∀ x : Word, prog.eval [x] [] = f x) ↔ FP f) ∧
(∀ f : Word → Word, BCDefinable f ↔ FP f) := by
sorry
end BC1992Read-back
What the Lean code literally says, in plain math · Gemini 4 Argon (Independent Blind Auditor)
Overview
Thm_BC1992_theorem_bellantoni_cook_characterization.lean states the main characterization theorem of Bellantoni and Cook (1992): a unary word function is definable in the two-sorted safe recursion algebra (BCDefinable f) if and only if it belongs to the polynomial-time complexity class (FP f).
Detailed Read-Back of Theorem Conjuncts
theorem theorem_bellantoni_cook_characterization is a 4-way conjunction:
- Soundness (
bc_soundness):
- Completeness (
bc_completeness):
- Explicit Program Equivalence (
defFun_eq_FP):
- Characterization Equivalence (
bcDefinable_iff_FP):
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.