Documentation

CslibFrontier.Computability.LogSpaceDerandomization.RootMetric.ConditionalWalk

Integrating actual endpoint-dependent conditional walks #

Each retained source/endpoint pair has its own actual environment subtype and rotation map. A sample is restricted to that subtype before averaging. The graph fourth-moment theorem therefore supplies the conditional contraction, rather than taking an output-moment estimate as a hypothesis. Integration retains the exact joint retention densities, including empty slices. Uniform spectral bounds introduce no reciprocal-density penalty.

This is the graph-to-integrated-norm step in [OpenAI2026LogSpace, Lemma 7.8, printed p. 42], source label est-prefix-noise, revision 7ef5c0cc (23 September 2026, not peer reviewed). The source uses eighth moments; here the existing graph theorem supplies fourth moments. The actual task graphs and the requirement that they vary every sample-dependent coordinate remain model obligations. This does not construct the recursive estimator or its schedules.

Main results #

References #

@[reducible, inline]
abbrev Cslib.RetainedPairSlice {Ω : Type u_1} {V : Type u_2} [Fintype Ω] (X Y : Ω → V → Prop) [(σ : Ω) → (x : V) → Decidable (X σ x)] [(σ : Ω) → (y : V) → Decidable (Y σ y)] (x y : V) :
Type u_1

The actual retained source/endpoint environment, possibly empty.

theorem Cslib.retainedPairSlice_source {Ω : Type u_1} {V : Type u_2} [Fintype Ω] (X Y : Ω → V → Prop) [(σ : Ω) → (x : V) → Decidable (X σ x)] [(σ : Ω) → (y : V) → Decidable (Y σ y)] {x y : V} (σ : RetainedPairSlice X Y x y) :
X (↑σ) x

Membership in the actual walk state retains its source coordinate.

theorem Cslib.retainedPairSlice_terminal {Ω : Type u_1} {V : Type u_2} [Fintype Ω] (X Y : Ω → V → Prop) [(σ : Ω) → (x : V) → Decidable (X σ x)] [(σ : Ω) → (y : V) → Decidable (Y σ y)] {x y : V} (σ : RetainedPairSlice X Y x y) :
Y (↑σ) y

Membership in the actual walk state retains its terminal coordinate.

noncomputable def Cslib.rowSliceMean {Ω : Type u_1} {V : Type u_2} [Fintype Ω] (X Y : Ω → V → Prop) [(σ : Ω) → (x : V) → Decidable (X σ x)] [(σ : Ω) → (y : V) → Decidable (Y σ y)] (F : Ω → V → V → ℝ) (x y : V) :

Uniform mean on the actual retained-pair slice, with zero mean on an empty slice.

noncomputable def Cslib.conditionalWalk {Ω : Type u_1} {V : Type u_2} {D : Type u_3} [Fintype Ω] (X Y : Ω → V → Prop) [(σ : Ω) → (x : V) → Decidable (X σ x)] [(σ : Ω) → (y : V) → Decidable (Y σ y)] [Fintype D] (G : (x y : V) → RotationMap (RetainedPairSlice X Y x y) D) (t : V → V → ℕ) (F : Ω → V → V → ℝ) (σ : Ω) (x y : V) :

A concrete family of graph averages on each actual retained-pair slice. Values outside that pair's retention event are zero and are ignored by the integrated row norm.

theorem Cslib.conditionalWalk_eq_zero_of_not_source {Ω : Type u_1} {V : Type u_2} {D : Type u_3} [Fintype Ω] (X Y : Ω → V → Prop) [(σ : Ω) → (x : V) → Decidable (X σ x)] [(σ : Ω) → (y : V) → Decidable (Y σ y)] [Fintype D] (G : (x y : V) → RotationMap (RetainedPairSlice X Y x y) D) (t : V → V → ℕ) (F : Ω → V → V → ℝ) (σ : Ω) (x y : V) (hx : ¬X σ x) :
conditionalWalk X Y G t F σ x y = 0

Conditional completion preserves source rejection for every input and length.

theorem Cslib.conditionalWalk_coe {Ω : Type u_1} {V : Type u_2} {D : Type u_3} [Fintype Ω] (X Y : Ω → V → Prop) [(σ : Ω) → (x : V) → Decidable (X σ x)] [(σ : Ω) → (y : V) → Decidable (Y σ y)] [Fintype D] (G : (x y : V) → RotationMap (RetainedPairSlice X Y x y) D) (t : V → V → ℕ) (F : Ω → V → V → ℝ) (x y : V) (σ : RetainedPairSlice X Y x y) :
conditionalWalk X Y G t F (↑σ) x y = ((G x y).walk ^ (2 * t x y)) (fun (τ : RetainedPairSlice X Y x y) => F (↑τ) x y) σ

A retained environment is evaluated by its own pair's graph, without changing slices.

