Proof of `Basic Facts About the Hierarchies` (3rd statement)

groundedproofs/Lax496464Proofs/WHierarchy/Logic/McParam/Final.lean · lax-496464

What this proof establishes

Assuming the claims on the left, the claim on the right holds — checked by the archive's pipeline. Proof code is not displayed here.

Read the Lean proof on GitHub

Description

The parameter of p−MC(Φ)p-MC(Φ) is computable in polynomial time. An IMP+ program reads the word, skips the structure using its header (the number of symbols, the arities, the size, then per symbol the number of tuples, each block being that number times the arity long), and walks the prefix code of the formula to the end of the word, adding up the contribution of each tag; it runs in O(∣x∣)O(|x|) steps.