Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Proof of Thm A.4, p. A:42 — ⟨Z⟩(1t,x)=⊥\langle Z\rangle(1^t,x)=\bot⟨Z⟩(1t,x)=⊥ for t<∣x∣t<|x|t<∣x∣, 000 otherwise, and Z∈ΠNZ\in\Pi_NZ∈ΠN​

Proved
ObfImpossibility.RiceNoSize.Z_profile

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

computabilityp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1turing-machines

Let ZZZ be the machine that reads its input and then returns 000. For all t,x∈Nt,x\in\mathbb Nt,x∈N (inputs are unary, so ∣x∣=x|x|=x∣x∣=x),

⟨Z⟩(1t,x)={⊥t<∣x∣,0otherwise,\langle Z\rangle(1^t,x)=\begin{cases}\bot & t<|x|,\\ 0 & \text{otherwise,}\end{cases}⟨Z⟩(1t,x)={⊥0​t<∣x∣,otherwise,​

and Z∈ΠNZ\in\Pi_NZ∈ΠN​.

The time profile of ZZZ is what the proof of Theorem A.4 must imitate: a machine that agrees with this profile on all small queries cannot be told apart from ZZZ by a simulator with a halting run.

Formalization Note In the mission's model ZZZ needs exactly ∣x∣|x|∣x∣ steps (moves right over the input, halting on the first blank), so the display holds with no additive constant.

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

/-- p. A:42: `⟨Z⟩(1^t, x) = ⊥` for `t < |x|` and `0` otherwise (with `|x| = x`), and `Z ∈ Π_N`. -/
theorem Z_profile :
    (∀ t x : ℕ, bounded Z t x = if t < x then none else some 0) ∧ Z ∈ PiN := 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 (the machine Z and the display of ⟨Z⟩(1^t, x))
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