theorem Cslib.expect_retainedPairSlice {Ω : Type u_1} {V : Type u_2} [Fintype Ω] (X Y : Ω → V → Prop) [(σ : Ω) → (x : V) → Decidable (X σ x)] [(σ : Ω) → (y : V) → Decidable (Y σ y)] (x y : V) (f : Ω → ℝ) :
(Finset.univ.expect fun (σ : RetainedPairSlice X Y x y) => f ↑σ) = {σ : Ω | X σ x ∧ Y σ y}.expect fun (σ : Ω) => f σ

The graph's uniform vertex average is precisely the conditional finite-set average.

theorem Cslib.expect_conditionalWalk_sub_mean_pow_four_le {Ω : Type u_1} {V : Type u_2} {D : Type u_3} [Fintype Ω] (X Y : Ω → V → Prop) [(σ : Ω) → (x : V) → Decidable (X σ x)] [(σ : Ω) → (y : V) → Decidable (Y σ y)] [Fintype D] [Nonempty D] (G : (x y : V) → RotationMap (RetainedPairSlice X Y x y) D) (t : V → V → ℕ) (F : Ω → V → V → ℝ) (x y : V) :
({σ : Ω | X σ x ∧ Y σ y}.expect fun (σ : Ω) => |conditionalWalk X Y G t F σ x y - rowSliceMean X Y F x y| ^ 4) ≤ 2 * (G x y).spectralExpansion ^ (2 * t x y) * {σ : Ω | X σ x ∧ Y σ y}.expect fun (σ : Ω) => |F σ x y - rowSliceMean X Y F x y| ^ 4

The existing graph theorem supplies the actual conditional fourth-moment contraction. No positivity or nonemptiness assumption on the retained slice is required.

theorem Cslib.rowNormPow_conditionalWalk_le_sum {Ω : Type u_1} {V : Type u_2} {D : Type u_3} [Fintype Ω] (X Y : Ω → V → Prop) [(σ : Ω) → (x : V) → Decidable (X σ x)] [(σ : Ω) → (y : V) → Decidable (Y σ y)] [Fintype V] [Fintype D] [Nonempty D] {N u : ℝ} (hNu : 0 ≤ N * u) (G : (x y : V) → RotationMap (RetainedPairSlice X Y x y) D) (t : V → V → ℕ) (F : Ω → V → V → ℝ) :
(rowNormPow 4 N u X Y fun (σ : Ω) (x y : V) => conditionalWalk X Y G t F σ x y - rowSliceMean X Y F x y) ≤ (N * u)⁻¹ * ∑ x : V, ∑ y : V, ↑{σ : Ω | X σ x ∧ Y σ y}.dens * (2 * (G x y).spectralExpansion ^ (2 * t x y) * {σ : Ω | X σ x ∧ Y σ y}.expect fun (σ : Ω) => |F σ x y - rowSliceMean X Y F x y| ^ 4)

Nonuniform pair-specific graph gaps and walk lengths retain the exact slice densities.

theorem Cslib.rowNormPow_conditionalWalk_le {Ω : Type u_1} {V : Type u_2} {D : Type u_3} [Fintype Ω] (X Y : Ω → V → Prop) [(σ : Ω) → (x : V) → Decidable (X σ x)] [(σ : Ω) → (y : V) → Decidable (Y σ y)] [Fintype V] [Fintype D] [Nonempty D] {N u lam : ℝ} (hNu : 0 ≤ N * u) (G : (x y : V) → RotationMap (RetainedPairSlice X Y x y) D) (hgap : ∀ (x y : V), (G x y).spectralExpansion ≤ lam) (t : ℕ) (F : Ω → V → V → ℝ) :
(rowNormPow 4 N u X Y fun (σ : Ω) (x y : V) => conditionalWalk X Y G (fun (x x_1 : V) => t) F σ x y - rowSliceMean X Y F x y) ≤ 2 * lam ^ (2 * t) * rowNormPow 4 N u X Y fun (σ : Ω) (x y : V) => F σ x y - rowSliceMean X Y F x y

A uniform spectral bound contracts the centered integrated row moment directly, even when the pair slices have unequal densities or are empty.

theorem Cslib.rowNormPow_conditionalWalk_le_raw {Ω : Type u_1} {V : Type u_2} {D : Type u_3} [Fintype Ω] (X Y : Ω → V → Prop) [(σ : Ω) → (x : V) → Decidable (X σ x)] [(σ : Ω) → (y : V) → Decidable (Y σ y)] [Fintype V] [Fintype D] [Nonempty D] {N u lam : ℝ} (hNu : 0 ≤ N * u) (G : (x y : V) → RotationMap (RetainedPairSlice X Y x y) D) (hgap : ∀ (x y : V), (G x y).spectralExpansion ≤ lam) (t : ℕ) (F : Ω → V → V → ℝ) :
(rowNormPow 4 N u X Y fun (σ : Ω) (x y : V) => conditionalWalk X Y G (fun (x x_1 : V) => t) F σ x y - rowSliceMean X Y F x y) ≤ 32 * lam ^ (2 * t) * rowNormPow 4 N u X Y F

The graph family also contracts from the uncentered raw integrated input moment, at the fixed cost 32. The cost is independent of every slice density and input moment.