Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§4.2, observation (a), p. 17 — if BP(χ) = 1 then F_χ(RND_p(BP)) = 0 (for every sample)

Proved
GGHRSW.ColoredMatrix.observation_4_2a

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

branching-programcryptographyobfuscationp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let ppp be a prime, BPBPBP a length-nnn branching program over ℓ\ellℓ input bits, and RNDp(BP)\mathcal{RND}_p(BP)RNDp​(BP) its randomized version (§4.1). For an input χ∈{0,1}ℓ\chi\in\{0,1\}^\ellχ∈{0,1}ℓ consider the multilinear form

Fχ(RNDp(BP))=s~(∏iD~i,χinp(i))t~−s~′(∏iD~i,χinp(i)′)t~′ mod p.F_\chi(\mathcal{RND}_p(BP)) = \tilde{\mathbf s}\Big(\prod_i \tilde D_{i,\chi_{\mathsf{inp}(i)}}\Big)\tilde{\mathbf t} - \tilde{\mathbf s}'\Big(\prod_i \tilde D'_{i,\chi_{\mathsf{inp}(i)}}\Big)\tilde{\mathbf t}' \bmod p .Fχ​(RNDp​(BP))=s~(i∏​D~i,χinp(i)​​)t~−s~′(i∏​D~i,χinp(i)​′​)t~′modp.

If BP(χ)=1BP(\chi)=1BP(χ)=1, then

Fχ(RNDp(BP))=0F_\chi(\mathcal{RND}_p(BP)) = 0Fχ​(RNDp​(BP))=0

for every choice of the randomness ("with probability 1").

This is the correctness of the randomization: evaluating the primal program against the dummy program recovers the output of BPBPBP.

Formalization Note. The statement holds for every sample ω\omegaω of the randomness, which is what "with probability 1" means. Part (b) of the observation (if BP(χ)=0BP(\chi)=0BP(χ)=0 then Fχ≠0F_\chi\neq0Fχ​=0 except with probability 1/p1/p1/p) is not formalized: with the γ\gammaγ-procedure for the bundling scalars, ∏iαi,bi=0\prod_i\alpha_{i,b_i}=0∏i​αi,bi​​=0 has probability about 2n/p2n/p2n/p, so (b) as printed is not exact, and Theorem 6 does not use it.

Preamble
import Mathlib
import Definitions.Def_GGHRSW_ColoredMatrix_Model
Formal statement
namespace GGHRSW.ColoredMatrix

theorem observation_4_2a (p : ℕ) [Fact p.Prime] (bp : BP) (ω : Sample p bp)
    (χ : Fin bp.ℓ → Bool) (h : bp.eval χ = true) :
    Fchi bp ω χ = 0 := by sorry

end GGHRSW.ColoredMatrix
Source
Garg, Gentry, Halevi, Raykova, Sahai and Waters, Candidate Indistinguishability Obfuscation and Functional Encryption for All Circuits, SIAM J. Comput. 45(3), 2016 (authors' version of July 21, 2013), p. 17, Section 4.2, observation (a)
Human review
  • Endorsed by Shuze Chen · Oct 10, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 10, 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 paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me