Documentation

Complexitylib.Classes.Randomized.ApproximateCounting.Weak.Hashing.Internal

Hashing-based weak approximate counting -- proof internals #

theorem Complexity.ApproximateCounting.Weak.hashingEstimate_lt_two_pow_add_four_internal {domainWidth errorBits : } (set : Finset (BitString domainWidth)) (seed : BitString (hashingSeedWidth domainWidth errorBits)) :
hashingEstimate set seed < 2 ^ (domainWidth + 4)
theorem Complexity.ApproximateCounting.Weak.eventProb_badLevelEvent_le_internal {domainWidth errorBits : } (set : Finset (BitString domainWidth)) (level : Level domainWidth) :
eventProb (badLevelEvent set level) 1 / 2 ^ errorBits
theorem Complexity.ApproximateCounting.Weak.eventProb_badHashingEvent_le_internal {domainWidth errorBits : } (set : Finset (BitString domainWidth)) :
eventProb (badHashingEvent set) (domainWidth + 4) / 2 ^ errorBits
theorem Complexity.ApproximateCounting.Weak.one_sub_error_le_eventProb_goodHashingEvent_internal {domainWidth errorBits : } (set : Finset (BitString domainWidth)) :
1 - (domainWidth + 4) / 2 ^ errorBits eventProb (goodHashingEvent set)