Documentation

Complexity.Computability.Circuit.Frontier.Correlation

Exponentially small correlation with quadratic forms #

Circuits of fan-in at most two over any basis on Bool, with at most c n gates of positive arity, have correlation 2^{-Ξ©(n)} with a nonconstructively chosen family of bilinear forms xα΅€ R y over 𝔽₂, for every c < c* = 1 + 1/(2A) β‰ˆ 2.78125. Here A = 2p β‰ˆ 0.2807 is the Gaussian layout coefficient of the frontier method (Cslib.Circuits.Frontier.layoutBound_gaussian), and c* = (1 + L)/2 for the coefficient L = 1 + 1/A β‰ˆ 4.5625 of the worst-case frontier lower bound (Cslib.Circuits.Frontier.circuitLowerBound_gaussian). Correlation is measured in the terms of the average-case frontier lower bound: correlation S T = 2 Β· agreement S T - 1 (Cslib.Circuits.Frontier.correlation_eq_two_mul_agreement_sub_one), so a correlation of absolute value at most Ξ΅ is an agreement of at most 1/2 + Ξ΅/2. The circuit model and the gate count (Cslib.Circuits.Circuit.innerSize) are those of Cslib.Circuits.Frontier.AverageCaseBound. The best previously published average-case bounds for the full binary basis are 2.5 n, for an explicit affine extractor Chen–Kabanets, and 2.6 n, for non-explicit quadratic extractors Golovnev–Kulikov–Smal–Tamaki. Because the family here is chosen nonconstructively, the comparable bound is the non-explicit one; nothing here improves on the explicit 2.5 n.

The argument #

For a quadratic form f over 𝔽₂ and a cut X of the coordinates, Lindsey's lemma bounds the signed sum of (-1)^f over every rectangle R for X by √(|R| 2^{n - ρ(X)}), where the cut rank ρ(X) is the rank of the block of the polar matrix with rows X and columns Xᢜ (Cslib.Circuits.Frontier.sq_signedCount_quadForm_rectangle_mul_le). Partition the inputs into K rectangle classes for one cut on which the circuit is constant; Cauchy–Schwarz over the classes gives correlationΒ² ≀ K Β· 2^{-ρ(X)} (Cslib.Circuits.Frontier.sq_correlation_quadForm_mul_le). Two partitions apply:

If every set of ⌊n/2βŒ‹ coordinates has cut rank at least ⌊n/2βŒ‹ - Ο„ n, balancing the two at ΞΈ n unread inputs, with ΞΈ = (1/2 - A (c - 1))/(1 + A), gives the rate (c* - c)/(2L) - Ο„/2 (Cslib.Circuits.Frontier.eventually_abs_correlation_quadForm_le), and (c* - c)/(2L) for a sublinear deficiency (eventually_abs_correlation_quadForm_le_gaussian).

A nonconstructively chosen family #

A matrix is submatrix-robust with deficiency t when every square block with k rows has rank at least k - t. Counting spanning sets of columns shows that for t = 2 ⌊√mβŒ‹ + 1 such an m Γ— m matrix over 𝔽₂ exists (Matrix.exists_submatrixRobust). The family hardForm n = xα΅€ R y uses a fixed such matrix R = robustMatrix ⌊n/2βŒ‹ between the first ⌊n/2βŒ‹ coordinates x and the next ⌊n/2βŒ‹ coordinates y. The matrix is chosen nonconstructively by Classical.choose; no efficient construction is supplied. Its bisection cut rank is at least ⌊n/2βŒ‹ - O(√n) (half_le_cutRank_hardMatrix).

Remark, not formalized. Taking instead the lexicographically first robust matrix makes the family computable in E^NP: whether some robust matrix extends a given prefix is one NP query of length 2^{O(n)} (guess the matrix and check its fewer than 4^{n/2} pairs of row and column sets), so the matrix is found bit by bit in time 2^{O(n)}. Nothing in this file states or proves this uniformity.

Main definitions #

Main results #

References #

The Gaussian rate #

theorem Cslib.Circuits.Frontier.gaussian_rate_eq (c : ℝ) :
(1 + 1 / (2 * (2 * Gaussian.gaussianCoefficient)) - c) / (2 * (1 + 1 / (2 * Gaussian.gaussianCoefficient))) = (1 + Real.pi / (6 * Real.arccos ((1 + 2 * √2) / 4)) - c) / (2 * (1 + Real.pi / (3 * Real.arccos ((1 + 2 * √2) / 4))))

The threshold and the rate of the Gaussian layout coefficient A = 2p in closed form: c* = 1 + Ο€ / (6 arccos ((1 + 2√2)/4)) and L = 1 + Ο€ / (3 arccos ((1 + 2√2)/4)).

The threshold is above 2.78: c* = 1 + Ο€ / (6 arccos ((1 + 2√2)/4)) β‰₯ 139/50, since c* = (1 + L)/2 and L β‰₯ 114/25 (Gaussian.circuitCoefficient_ge_456).

