First-change labels bound the number of monotone patch histories
ProvedPvsNP.monotone_patch_history_cardcombinatoricscomplexity-theoryformal-verification
Fix the initial and final tables and a number of rounds. If a block is frozen once it differs from the initial value, the number of possible histories is at most the number of time labels to the power of the number of blocks differing between the endpoints.
Preamble
import Mathlib
Formal statement
theorem PvsNP.monotone_patch_history_card {Block Value : Type*}
[Fintype Block] [DecidableEq Value] (base final : Block → Value) (rounds : ℕ) :
Nat.card {h : Fin (rounds + 1) → Block → Value //
h 0 = base ∧ h (Fin.last rounds) = final ∧
∀ b i j, i ≤ j → h i b ≠ base b → h j b = h i b} ≤
(rounds + 1) ^ (Finset.univ.filter (fun b => final b ≠ base b)).card := by sorrySource
Entropy bound for iterated safe tiled replay on native compressed truth tables.