Documentation

CslibFrontier.Computability.Circuit.Frontier.SumsetBridge

From sumset extractors and rectangle bias to frontier lower bounds #

This module bridges randomness extraction from independent sources (RectangleBias and Cslib.AffineDisperser.Li.IsSumsetExtractor) to the worst-case and average-case frontier circuit lower bounds (CslibFrontier/Computability/Circuit/Frontier/FanInTwo.lean).

General bias-to-frontier bridge #

A family S_n ⊆ U^n with eventual rectangle bias b_n ≤ c < 1 / 2 on rectangles of side size K_n ≥ 1 with log K_n = o(n) is DenseRectangleFree (denseRectangleFree_of_eventually_rectangleBias): RectangleBias.rectangleFree gives eventual K_n-rectangle-freeness, and applying RectangleBias to a balanced ⌊n / 2⌋ coordinate split bounds (S_n).ncard ≥ (1 / 2 - c) |U|^n, so the logarithmic density deficit n log |U| - log |S_n| is O(1) = o(n).

Sumset extractor bridge #

For a (k, k, ε) sumset extractor ext : BitString n → BitString m (Cslib.AffineDisperser.Li.IsSumsetExtractor), zero-padding assignments on X ⊆ Fin n and Xᶜ into BitString n expresses the uniform distribution on any combinatorial rectangle rectangle X A B with |A|, |B| ≥ 2 ^ k as the XOR-sum p_A + p_B of two independent sources of min-entropy at least k. Consequently:

These theorems are conditional reduction steps in Lean: the explicit extractor and its polynomial-time implementation remain to be formalized, as tracked by #7793. Mathematically, [Li23], ECCC TR23-023 revision 1, Theorem 7.13 (p. 36), already supplies a polynomial-time one-bit sumset extractor with entropy threshold c(ε) log n for each fixed ε > 0. For ε < 1 / 2, it meets the hypotheses of mem_P_and_eventually_switched_lt_multiarySize_of_isSumsetExtractor and yields the explicit P worst-case bound. The corresponding average-case bound is agreement ≤ 1 / 2 + ε + exp (-γ n); that fixed-error theorem alone does not supply a single family with vanishing error as n grows.

Main results #

References #

From rectangle bias to DenseRectangleFree #

theorem Cslib.Circuits.Frontier.denseRectangleFree_of_eventually_rectangleBias {U : Type u} [Finite U] [Nontrivial U] {S : (n : ℕ) → Set (Fin n → U)} {K : ℕ → ℕ} {b : ℕ → ℝ} (hbias : ∀ᶠ (n : ℕ) in Filter.atTop, RectangleBias (S n) (K n) (b n)) (hKpos : ∀ᶠ (n : ℕ) in Filter.atTop, 1 ≤ K n) (hKlog : (fun (n : ℕ) => Real.log ↑(K n)) =o[Filter.atTop] fun (n : ℕ) => ↑n) (hb : ∃ c < 1 / 2, ∀ᶠ (n : ℕ) in Filter.atTop, b n ≤ c) :

Subexponential-threshold rectangle bias bounded away from 1 / 2 gives a dense rectangle-free family. If eventually S_n ⊆ U^n has bias at most b_n ≤ c < 1 / 2 on rectangles with sides of size at least K_n ≥ 1, where log K_n = o(n), then S is DenseRectangleFree with threshold K.

Zero-padding combinatorial rectangles into XOR-sums of independent sources #

Sumset extractor bridges #

theorem Cslib.Circuits.Frontier.rectangleBias_of_isSumsetExtractor {n m k : ℕ} {ε : ℝ} {ext : BitString n → BitString m} (hext : AffineDisperser.Li.IsSumsetExtractor ext k k ε) (j : Fin m) (val : Bool) :
RectangleBias {x : BitString n | ext x j = val} (2 ^ k) ε

Every output bit of a (k, k, ε) sumset extractor has (2 ^ k, ε) rectangle bias. Zero-padding the two sides of any combinatorial rectangle rectangle X A B with |A|, |B| ≥ 2 ^ k produces two independent sources of min-entropy at least k whose XOR-sum is uniform on rectangle X A B.

theorem Cslib.Circuits.Frontier.denseRectangleFree_of_isSumsetExtractor {m k : ℕ → ℕ} {ε : ℕ → ℝ} {ext : (n : ℕ) → BitString n → BitString (m n)} (j : (n : ℕ) → Fin (m n)) (val : ℕ → Bool) (hext : ∀ᶠ (n : ℕ) in Filter.atTop, AffineDisperser.Li.IsSumsetExtractor (ext n) (k n) (k n) (ε n)) (hk : (fun (n : ℕ) => ↑(k n)) =o[Filter.atTop] fun (n : ℕ) => ↑n) (hε : ∃ c < 1 / 2, ∀ᶠ (n : ℕ) in Filter.atTop, ε n ≤ c) :
DenseRectangleFree (fun (n : ℕ) => {x : BitString n | ext n x (j n) = val n}) fun (n : ℕ) => 2 ^ k n

Bit fibers of sublinear-entropy sumset extractors are DenseRectangleFree. Conditional reduction step: if ext n is eventually a (k n, k n, ε n) sumset extractor with k n = o(n) and ε n ≤ c < 1 / 2, then {x | ext n x (j n) = val n} is DenseRectangleFree with threshold 2 ^ k n.

