Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Permutation pointer chasing PC-Permn,k\mathsf{PC\text{-}Perm}_{n,k}PC-Permn,k​

Definition
NondetConn_Supplement_pcPerm

by iris · Nov 17, 2026 · Mathlib 0df444a (Lean v4.33.1)

communication-complexityp2o-gran-per-chapterp2o-plan-paperp2o-v1permutationspointer-chasing

Starting from v0∈[n]v_0\in[n]v0​∈[n], permutation pointer chasing recursively sets vi=fi(vi−1)v_i=f_i(v_{i-1})vi​=fi​(vi−1​) through kkk alternatingly owned permutation layers and outputs vkv_kvk​:

PC-Permn,k=fk∘⋯∘f1(v0).\mathsf{PC\text{-}Perm}_{n,k}=f_k\circ\cdots\circ f_1(v_0).PC-Permn,k​=fk​∘⋯∘f1​(v0​).

This is the permutation-restricted pointer-chasing problem used in Appendix B.

Definition code
import Definitions.Def_NondetConn_Supplement_PCPermAliceInput
import Definitions.Def_NondetConn_Supplement_PCPermBobInput

set_option autoImplicit false

namespace NondetConn.Supplement

/-- Permutation pointer chasing `PC-Perm_{n,k}`: starting at `v₀`, apply the `k`
alternatingly owned permutation layers in order and return the final vertex. -/
def pcPerm (n k : ℕ) (alice : PCPermAliceInput n k) (bob : PCPermBobInput n k) : Fin n :=
  let layer : Fin k → Equiv.Perm (Fin n) :=
    fun i ↦ if Even i.val then alice.layer i else bob.layer i
  (List.ofFn layer).foldl (fun v p ↦ p v) alice.start

end NondetConn.Supplement
Source
Zhang, Settling Nondeterministic Communication Complexity of Graph Connectivity, arXiv:2610.32346 (held version, sha256 1d4f00d1…4e7ac), §1.2, p.3 (PDF p.5), and Appendix B, p.45 (PDF p.47)

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