Documentation

CslibFrontier.Computability.Circuit.DepthReduction

Valiant depth reduction for bounded-fan-in programs #

Specializes Cslib.IsGrading.exists_sdiff (CslibFrontier.Foundations.Combinatorics.DepthReduction) [Valiant1977; Jukna2012, Lemma 1.4; AroraBarak09, Lemma 13.14; Lokam2009, Lemma 2.2] to arbitrary bounded-fan-in straight-line programs p : Program σ n g (p.FanInAtMost r). For any t ≤ k and p.depth < 2 ^ k, cutting at most r * t * g / k gates leaves every wire with residual gate depth at most 2 ^ (k - t) (Program.valiantDepthReduction), and turning those cut gates into extra inputs produces a fan-in-preserving cut program of depth at most 2 ^ (k - t) with the exact same wire trace (Program.exists_cutProgram, Program.exists_depthReduced_program).

Main results #

References #

theorem Cslib.Circuits.Program.valiantDepthReduction {σ : Signature} {n g : ℕ} (p : Program σ n g) {r k t : ℕ} (hr : p.FanInAtMost r) (ht : t ≤ k) (hdepth : p.depth < 2 ^ k) :
∃ (cut : Finset (Fin g)), cut.card ≤ r * t * g / k ∧ ∀ (w : Wire n g), p.residualWireDepths cut w ≤ 2 ^ (k - t)

Valiant Depth-Reduction Lemma ([Val77]; [Jukna2012, Lemma 1.4]; [AroraBarak09, Lemma 13.14]; [Lokam2009, Lemma 2.2]), specialized from Cslib.IsGrading.exists_sdiff to bounded-fan-in straight-line programs: for t ≤ k and p.depth < 2 ^ k, cutting at most r * t * g / k gates makes every wire's residual gate depth at most 2 ^ (k - t).

theorem Cslib.Circuits.Program.exists_depthReduced_program {σ : Signature} {n g : ℕ} (p : Program σ n g) {r k t : ℕ} (hr : p.FanInAtMost r) (ht : t ≤ k) (hdepth : p.depth < 2 ^ k) :
∃ (m : ℕ) (q : Program σ (n + m) (g - m)) (wireMap : Wire n g → Wire (n + m) (g - m)) (cutGate : Fin m → Fin g), m ≤ r * t * g / k ∧ q.FanInAtMost r ∧ q.depth ≤ 2 ^ (k - t) ∧ ∀ {U : Type u_1} (I : Interpretation σ U) (x : Fin n → U) (w : Wire n g), q.trace I (Fin.append x fun (i : Fin m) => p.eval I x (cutGate i)) (wireMap w) = p.trace I x w

Every bounded-fan-in program p of depth < 2 ^ k admits m ≤ r * t * g / k cut gates whose replacement by extra inputs yields a FanInAtMost r program of depth at most 2 ^ (k - t) computing the same wire trace.