Documentation

Complexitylib.Interop.Mathlib.TM2.FP.Internal.Compiler

Canonical FP membership from a Mathlib TM2 string certificate #

Compile the source once and supply its exact stack-track input through the marked copier. The target computes reversal composed with the source function and reversal. Closure of FP under composition removes those representation conventions. A source stack-growth bound supplies the required output length.

theorem Complexity.MathlibTM2.mem_FP_proof {f : List Bool → List Bool} (computer : Turing.TM2ComputableInPolyTime id id f) [(k : computer.tm.K) → Fintype (computer.tm.Γ k)] :