Documentation

CslibFrontier.Crypto.Computational.FlipHeadBit

Flipping the leading bit of a bit string #

Shared bit-string helper Cslib.Crypto.flipHeadBit, used across second-preimage resistance separations (CslibFrontier/Crypto/Computational/SecondPreimageResistant/Relations.lean) and unauthenticated-IV counterexamples (CslibFrontier/Crypto/Computational/Encryption/EncryptThenMAC/PartialTag.lean).

Main definitions #

Main results #

Flip the first bit of a word (mapping [] to [true]), producing a distinct word with the same tail.