Documentation

Complexitylib.Algebraic.LowerBound.Cutwidth.Extractor.SourceReduction.Encoding.Internal

Exact binary enumeration and distinct positional advice #

The natural-number codec round trips every word and every bounded index. Taking and dropping the known outer width recovers the two components of the concatenated advice, so all sampler positions receive distinct advice.

theorem Algebraic.Cutwidth.Extractor.Internal.sourceReductionAdvice_length (outerBits candidateBits : ℕ) (position : Fin (2 ^ outerBits) × Fin (2 ^ candidateBits)) :
(sourceReductionAdvice outerBits candidateBits position).length = outerBits + candidateBits