Parameterized resource bounds for finite tuples #
Finite tuples use encPi, so reading, gathering, and updating fixed entries costs linear time
and space in the complete encoded input. Dimensions and index maps are fixed independently of
the input; the hidden machine constants may depend on them. Construction retains the original
input for each component and sums the supplied time and space bounds. These are asymptotic
native-machine bounds, including encoded output size, not exact transition counts.
Main results #
Turing.MultiTapeTM.ComputableInO.ofFn,.pi: construct fixed finite families with arbitrary component bounds.Turing.MultiTapeTM.ComputableInO.pi_apply,.pi_gather,.pi_update: linear fixed tuple selection, gathering (including repeated indices), and update.
References #
Uses Christian Reitwiessner's native degree/resource calculus and list primitives.
The finite-family construction follows CslibFrontier/PolyTime/Pi.lean, which credits the
cslib crypto branch at 5ff69ca93402e7c947208dc56396d6d86203ccd8.
Construct a fixed-length list, charging each computation and retention of the input.
Construct a finite tuple from arbitrary resource certificates for its entries.
Replace one fixed entry of a stored tuple with a stored value, preserving all other entries.