If halts on every input, simulate on input while counting its steps, and output that count when it halts. The resulting function is a total computable function. Consequently yes: one may take the exact running time,This construction does not promise a simple closed expression or a bound of any particular complexity class; it uses the promised totality of this particular machine.
For a machine computing a partial computable function, its exact halting-time function is still a partial computable function, with the same domain. A finite bound cannot cover a genuinely infinite computation. Even restricting attention to inputs on which halts, a total computable function bounding all halting times need not exist. In fact the precise characterization is the computable bound on halting time criterion:For the forward implication, compute and simulate for that many steps. If it has not halted, the proposed bound ensures that it never will. This decides the domain. Conversely, first decide whether is in the domain; return zero outside it and the simulated halting time inside it. This defines a total computable function satisfying the bound. The time needed to compute the bound itself is irrelevant to this argument.
A universal halting recognizer has undecidable domain by the halting problem, so it has no such total bound. On the other hand, a machine that immediately halts on even inputs and loops on odd inputs computes a nontotal partial computable function but has a constant bound on its halting times. Thus nontotality alone does not decide whether a total bound exists.
A propositional type is a set of propositional formulas; a Boolean valuation realizes it if every member is true, and omits it if at least one member is false. A consistent propositional theory locally omits if every formula which implies all members of modulo is refutable modulo . Equivalently, whenever is consistent, there is a for which is consistent. For a consistent propositional type, this says that it is a nonprincipal propositional type.
The extended omitting types theorem for propositional logic says that if a consistent locally omits each of a countable family , there is one Boolean valuation satisfying and omitting them all. It also works inside any prescribed finite condition consistent with .
To prove it, start with such a condition , taking when none is prescribed. At stage , choose such thatSuch a choice exists by local omission. More explicitly, failure would imply for every , hence , contradicting the stage invariant. Every finite subset of lies inside a consistent stage. By the propositional compactness theorem and the completeness theorem for propositional logic, it has a Boolean valuation. That Boolean valuation satisfies and makes the selected member of every type false. All types are therefore omitted simultaneously. No effective test for consistency is assumed, and the argument does not require the ambient propositional language to be countable. Only the family of omission requirements is countable.
Articles by others on the same topic
There are currently no matching articles.