Documentation

CslibFrontier.Computability.Machines.Turing.MultiTape.Complexity.InSpace.Wozencraft

Wozencraft bit selection in native space #

An evaluated coefficient word is the first half of the inner code. The second half is its product with the field point. With a native multiplication using the retained field context, a binary half and bit index suffice to read a coordinate in linear space.

Main results #

structure Turing.Wozencraft.BitInput (Context : Type) :

One bit query to the Wozencraft inner code after polynomial evaluation.

  • context : Context

    Retained multiplication parameters, such as the modulus word.

  • point : List Bool

    The evaluation point as a coefficient word.

  • evaluation : List Bool

    The polynomial value at the point, in the same coefficient order.

  • half : ℕ

    Zero for the evaluation half, or one for the product half.

  • bit : ℕ

    The binary index within the selected half.

theorem Turing.Wozencraft.encBitInput_mk_budget {Context : Type} (encContext : Context ↪ List Bool) {γ : Type} {encIn : γ ↪ List Bool} {budget : γ → ℕ} {x0 : γ → Context} {x1 x2 : γ → List Bool} {x3 x4 : γ → ℕ} (h0 : MultiTapeTM.ComputableInSpace x0 encIn encContext budget) (h1 : MultiTapeTM.ComputableInSpace x1 encIn (MultiTapeTM.encList MultiTapeTM.encBool) budget) (h2 : MultiTapeTM.ComputableInSpace x2 encIn (MultiTapeTM.encList MultiTapeTM.encBool) budget) (h3 : MultiTapeTM.ComputableInSpace x3 encIn MultiTapeTM.encNat budget) (h4 : MultiTapeTM.ComputableInSpace x4 encIn MultiTapeTM.encNat budget) :
MultiTapeTM.ComputableInSpace (fun (x : γ) => { context := x0 x, point := x1 x, evaluation := x2 x, half := x3 x, bit := x4 x }) encIn (encBitInput encContext) budget
theorem Turing.Wozencraft.encBitInput_evaluation_inO {Context : Type} (encContext : Context ↪ List Bool) :
MultiTapeTM.ComputableInO BitInput.evaluation (encBitInput encContext) (MultiTapeTM.encList MultiTapeTM.encBool) (fun (a : BitInput Context) => ((encBitInput encContext) a).length) fun (a : BitInput Context) => ((encBitInput encContext) a).length
theorem Turing.Wozencraft.encBitInput_mk_polyTime {Context : Type} (encContext : Context ↪ List Bool) {γ : Type} {encIn : γ ↪ List Bool} {x0 : γ → Context} {x1 x2 : γ → List Bool} {x3 x4 : γ → ℕ} (h0 : MultiTapeTM.ComputableInPolyTime x0 encIn encContext) (h1 : MultiTapeTM.ComputableInPolyTime x1 encIn (MultiTapeTM.encList MultiTapeTM.encBool)) (h2 : MultiTapeTM.ComputableInPolyTime x2 encIn (MultiTapeTM.encList MultiTapeTM.encBool)) (h3 : MultiTapeTM.ComputableInPolyTime x3 encIn MultiTapeTM.encNat) (h4 : MultiTapeTM.ComputableInPolyTime x4 encIn MultiTapeTM.encNat) :
MultiTapeTM.ComputableInPolyTime (fun (x : γ) => { context := x0 x, point := x1 x, evaluation := x2 x, half := x3 x, bit := x4 x }) encIn (encBitInput encContext)
@[reducible, inline]
abbrev Turing.Wozencraft.encBitInputFields {Context : Type} (encContext : Context ↪ List Bool) :

The tuple of the fields of encBitInput.

