Documentation

DescriptiveComplexity.Computability.CodeHaltComplete

RE is exactly recursive enumerability #

The three readings of the one construction of DescriptiveComplexity.Problems.CodeHalt.Hardness, the ordered first-order reduction of any semi-decidable problem to DescriptiveComplexity.CODEHALT.

CODEHALT is RE-hard. Finite satisfiability is RE-hard and recursively enumerable, so it reduces to CODEHALT by the construction of DescriptiveComplexity.orderedReduction_codehalt, and hardness travels forward.

Dependency graph
Dependency graph

RE is exactly the recursively enumerable properties of finite structures. A problem is ∃SO[new]-definable exactly when the set of its concrete instances is semi-decidable in Mathlib's sense.

Dependency graph

RE is not closed under complement. With the equivalence above, this is Post's theorem applied to the undecidability of CODEHALT: a problem and its complement both recursively enumerable would be decidable.

Dependency graph