Counting small unions of walks on reversible ports
ProvedPvsNP.PortWalkCatalog.card_small_reversible_walk_unionscombinatoricscomplexity-theoryformal-verificationgraph-theory
Consider a finite vertex set V and finite port set A, where every edge selected by a port admits a reverse port. Any family of nonempty subsets, each of size at most ell and expressible as the union of the ranges of at most t finite walks, contains at most |V|^t (|A|+2)^(2 ell) distinct subsets. The walks may have arbitrary length and revisit vertices.
Preamble
import Mathlib
Formal statement
theorem PvsNP.PortWalkCatalog.card_small_reversible_walk_unions {V Port : Type} [DecidableEq V] [Fintype V] [Fintype Port] [Nonempty V]
(step : V → Port → V) (reversible : ∀ v p, ∃ q, step (step v p) q = v)
(catalog : Finset (Finset V)) (t ell : ℕ)
(witness : ∀ S ∈ catalog, S.Nonempty ∧ S.card ≤ ell ∧
∃ walks : List (V × List Port), walks.length ≤ t ∧
(walks.flatMap (fun walk => walk.2.scanl step walk.1)).toFinset = S) :
catalog.card ≤ Fintype.card V ^ t * (Fintype.card Port + 2) ^ (2 * ell) := by sorrySource
A finite coding lemma for the expander-walk address schedule.