theorem Cslib.Circuits.Frontier.eventually_abs_correlation_quadForm_le_gaussian {c Ξ³ : ℝ} (hc : 1 / 2 ≀ c) (hΞ³ : Ξ³ < (1 + Real.pi / (6 * Real.arccos ((1 + 2 * √2) / 4)) - c) / (2 * (1 + Real.pi / (3 * Real.arccos ((1 + 2 * √2) / 4))))) (Q : (n : β„•) β†’ Matrix (Fin n) (Fin n) (ZMod 2)) (e : β„• β†’ ℝ) (he : e =o[Filter.atTop] fun (n : β„•) => ↑n) (hQ : βˆ€αΆ  (n : β„•) in Filter.atTop, βˆ€ (U : Set (Fin n)), U.ncard = n / 2 β†’ ↑(n / 2) ≀ ↑((Q n + (Q n).transpose).cutRank U) + e n) :
βˆ€αΆ  (n : β„•) in Filter.atTop, βˆ€ (Οƒ : Signature) (I : Interpretation Οƒ Bool) (Acc : Set Bool) (C : Circuit Οƒ n 1), C.FanInAtMost 2 β†’ ↑C.innerSize ≀ c * ↑n β†’ |correlation {x : Fin n β†’ Bool | BitString.quadForm (Q n) x = true} {x : Fin n β†’ Bool | C.eval I x 0 ∈ Acc}| ≀ 2 ^ (-Ξ³ * ↑n)

Exponentially small correlation below 2.78 n gates. If every set of ⌊n/2βŒ‹ coordinates has cut rank at least ⌊n/2βŒ‹ - o(n) in Q_n + Q_nα΅€, then for every c β‰₯ 1/2 and every Ξ³ < (c* - c)/(2L), with c* = 1 + Ο€ / (6 arccos ((1 + 2√2)/4)) β‰ˆ 2.78125 and L = 1 + Ο€ / (3 arccos ((1 + 2√2)/4)) β‰ˆ 4.5625, for all large n every circuit of fan-in at most two, over any basis on Bool and accepting any set of values, with at most c n gates of positive arity has correlation at most 2^{-Ξ³ n} in absolute value with the quadratic form of Q_n.

A nonconstructively chosen family #

The coordinate of an input of length n holding the entry a of its left half x: the left half is the first ⌊n/2βŒ‹ coordinates.

