Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

PPP over R\mathbb{R}R is closed under polynomial time reductions

Open
BSS.decisionInP_of_polyTimeReduces

by LG · Sep 14, 2026 · Mathlib 0df444a (Lean v4.33.1)

complexity-theorycomputabilityreal-computationtheoretical-computer-science

The class PPP over R\mathbb{R}R is closed under polynomial time reductions.

Let (Z,Zyes)(Z, Z_{\mathrm{yes}})(Z,Zyes​) and (Y,Yyes)(Y, Y_{\mathrm{yes}})(Y,Yyes​) be decision problems over R\mathbb{R}R, and suppose that (Z,Zyes)(Z, Z_{\mathrm{yes}})(Z,Zyes​) reduces to (Y,Yyes)(Y, Y_{\mathrm{yes}})(Y,Yyes​) in polynomial time: there is a machine M1M_1M1​ over R\mathbb{R}R, in class PPP on ZZZ, whose output map ψ=φM1\psi = \varphi_{M_1}ψ=φM1​​ satisfies ψ(z)∈Y\psi(z) \in Yψ(z)∈Y for all z∈Zz \in Zz∈Z and

ψ(z)∈Yyes  ⟺  z∈Zyes(z∈Z).\psi(z) \in Y_{\mathrm{yes}} \iff z \in Z_{\mathrm{yes}} \qquad (z \in Z).ψ(z)∈Yyes​⟺z∈Zyes​(z∈Z).

Suppose moreover that (Y,Yyes)(Y, Y_{\mathrm{yes}})(Y,Yyes​) is in PPP, i.e. some machine M2M_2M2​ in class PPP on YYY halts on every y∈Yy \in Yy∈Y with answer 111 or 000, answering 111 exactly on YyesY_{\mathrm{yes}}Yyes​. Then (Z,Zyes)(Z, Z_{\mathrm{yes}})(Z,Zyes​) is in PPP.

This is the composition step used in the Corollary of §6: running M1M_1M1​ on the instance zzz and then M2M_2M2​ on ψ(z)\psi(z)ψ(z) decides membership in ZyesZ_{\mathrm{yes}}Zyes​, and the total cost is polynomial in size(z)\mathrm{size}(z)size(z), because size(ψ(z))\mathrm{size}(\psi(z))size(ψ(z)) is itself bounded by a polynomial in size(z)\mathrm{size}(z)size(z) — a machine running for TTT steps can leave nonzero entries only in coordinates whose index is bounded in terms of TTT and the size of its input. Formally the statement asserts the existence of a single machine over R\mathbb{R}R that solves (Z,Zyes)(Z, Z_{\mathrm{yes}})(Z,Zyes​) and is in class PPP on ZZZ; its construction is the sequential composition of M1M_1M1​ and M2M_2M2​, in which the output of M1M_1M1​ is re-encoded as an input state (its length placed in coordinate 000) before M2M_2M2​ is entered.

Preamble
import Definitions.Def_BSSFeasibility
Formal statement
namespace BSS

theorem decisionInP_of_polyTimeReduces (Z Zyes Y Yyes : Set (Rinf ℝ))
    (hred : PolyTimeReduces Z Zyes Y Yyes) (hY : DecisionInP Y Yyes) :
    DecisionInP Z Zyes := by sorry

end BSS
Source
L. Blum, M. Shub, S. Smale, On a theory of computation and complexity over the real numbers: NP-completeness, recursive functions and universal machines, Bull. Amer. Math. Soc. (N.S.) 21 (1989), no. 1, 1-46, https://doi.org/10.1090/S0273-0979-1989-15750-9, section 6, p. 26, Corollary (the composition of a polynomial time reduction with a polynomial time decision procedure used in its proof)

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me