Documentation

Complexitylib.Circuits.Encoding.Machine.Core

Verified serialized-circuit evaluator #

This module exposes audited staged-core and end-to-end contracts for the executable three-work-tape circuit-family evaluator. The total machine validates its outer pair, defaults every malformed encoding to zero, and runs within a concrete quadratic bound.

Main results #

theorem Complexity.CircuitCode.Machine.evalFamilyCoreTM_hoareTime (codeBits inputBits : List Bool) (initialInput : Tape) :
evalFamilyCoreTM.HoareTime (FamilyCorePre codeBits inputBits initialInput) (FamilyCorePost codeBits inputBits initialInput) (evalFamilyCoreTime codeBits.length inputBits.length)

The streaming core evaluates every staged tagged-family code within the uniform quadratic budget. Malformed codes halt with the explicit zero verdict.

The total evaluator validates, stages, and evaluates every raw input within the concrete end-to-end budget. Malformed outer pairs and malformed inner codes both halt with the default zero verdict.

The total serialized evaluator decides exactly the language of successful paired family-code evaluations.

The concrete end-to-end evaluator budget is quadratic in the raw serialized input length.