Documentation

CslibFrontier.Computability.Machines.Turing.MultiTape.Complexity.PolyTime.Sigma

Polynomial-time views of dependent pairs #

The polynomial-time forms of the degree-one views in CslibFrontier.Computability.Machines.Turing.MultiTape.Complexity.Degree.Sigma: a dependent pair under a uniform family enc i = e ∘ code i read as the plain pair of its index and code (sigmaView), after which the pair projections read either part, and the index under any family (sigmaFst).

Main results #

theorem Turing.MultiTapeTM.ComputableInPolyTime.sigmaView {ι γ : Type} {β : ι → Type} {enc : (i : ι) → β i ↪ List Bool} (encI : ι ↪ List Bool) (e : γ ↪ List Bool) (code : (i : ι) → β i → γ) (h : ∀ (i : ι) (b : β i), (enc i) b = e (code i b)) :
ComputableInPolyTime (fun (x : (i : ι) × β i) => (x.fst, code x.fst x.snd)) (encSigma encI enc) (encPair encI e)

Read a dependent pair, encoded by a uniform family enc i = e ∘ code i, as the plain pair of its index and code. The encoded words are the same.

theorem Turing.MultiTapeTM.ComputableInPolyTime.sigmaFst {ι : Type} {β : ι → Type} (encI : ι ↪ List Bool) (enc : (i : ι) → β i ↪ List Bool) :

The index of a dependent pair, under any family of encodings.