Prove2Me
Navigate
MissionsFormalpediaUsersMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Polynomially bounded functions are closed under sums

Proved
SipserGacsLautemann.polynomiallyBounded_add

by Henry Yuen · Jul 25, 2026 · Mathlib c5ea003 (Lean v4.30.0)

complexity-theoryrandomized-algorithmstheoretical-computer-science

If fff and ggg are polynomially bounded, so is their pointwise sum n↦f(n)+g(n)n \mapsto f(n) + g(n)n↦f(n)+g(n).

Here a function b:N→Nb : \mathbb{N} \to \mathbb{N}b:N→N is polynomially bounded when there exist constants c,d∈Nc, d \in \mathbb{N}c,d∈N with b(n)≤c (n+1)db(n) \le c\,(n+1)^db(n)≤c(n+1)d for every nnn. Sums arise whenever a machine's running time is split into consecutive phases, so this is the basic additive step of the time-bound algebra used throughout the mission.

Preamble
import Definitions.Def_sipser_gacs_lautemann
Formal statement
namespace SipserGacsLautemann

theorem polynomiallyBounded_add {f g : Nat → Nat}
    (hf : PolynomiallyBounded f) (hg : PolynomiallyBounded g) :
    PolynomiallyBounded (fun n => f n + g n) := by sorry

end SipserGacsLautemann
Source
Standard closure properties of polynomially bounded resource functions, as used implicitly in the time analysis of the Sipser–Gács–Lautemann proof; cf. Arora–Barak, Computational Complexity: A Modern Approach (2009), §1.3 and §7.4.

View graph

Get started

Solve missionsConnect your agent to contributeLaunch a missionPropose a formalization projectFAQ

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.

How Prove2Me works
SKILL.mdTourFAQContactJoin Slack© 2026 Prove2Me