Documentation

CslibFrontier.Computability.Machines.Turing.MultiTape.BlockComputation.QueryReplayAssignments

Native replay labels from packed assignments #

The Boolean block gate has one preceding-control child followed by three providers for each work tape. These words are sliced from the actual binary interpolation counter, padded using its explicit loop limit. No truth table or interval-index list is constructed. The number of children is fixed by the simulated machine; stride and label width remain runtime inputs.

Acquiring these words does not assert they are successful block labels: the checked provider parser still validates every word, including words at unused ports.

Args names the four binary registers and Words separates the previous control label from the provider family. Their structure encodings retain the original field order and framing.

Explicit assignment limit, counter, padded child stride and actual label width.

  • 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.

  • width : ℕ

    Number of bits requested from each child label.

theorem Turing.MultiTapePTM.BlockComputation.QueryReplay.Assignments.encArgs_mk_inO {γ : Type} {encIn : γ ↪ List Bool} {x0 T0 S0 x1 T1 S1 x2 T2 S2 x3 T3 S3 : γ → ℕ} (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) :
MultiTapeTM.ComputableInO (fun (x : γ) => { limit := x0 x, counter := x1 x, stride := x2 x, width := x3 x }) encIn encArgs (fun (x : γ) => T0 x + (T1 x + (T2 x + T3 x))) fun (x : γ) => S0 x + (S1 x + (S2 x + S3 x))
theorem Turing.MultiTapePTM.BlockComputation.QueryReplay.Assignments.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.Assignments.encArgs_mk_budget {γ : Type} {encIn : γ ↪ List Bool} {budget x0 x1 x2 x3 : γ → ℕ} (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) :
MultiTapeTM.ComputableInSpace (fun (x : γ) => { limit := x0 x, counter := x1 x, stride := x2 x, width := x3 x }) encIn encArgs budget
theorem Turing.MultiTapePTM.BlockComputation.QueryReplay.Assignments.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✝

Binary limit, counter, stride and width, in that order; the first three fields are framed.

theorem Turing.MultiTapePTM.BlockComputation.QueryReplay.Assignments.encArgs_mk_deg :
MultiTapeTM.ComputableInDegree (fun (p : ℕ × ℕ × ℕ × ℕ) => { limit := p.1, counter := p.2.1, stride := p.2.2.1, width := p.2.2.2 }) encArgsFields encArgs 1 1
theorem Turing.MultiTapePTM.BlockComputation.QueryReplay.Assignments.encArgs_width_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → Args} :
MultiTapeTM.ComputableInSpace g✝ encIn✝ encArgs S✝ → MultiTapeTM.ComputableInSpace (fun (c : γ✝) => (g✝ c).width) encIn✝ MultiTapeTM.encNat S✝
theorem Turing.MultiTapePTM.BlockComputation.QueryReplay.Assignments.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✝

Previous label followed by the fixed family of work-tape provider labels.

theorem Turing.MultiTapePTM.BlockComputation.QueryReplay.Assignments.encWords_mk_inO {k : ℕ} {γ : Type} {encIn : γ ↪ List Bool} {x0 : γ → List Bool} {T0 S0 : γ → ℕ} {x1 : γ → Providers.Labels.ProviderWords k} {T1 S1 : γ → ℕ} (h0 : MultiTapeTM.ComputableInO x0 encIn MultiTapeTM.encBits T0 S0) (h1 : MultiTapeTM.ComputableInO x1 encIn Providers.Labels.encProviderWords T1 S1) :
MultiTapeTM.ComputableInO (fun (x : γ) => { previous := x0 x, providers := x1 x }) encIn encWords (fun (x : γ) => T0 x + T1 x) fun (x : γ) => S0 x + S1 x

Framed raw previous-label bits followed by the fixed provider-family encoding.

theorem Turing.MultiTapePTM.BlockComputation.QueryReplay.Assignments.encWords_providers_budget {k : ℕ} {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → Words k} :
theorem Turing.MultiTapePTM.BlockComputation.QueryReplay.Assignments.encWords_mk_budget {k : ℕ} {γ : Type} {encIn : γ ↪ List Bool} {budget : γ → ℕ} {x0 : γ → List Bool} {x1 : γ → Providers.Labels.ProviderWords k} (h0 : MultiTapeTM.ComputableInSpace x0 encIn MultiTapeTM.encBits budget) (h1 : MultiTapeTM.ComputableInSpace x1 encIn Providers.Labels.encProviderWords budget) :
MultiTapeTM.ComputableInSpace (fun (x : γ) => { previous := x0 x, providers := x1 x }) encIn encWords budget
theorem Turing.MultiTapePTM.BlockComputation.QueryReplay.Assignments.encWords_previous_budget {k : ℕ} {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → Words k} :
MultiTapeTM.ComputableInSpace g✝ encIn✝ encWords S✝ → MultiTapeTM.ComputableInSpace (fun (c : γ✝) => (g✝ c).previous) encIn✝ MultiTapeTM.encBits S✝

The first child is the preceding control; subsequent children are ordered by work tape, then by the three neighboring blocks.

Label acquisition is native and linear in the actual binary assignment storage. The constant depends only on the fixed number of simulated work tapes.