Anti-checker survivor counts -- proof internals #
theorem
Complexity.AntiChecker.survivorCount_cons_internal
{arity : ℕ}
(target : BitString arity → Bool)
(input : BitString arity)
(inputs : List (BitString arity))
(codes : Finset (List Bool))
:
survivorCount target (input :: inputs) codes = {x ∈ ConsistentCodes target inputs codes | CodeAgreesAt target x input}.card
theorem
Complexity.AntiChecker.candidateSurvivorCount_nil_internal
{arity threshold : ℕ}
(target : BitString arity → Bool)
:
theorem
Complexity.AntiChecker.candidateSurvivorCount_cons_internal
{arity threshold : ℕ}
(target : BitString arity → Bool)
(input : BitString arity)
(inputs : List (BitString arity))
:
candidateSurvivorCount target threshold (input :: inputs) = {x ∈ ConsistentCodes target inputs (candidateCodes arity threshold) | CodeAgreesAt target x input}.card