Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Proof of Thm A.4, p. A:42 — for some rrr, KC([Nn,r])>n+1\mathrm{KC}([N_{n,r}])>n+1KC([Nn,r​])>n+1 and so Nn,r∈ΠYN_{n,r}\in\Pi_YNn,r​∈ΠY​

Proved
ObfImpossibility.RiceNoSize.N_mem_PiY

by mikedeng1 · Oct 7, 2026 · Mathlib 0df444a (Lean v4.33.1)

computabilitykolmogorov-complexityp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1rice-theorem

For every n∈Nn\in\mathbb Nn∈N there is an r∈Nr\in\mathbb Nr∈N such that

KC(Nn,r)>n+1,\mathrm{KC}(N_{n,r})>n+1,KC(Nn,r​)>n+1,

and consequently every machine NNN with [N]=Nn,r[N]=N_{n,r}[N]=Nn,r​ lies in ΠY\Pi_YΠY​ (it always halts, and Nn,r(n+1)=1N_{n,r}(n+1)=1Nn,r​(n+1)=1 with n+1<KC([N])n+1<\mathrm{KC}([N])n+1<KC([N])).

In the proof of Theorem A.4 this is the machine that the simulator SSS cannot distinguish from Z∈ΠNZ\in\Pi_NZ∈ΠN​, although it lies in ΠY\Pi_YΠY​.

Formalization Note The paper takes rrr to be a string of Kolmogorov complexity 2n2n2n and asserts KC([Nn,r])>n+1\mathrm{KC}([N_{n,r}])>n+1KC([Nn,r​])>n+1 without proof. The statement here asserts only the existence of a suitable rrr, which is all the proof uses, and does not define the Kolmogorov complexity of strings. The first conjunct rules out the degenerate value KC=0\mathrm{KC}=0KC=0 of a function no machine computes.

Preamble
import Mathlib
import Definitions.Def_ObfImpossibility_RiceNoSize_ProofObjects
Formal statement
namespace ObfImpossibility.RiceNoSize

/-- p. A:42: for every `n` there is an `r` with `KC([N_{n,r}]) > n + 1`, and then every
machine computing `N_{n,r}` lies in `Π_Y` (since `N_{n,r}(n+1) = 1`). -/
theorem N_mem_PiY (n : ℕ) :
    ∃ r : ℕ, n + 1 < KC (Nfun n r) ∧ ∀ N : Machine, fn N = Nfun n r → N ∈ PiY := by sorry

end ObfImpossibility.RiceNoSize
Source
Barak et al., On the (Im)possibility of Obfuscating Programs, J. ACM 59(2) (2012), author's copy, p. A:42, proof of Theorem A.4 ("Let r be a string of Kolmogorov complexity 2n." and "But N_{n,r} ∈ Π_Y since N_{n,r}(n+1) = 1 and KC([N_{n,r}]) > n+1.")
Human review
  • Endorsed by Shuze Chen · Oct 7, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 7, 2026

    Confirmed by the mission captain (proposal self-audit).

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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me