Documentation

CslibFrontier.Computability.PolyTime.BooleanAnalysis.IncidenceBranching

High-incidence branching for Lemma D.2 #

Lemma D.2 of [OAI26k] (p. 54) counts the common zeros of a sparse polynomial system over ๐”ฝโ‚‚ by tensor contraction. The first step of its proof (p. 54) fixes, in all possible ways, the variables that belong to more than

D* = max{1, โŒˆNโ‚€ / nโŒ‰} โŒˆโˆšฮปโŒ‰

scopes, where ฮป = โŒˆlogโ‚‚ nโŒ‰ and Nโ‚€ = โˆ‘_i |I_i| is the number of pairs (i, v) with v in the scope I_i of test i. This file defines that threshold and proves what the proof uses about it. The branching itself is HeavyBranchFold.countByBranching, with its exactness and its streaming time and space bounds.

The source normalizes the system before branching. Here the system is assumed normalized (IsCanonicalEquation), as HeavyBranchFold.substituteEquation keeps it on every branch.

Main definitions #

Main results #

References #

The threshold, the branching variables and the counter #

The branching threshold D* = max{1, โŒˆNโ‚€ / nโŒ‰} โŒˆโˆšฮปโŒ‰ of Lemma D.2 (p. 54), for a system on n variables with Nโ‚€ = โˆ‘_i |equationVars P_i| scope incidences and ฮป = โŒˆlogโ‚‚ nโŒ‰. It is the ยง5.5 selector ParameterCheck.heavyIncidenceCutoff at max 1 Nโ‚€; see threshold_eq_ceil.

The branching variables of Lemma D.2: the variables v < n in more than D* scopes, in increasing order.

(n', sys') is a reduced branch of (n, sys): fixing the branching variables to some values leaves the nonempty system sys' on its n' relabeled free variables, without a contradictory equation.

The high-incidence branching of Lemma D.2. Branch on every assignment to branchVars n sys, call solver on each reduced branch, and add the branch counts. Contradictory branches count 0, and branches with no equation left count 2 ^ n'.

The hypotheses of Lemma D.2 (p. 54) on a normalized system sys on n declared variables: at most c n equations, each listing at most โŒˆlogโ‚‚ nโŒ‰ ^ c distinct monomials of degree at most k.

The hypotheses of the branch solver of Lemma D.2: those of the lemma, together with scopes of at most โŒˆlogโ‚‚ nโŒ‰ ^ c variables and every variable in at most โŒˆlogโ‚‚ nโŒ‰ ^ c scopes (p. 54).

The threshold #

D* is the threshold of the source (p. 54): for n โ‰ฅ 1, threshold n sys = max{1, โŒˆNโ‚€ / nโŒ‰} โŒˆโˆšฮปโŒ‰ with Nโ‚€ = โˆ‘_i |equationVars P_i|.

Few branching variables (p. 54): at most n / โŒˆโˆšฮปโŒ‰ variables lie in more than D* scopes, where โŒˆโˆšฮปโŒ‰ = โŒŠโˆš(ฮป - 1)โŒ‹ + 1.

Few branching variables, against โŒŠโˆšโŒŠlogโ‚‚ nโŒ‹โŒ‹: for n โ‰ฅ 2, at most n / โŒŠโˆšโŒŠlogโ‚‚ nโŒ‹โŒ‹ variables lie in more than D* scopes.

The number of scope incidences under the hypotheses of Lemma D.2: Nโ‚€ = โˆ‘_i |I_i| โ‰ค c k ฮป^c n (p. 54).

D* is polylogarithmic (p. 54): under the hypotheses of Lemma D.2, D* โ‰ค max{1, c k ฮป^c} โŒˆโˆšฮปโŒ‰, with โŒˆโˆšฮปโŒ‰ = โŒŠโˆš(ฮป - 1)โŒ‹ + 1.

D* โ‰ค ฮป ^ (c + 2) (p. 54): under the hypotheses of Lemma D.2, for n โ‰ฅ 2 and c k โ‰ค ฮป.

Reduced branches #

A reduced branch keeps at least half the variables (p. 54): for n โ‰ฅ 3, it has n' = n - |S| free variables and n โ‰ค 2 n'.

A reduced branch is no longer to encode than its parent system, so bounds on the branch solver in the encoded length of the branch transfer to the parent input.

theorem Cslib.Complexity.SubexponentialSAT.IncidenceBranching.isSparseBranch_of_isReducedBranch {k c n n' : โ„•} {sys sys' : List (List (List โ„•))} (h : IsSparseSystem k c n sys) (hn : 5 โ‰ค n) (hk : 2 ^ ((c + 1) * k) โ‰ค n) (hb : IsReducedBranch n sys n' sys') :
IsSparseBranch k (2 * c + 4) n' sys' โˆง n โ‰ค 2 * n'

The branching instance of Lemma D.2 (p. 54). Under the hypotheses of the lemma, for n โ‰ฅ 5 and 2 ^ ((c + 1) k) โ‰ค n, every reduced branch (n', sys') satisfies the branch solver's hypotheses at its own variable count, with the explicit constant 2 c + 4: at most (2c + 4) n' equations, and at most โŒˆlogโ‚‚ n'โŒ‰ ^ (2c + 4) monomials per equation, variables per scope and scopes per variable. Also n โ‰ค 2 n'.

Exactness #

theorem Cslib.Complexity.SubexponentialSAT.IncidenceBranching.count_eq_rootCount {solver : โ„• โ†’ List (List (List โ„•)) โ†’ โ„•} {n : โ„•} {sys : List (List (List โ„•))} (hvars : โˆ€ eq โˆˆ sys, โˆ€ m โˆˆ eq, โˆ€ v โˆˆ m, v < n) (hsolver : โˆ€ (n' : โ„•) (sys' : List (List (List โ„•))), IsReducedBranch n sys n' sys' โ†’ solver n' sys' = GenericRAM.HeavyBranchFold.rootCount n' sys') :

Exactness of the branching (p. 54): if every variable is below n and solver counts the common zeros of every reduced branch, count solver n sys counts those of sys.

theorem Cslib.Complexity.SubexponentialSAT.IncidenceBranching.count_eq_commonZeroCount {solver : โ„• โ†’ List (List (List โ„•)) โ†’ โ„•} {n : โ„•} {sys : List (List (List โ„•))} (hcan : โˆ€ eq โˆˆ sys, IsCanonicalEquation eq) (hvars : โˆ€ eq โˆˆ sys, โˆ€ m โˆˆ eq, โˆ€ v โˆˆ m, v < n) (hsolver : โˆ€ (n' : โ„•) (sys' : List (List (List โ„•))), IsReducedBranch n sys n' sys' โ†’ solver n' sys' = GenericRAM.HeavyBranchFold.rootCount n' sys') :

Exactness against commonZeroCount: for a normalized system on n variables, the counter returns the number of common zeros of the equations toFinsetEquation n sys[i] on Fin n.

Resources #

The largest cost of a solver over the reduced branches of branchInput n sys is at most any bound on its cost on the reduced branches of (n, sys).

Resources of the high-incidence branching (p. 54). There is K such that, for every solver bounded by 2 ^ n' and every certificate for it, the counter has a certificate with the following bounds. On an input x = (n, sys) whose reduced branches the solver handles in time at most R and space at most Q, the time is at most (2 ^ |S| + 1) (K (|x| + 1) ^ K + R), with S = branchVars n sys, and the space is at most K (|x| + 1) ^ K + Q. Here |x| is the encoded length of the input. With length_branchVars_le, 2 ^ |S| โ‰ค 2 ^ (n / โŒˆโˆšฮปโŒ‰).