Documentation

CslibFrontier.Computability.Machines.Turing.MultiTape.BlockComputation.QueryReplaySupplierInit

Native initialization of the checked local gate supplier #

Initialization reads the previous/provider labels from the actual interpolation counter, computes the schedule's provider map, input origin and expected head directions, and checks all labels. Rejection retains an actual label word for paid FAIL output. Acceptance loads the assembled windows into the original-input replay kernel.

Turing.MultiTapePTM.BlockComputation.QueryReplay.Supplier.prepareWords takes the label words explicitly, for callers that keep them in a table rather than an interpolation counter; Turing.MultiTapePTM.BlockComputation.QueryReplay.Supplier.prepare reads them from the counter and calls it.

The input length is supplied as binary metadata; the caller must obtain it from the existing original-input length scanner. The interval address is local: source/horizon handling and implicit tree-path navigation are separate caller operations.

Args names the seven binary input/counter registers and WordArgs pairs the four metadata registers with explicit Assignments.Words. Their structure encodings retain the original field order and framing.

Input length, block width, schedule, interval, assignment limit/counter and padded stride.

  • inputLength : ℕ

    Original input length.

  • blockWidth : ℕ

    Simulation block width.

  • schedule : ℕ

    Enumerated schedule number.

  • interval : ℕ

    Interval being evaluated.

  • limit : ℕ

    Assignment limit whose binary storage pays for the padded source word.

  • counter : ℕ

    Current binary interpolation assignment.

  • stride : ℕ

    Padded number of bits between consecutive child labels.

theorem Turing.MultiTapePTM.BlockComputation.QueryReplay.Supplier.encArgs_stride_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → Args} :
MultiTapeTM.ComputableInSpace g✝ encIn✝ encArgs S✝ → MultiTapeTM.ComputableInSpace (fun (c : γ✝) => (g✝ c).stride) encIn✝ MultiTapeTM.encNat S✝
theorem Turing.MultiTapePTM.BlockComputation.QueryReplay.Supplier.encArgs_schedule_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → Args} :
MultiTapeTM.ComputableInSpace g✝ encIn✝ encArgs S✝ → MultiTapeTM.ComputableInSpace (fun (c : γ✝) => (g✝ c).schedule) encIn✝ MultiTapeTM.encNat S✝
theorem Turing.MultiTapePTM.BlockComputation.QueryReplay.Supplier.encArgs_counter_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → Args} :
MultiTapeTM.ComputableInSpace g✝ encIn✝ encArgs S✝ → MultiTapeTM.ComputableInSpace (fun (c : γ✝) => (g✝ c).counter) encIn✝ MultiTapeTM.encNat S✝
theorem Turing.MultiTapePTM.BlockComputation.QueryReplay.Supplier.encArgs_limit_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → Args} :
MultiTapeTM.ComputableInSpace g✝ encIn✝ encArgs S✝ → MultiTapeTM.ComputableInSpace (fun (c : γ✝) => (g✝ c).limit) encIn✝ MultiTapeTM.encNat S✝
theorem Turing.MultiTapePTM.BlockComputation.QueryReplay.Supplier.encArgs_mk_deg :
MultiTapeTM.ComputableInDegree (fun (p : ℕ × ℕ × ℕ × ℕ × ℕ × ℕ × ℕ) => { inputLength := p.1, blockWidth := p.2.1, schedule := p.2.2.1, interval := p.2.2.2.1, limit := p.2.2.2.2.1, counter := p.2.2.2.2.2.1, stride := p.2.2.2.2.2.2 }) encArgsFields encArgs 1 1
theorem Turing.MultiTapePTM.BlockComputation.QueryReplay.Supplier.encArgs_blockWidth_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → Args} :
MultiTapeTM.ComputableInSpace g✝ encIn✝ encArgs S✝ → MultiTapeTM.ComputableInSpace (fun (c : γ✝) => (g✝ c).blockWidth) encIn✝ MultiTapeTM.encNat S✝
theorem Turing.MultiTapePTM.BlockComputation.QueryReplay.Supplier.encArgs_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, limit := x4 x, counter := x5 x, stride := x6 x }) encIn encArgs (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.Supplier.encArgs_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, limit := x4 x, counter := x5 x, stride := x6 x }) encIn encArgs
theorem Turing.MultiTapePTM.BlockComputation.QueryReplay.Supplier.encArgs_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, limit := x4 x, counter := x5 x, stride := x6 x }) encIn encArgs budget
theorem Turing.MultiTapePTM.BlockComputation.QueryReplay.Supplier.encArgs_inputLength_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → Args} :
MultiTapeTM.ComputableInSpace g✝ encIn✝ encArgs S✝ → MultiTapeTM.ComputableInSpace (fun (c : γ✝) => (g✝ c).inputLength) encIn✝ MultiTapeTM.encNat S✝
theorem Turing.MultiTapePTM.BlockComputation.QueryReplay.Supplier.encArgs_interval_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → Args} :
MultiTapeTM.ComputableInSpace g✝ encIn✝ encArgs S✝ → MultiTapeTM.ComputableInSpace (fun (c : γ✝) => (g✝ c).interval) encIn✝ MultiTapeTM.encNat S✝

Binary input length, block width, schedule, interval, assignment limit, counter and stride, in that order; the first six fields are framed.

