The number of label patterns lifted from used buckets is a power of two
ProvedPvsNP.used_bucket_pattern_countcomplexity-theoryformal-verification
Assign a Boolean color to each used bucket and copy it to every index in that bucket. The number of distinct index-label patterns is two to the power of the number of used buckets.
Preamble
import Mathlib.Data.Fintype.BigOperators import Mathlib.Data.Finset.Max import Mathlib.Data.Finset.Prod import Lean.Elab.Tactic.Omega set_option autoImplicit false
Formal statement
theorem PvsNP.used_bucket_pattern_count {Index Bucket : Type}
[Fintype Index] [DecidableEq Bucket] [DecidableEq Index]
(bucket : Index → Bucket) :
let used := (Finset.univ : Finset Index).image bucket
let lift := fun colors : used → Bool => fun i : Index =>
colors ⟨bucket i, Finset.mem_image_of_mem _ (Finset.mem_univ i)⟩
((Finset.univ : Finset (used → Bool)).image lift).card = 2 ^ used.card := by sorrySource
Finite support accounting for succinct history updates.