Documentation

CslibFrontier.Computability.Machines.Turing.MultiTape.Encodings.Decoder.Sum

Total decoding of tagged sums #

The first bit chooses the summand and the remainder is decoded by its supplied decoder. This topic module keeps tagged-sum construction out of the lower-fan-out basic decoder module.

Main definitions #

Main results #

The decoder's Decoder.decode_enc field proves that it retracts encSum.

def Turing.MultiTapeTM.Decoder.sum {β₁ β₂ : Type} {enc₁ : β₁ ↪ List Bool} {enc₂ : β₂ ↪ List Bool} (D₁ : Decoder enc₁) (D₂ : Decoder enc₂) :
Decoder (encSum enc₁ enc₂)

Tagged sums are decoded according to their first bit. Empty and malformed words select the left summand, consistently with Decoder.bool.