Input length, block width, schedule, interval, and the previous and provider label words.

  • inputLength : ℕ

    Original input length.

  • blockWidth : ℕ

    Simulation block width.

  • schedule : ℕ

    Enumerated schedule number.

  • interval : ℕ

    Interval being evaluated.

  • Previous control label and work-tape provider label words.

theorem Turing.MultiTapePTM.BlockComputation.QueryReplay.Supplier.encWordArgs_mk_budget {k : ℕ} {γ : Type} {encIn : γ ↪ List Bool} {budget x0 x1 x2 x3 : γ → ℕ} {x4 : γ → Assignments.Words k} (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 Assignments.encWords budget) :
MultiTapeTM.ComputableInSpace (fun (x : γ) => { inputLength := x0 x, blockWidth := x1 x, schedule := x2 x, interval := x3 x, words := x4 x }) encIn encWordArgs budget
theorem Turing.MultiTapePTM.BlockComputation.QueryReplay.Supplier.encWordArgs_words_budget {k : ℕ} {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → WordArgs k} :
MultiTapeTM.ComputableInSpace g✝ encIn✝ encWordArgs S✝ → MultiTapeTM.ComputableInSpace (fun (c : γ✝) => (g✝ c).words) encIn✝ Assignments.encWords S✝
theorem Turing.MultiTapePTM.BlockComputation.QueryReplay.Supplier.encWordArgs_mk_polyTime {k : ℕ} {γ : Type} {encIn : γ ↪ List Bool} {x0 x1 x2 x3 : γ → ℕ} {x4 : γ → Assignments.Words k} (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 Assignments.encWords) :
MultiTapeTM.ComputableInPolyTime (fun (x : γ) => { inputLength := x0 x, blockWidth := x1 x, schedule := x2 x, interval := x3 x, words := x4 x }) encIn encWordArgs
theorem Turing.MultiTapePTM.BlockComputation.QueryReplay.Supplier.encWordArgs_schedule_budget {k : ℕ} {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → WordArgs k} :
MultiTapeTM.ComputableInSpace g✝ encIn✝ encWordArgs S✝ → MultiTapeTM.ComputableInSpace (fun (c : γ✝) => (g✝ c).schedule) encIn✝ MultiTapeTM.encNat S✝

Binary input length, block width, schedule, interval and explicit label words, in that order; the first four fields are framed.

theorem Turing.MultiTapePTM.BlockComputation.QueryReplay.Supplier.encWordArgs_mk_deg {k : ℕ} :
MultiTapeTM.ComputableInDegree (fun (p : ℕ × ℕ × ℕ × ℕ × Assignments.Words k) => { inputLength := p.1, blockWidth := p.2.1, schedule := p.2.2.1, interval := p.2.2.2.1, words := p.2.2.2.2 }) encWordArgsFields encWordArgs 1 1
theorem Turing.MultiTapePTM.BlockComputation.QueryReplay.Supplier.encWordArgs_blockWidth_budget {k : ℕ} {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → WordArgs k} :
MultiTapeTM.ComputableInSpace g✝ encIn✝ encWordArgs S✝ → MultiTapeTM.ComputableInSpace (fun (c : γ✝) => (g✝ c).blockWidth) encIn✝ MultiTapeTM.encNat S✝
theorem Turing.MultiTapePTM.BlockComputation.QueryReplay.Supplier.encWordArgs_interval_budget {k : ℕ} {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → WordArgs k} :
MultiTapeTM.ComputableInSpace g✝ encIn✝ encWordArgs S✝ → MultiTapeTM.ComputableInSpace (fun (c : γ✝) => (g✝ c).interval) encIn✝ MultiTapeTM.encNat S✝
theorem Turing.MultiTapePTM.BlockComputation.QueryReplay.Supplier.encWordArgs_mk_inO {k : ℕ} {γ : Type} {encIn : γ ↪ List Bool} {x0 T0 S0 x1 T1 S1 x2 T2 S2 x3 T3 S3 : γ → ℕ} {x4 : γ → Assignments.Words k} {T4 S4 : γ → ℕ} (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 Assignments.encWords T4 S4) :
MultiTapeTM.ComputableInO (fun (x : γ) => { inputLength := x0 x, blockWidth := x1 x, schedule := x2 x, interval := x3 x, words := x4 x }) encIn encWordArgs (fun (x : γ) => T0 x + (T1 x + (T2 x + (T3 x + T4 x)))) fun (x : γ) => S0 x + (S1 x + (S2 x + (S3 x + S4 x)))
theorem Turing.MultiTapePTM.BlockComputation.QueryReplay.Supplier.encWordArgs_inputLength_budget {k : ℕ} {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → WordArgs k} :
MultiTapeTM.ComputableInSpace g✝ encIn✝ encWordArgs S✝ → MultiTapeTM.ComputableInSpace (fun (c : γ✝) => (g✝ c).inputLength) encIn✝ MultiTapeTM.encNat S✝

Initialize a total checked supplier from schedule data and explicit label words: the previous interval's label and the labels of the window providers.

Initialize a total checked supplier from actual assignment and schedule data: the label words are read from the assignment counter.

All preparation work from explicit label words uses native space linear in the binary metadata and the words. Original input symbols remain on the query input, outside this state.

All preparation work uses native space linear in actual binary metadata and assignment storage. Original input symbols remain on the query input, outside this state.