Documentation

Complexitylib.Circuits.Encoding.FixedWidth.Codec.Internal

Fixed-width binary circuit-description codec -- proof internals #

Internal exact equivalence between gate slots and their fixed-width binary words.

Equations
  • One or more equations did not get rendered due to their size.
Instances For
    theorem Complexity.CircuitCode.FixedWidth.Description.countBits_encode_internal {inputWidth gateBound : } (description : Description inputWidth gateBound) :
    theorem Complexity.CircuitCode.FixedWidth.Description.slotBits_encode_internal {inputWidth gateBound : } (description : Description inputWidth gateBound) (slot : Fin gateBound) :
    slotBits description.encode slot = (description.slots slot).encode
    theorem Complexity.CircuitCode.FixedWidth.Description.countValue_encode_internal {inputWidth gateBound : } (description : Description inputWidth gateBound) :
    countValue description.encode = description.gateCountNat
    theorem Complexity.CircuitCode.FixedWidth.Description.decode?_encode_internal {inputWidth gateBound : } (description : Description inputWidth gateBound) :
    decode? description.encode = some description
    theorem Complexity.CircuitCode.FixedWidth.Description.encode_eq_of_decode?_eq_some_internal {inputWidth gateBound : } {code : BitString (codeWidth inputWidth gateBound)} {description : Description inputWidth gateBound} (hdecode : decode? code = some description) :
    description.encode = code
    theorem Complexity.CircuitCode.FixedWidth.Description.decode?_eq_some_iff_internal {inputWidth gateBound : } (code : BitString (codeWidth inputWidth gateBound)) (description : Description inputWidth gateBound) :
    decode? code = some description description.encode = code