Documentation

CslibFrontier.Computability.Machines.Turing.MultiTape.BlockComputation.GateInterpolation

Native interpolation with checked block-table calls #

The interpolation loop retains actual binary simulation metadata and asks the checked numeric supplier for one table value at each assignment counter. The supplier receives the loop's stored limit and current counter, rather than a precomputed table. The original input remains the shared query input throughout both machines.

The fixed template initializes only an unused default state. Every runtime parameter is read from an explicitly supplied caller state; changing the template does not affect runFrom.

Input length, block width, schedule, interval, chunk width/index and padded child stride.

  • inputLength : ℕ

    Original input length.

  • blockWidth : ℕ

    Simulation block width.

  • schedule : ℕ

    Enumerated schedule number.

  • interval : ℕ

    Interval being evaluated.

  • chunkWidth : ℕ

    Number of bits in a packed chunk.

  • chunk : ℕ

    Requested output chunk.

  • stride : ℕ

    Padded child stride.

theorem Turing.MultiTapePTM.BlockComputation.QueryReplay.Interpolation.encContext_inputLength_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → Context} :
MultiTapeTM.ComputableInSpace g✝ encIn✝ encContext S✝ → MultiTapeTM.ComputableInSpace (fun (c : γ✝) => (g✝ c).inputLength) encIn✝ MultiTapeTM.encNat S✝
theorem Turing.MultiTapePTM.BlockComputation.QueryReplay.Interpolation.encContext_schedule_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → Context} :
MultiTapeTM.ComputableInSpace g✝ encIn✝ encContext S✝ → MultiTapeTM.ComputableInSpace (fun (c : γ✝) => (g✝ c).schedule) encIn✝ MultiTapeTM.encNat S✝
theorem Turing.MultiTapePTM.BlockComputation.QueryReplay.Interpolation.encContext_stride_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → Context} :
MultiTapeTM.ComputableInSpace g✝ encIn✝ encContext S✝ → MultiTapeTM.ComputableInSpace (fun (c : γ✝) => (g✝ c).stride) encIn✝ MultiTapeTM.encNat S✝
theorem Turing.MultiTapePTM.BlockComputation.QueryReplay.Interpolation.encContext_blockWidth_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → Context} :
MultiTapeTM.ComputableInSpace g✝ encIn✝ encContext S✝ → MultiTapeTM.ComputableInSpace (fun (c : γ✝) => (g✝ c).blockWidth) encIn✝ MultiTapeTM.encNat S✝
theorem Turing.MultiTapePTM.BlockComputation.QueryReplay.Interpolation.encContext_chunkWidth_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → Context} :
MultiTapeTM.ComputableInSpace g✝ encIn✝ encContext S✝ → MultiTapeTM.ComputableInSpace (fun (c : γ✝) => (g✝ c).chunkWidth) encIn✝ MultiTapeTM.encNat S✝

Binary supplier metadata, in the original seven-field framed order.

