Documentation

CslibFrontier.Computability.MCSP.AntiChecker.Certificate

Anti-checkers counted by circuit certificates #

The description-counting step of the anti-checker construction must count circuit descriptions, including distinct descriptions of the same function. Counting their semantic image instead does not give the witness count needed by approximate counting.

This module instantiates the ordered-tuple variant of the good-string argument in [OliveiraPichSanthanam2019, Lemma 4.7] with the library's fixed-length MCSP certificates. Their validity and evaluation use the existing polynomial-time verifier in MCSP.NP. The existing unary-field encoding uses certLength n s = s + (n + s) + s * (3 + 2 * (n + s)) bits. No compact description-length bound or injectivity of certificate evaluation is assumed.

The resulting statements give a good input for every nonempty subfamily of valid certificates, a geometric bound on the number surviving any prescribed number of greedy rounds, and an anti-checker with at most 16 * (certLength n s + 1) inputs. These are existence and counting results. The efficient generator of [OliveiraPichSanthanam2019, Lemma 4.1] still requires approximate-counting circuits, search, and circuit-size accounting.

Main definitions #

Main results #

References #

All valid descriptions of circuits on n inputs with at most s gates, at the fixed certificate length. Different descriptions computing the same function remain distinct.

Evaluation of a fixed-length MCSP certificate as a Boolean function.

@[simp]

Membership in the description family is exactly certificate validity.

The number of valid descriptions is at most the number of strings of the certificate length.

Every valid fixed-length certificate computes a function with at most s gates.

The semantic image of valid fixed-length certificates is exactly the family of functions computable with at most s gates. This identifies the image, without identifying descriptions.

theorem Cslib.MCSP.filter_validCertificates_eq_filter_checkCertificateOn {n s : ℕ} (f : BooleanFunction n) (S : Finset (BitString n)) :
{w ∈ validCertificates n s | ∀ x ∈ S, certificateFunction n s w x = f x} = {w : Fin (Circuits.Boolean.certLength n s) → Bool | checkCertificateOn (List.map (fun (x : BitString n) => (x, f x)) S.toList) (fun (p : BitString n × Bool) => List.ofFn p.1) (fun (p : BitString n × Bool) (out : Bool) => out == p.2) n s (List.ofFn w) = true}

Descriptions consistent with the labeled sample set are exactly the fixed-length witnesses accepted by checkCertificateOn. Labels are supplied as sample data; the verifier's acceptance test only compares its output with the supplied label.

The good-string bound for every nonempty subfamily of valid circuit descriptions. The refuted fraction is measured before quotienting descriptions by the function they compute.

After k good-input choices, at most a (15 / 16) ^ k fraction of valid circuit descriptions survives. This retains the exact initial description count.

Small anti-checkers against all size-s circuits, with a bound in the fixed description length. This does not give an efficient algorithm for finding the anti-checker.