theorem Cslib.Circuits.Frontier.eventually_switched_sub_mul_lt_multiarySize_of_isSumsetExtractor {m k : ℕ → ℕ} {ε : ℕ → ℝ} {ext : (n : ℕ) → BitString n → BitString (m n)} (j : (n : ℕ) → Fin (m n)) (val : ℕ → Bool) (hext : ∀ᶠ (n : ℕ) in Filter.atTop, AffineDisperser.Li.IsSumsetExtractor (ext n) (k n) (k n) (ε n)) (hk : (fun (n : ℕ) => ↑(k n)) =o[Filter.atTop] fun (n : ℕ) => ↑n) (hε : ∃ c < 1 / 2, ∀ᶠ (n : ℕ) in Filter.atTop, ε n ≤ c) {δ : ℝ} (hδ : 0 < δ) :
∀ᶠ (n : ℕ) in Filter.atTop, ∀ (σ : Signature) (I : Interpretation σ Bool) (Acc : Set Bool) (c : Circuit σ n 1), c.FanInAtMost 2 → c.Decides I Acc {x : BitString n | ext n x (j n) = val n} → (1 + 2 * Real.pi / (3 * Real.arccos (5 / 6)) - δ) * ↑n < ↑c.multiarySize

Worst-case (L₃ - δ) n multiary frontier step from a sumset extractor. Conditional reduction step (not an unconditional P lower bound): if ext n is eventually a (k n, k n, ε n) sumset extractor with k n = o(n) and ε n ≤ c < 1 / 2, then for every δ > 0 and all large n, every fan-in-two circuit over any signature σ deciding {x | ext n x (j n) = val n} has more than (1 + 2π / (3 arccos (5 / 6)) - δ) n multiary gates (arity = 2; constant and unary gates are free).

theorem Cslib.Circuits.Frontier.exists_eventually_agreement_le_of_isSumsetExtractor {m k : ℕ → ℕ} {ε : ℕ → ℝ} {ext : (n : ℕ) → BitString n → BitString (m n)} (j : (n : ℕ) → Fin (m n)) (val : ℕ → Bool) (hext : ∀ᶠ (n : ℕ) in Filter.atTop, AffineDisperser.Li.IsSumsetExtractor (ext n) (k n) (k n) (ε n)) (hk : (fun (n : ℕ) => ↑(k n)) =o[Filter.atTop] fun (n : ℕ) => ↑n) {δ : ℝ} (hδ : 0 < δ) :
∃ γ > 0, ∀ᶠ (n : ℕ) in Filter.atTop, ∀ (σ : Signature) (I : Interpretation σ Bool) (Acc : Set Bool) (c : Circuit σ n 1), c.FanInAtMost 2 → ↑c.multiarySize ≤ (1 + 2 * Real.pi / (3 * Real.arccos (5 / 6)) - δ) * ↑n → agreement {x : BitString n | ext n x (j n) = val n} {x : Fin n → Bool | c.eval I x 0 ∈ Acc} ≤ 1 / 2 + ε n + Real.exp (-γ * ↑n)

Average-case (L₃ - δ) n multiary frontier step from a sumset extractor. Conditional reduction step: if ext n is eventually a (k n, k n, ε n) sumset extractor with k n = o(n), then for every δ > 0 there is γ > 0 such that, for all large n, every fan-in-two circuit over any signature σ with at most (1 + 2π / (3 arccos (5 / 6)) - δ) n multiary gates agrees with {x | ext n x (j n) = val n} on at most a 1 / 2 + ε n + exp (-γ n) fraction of inputs.

theorem Cslib.Circuits.Frontier.mem_P_and_eventually_switched_lt_multiarySize_of_isSumsetExtractor {f : (n : ℕ) → BitString n → Bool} {k : ℕ → ℕ} {ε : ℕ → ℝ} (hf : Turing.MultiTapeTM.ComputableInPolyTime (fun (x : List Bool) => f x.length (BitString.ofList x.length x)) Turing.MultiTapeTM.encBits Turing.MultiTapeTM.encBool) (hext : ∀ᶠ (n : ℕ) in Filter.atTop, AffineDisperser.Li.IsSumsetExtractor (fun (x : BitString n) (x_1 : Fin 1) => f n x) (k n) (k n) (ε n)) (hk : (fun (n : ℕ) => ↑(k n)) =o[Filter.atTop] fun (n : ℕ) => ↑n) (hε : ∃ c < 1 / 2, ∀ᶠ (n : ℕ) in Filter.atTop, ε n ≤ c) :
Language.ofSlices f ∈ Complexity.P Turing.MultiTapeTM.encBits ∧ ∀ δ > 0, ∀ᶠ (n : ℕ) in Filter.atTop, ∀ (σ : Signature) (I : Interpretation σ Bool) (Acc : Set Bool) (c : Circuit σ n 1), c.FanInAtMost 2 → c.Decides I Acc {x : BitString n | (Language.ofSlices f).slice n x = true} → (1 + 2 * Real.pi / (3 * Real.arccos (5 / 6)) - δ) * ↑n < ↑c.multiarySize

Conditional reduction step from a polynomial-time sumset extractor to a language in P requiring (L₃ - δ) n multiary gates. The explicit construction of [Li23], ECCC TR23-023 revision 1, Theorem 7.13, is not yet formalized (see #7793). Given any polynomial-time Boolean family f whose 1-bit output is eventually a (k n, k n, ε n) sumset extractor with k n = o(n) and ε n ≤ c < 1 / 2, Language.ofSlices f lies in P and its n-bit slice requires more than (1 + 2π / (3 arccos (5 / 6)) - δ) n multiary gates over every fan-in-two signature σ.