theorem Turing.MultiTapePTM.BlockComputation.QueryReplay.Interpolation.encContext_mk_deg :
MultiTapeTM.ComputableInDegree (fun (p : ℕ × ℕ × ℕ × ℕ × ℕ × ℕ × ℕ) => { inputLength := p.1, blockWidth := p.2.1, schedule := p.2.2.1, interval := p.2.2.2.1, chunkWidth := p.2.2.2.2.1, chunk := p.2.2.2.2.2.1, stride := p.2.2.2.2.2.2 }) encContextFields encContext 1 1
theorem Turing.MultiTapePTM.BlockComputation.QueryReplay.Interpolation.encContext_mk_inO {γ : Type} {encIn : γ ↪ List Bool} {x0 T0 S0 x1 T1 S1 x2 T2 S2 x3 T3 S3 x4 T4 S4 x5 T5 S5 x6 T6 S6 : γ → ℕ} (h0 : MultiTapeTM.ComputableInO x0 encIn MultiTapeTM.encNat T0 S0) (h1 : MultiTapeTM.ComputableInO x1 encIn MultiTapeTM.encNat T1 S1) (h2 : MultiTapeTM.ComputableInO x2 encIn MultiTapeTM.encNat T2 S2) (h3 : MultiTapeTM.ComputableInO x3 encIn MultiTapeTM.encNat T3 S3) (h4 : MultiTapeTM.ComputableInO x4 encIn MultiTapeTM.encNat T4 S4) (h5 : MultiTapeTM.ComputableInO x5 encIn MultiTapeTM.encNat T5 S5) (h6 : MultiTapeTM.ComputableInO x6 encIn MultiTapeTM.encNat T6 S6) :
MultiTapeTM.ComputableInO (fun (x : γ) => { inputLength := x0 x, blockWidth := x1 x, schedule := x2 x, interval := x3 x, chunkWidth := x4 x, chunk := x5 x, stride := x6 x }) encIn encContext (fun (x : γ) => T0 x + (T1 x + (T2 x + (T3 x + (T4 x + (T5 x + T6 x)))))) fun (x : γ) => S0 x + (S1 x + (S2 x + (S3 x + (S4 x + (S5 x + S6 x)))))
theorem Turing.MultiTapePTM.BlockComputation.QueryReplay.Interpolation.encContext_interval_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → Context} :
MultiTapeTM.ComputableInSpace g✝ encIn✝ encContext S✝ → MultiTapeTM.ComputableInSpace (fun (c : γ✝) => (g✝ c).interval) encIn✝ MultiTapeTM.encNat S✝
theorem Turing.MultiTapePTM.BlockComputation.QueryReplay.Interpolation.encContext_mk_polyTime {γ : Type} {encIn : γ ↪ List Bool} {x0 x1 x2 x3 x4 x5 x6 : γ → ℕ} (h0 : MultiTapeTM.ComputableInPolyTime x0 encIn MultiTapeTM.encNat) (h1 : MultiTapeTM.ComputableInPolyTime x1 encIn MultiTapeTM.encNat) (h2 : MultiTapeTM.ComputableInPolyTime x2 encIn MultiTapeTM.encNat) (h3 : MultiTapeTM.ComputableInPolyTime x3 encIn MultiTapeTM.encNat) (h4 : MultiTapeTM.ComputableInPolyTime x4 encIn MultiTapeTM.encNat) (h5 : MultiTapeTM.ComputableInPolyTime x5 encIn MultiTapeTM.encNat) (h6 : MultiTapeTM.ComputableInPolyTime x6 encIn MultiTapeTM.encNat) :
MultiTapeTM.ComputableInPolyTime (fun (x : γ) => { inputLength := x0 x, blockWidth := x1 x, schedule := x2 x, interval := x3 x, chunkWidth := x4 x, chunk := x5 x, stride := x6 x }) encIn encContext
theorem Turing.MultiTapePTM.BlockComputation.QueryReplay.Interpolation.encContext_mk_budget {γ : Type} {encIn : γ ↪ List Bool} {budget x0 x1 x2 x3 x4 x5 x6 : γ → ℕ} (h0 : MultiTapeTM.ComputableInSpace x0 encIn MultiTapeTM.encNat budget) (h1 : MultiTapeTM.ComputableInSpace x1 encIn MultiTapeTM.encNat budget) (h2 : MultiTapeTM.ComputableInSpace x2 encIn MultiTapeTM.encNat budget) (h3 : MultiTapeTM.ComputableInSpace x3 encIn MultiTapeTM.encNat budget) (h4 : MultiTapeTM.ComputableInSpace x4 encIn MultiTapeTM.encNat budget) (h5 : MultiTapeTM.ComputableInSpace x5 encIn MultiTapeTM.encNat budget) (h6 : MultiTapeTM.ComputableInSpace x6 encIn MultiTapeTM.encNat budget) :
MultiTapeTM.ComputableInSpace (fun (x : γ) => { inputLength := x0 x, blockWidth := x1 x, schedule := x2 x, interval := x3 x, chunkWidth := x4 x, chunk := x5 x, stride := x6 x }) encIn encContext budget
theorem Turing.MultiTapePTM.BlockComputation.QueryReplay.Interpolation.encContext_chunk_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → Context} :
MultiTapeTM.ComputableInSpace g✝ encIn✝ encContext S✝ → MultiTapeTM.ComputableInSpace (fun (c : γ✝) => (g✝ c).chunk) encIn✝ MultiTapeTM.encNat S✝
@[reducible, inline]

A running interpolation caller, or that caller suspended beside one table supplier.

Initialize the next actual table request from stored metadata, limit and counter.

Default metadata affects only init; actual interpolation states are prepared separately.

Fresh caller counters for actual prepared parameters, rather than the template metadata.

One fixed machine executes interpolation using actual runtime parameters in its state.

Both the suspended caller and the complete numeric supplier storage are explicit.

Queries include native initialization of the requested checked table call.

The modular sum remains in the returned caller state, with an empty finish stream.

The fixed template has no effect on executions from actual runtime caller states.