Documentation

CslibFrontier.Algorithms.Reachability.MinIsolation.Generator.WeightDimensions

Native Justesen weights from binary dimensions #

The request frames binary graph dimensions and vertex coordinates ahead of the raw seed bits. One native initializer prepares the field data and returns the offset of the seed on the original input in workspace linear in the header length. The seed suffix may have any length. The compiled pass reads through this offset and computes the weight in space linear in the encoded graph dimensions on canonical inputs, supplying the generator space bound in [Hoza2026NLUL, Theorem 1.3].

Graph dimensions and the coordinates of the vertex whose weight is requested.

  • width : ℕ

    Number of columns in a layer.

  • horizon : ℕ

    Last layer of the graph.

  • layer : ℕ

    Layer of the requested vertex.

  • column : ℕ

    Column of the requested vertex.

theorem Cslib.Reachability.Hoza.SeedWeight.Dimensions.encHeader_mk_inO {γ : Type} {encIn : γ ↪ List Bool} {x0 T0 S0 x1 T1 S1 x2 T2 S2 x3 T3 S3 : γ → ℕ} (h0 : Turing.MultiTapeTM.ComputableInO x0 encIn Turing.MultiTapeTM.encNat T0 S0) (h1 : Turing.MultiTapeTM.ComputableInO x1 encIn Turing.MultiTapeTM.encNat T1 S1) (h2 : Turing.MultiTapeTM.ComputableInO x2 encIn Turing.MultiTapeTM.encNat T2 S2) (h3 : Turing.MultiTapeTM.ComputableInO x3 encIn Turing.MultiTapeTM.encNat T3 S3) :
Turing.MultiTapeTM.ComputableInO (fun (x : γ) => { width := x0 x, horizon := x1 x, layer := x2 x, column := x3 x }) encIn encHeader (fun (x : γ) => T0 x + (T1 x + (T2 x + T3 x))) fun (x : γ) => S0 x + (S1 x + (S2 x + S3 x))
theorem Cslib.Reachability.Hoza.SeedWeight.Dimensions.encHeader_width_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → Header} :
theorem Cslib.Reachability.Hoza.SeedWeight.Dimensions.encHeader_mk_budget {γ : Type} {encIn : γ ↪ List Bool} {budget x0 x1 x2 x3 : γ → ℕ} (h0 : Turing.MultiTapeTM.ComputableInSpace x0 encIn Turing.MultiTapeTM.encNat budget) (h1 : Turing.MultiTapeTM.ComputableInSpace x1 encIn Turing.MultiTapeTM.encNat budget) (h2 : Turing.MultiTapeTM.ComputableInSpace x2 encIn Turing.MultiTapeTM.encNat budget) (h3 : Turing.MultiTapeTM.ComputableInSpace x3 encIn Turing.MultiTapeTM.encNat budget) :
Turing.MultiTapeTM.ComputableInSpace (fun (x : γ) => { width := x0 x, horizon := x1 x, layer := x2 x, column := x3 x }) encIn encHeader budget
theorem Cslib.Reachability.Hoza.SeedWeight.Dimensions.encHeader_mk_deg :
Turing.MultiTapeTM.ComputableInDegree (fun (p : ℕ × ℕ × ℕ × ℕ) => { width := p.1, horizon := p.2.1, layer := p.2.2.1, column := p.2.2.2 }) encHeaderFields encHeader 1 1
theorem Cslib.Reachability.Hoza.SeedWeight.Dimensions.encHeader_horizon_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → Header} :
theorem Cslib.Reachability.Hoza.SeedWeight.Dimensions.encHeader_column_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → Header} :
theorem Cslib.Reachability.Hoza.SeedWeight.Dimensions.encHeader_layer_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → Header} :

Framed binary width, horizon and layer, followed by the binary column.

A weight request with unprepared dimensions and a raw seed in increasing index order.

  • header : Header

    Binary graph and vertex parameters.

  • seed : List Bool

    The seed read by the weight pass.

theorem Cslib.Reachability.Hoza.SeedWeight.Dimensions.encInput_seed_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → Input} :
theorem Cslib.Reachability.Hoza.SeedWeight.Dimensions.encInput_mk_budget {γ : Type} {encIn : γ ↪ List Bool} {budget : γ → ℕ} {x0 : γ → Header} {x1 : γ → List Bool} (h0 : Turing.MultiTapeTM.ComputableInSpace x0 encIn encHeader budget) (h1 : Turing.MultiTapeTM.ComputableInSpace x1 encIn Turing.MultiTapeTM.encBits budget) :
Turing.MultiTapeTM.ComputableInSpace (fun (x : γ) => { header := x0 x, seed := x1 x }) encIn encInput budget
theorem Cslib.Reachability.Hoza.SeedWeight.Dimensions.encInput_header_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → Input} :
Turing.MultiTapeTM.ComputableInSpace g✝ encIn✝ encInput S✝ → Turing.MultiTapeTM.ComputableInSpace (fun (c : γ✝) => (g✝ c).header) encIn✝ encHeader S✝

Framed binary header followed by the original seed bits without further framing.

theorem Cslib.Reachability.Hoza.SeedWeight.Dimensions.encInput_mk_inO {γ : Type} {encIn : γ ↪ List Bool} {x0 : γ → Header} {T0 S0 : γ → ℕ} {x1 : γ → List Bool} {T1 S1 : γ → ℕ} (h0 : Turing.MultiTapeTM.ComputableInO x0 encIn encHeader T0 S0) (h1 : Turing.MultiTapeTM.ComputableInO x1 encIn Turing.MultiTapeTM.encBits T1 S1) :
Turing.MultiTapeTM.ComputableInO (fun (x : γ) => { header := x0 x, seed := x1 x }) encIn encInput (fun (x : γ) => T0 x + T1 x) fun (x : γ) => S0 x + S1 x

Prepare the Justesen context and locate the first seed bit on the original input.

The offset returned by initialization selects exactly the original raw seed.

Native initialization uses workspace linear in the encoded binary header length, independently of the seed suffix.

One native machine initializes the field and evaluates the weight from the original seed suffix. The workspace and binary output length are linear in the complete encoded request.

Supply the graph dimensions, a valid vertex, and a seed in increasing index order.

The native weight computation on binary graph dimensions, a valid vertex and a canonical read-only seed. A single machine computes the existing generated weight for all dimensions. Its workspace and binary output length are linear in the encoded dimensions. The time bound is existential and indexed by the complete request.