Documentation

CslibFrontier.Computability.Circuit.Arithmetic.Separation.Uni.Exact

The universal automaton is exact #

A weighted pointer machine is simulated by a weighted automaton on tapes (M1's tape program Uni.emX, with its series from Uni.runs_X). Its value at the input bits, counting the tape contents of total length at most tU …, is the sum of the weights of the accepting runs of the machine, if these are at most Tm steps long (Uni.val_emX_eq_sum_wts). For the universal machine on a plain instance z of time τ, the runs have O(|z| + τ) steps, so the series has the value pv θ z on tape contents of length O((|z| + τ) lg (|z| + τ) ^ 2) (Uni.exists_series_universal).

Main results #

References #

theorem Cslib.Circuits.Arithmetic.Separation.Uni.val_emX_eq_sum_wts {A : Type} [CommRing A] {M K : Type} [Finite M] [Fintype K] [DecidableEq K] {P : Mach A M K} {S₀ : Automata.Weighted.Series A (Zc K × Sy M K)} (h : Tape.IsRuns S₀ (emX P) fun (x : XP P) => (List.map (fun (s : P.Rl × List (Fin 9 → Bool)) => P.wt s.1) x.steps).prod) {bits : List Bool} (R : Finset (List P.Step)) (hR : ∀ (tr : List P.Step), tr ∈ R ↔ Mach.GV (σi P bits) tr) {Tm : ℕ} (hTm : ∀ tr ∈ R, tr.length ≤ Tm) :
(Tape.Bdd (tU (Fintype.card (Bl K)) Tm (Tm + 1).size) S₀ fun (x : Unit) => List.map Sy.bit bits) ∧ (Tape.val (tU (Fintype.card (Bl K)) Tm (Tm + 1).size) S₀ fun (x : Unit) => List.map Sy.bit bits) = ∑ tr ∈ R, Mach.wts tr

The tape program of a pointer machine is exact. If the accepting runs from the input bits are the traces in R, each of at most Tm steps, then the tape contents of the series of the program have total length at most tU … Tm …, and its value there is the sum of the weights of the runs.

theorem Cslib.Circuits.Arithmetic.Separation.Uni.exists_runs_universalMachine {A : Type} [CommRing A] {θ : List Bool → A} {supp : Finset (List Bool)} (hθ : ∀ q ∉ supp, θ q = 0) {τ : ℕ} {z : Interpreter.Tree} (h : Interpreter.Plain θ τ z) :
∃ (R : Finset (List (universalMachine θ supp).Step)), (∀ (tr : List (universalMachine θ supp).Step), tr ∈ R ↔ Mach.GV (initState supp z) tr) ∧ ∑ tr ∈ R, Mach.wts tr = Interpreter.pv θ z ∧ ∀ tr ∈ R, tr.length ≤ runLength supp τ z.size

The accepting runs of the universal machine on a plain instance z: a finite set of traces from the initial state, whose weights sum to pv θ z, each of O(|z| + τ) steps.

theorem Cslib.Circuits.Arithmetic.Separation.Uni.exists_series_universal {A : Type} [CommRing A] (θ : List Bool → A) (supp : Finset (List Bool)) (hθ : ∀ q ∉ supp, θ q = 0) :
∃ (S₀ : Automata.Weighted.Series A (Zc RecKind × Sy (Mode (Name supp)) RecKind)), Automata.Weighted.RatLe (dimX (universalMachine θ supp)) S₀ ∧ ∃ (C : ℕ), ∀ (τ : ℕ) (z : Interpreter.Tree), Interpreter.Plain θ τ z → (Tape.Bdd (C * ((z.size + τ + 2) * Interpreter.lg (z.size + τ + 2) ^ 2)) S₀ fun (x : Unit) => List.map Sy.bit (Interpreter.tbits z)) ∧ (Tape.val (C * ((z.size + τ + 2) * Interpreter.lg (z.size + τ + 2) ^ 2)) S₀ fun (x : Unit) => List.map Sy.bit (Interpreter.tbits z)) = Interpreter.pv θ z

The universal automaton is exact, in quasi-linear time. One series of dimension dimX (universalMachine θ supp) has, at the word of every plain instance z of time τ, the value pv θ z, counting tape contents of total length O((|z| + τ) lg (|z| + τ) ^ 2).