Case analysis on a component, within given bounds #
Case analysis on the second component of a pair, when that component is a tagged sum
(Turing.MultiTapeTM.encSum) or an option (Turing.MultiTapeTM.encOption). Each branch need
only be computable on its own case, and only the branch taken is charged, plus the length of the
encoded input. No default values of the component types are needed: the branches run on the
inputs of their case only.
Main results #
Turing.MultiTapeTM.ComputableInO.sumElimSnd: case analysis on a sum component.Turing.MultiTapeTM.ComputableInO.optionElimSnd: case analysis on an option component.
Case analysis on a sum component. If f is computable on the left case and g on the
right case, so is the case analysis, within the bounds of the branch taken plus the length of the
encoded input.
Case analysis on an option component. If f is computable on the first component in the
none case and g on the pair in the some case, so is the case analysis, within the bounds of
the branch taken plus the length of the encoded input.