Documentation

CslibFrontier.Algorithms.Reachability.MinIsolation.Weights

Seed derivatives of Hoza's weights #

A column has a binary codeword. The seed masks its bits. A base-six place value gives priority to earlier bits, and a power of six determined by the layer's 2-adic multiplicity gives priority to the unique maximal internal layer [Hoza2026NLUL, §2.1, Eq. (1)].

For a nonempty family of paths passing through the same column at the maximal layer, the minimum path weight has the derivative bounds of [Hoza2026NLUL, Lemma 2.3]. The family is supplied here by its finite set and its column at each internal layer.

Main definitions #

Main results #

Apply Hoza's layer-dependent factor to an already accumulated base-six weight. The vertex weight and streaming scan handle the layer-zero case separately.

def Cslib.Reachability.Hoza.coefficient {ℓ : ℕ} (i : ℕ) (j : Fin ℓ) :

The coefficient of one codeword bit in a positive layer.

def Cslib.Reachability.Hoza.vertexWeight {V : Type u_1} {ℓ : ℕ} (code : V → Fin ℓ → Bool) (seed : Fin ℓ → Bool) (i : ℕ) (v : V) :

The vertex weight in [Hoza2026NLUL, Eq. (1)]. Layer zero has weight zero.

def Cslib.Reachability.Hoza.intervalWeight {V : Type u_1} {ℓ : ℕ} (code : V → Fin ℓ → Bool) (seed : Fin ℓ → Bool) (layers : Finset ℕ) (column : ℕ → V) :

Sum the weights of the columns visited at the specified layers.

noncomputable def Cslib.Reachability.Hoza.minIntervalWeight {V : Type u_1} {P : Type u_2} {ℓ : ℕ} (code : V → Fin ℓ → Bool) (seed : Fin ℓ → Bool) (layers : Finset ℕ) (column : P → ℕ → V) (paths : Finset P) (hne : paths.Nonempty) :

The minimum weight of a member of a nonempty finite path family.

theorem Cslib.Reachability.Hoza.minIntervalWeight_le {V : Type u_1} {P : Type u_2} {ℓ : ℕ} (code : V → Fin ℓ → Bool) (seed : Fin ℓ → Bool) (layers : Finset ℕ) (column : P → ℕ → V) {paths : Finset P} (hne : paths.Nonempty) {p : P} (hp : p ∈ paths) :
minIntervalWeight code seed layers column paths hne ≤ intervalWeight code seed layers (column p)

The minimum interval weight is no larger than the weight of any member.

theorem Cslib.Reachability.Hoza.exists_minIntervalWeight {V : Type u_1} {P : Type u_2} {ℓ : ℕ} (code : V → Fin ℓ → Bool) (seed : Fin ℓ → Bool) (layers : Finset ℕ) (column : P → ℕ → V) {paths : Finset P} (hne : paths.Nonempty) :
∃ p ∈ paths, intervalWeight code seed layers (column p) = minIntervalWeight code seed layers column paths hne

Some member of a nonempty path family attains its minimum interval weight.

theorem Cslib.Reachability.Hoza.minIntervalWeight_update_bounds {V : Type u_1} {P : Type u_2} {ℓ : ℕ} (code : V → Fin ℓ → Bool) (seed : Fin ℓ → Bool) {a b mid : ℕ} (ha : 0 < a) (hm : mid ∈ Finset.Icc a b) (hmax : ∀ i ∈ Finset.Icc a b, multiplicity 2 i ≤ multiplicity 2 mid) (column : P → ℕ → V) {paths : Finset P} (hne : paths.Nonempty) (v : V) (hcolumn : ∀ p ∈ paths, column p mid = v) (j : Fin ℓ) :
have d₀ := minIntervalWeight code (Function.update seed j false) (Finset.Icc a b) column paths hne; have d₁ := minIntervalWeight code (Function.update seed j true) (Finset.Icc a b) column paths hne; d₀ + coefficient mid j * (code v j).toNat ≤ d₁ ∧ d₁ ≤ d₀ + coefficient mid j * (code v j).toNat + coefficient mid j / 2

If all paths visit column v at the dominant layer, the change in their minimum on switching bit j from zero to one lies between the contribution of that vertex and that contribution plus half the dominant coefficient.