Asymptotic composition with explicit intermediate storage #
The same realizing machine is normalized within the internal construction proof. Composition
first accounts for the stored intermediate word explicitly in ComputableInBigO. The charged
ComputableInO rule then absorbs that word using its separate output-growth bound.
The independent time and space functions are retained.
Adapted from #869 by worker-claude-tidyspike-c4b0c164.
Main results #
ComputableInBigO.comp: materializing composition with explicit intermediate storage.ComputableInO.comp: absorb intermediate storage using the output-growth bound.ComputableInO.ite: pay for the test and the branch actually taken.
Materializing composition stores the inner encoded output on a work tape. Its length is charged explicitly to workspace; no output-growth hypothesis is needed. The copying time is already bounded by the inner runtime. This is not the recomputing small-space composition rule.
Composition absorbs the stored intermediate word using the inner output-growth bound,
retaining time O(T₁ a + T₂ (g a)) and space O(S₁ a + S₂ (g a)).
Case distinction within the bounds of the test plus those of the branch taken, through the explicit-bound case-distinction combinator.