theorem Turing.Wozencraft.encBitInput_mk_inO {Context : Type} (encContext : Context ↪ List Bool) {γ : Type} {encIn : γ ↪ List Bool} {x0 : γ → Context} {T0 S0 : γ → ℕ} {x1 : γ → List Bool} {T1 S1 : γ → ℕ} {x2 : γ → List Bool} {T2 S2 x3 T3 S3 x4 T4 S4 : γ → ℕ} (h0 : MultiTapeTM.ComputableInO x0 encIn encContext T0 S0) (h1 : MultiTapeTM.ComputableInO x1 encIn (MultiTapeTM.encList MultiTapeTM.encBool) T1 S1) (h2 : MultiTapeTM.ComputableInO x2 encIn (MultiTapeTM.encList MultiTapeTM.encBool) T2 S2) (h3 : MultiTapeTM.ComputableInO x3 encIn MultiTapeTM.encNat T3 S3) (h4 : MultiTapeTM.ComputableInO x4 encIn MultiTapeTM.encNat T4 S4) :
MultiTapeTM.ComputableInO (fun (x : γ) => { context := x0 x, point := x1 x, evaluation := x2 x, half := x3 x, bit := x4 x }) encIn (encBitInput encContext) (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.Wozencraft.encBitInput_evaluation_budget {Context : Type} (encContext : Context ↪ List Bool) {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → BitInput Context} :
MultiTapeTM.ComputableInSpace g✝ encIn✝ (encBitInput encContext) S✝ → MultiTapeTM.ComputableInSpace (fun (c : γ✝) => (g✝ c).evaluation) encIn✝ (MultiTapeTM.encList MultiTapeTM.encBool) S✝
theorem Turing.Wozencraft.encBitInput_bit_inO {Context : Type} (encContext : Context ↪ List Bool) :
MultiTapeTM.ComputableInO BitInput.bit (encBitInput encContext) MultiTapeTM.encNat (fun (a : BitInput Context) => ((encBitInput encContext) a).length) fun (a : BitInput Context) => ((encBitInput encContext) a).length
theorem Turing.Wozencraft.encBitInput_context_budget {Context : Type} (encContext : Context ↪ List Bool) {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → BitInput Context} :
MultiTapeTM.ComputableInSpace g✝ encIn✝ (encBitInput encContext) S✝ → MultiTapeTM.ComputableInSpace (fun (c : γ✝) => (g✝ c).context) encIn✝ encContext S✝
theorem Turing.Wozencraft.encBitInput_point_polyTime {Context : Type} (encContext : Context ↪ List Bool) {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {g✝ : γ✝ → BitInput Context} :
@[simp]
theorem Turing.Wozencraft.encBitInput_apply {Context : Type} (encContext : Context ↪ List Bool) (a : BitInput Context) :
(encBitInput encContext) a = (encBitInputFields encContext) (a.context, a.point, a.evaluation, a.half, a.bit)
theorem Turing.Wozencraft.encBitInput_fields_deg {Context : Type} (encContext : Context ↪ List Bool) :
MultiTapeTM.ComputableInDegree (fun (a : BitInput Context) => (a.context, a.point, a.evaluation, a.half, a.bit)) (encBitInput encContext) (encBitInputFields encContext) 1 1
theorem Turing.Wozencraft.encBitInput_point_budget {Context : Type} (encContext : Context ↪ List Bool) {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → BitInput Context} :
MultiTapeTM.ComputableInSpace g✝ encIn✝ (encBitInput encContext) S✝ → MultiTapeTM.ComputableInSpace (fun (c : γ✝) => (g✝ c).point) encIn✝ (MultiTapeTM.encList MultiTapeTM.encBool) S✝
theorem Turing.Wozencraft.encBitInput_half_inO {Context : Type} (encContext : Context ↪ List Bool) :
MultiTapeTM.ComputableInO BitInput.half (encBitInput encContext) MultiTapeTM.encNat (fun (a : BitInput Context) => ((encBitInput encContext) a).length) fun (a : BitInput Context) => ((encBitInput encContext) a).length
theorem Turing.Wozencraft.encBitInput_half_budget {Context : Type} (encContext : Context ↪ List Bool) {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → BitInput Context} :
MultiTapeTM.ComputableInSpace g✝ encIn✝ (encBitInput encContext) S✝ → MultiTapeTM.ComputableInSpace (fun (c : γ✝) => (g✝ c).half) encIn✝ MultiTapeTM.encNat S✝
theorem Turing.Wozencraft.encBitInput_half_length_le {Context : Type} (encContext : Context ↪ List Bool) (a : BitInput Context) :
theorem Turing.Wozencraft.encBitInput_context_inO {Context : Type} (encContext : Context ↪ List Bool) :
MultiTapeTM.ComputableInO BitInput.context (encBitInput encContext) encContext (fun (a : BitInput Context) => ((encBitInput encContext) a).length) fun (a : BitInput Context) => ((encBitInput encContext) a).length
theorem Turing.Wozencraft.encBitInput_bit_budget {Context : Type} (encContext : Context ↪ List Bool) {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → BitInput Context} :
MultiTapeTM.ComputableInSpace g✝ encIn✝ (encBitInput encContext) S✝ → MultiTapeTM.ComputableInSpace (fun (c : γ✝) => (g✝ c).bit) encIn✝ MultiTapeTM.encNat S✝
theorem Turing.Wozencraft.encBitInput_bit_polyTime {Context : Type} (encContext : Context ↪ List Bool) {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {g✝ : γ✝ → BitInput Context} :
MultiTapeTM.ComputableInPolyTime g✝ encIn✝ (encBitInput encContext) → MultiTapeTM.ComputableInPolyTime (fun (c : γ✝) => (g✝ c).bit) encIn✝ MultiTapeTM.encNat
theorem Turing.Wozencraft.encBitInput_context_polyTime {Context : Type} (encContext : Context ↪ List Bool) {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {g✝ : γ✝ → BitInput Context} :
MultiTapeTM.ComputableInPolyTime g✝ encIn✝ (encBitInput encContext) → MultiTapeTM.ComputableInPolyTime (fun (c : γ✝) => (g✝ c).context) encIn✝ encContext
theorem Turing.Wozencraft.encBitInput_point_inO {Context : Type} (encContext : Context ↪ List Bool) :
MultiTapeTM.ComputableInO BitInput.point (encBitInput encContext) (MultiTapeTM.encList MultiTapeTM.encBool) (fun (a : BitInput Context) => ((encBitInput encContext) a).length) fun (a : BitInput Context) => ((encBitInput encContext) a).length
theorem Turing.Wozencraft.encBitInput_context_length_le {Context : Type} (encContext : Context ↪ List Bool) (a : BitInput Context) :
(encContext a.context).length ≤ ((encBitInput encContext) a).length
theorem Turing.Wozencraft.encBitInput_evaluation_polyTime {Context : Type} (encContext : Context ↪ List Bool) {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {g✝ : γ✝ → BitInput Context} :
theorem Turing.Wozencraft.encBitInput_bit_length_le {Context : Type} (encContext : Context ↪ List Bool) (a : BitInput Context) :
theorem Turing.Wozencraft.encBitInput_mk_deg {Context : Type} (encContext : Context ↪ List Bool) :
MultiTapeTM.ComputableInDegree (fun (p : Context × List Bool × List Bool × ℕ × ℕ) => { context := p.1, point := p.2.1, evaluation := p.2.2.1, half := p.2.2.2.1, bit := p.2.2.2.2 }) (encBitInputFields encContext) (encBitInput encContext) 1 1
theorem Turing.Wozencraft.encBitInput_half_polyTime {Context : Type} (encContext : Context ↪ List Bool) {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {g✝ : γ✝ → BitInput Context} :
MultiTapeTM.ComputableInPolyTime g✝ encIn✝ (encBitInput encContext) → MultiTapeTM.ComputableInPolyTime (fun (c : γ✝) => (g✝ c).half) encIn✝ MultiTapeTM.encNat
def Turing.Wozencraft.encBitInput {Context : Type} (encContext : Context ↪ List Bool) :

Multiplication context, two framed Boolean lists and the binary half are framed fields. The binary bit index comes last.

Read one bit of the inner code in space linear in the encoded request, using the supplied multiplication certificate on the two coefficient words and their retained context.