Instances For

    The coordinate of an input of length n holding the entry b of its right half y: the right half is the next ⌊n/2βŒ‹ coordinates. For odd n the last coordinate is in neither half.

    Instances For
      noncomputable def Cslib.Circuits.Frontier.robustMatrix (k : β„•) :
      Matrix (Fin k) (Fin k) (ZMod 2)

      A fixed submatrix-robust k Γ— k matrix over 𝔽₂ with deficiency 2 ⌊√kβŒ‹ + 1, chosen once and for all by Classical.choose from Matrix.exists_submatrixRobust.

      Instances For
        noncomputable def Cslib.Circuits.Frontier.hardMatrix (n : β„•) :
        Matrix (Fin n) (Fin n) (ZMod 2)

        The matrix of the chosen family: robustMatrix ⌊n/2βŒ‹ in the block whose rows are the left half and whose columns are the right half, and zeros elsewhere.

        Instances For
          noncomputable def Cslib.Circuits.Frontier.hardForm (n : β„•) :
          (Fin n β†’ Bool) β†’ Bool

          The nonconstructively chosen family: on inputs of length n, the quadratic form of hardMatrix n, which is the bilinear form xα΅€ R y of R = robustMatrix ⌊n/2βŒ‹ between the left half x and the right half y (hardForm_apply). The matrix R is chosen by Classical.choose.

          Instances For
            theorem Cslib.Circuits.Frontier.hardForm_apply (n : β„•) (x : Fin n β†’ Bool) :
            hardForm n x = decide (((fun (a : Fin (n / 2)) => BitString.bitVal (ZMod 2) (x (leftHalf n a))) ⬝α΅₯ (robustMatrix (n / 2)).mulVec fun (b : Fin (n / 2)) => BitString.bitVal (ZMod 2) (x (rightHalf n b))) = 1)

            The chosen family is the bilinear form xα΅€ R y of R = robustMatrix ⌊n/2βŒ‹.

            theorem Cslib.Circuits.Frontier.half_le_cutRank_hardMatrix (n : β„•) {U : Set (Fin n)} (hU : U.ncard = n / 2) :
            n / 2 ≀ (hardMatrix n + (hardMatrix n).transpose).cutRank U + (2 * (2 * (n / 2).sqrt + 1) + 1)

            Bisection cut rank of the chosen family. Every set of ⌊n/2βŒ‹ coordinates has cut rank at least ⌊n/2βŒ‹ - (2 (2 ⌊√⌊n/2βŒ‹βŒ‹ + 1) + 1) in the polar matrix of hardMatrix n.

            theorem Cslib.Circuits.Frontier.isLittleO_hardDeficiency :
            (fun (n : β„•) => ↑(2 * (2 * (n / 2).sqrt + 1) + 1)) =o[Filter.atTop] fun (n : β„•) => ↑n

            The deficiency 2 (2 ⌊√⌊n/2βŒ‹βŒ‹ + 1) + 1 of the chosen family is sublinear.

            theorem Cslib.Circuits.Frontier.half_le_cutRank_hardMatrix_add (n : β„•) (U : Set (Fin n)) (hU : U.ncard = n / 2) :
            ↑(n / 2) ≀ ↑((hardMatrix n + (hardMatrix n).transpose).cutRank U) + ↑(2 * (2 * (n / 2).sqrt + 1) + 1)

            The bisection hypothesis for the chosen family, in the form used by the asymptotic bounds.

            theorem Cslib.Circuits.Frontier.eventually_abs_correlation_hardForm_le {c Ξ³ : ℝ} (hc : 1 / 2 ≀ c) (hΞ³ : Ξ³ < (1 + Real.pi / (6 * Real.arccos ((1 + 2 * √2) / 4)) - c) / (2 * (1 + Real.pi / (3 * Real.arccos ((1 + 2 * √2) / 4))))) :
            βˆ€αΆ  (n : β„•) in Filter.atTop, βˆ€ (Οƒ : Signature) (I : Interpretation Οƒ Bool) (Acc : Set Bool) (C : Circuit Οƒ n 1), C.FanInAtMost 2 β†’ ↑C.innerSize ≀ c * ↑n β†’ |correlation {x : Fin n β†’ Bool | hardForm n x = true} {x : Fin n β†’ Bool | C.eval I x 0 ∈ Acc}| ≀ 2 ^ (-Ξ³ * ↑n)

            Exponentially small correlation with the chosen family below 2.78 n gates. For every c β‰₯ 1/2 and every Ξ³ < (c* - c)/(2L), with c* = 1 + Ο€ / (6 arccos ((1 + 2√2)/4)) β‰ˆ 2.78125 and L = 1 + Ο€ / (3 arccos ((1 + 2√2)/4)) β‰ˆ 4.5625, for all large n every circuit of fan-in at most two, over any basis on Bool and accepting any set of values, with at most c n gates of positive arity has correlation at most 2^{-Ξ³ n} in absolute value with hardForm n.

            theorem Cslib.Circuits.Frontier.exists_eventually_abs_correlation_hardForm_le_of_lt {c : ℝ} (hc : c < 1 + Real.pi / (6 * Real.arccos ((1 + 2 * √2) / 4))) :
            βˆƒ (Ξ³ : ℝ), 0 < Ξ³ ∧ βˆ€αΆ  (n : β„•) in Filter.atTop, βˆ€ (Οƒ : Signature) (I : Interpretation Οƒ Bool) (Acc : Set Bool) (C : Circuit Οƒ n 1), C.FanInAtMost 2 β†’ ↑C.innerSize ≀ c * ↑n β†’ |correlation {x : Fin n β†’ Bool | hardForm n x = true} {x : Fin n β†’ Bool | C.eval I x 0 ∈ Acc}| ≀ 2 ^ (-Ξ³ * ↑n)

            Every coefficient below the threshold. For every c < c*, where c* = 1 + Ο€ / (6 arccos ((1 + 2√2)/4)) β‰ˆ 2.78125, some fixed Ξ³ > 0 bounds, for all large n, the correlation of every circuit of fan-in at most two, over any basis on Bool and accepting any set of values, with at most c n gates of positive arity, with hardForm n by 2^{-Ξ³ n}.

            theorem Cslib.Circuits.Frontier.exists_eventually_abs_correlation_hardForm_le :
            βˆƒ (Ξ³ : ℝ), 0 < Ξ³ ∧ βˆ€αΆ  (n : β„•) in Filter.atTop, βˆ€ (Οƒ : Signature) (I : Interpretation Οƒ Bool) (Acc : Set Bool) (C : Circuit Οƒ n 1), C.FanInAtMost 2 β†’ ↑C.innerSize ≀ 277 / 100 * ↑n β†’ |correlation {x : Fin n β†’ Bool | hardForm n x = true} {x : Fin n β†’ Bool | C.eval I x 0 ∈ Acc}| ≀ 2 ^ (-Ξ³ * ↑n)

            Below 2.77 n gates. Some fixed Ξ³ > 0 bounds, for all large n, the correlation of every circuit of fan-in at most two, over any basis on Bool and accepting any set of values, with at most 2.77 n gates of positive arity, with hardForm n by 2^{-Ξ³ n}.