Algorithms & complexity
A Machine-Verified Natural Proofs Barrier in Lean 4
Working Paper · ZenodoFirst public
Overview
Formalizes the natural-proofs barrier under the assumption that pseudorandom function generators exist, together with Shannon’s counting argument.
Original abstract (English)
The natural proofs barrier (Razborov--Rudich 1997) has had no machine-verified formalization in any proof assistant. We formalize it in Lean 4: if pseudorandom function generators exist, then no natural combinatorial property is useful against P/poly. The formalization is approximately 400 lines of Lean 4 with no unresolved proof obligations. We identify definition choices that make the barrier proof mechanizable without probabilistic infrastructure and analyze why simpler alternatives fail. We also formalize the Shannon counting argument: most Boolean functions require large circuits.
Computer ScienceAlgorithms & complexityformal verificationLean 4natural proofs barriercircuit complexityRazborov-Rudichproof assistant